Detection rules › Sigma

HackTool Service Registration or Execution

Status
test
Severity
high
Log source
product windows, service system
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects installation or execution of services

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: HackTool Service Registration or Execution
id: d26ce60c-2151-403c-9a42-49420d87b5e4
status: test
description: Detects installation or execution of services
references:
    - Internal Research
author: Florian Roth (Nextron Systems)
date: 2022-03-21
modified: 2023-08-07
tags:
    - attack.execution
    - attack.t1569.002
    - attack.s0029
logsource:
    product: windows
    service: system
detection:
    selection_eid:
        Provider_Name: 'Service Control Manager'
        EventID:
            - 7045
            - 7036
    selection_service_name:
        ServiceName|contains:
            - 'cachedump'
            - 'DumpSvc'
            - 'gsecdump'
            - 'pwdump'
            - 'UACBypassedService'
            - 'WCE SERVICE'
            - 'WCESERVICE'
            - 'winexesvc'
    selection_service_image:
        ImagePath|contains: 'bypass' # https://gist.github.com/tyranid/c24cfd1bd141d14d4925043ee7e03c82#file-scmuacbypass-cpp-L159
    condition: selection_eid and 1 of selection_service_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_eid and 1 of selection_service_*

Stage 1: selection_eid

selection_eid:
    Provider_Name: 'Service Control Manager'
    EventID:
        - 7045
        - 7036

Stage 2: selection_service_name

selection_service_name:
    ServiceName|contains:
        - 'cachedump'
        - 'DumpSvc'
        - 'gsecdump'
        - 'pwdump'
        - 'UACBypassedService'
        - 'WCE SERVICE'
        - 'WCESERVICE'
        - 'winexesvc'

Stage 3: selection_service_image

selection_service_image:
    ImagePath|contains: 'bypass'

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
  • bypass
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)
ServiceNamematch
  • DumpSvc
  • UACBypassedService
  • WCE SERVICE
  • WCESERVICE corpus 2 (sigma 1, kusto 1)
  • cachedump corpus 2 (sigma 1, kusto 1)
  • gsecdump
  • pwdump corpus 2 (sigma 1, kusto 1)
  • winexesvc