Detection rules › Kusto Query Language

Detecting UAC bypass - ChangePK and SLUI registry tampering

Source
upstream

This query identifies setting a registry key under HKCU, launching slui.exe and then ChangePK.exe.

MITRE ATT&CK coverage

TacticTechniques
ImpactT1490 Inhibit System Recovery

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation
Security-Auditing4688A new process has been created.
Defender-DeviceProcessEvents9001000Process activity (any)

Stages and Predicates

Stage 1: source

DeviceProcessEvents

Stage 2: where

InitiatingProcessParentFileName eq "slui.exe"

Stage 3: where

InitiatingProcessFileName eq "changepk.exe"

Stage 4: where

ProcessIntegrityLevel eq "High"

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
InitiatingProcessFileNameeq
  • changepk.exe
InitiatingProcessParentFileNameeq
  • slui.exe
ProcessIntegrityLeveleq
  • High corpus 16 (sigma 16)