Detection rules › Sigma

PowerShell as a Service in Registry

Severity
high
Author
oscd.community, Natalia Shornikova
Source
upstream

Detects that a powershell code is written to the registry as a service.

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1569.002 System Services: Service Execution

Event coverage

ProviderEvent IDTitle
Sysmon13RegistryEvent (Value Set)

Stages and Predicates

Stage 1: selection

or:
Details|contains: powershell
Details|contains: pwsh
TargetObject|endswith: '\ImagePath'
TargetObject|contains: '\Services\'

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
Detailsmatch
  • powershell corpus 8 (sigma 8)
  • pwsh corpus 4 (sigma 4)
TargetObjectends_with
  • \ImagePath corpus 2 (sigma 2)
TargetObjectmatch
  • \Services\ corpus 3 (sigma 3)