SOC Event Lookup
Event ID 20WMIP2

Sysmon Event ID 20: WmiEvent - WmiEventConsumer activity detected

Applicable version
Sysmon with this event enabled
Last reviewed
2026-07-22

Quick summary

Sysmon Event ID 20 records WMI event consumer registration activity.

Technical Metadata

Technical metadata for Event ID 20
Event ID20
ProviderMicrosoft-Windows-Sysmon
ChannelMicrosoft-Windows-Sysmon/Operational
LevelInformational
MITRE ATT&CKTA0003 Persistence / T1546.003 Event Triggered Execution: Windows Management Instrumentation Event Subscription
Key fields to watchName, Destination, Log

Trigger Scenarios

Sysmon emits this event when a WMI event consumer is registered. Microsoft documents that the event records the consumer name, log, and destination.

Key Fields

Name

The WMI consumer name recorded by Sysmon. Correlate it with the Event 21 consumer path to prove a complete subscription.

Destination

The destination recorded for the consumer. Command execution destinations that reference powershell.exe, cmd.exe, or C:\\Users\\ paths are high-risk because the consumer can execute attacker content.

Log

The log field recorded by Sysmon for the consumer and useful for identifying scripted, command-line, or log-backed consumers.

Threat Hunting Queries

Microsoft Sentinel KQL: Retrieve Sysmon Event ID 20
Event
| where EventLog == "Microsoft-Windows-Sysmon/Operational" and EventID == 20
| project TimeGenerated, Computer, EventID, RenderedDescription
| order by TimeGenerated desc
Data source
Microsoft Sentinel Event table
Assumptions
The Sysmon Operational channel is collected into Event. Map raw XML fields to the documented fields.
Query reference
Splunk SPL: Retrieve Sysmon Event ID 20
index=sysmon source="WinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=20
| table _time, host, EventCode, Message
Data source
Splunk Windows Sysmon event data
Assumptions
Index and parsed field names vary by deployment. Add the documented event-specific conditions after field validation.
Cortex XQL: Retrieve Sysmon Event ID 20
dataset = microsoft_windows_raw
| filter edr_event_id = 20
Data source
Cortex XDR microsoft_windows_raw
Assumptions
Confirm the Sysmon provider because event IDs are not globally unique. Inspect raw fields because parsed names vary.
Query reference
Sigma rule: Sysmon Event ID 20
title: Sysmon Event ID 20
status: experimental
logsource:
    product: windows
    service: sysmon
detection:
    selection:
        EventID: 20
    condition: selection
falsepositives:
    - Legitimate administrative or system activity
level: informational
Data source
Sigma Windows Sysmon log source
Assumptions
This retrieves the event and is not a standalone malicious-behavior detection.
Query reference

Documented Values and Codes

Documented event values and their security relevance
FieldValueMeaningSecurity relevance
EventID20A WMI event consumer was registered.Interpret EventID with the full event and correlated activity; this value alone is not proof of compromise. Source
Destinationcommand or scriptThe consumer destination that executes or handles the triggered event.Interpret Destination with the full event and correlated activity; this value alone is not proof of compromise. Source

MITRE ATT&CK Mapping

  • T1546.003Event Triggered Execution: Windows Management Instrumentation Event Subscription

Detection Notes

Alert when Destination references powershell.exe, cmd.exe, wscript.exe, mshta.exe, or a payload under C:\\Users\\, C:\\ProgramData\\, or C:\\Windows\\Temp. Microsoft documents Event 20 as recording consumer name, log, and destination, and MITRE T1546.003 covers WMI consumers used to execute code from event subscriptions. Correlate the consumer Name with Event 19 filter registration and Event 21 binding to determine whether the executable destination is armed for persistence.

Common False Positives

  • Approved administration, management agents, and deployment tools can generate this telemetry.
  • Baseline expected hosts, signed binaries, and change windows before suppression.

Related Events

Sample Log

Sanitized event sample
UtcTime: 2026-07-13 01:00:00.000
Name: UpdaterConsumer
Log: CommandLineEventConsumer
Destination: powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\\ProgramData\\updater.ps1

Frequently Asked Questions

What does Sysmon Event ID 20 mean?

A WMI event consumer was registered.

Does Event ID 20 always indicate malicious activity?

No. Enterprise management software can install legitimate consumers.

How should Event ID 20 be investigated?

Review destination and name and correlate the consumer with Events 19 and 21 to reconstruct the subscription.

Sources