A WMI filter was bound to a consumer. This completes the WMI persistence triad (filter+consumer+binding).
The completion of WMI persistence setup. When filter+consumer+binding exist together, the mechanism is active. This binding event confirms the persistence is operational.
Alert on every occurrence. Investigate the associated filter (Sysmon 19) and consumer (Sysmon 20) to understand the full attack.
ImageCommandLineParentImageUserHashes | Tactic | Technique |
|---|---|
| Persistence | WMI Event Subscription (T1546.003) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
title: WMI Persistence — Filter-Consumer Binding
status: stable
description: WMI filter bound to consumer — persistence mechanism active
author: theadminstack.com
date: 2026/05/16
logsource:
product: windows
service: sysmon
detection:
selection:
EventID: 21
condition: selection
falsepositives:
- Legitimate WMI management tools
level: high
tags:
- attack.persistence
- attack.t1546.003
Event
| where EventLog == "Microsoft-Windows-Sysmon/Operational" and EventID == 21 // WmiEventConsumerToFilter activity detected
// EventData holds: Image, CommandLine, ParentImage, User, Hashes
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=21
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# WmiEventConsumerToFilter activity detected — add EventData fields: Image, CommandLine, ParentImage, User`
WmiEventConsumerToFilter activity detected. A WMI filter was bound to a consumer. This completes the WMI persistence triad (filter+consumer+binding).
Event 21 is written to the Microsoft-Windows-Sysmon/Operational channel by Microsoft-Windows-Sysmon. Requires Sysmon installed with a config that logs this event (e.g. SwiftOnSecurity / Olaf Hartong).
Event 21 is associated with: WMI Event Subscription (T1546.003).
Alert on every occurrence. Investigate the associated filter (Sysmon 19) and consumer (Sysmon 20) to understand the full attack.