Detection rules › Kusto Query Language

User account created and deleted within 10 mins

Author
Microsoft Security Research
Source
upstream

'Identifies when a user account is created and then deleted within 10 minutes. This can be an indication of compromise and an adversary attempting to hide in the noise.'

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1078 Valid Accounts
PersistenceT1078 Valid Accounts, T1098 Account Manipulation
Privilege EscalationT1078 Valid Accounts, T1098 Account Manipulation
Defense EvasionT1078 Valid Accounts

Event coverage

ProviderEvent IDTitle
Security-Auditing4720A user account was created.
Security-Auditing4726A user account was deleted.

Stages and Predicates

Stage 1: source

<union>

Stage 2: union

union of 2 branches

Stage 3: join

Stage 4: where

 macro "((deletionTime - creationTime) < spanoftime)"

Stage 5: extend

Stage 6: where

 macro "(tolong(TimeDelta) >= threshold)"

Stage 7: project

Stage 8: extend

Stage 9: extend

Stage 10: project-away