Detection of WMI Token Impersonation via Process Access Monitoring
Adversaries leverage WMI token impersonation to gain elevated privileges, a behavior detectable by monitoring specific process access masks requested by wmiprvse.exe.
This detection brief addresses the abuse of Windows Management Instrumentation (WMI) to perform token impersonation, a technique frequently observed in malware campaigns such as Qakbot and activities linked to the Water Gamayun threat group. Attackers utilize WMI for lateral movement, execution, and privilege escalation. By monitoring Sysmon EventCode 10 (Process Access), defenders can identify instances where wmiprvse.exe requests sensitive process access rights - specifically query, VM, and duplicate-handle operations. These rights allow the WMI provider process to interact with or manipulate target process tokens, potentially leading to unauthorized privilege escalation. Monitoring for these specific access masks provides a high-fidelity method to detect malicious WMI usage while filtering for legitimate administrative activities.
Impact
Successful WMI token impersonation allows an attacker to execute code in the security context of another process, typically leading to persistent access, privilege escalation, and lateral movement within the compromised environment. These techniques are characteristic of sophisticated malware families and threat actors focused on long-term data exfiltration and organizational disruption.
Recommendation
Deploy the provided Sigma rule to monitor for suspicious process access requests initiated by the WMI provider. Ensure Sysmon EventCode 10 is enabled and centralized in your SIEM. Tune the rule by baselining administrative scripts or automation tools that perform legitimate WMI auditing.
Immediate actions
Deploy Sigma detection for WMI process access
Threat Hunt
Identify all processes accessed by wmiprvse.exe with high-privilege access masks
Data: Sysmon Event ID 10
Detection coverage 1
Detect WMI Process Token Impersonation
mediumDetects WMI token impersonation by identifying wmiprvse.exe requesting query, VM, and duplicate-handle rights or full access to other processes.
Detection queries are available on the platform. Get full rules →