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