Detection rules › Sigma
Potential Persistence Attempt Via Existing Service Tampering
Detects the modification of an existing service in order to execute an arbitrary payload when the service is started or killed as a potential method for persistence.
MITRE ATT&CK coverage
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_sc
or:
CommandLine|contains: 'binpath='
CommandLine|contains: 'config '
CommandLine|contains: 'sc '
CommandLine|contains: 'command='
CommandLine|contains: failure
CommandLine|contains: 'sc '
Stage 2: all of selection_reg_img
or:
CommandLine|contains: FailureCommand
CommandLine|contains: 'add '
CommandLine|contains: 'reg '
CommandLine|contains: ImagePath
CommandLine|contains: 'add '
CommandLine|contains: 'reg '
Stage 3: all of selection_reg_ext
or:
CommandLine|contains: .bat
CommandLine|contains: '.bin$'
CommandLine|contains: .cmd
CommandLine|contains: .dll
CommandLine|contains: .exe
CommandLine|contains: .jar
CommandLine|contains: .js
CommandLine|contains: '.msh$'
CommandLine|contains: .pl
CommandLine|contains: .ps
CommandLine|contains: '.reg$'
CommandLine|contains: .scr
CommandLine|contains: .sh
CommandLine|contains: .vb
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 |
|