Detection rules › Sigma

Uncommon Service Installation Image Path

Severity
medium
Author
Florian Roth (Nextron Systems)
Source
upstream

Detects uncommon service installation commands by looking at suspicious or uncommon image path values containing references to encoded powershell commands, temporary paths, etc.

MITRE ATT&CK coverage

TacticTechniques
PersistenceT1543.003 Create or Modify System Process: Windows Service
Privilege EscalationT1543.003 Create or Modify System Process: Windows Service

Event coverage

ProviderEvent IDTitle
Service-Control-Manager7045

Stages and Predicates

Stage 1: selection

Provider_Name: 'Service Control Manager'

Stage 2: suspicious_paths

or:
ImagePath|contains: '\Users\Public\'
ImagePath|contains: '\Windows\Temp\'
ImagePath|contains: '\\\\.\\pipe'

Stage 3: all of suspicious_encoded_flag

ImagePath|contains: ' -e'

Stage 4: all of suspicious_encoded_keywords

or:
ImagePath|contains: ' IAB'
ImagePath|contains: ' JAB'
ImagePath|contains: ' PAA'
ImagePath|contains: ' SQBFAFgA'
ImagePath|contains: ' SUVYI'
ImagePath|contains: ' aQBlAHgA'
ImagePath|contains: ' aWV4I'

Stage 5: not 1 of filter_main_defender_def_updates

ImagePath|startswith: 'C:\ProgramData\Microsoft\Windows Defender\Definition Updates\'

Stage 6: not 1 of filter_optional_thor_remote

ImagePath|startswith: 'C:\WINDOWS\TEMP\thor10-remote\thor64.exe'

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
ImagePathmatch
  • -e
  • IAB
  • JAB
  • PAA
  • SQBFAFgA
  • SUVYI
  • aQBlAHgA
  • aWV4I
  • \Users\Public\
  • \Windows\Temp\
  • \\\\.\\pipe
ImagePathstarts_with
  • C:\ProgramData\Microsoft\Windows Defender\Definition Updates\
  • C:\WINDOWS\TEMP\thor10-remote\thor64.exe
Provider_Nameeq
  • Service Control Manager corpus 43 (sigma 43)

Neighbors

Stricter alternatives (narrower than this rule)

The rules below may be useful if you find the current rule is too noisy / lacks specificity.

Broader alternatives (more inclusive than this rule)

These rules match a superset of what this rule catches. They cover the same events plus more. Use them if you want wider coverage and can absorb more false positives.