A WMI event filter was registered. Name and Query are key. WMI filters define when WMI consumers trigger.
WMI persistence (T1546.003) — attackers create WMI event filters+consumers for persistent code execution. Survives reboots. Very hard to detect without Sysmon 19/20/21. Filter defines trigger (e.g., SystemTime query or Win32_ProcessStartTrace).
Alert: any new WMI filter registration outside of known management software. Correlate with Sysmon 20 (consumer) and 21 (binding) to understand the full persistence mechanism.
ImageCommandLineParentImageUserHashes | Tactic | Technique |
|---|---|
| Persistence | WMI Event Subscription (T1546.003) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
title: WMI Event Filter Registered
status: stable
description: WMI event filter registration — possible persistence
author: theadminstack.com
date: 2026/05/16
logsource:
product: windows
service: sysmon
detection:
selection:
EventID: 19
condition: selection
falsepositives:
- Legitimate WMI management software
- SCCM/MECM
level: high
tags:
- attack.persistence
- attack.t1546.003
Event
| where EventLog == "Microsoft-Windows-Sysmon/Operational" and EventID == 19 // WmiEventFilter 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=19
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# WmiEventFilter activity detected — add EventData fields: Image, CommandLine, ParentImage, User`
WmiEventFilter activity detected. A WMI event filter was registered. Name and Query are key. WMI filters define when WMI consumers trigger.
Event 19 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 19 is associated with: WMI Event Subscription (T1546.003).
Alert: any new WMI filter registration outside of known management software. Correlate with Sysmon 20 (consumer) and 21 (binding) to understand the full persistence mechanism.