Event ID 19 — WmiEvent (WmiEventFilter activity detected)
Description
When a WMI event filter is registered, this event logs the WMI namespace, filter name and filter expression.
Message #
Fields #
| Name | Description |
|---|---|
RuleName UnicodeString → string | Custom tag mapped to event, i.e. ATT&CK technique ID |
EventType UnicodeString → string | WMI event type |
UtcTime UnicodeString → string | Time in UTC when event was created |
Operation UnicodeString → string | WMI event filter operation Known values
|
User UnicodeString → string | User that created the WMI filter |
EventNamespace UnicodeString → string | Event namespace where the WMI class is registered |
Name UnicodeString → string | WMI filter name being created |
Query UnicodeString → string | WMI filter query |
Example Event #
{
"system": {
"provider": "Microsoft-Windows-Sysmon",
"guid": "5770385F-C22A-43E0-BF4C-06F5698FFBD9",
"event_source_name": "",
"event_id": 19,
"version": 3,
"level": 4,
"task": 19,
"opcode": 0,
"keywords": 9223372036854775808,
"time_created": "2019-07-19T14:54:57.044623Z",
"event_record_id": 4055,
"correlation": {},
"execution": {
"process_id": 2796,
"thread_id": 1776
},
"channel": "Microsoft-Windows-Sysmon/Operational",
"computer": "MSEDGEWIN10",
"security": {
"user_id": "S-1-5-18"
}
},
"event_data": {
"RuleName": "",
"EventType": "WmiFilterEvent",
"UtcTime": "2019-07-19 14:54:57.041",
"Operation": "Created",
"User": "MSEDGEWIN10\\IEUser",
"EventNamespace": " \"root\\\\CimV2\"",
"Name": " \"AtomicRedTeam-WMIPersistence-Example\"",
"Query": " \"SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_PerfFormattedData_PerfOS_System' AND TargetInstance.SystemUpTime >= 240 AND TargetInstance.SystemUpTime < 325\""
}
}
Detection Patterns #
WMI Consumer
Lateral Movement: Exploitation of Remote Services
Security-Auditing Event ID 4624: An account was successfully logged on.OREvent ID 4688: A new process has been created.ORSysmon Event ID 1: Process creationOREvent ID 19: WmiEventOREvent ID 20: WmiEventOREvent ID 21: WmiEvent