Sysmon event 19
WmiEvent (WmiEventFilter activity detected)
Channel: Microsoft-Windows-Sysmon/Operational. Category: WMI.
What it records
Logs the registration of a WMI event filter, recording the WMI namespace, filter name, and filter expression.
Why it matters
WMI event subscriptions are a well-known fileless persistence and execution mechanism, and this event captures the trigger-condition half of that subscription being installed.
What triggers it
Legitimate management/monitoring tooling occasionally registers WMI filters, but this is also a signature step in WMI-based persistence set up by malware or red-team tooling.
Fields that carry the answer
| Field | What it tells you |
|---|---|
| Name | The name given to the WMI event filter, often reused across environments by a given persistence toolkit, making it a useful pivot/IOC. |
| EventNamespace | The WMI namespace the filter was registered in. Sysmon only logs Root\Subscription, so confirm this before assuming full coverage of a host's WMI subscriptions. |
| Query | The WQL query defining the trigger condition. Read this directly to understand what event, such as a logon or a time interval, will fire the persistence. |
| Operation | Whether the filter was created, modified, or deleted: a delete shortly after use can indicate an attacker cleaning up a temporary subscription. |
In practice
A filter registration shows Name="SCM Event Log Filter", EventNamespace root\CIMV2, and Query SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_PerfFormattedData_PerfOS_System' with Operation=Created: a WQL trigger firing roughly once a minute that wasn't part of a known deployment is a classic setup step for WMI-based fileless persistence, and the Name is the pivot to search for the matching Event 21 binding.
Sample record
Wmi filter: RuleName: - EventType: WmiFilterEvent UtcTime: 2024-02-11 09:42:03.552 Operation: Created User: CORP\jdoe EventNamespace: root\cimv2 Name: BotFilter82 Query: SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_PerfFormattedData_PerfOS_System'
ATT&CK techniques
- T1546.003: T1546.003
Sources
Paste a record into Event XML or open a log in EVTX Reader.