Detection rules › Sigma
Service abuse with malicious ImagePath (service)
Detects scenarios where an attacker modify the original service executable path with a malicious one.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | T1543.003 Create or Modify System Process: Windows Service |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Sysmon | Event ID 1 | Process creation |
| Security-Auditing | Event ID 4688 | A new process has been created. |
Rule body yaml
title: Service abuse with malicious ImagePath (service)
description: Detects scenarios where an attacker modify the original service executable path with a malicious one.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1543.003-Create%20or%20Modify%20System%20Process-Windows%20Service
- https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc742019(v=ws.11)
- https://pentestlab.blog/2020/01/22/persistence-modify-existing-service/
tags:
- attack.persistence
- attack.t1543.003
author: mdecrevoisier
status: experimental
logsource:
product: windows
category: process_creation
detection: # sc config <service_name> binPath="C:\windows\system32\pentestlab.exe"
selection_process:
NewProcessName|endswith: \sc.exe
CommandLine|contains|all:
- sc
- config
- binpath
condition: selection
falsepositives:
- administrator reconfiguring service
level: high
Stages and Predicates
Stage 0: condition
selectionStage 1: selection_process
selection_process:
NewProcessName|endswith: \sc.exe
CommandLine|contains|all:
- sc
- config
- binpath
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 |
|
NewProcessName | ends_with |
|