Detection rules › Sigma
Suspicious Service Path Modification
Detects service path modification via the "sc" binary to a suspicious command or path
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | T1543.003 Create or Modify System Process: Windows Service |
| Privilege Escalation | T1543.003 Create or Modify System Process: Windows Service |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
| Security-Auditing | 4688 | A 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.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|