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