Event ID 21: WMI Event Consumer To Filter Activity Detected
Logs the registration of a consumer to a filter.
- Channel
- Microsoft-Windows-Sysmon/Operational
- Logged by default
- No
- Written on
- Any host
- Volume
- Low
- Provider
- Microsoft-Windows-Sysmon
- Needs a SACL
- No
To have this event
- Sysmon installed, with a configuration that includes this event type.
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| UtcTime | UTC timestamp of WMI binding activity |
| EventType | Type of WMI event (WmiEventConsumerToFilter) |
| Operation | Operation performed (Created/Deleted) |
| User | Account performing the operation |
| Consumer | Name of the WMI consumer |
| Filter | Name of the WMI filter being bound |
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -FilterXPath "*[System[(EventID=21)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Where it shows up
Investigations, attack signals and lateral movement techniques that rely on this event.
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Common questions
- What does Windows event ID 21 mean?
- Logs the registration of a consumer to a filter. It is written to the Sysmon log (Microsoft-Windows-Sysmon/Operational).
- Is event 21 logged by default?
- No. It must be enabled before it is recorded.
- Where is event 21 recorded?
- In the Microsoft-Windows-Sysmon/Operational channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderLogs the registration of a consumer to a filter. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.