Detection rules › Kusto Query Language

Fake computer account created

Author
Vasileios Paschalidis
Source
upstream

'This query detects domain user accounts creation (event ID 4720) where the username ends with $. Accounts that end with $ are normally domain computer accounts and when they are created the event ID 4741 is generated instead.'

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1564 Hide Artifacts

Event coverage

ProviderEvent IDTitle
Security-Auditing4720A user account was created.

Stages and Predicates

Stage 1: source

SecurityEvent

Stage 2: where

and
  EventID eq "4720"
  TargetUserName ends_with "$"

Stage 3: summarize

Stage 4: extend

Stage 5: extend

Stage 6: project-away

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
EventIDeq
  • 4720
TargetUserNameends_with
  • $ corpus 18 (sigma 14, elastic 4)