Detection rules › Kusto Query Language

Certified Pre-Owned - backup of CA private key - rule 2

Source
upstream

This query identifies someone that performs a backup of they CA key.

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1036 Masquerading

Event coverage

ProviderEvent IDTitle
Security-Auditing5059Key migration operation.

Stages and Predicates

Stage 1: source

SecurityEvent

Stage 2: where

and
  Computer contains "<YOUR CA MACHINE NAME>"
  EventID eq "5059"

Stage 3: where

and
  EventData contains "%%2464"
  EventData contains "%%2499"

Stage 4: extend

Stage 5: mv-expand

Stage 6: mv-expand

Stage 7: parse

Stage 8: where

not
  Computer starts_with "CleanAccount"

Exclusions

Top-level NOT(...) conjuncts — predicates this rule actively suppresses.

StageFieldKindExcluded values
1Computerstarts_withCleanAccount

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
Computercontains
  • <YOUR CA MACHINE NAME>
EventDatacontains
  • %%2464
  • %%2499
EventIDeq
  • 5059