Detection rules › Sigma

Suspicious Service Path Modification

Severity
high
Author
Victor Sergeev, oscd.community, Nasreddine Bencherchali (Nextron Systems)
Source
upstream

Detects service path modification via the "sc" binary to a suspicious command or path

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
Sysmon1Process creation
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: selection

or:
CommandLine|contains: 'C:\Users\Public'
CommandLine|contains: 'C:\Windows\TEMP\'
CommandLine|contains: '\AppData\Local\Temp'
CommandLine|contains: '\Desktop\'
CommandLine|contains: '\Downloads\'
CommandLine|contains: '\Microsoft\Windows\Start Menu\Programs\Startup\'
CommandLine|contains: 'cmd '
CommandLine|contains: 'cmd /c'
CommandLine|contains: 'cmd /k'
CommandLine|contains: 'cmd /r'
CommandLine|contains: 'cmd.exe /c'
CommandLine|contains: 'cmd.exe /k'
CommandLine|contains: 'cmd.exe /r'
CommandLine|contains: cscript
CommandLine|contains: dllhost
CommandLine|contains: mshta
CommandLine|contains: powershell
CommandLine|contains: rundll32
CommandLine|contains: svchost
CommandLine|contains: wscript
CommandLine|contains: binPath
CommandLine|contains: config
Image|endswith: '\sc.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
CommandLinematch
  • C:\Users\Public corpus 2 (sigma 2)
  • C:\Windows\TEMP\ corpus 3 (sigma 3)
  • \AppData\Local\Temp corpus 8 (sigma 8)
  • \Desktop\ corpus 11 (sigma 11)
  • \Downloads\ corpus 12 (sigma 12)
  • \Microsoft\Windows\Start Menu\Programs\Startup\ corpus 3 (sigma 3)
  • binPath corpus 4 (sigma 4)
  • cmd corpus 2 (sigma 2)
  • cmd /c corpus 4 (sigma 4)
  • cmd /k corpus 3 (sigma 3)
  • cmd /r corpus 3 (sigma 3)
  • cmd.exe /c corpus 3 (sigma 3)
  • cmd.exe /k corpus 3 (sigma 3)
  • cmd.exe /r corpus 3 (sigma 3)
  • config corpus 8 (sigma 8)
  • cscript corpus 12 (sigma 12)
  • dllhost corpus 2 (sigma 2)
  • mshta corpus 11 (sigma 11)
  • powershell corpus 16 (sigma 16)
  • rundll32 corpus 19 (sigma 19)
  • svchost corpus 2 (sigma 2)
  • wscript corpus 12 (sigma 12)
Imageends_with
  • \sc.exe corpus 17 (sigma 17)