Detection rules › Sigma

Suspicious Encoded Scripts in a WMI Consumer

Severity
high
Author
Florian Roth (Nextron Systems)
Source
upstream

Detects suspicious encoded payloads in WMI Event Consumers

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1047 Windows Management Instrumentation
PersistenceT1546.003 Event Triggered Execution: Windows Management Instrumentation Event Subscription
Privilege EscalationT1546.003 Event Triggered Execution: Windows Management Instrumentation Event Subscription

Event coverage

ProviderEvent IDTitle
Sysmon19WmiEvent (WmiEventFilter activity detected)
Sysmon20WmiEvent (WmiEventConsumer activity detected)
Sysmon21WmiEvent (WmiEventConsumerToFilter activity detected)

Stages and Predicates

Stage 1: selection_destination

or:
Destination|contains: 'This program cannot be run in DOS mode'
Destination|contains: 'This program must be run under Win32'
Destination|contains: WriteProcessMemory

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
Destinationmatch
  • This program cannot be run in DOS mode
  • This program must be run under Win32
  • WriteProcessMemory

Neighbors

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.