Detection rules › Sigma
WMI module loaded by suspicious process
Detects scenarios where an attacker attempts to load WMI modules from a suspicious process (like PowerShell).
Known false positives
- None
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution |
Telemetry coverage
| Provider | Record / event type |
|---|---|
| Sysmon | Event ID 7: Image loaded |
Rule body
title: WMI module loaded by suspicious process
description: Detects scenarios where an attacker attempts to load WMI modules from a suspicious process (like PowerShell).
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0002-Execution/T1047-Windows%20Management%20Instrumentation
- https://threathunterplaybook.com/notebooks/windows/02_execution/WIN-190811201010.html
- https://medium.com/threatpunter/detecting-adversary-tradecraft-with-image-load-event-logging-and-eql-8de93338c16
- https://medium.com/threatpunter/detecting-adversary-tradecraft-with-image-load-event-logging-and-eql-8de93338c16
- https://posts.specterops.io/real-time-sysmon-processing-via-ksql-and-helk-part-3-basic-use-case-8fbf383cb54f
- https://github.com/OTRF/ThreatHunter-Playbook/blob/master/signatures/sigma/sysmon_wmi_module_load.yml
- https://www.darkoperator.com/blog/2017/10/14/basics-of-tracking-wmi-activity
tags:
- attack.execution
- attack.t1047
author: shortly adapted from Roberto Rodriguez rule
status: experimental
logsource:
product: windows
service: image_loaded
detection:
selection:
EventID: 7 # image loaded
ImageLoaded|endswith:
- '\wmiclnt.dll'
- '\WmiApRpl.dll'
- '\wmiprov.dll'
- '\wmiutils.dll'
- '\wbemcomn.dll'
- '\WMINet_Utils.dll'
- '\wbemsvc.dll'
- '\fastprox.dll'
- '\wmi*'
filter:
Image|endswith:
- '\wmiprvse.exe'
- '\wmiapsrv.exe'
- '\svchost.exe'
condition: selection and not filter
falsepositives:
- None
level: high
Stages and Predicates
Stage 0: condition
selection and not filterStage 1: selection
selection:
EventID: 7
ImageLoaded|endswith:
- '\wmiclnt.dll'
- '\WmiApRpl.dll'
- '\wmiprov.dll'
- '\wmiutils.dll'
- '\wbemcomn.dll'
- '\WMINet_Utils.dll'
- '\wbemsvc.dll'
- '\fastprox.dll'
- '\wmi*'
Stage 2: not filter
filter:
Image|endswith:
- '\wmiprvse.exe'
- '\wmiapsrv.exe'
- '\svchost.exe'
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
Image | ends_with | \svchost.exe | excludes:Image field:"Image" value:"\svchost.exe" |
Image | ends_with | \wmiapsrv.exe | excludes:Image field:"Image" value:"\wmiapsrv.exe" |
Image | ends_with | \wmiprvse.exe | excludes:Image field:"Image" value:"\wmiprvse.exe" |
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
ImageLoaded | ends_with |
| field:"ImageLoaded" kind:ends_with |