Detection rules › Sigma

Possible Privilege Escalation via Weak Service Permissions

Severity
high
Author
Teymur Kheirkhabarov
Source
upstream

Detection of sc.exe utility spawning by user with Medium integrity level to change service ImagePath or FailureCommand

MITRE ATT&CK coverage

TacticTechniques
PersistenceT1574.011 Hijack Execution Flow: Services Registry Permissions Weakness
Privilege EscalationT1574.011 Hijack Execution Flow: Services Registry Permissions Weakness
Defense EvasionT1574.011 Hijack Execution Flow: Services Registry Permissions Weakness

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: scbynonadmin

IntegrityLevel: [Medium, S-1-16-8192]
Image|endswith: '\sc.exe'

Stage 2: 1 of selection_binpath

CommandLine|contains: binPath
CommandLine|contains: config

Stage 3: 1 of selection_failure

CommandLine|contains: command
CommandLine|contains: failure

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
CommandLinematch
  • binPath corpus 4 (sigma 4)
  • command
  • config corpus 8 (sigma 8)
  • failure corpus 2 (sigma 2)
Imageends_with
  • \sc.exe corpus 17 (sigma 17)
IntegrityLeveleq
  • Medium corpus 3 (sigma 3)
  • S-1-16-8192 corpus 3 (sigma 3)