Microsoft Sentinel high experimental kql
Tailscale: Mass credential revocation in short window
Identifies when five or more API keys, OAuth clients, or auth keys are revoked or deleted within one hour. May be routine rotation, or a typical cleanup pattern after credential compromise.
Detection Logic
Tailscale_Audit_CL
| where Action in ("REVOKE", "DELETE")
| where tostring(Target.type) in ("API_KEY", "OAUTH_CLIENT", "AUTH_KEY")
| extend ActorLogin = tostring(Actor.loginName)
| summarize
RevokedCount = count(),
TargetTypes = make_set(tostring(Target.type)),
TargetIds = make_set(tostring(Target.id)),
FirstEvent = min(TimeGenerated),
LastEvent = max(TimeGenerated)
by ActorLogin, bin(TimeGenerated, 1h)
| where RevokedCount >= 5
| project TimeGenerated = LastEvent, ActorLogin, RevokedCount, TargetTypes, TargetIds, FirstEvent, LastEvent Field Validations
Loading…
Comments (0)
Loading comments...