Detection rules › Sigma

Meterpreter or Cobalt Strike Getsystem Service Installation - System

Severity
high
Author
Teymur Kheirkhabarov, Ecco, Florian Roth (Nextron Systems)
Source
upstream

Detects the use of getsystem Meterpreter/Cobalt Strike command by detecting a specific service installation

MITRE ATT&CK coverage

TacticTechniques
Privilege EscalationT1134.001 Access Token Manipulation: Token Impersonation/Theft, T1134.002 Access Token Manipulation: Create Process with Token
Defense EvasionT1134.001 Access Token Manipulation: Token Impersonation/Theft, T1134.002 Access Token Manipulation: Create Process with Token

Event coverage

ProviderEvent IDTitle
Service-Control-Manager7045

Stages and Predicates

Stage 1: selection_id

Provider_Name: 'Service Control Manager'

Stage 2: 1 of selection_cli_cmd

or:
ImagePath|contains: '%COMSPEC%'
ImagePath|contains: cmd
ImagePath|contains: '/c'
ImagePath|contains: '\pipe\'
ImagePath|contains: echo

Stage 3: 1 of selection_cli_rundll

ImagePath|contains: '.dll,a'
ImagePath|contains: '/p:'
ImagePath|contains: rundll32

Stage 4: 1 of selection_cli_share

ImagePath|startswith: '\\\\127.0.0.1\\ADMIN$\'

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
  • %COMSPEC% corpus 2 (sigma 2)
  • .dll,a
  • /c corpus 4 (sigma 4)
  • /p:
  • \pipe\
  • cmd corpus 5 (sigma 5)
  • echo
  • rundll32 corpus 3 (sigma 3)
ImagePathstarts_with
  • \\\\127.0.0.1\\ADMIN$\
Provider_Nameeq
  • Service Control Manager corpus 43 (sigma 43)

Neighbors

Stricter alternatives (narrower than this rule)

The rules below may be useful if you find the current rule is too noisy / lacks specificity.

Broader alternatives (more inclusive than this rule)

These rules match a superset of what this rule catches. They cover the same events plus more. Use them if you want wider coverage and can absorb more false positives.