GitHubAuditData
| where Action == "repo.destroy"
| extend AccountName = tostring(split(Actor, "@")[0]), AccountUPNSuffix = tostring(split(Actor, "@")[1])
queryFrequency: 1d
kind: Scheduled
version: 1.0.1
relevantTechniques:
- T1078
triggerOperator: gt
status: Available
requiredDataConnectors: []
id: 0b85a077-8ba5-4cb5-90f7-1e882afe10c3
name: GitHub - Repository was destroyed
query: |
GitHubAuditData
| where Action == "repo.destroy"
| extend AccountName = tostring(split(Actor, "@")[0]), AccountUPNSuffix = tostring(split(Actor, "@")[1])
queryPeriod: 7d
triggerThreshold: 0
description: |
'Detect activities when a repository was destroyed. This query runs every day and its severity is Medium.'
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: Actor
- identifier: Name
columnName: AccountName
- identifier: UPNSuffix
columnName: AccountUPNSuffix
severity: Medium
tactics:
- InitialAccess
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/GitHub - Repository was destroyed.yaml