CyberKit

Event IDs

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

Key fields
FieldWhat it tells you
NameThe name given to the WMI event filter, often reused across environments by a given persistence toolkit, making it a useful pivot/IOC.
EventNamespaceThe 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.
QueryThe 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.
OperationWhether 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

Sources

Paste a record into Event XML or open a log in EVTX Reader.