Detection rules › Sigma
Suspicious Scripting in a WMI Consumer
Detects suspicious commands that are related to scripting/powershell in WMI Event Consumers
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1059.005 Command and Scripting Interpreter: Visual Basic |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 19 | WmiEvent (WmiEventFilter activity detected) |
| Sysmon | 20 | WmiEvent (WmiEventConsumer activity detected) |
| Sysmon | 21 | WmiEvent (WmiEventConsumerToFilter activity detected) |
Stages and Predicates
Stage 1: selection_destination
or:
Destination|contains: .downloadfile
Destination|contains: net.webclient
Destination|contains: new-object
Destination|contains: .downloadstring
Destination|contains: net.webclient
Destination|contains: new-object
Destination|contains: ' -decode '
Destination|contains: ' -enc '
Destination|contains: ' -nop '
Destination|contains: ' -noprofile '
Destination|contains: ' iex('
Destination|contains: 'System.Security.Cryptography.FromBase64Transform'
Destination|contains: WScript.Shell
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 |
|---|---|---|
Destination | match |
|
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.
- WMI Event Subscription (drops 1 filter this rule applies)