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