Skip to content
Threat Feed
medium advisory

Abuse of WMI for Remote Process Execution

Adversaries leverage the Windows Management Instrumentation (WMI) utility (wmic.exe) to facilitate lateral movement and remote code execution by spawning unauthorized processes on target systems.

Windows Management Instrumentation (WMI) is a powerful administrative feature that can be abused by adversaries for lateral movement, remote code execution, and persistent control within a Windows network. Specifically, the command-line utility wmic.exe can be used to interface with the WMI service and invoke the Win32_Process class to start processes on remote systems.

This activity is a hallmark of sophisticated actor behavior, frequently identified in ransomware deployments, state-sponsored cyber operations, and Red Team exercises. By utilizing flags such as /node to specify a target machine, combined with the process call create verb, attackers can execute arbitrary payloads without the need for traditional remote access software. Defenders should focus on process telemetry, specifically identifying wmic.exe command-line arguments that indicate cross-system execution requests.

Attack Chain

  1. Attacker achieves initial access to a compromised host within the victim network.
  2. Attacker performs internal reconnaissance to identify high-value targets or domain credentials.
  3. Attacker uses compromised credentials to attempt lateral movement via WMI.
  4. Attacker executes wmic.exe with /node:<Target_IP> to connect to the remote host.
  5. Attacker passes the process call create parameters to the WMI service on the target.
  6. The remote WMI service spawns the requested process (e.g., a reverse shell or beacon) under the SYSTEM or user context.
  7. Attacker establishes a remote session on the target host for further post-exploitation and lateral spread.

Impact

Abuse of WMI enables attackers to propagate malware, deploy ransomware payloads across multiple hosts, and maintain stealthy administrative control. Successful exploitation allows for arbitrary code execution, potentially leading to widespread data exfiltration, service disruption, and total system compromise within the affected network segments.

Recommendation

  • Deploy the Sigma rule below to monitor for suspicious command-line execution patterns associated with WMI remote process creation.
  • Monitor for any usage of wmic.exe with the /node parameter; while some administrative tools may utilize this, it is considered anomalous in most mature enterprise environments.
  • Ensure Sysmon Event ID 1 or Windows Security Event ID 4688 is ingested, ensuring complete command-line strings are captured for analysis.
  • Establish a baseline for legitimate administrative WMI usage to reduce false positives during alert tuning.

Immediate actions

Deploy the Sigma detection rule to monitor for remote WMI process calls.

Detection Engineering 48h

Threat Hunt

Search for wmic.exe process creation events with /node flags in logs.

T1047 high high confidence hunt now

Data: Process command-line telemetry

Detection coverage 1

Detect Remote Process Instantiation via WMI

medium

Detects the execution of wmic.exe with parameters indicating an attempt to spawn a process on a remote system via WMI.

sigma tactics: lateral_movement techniques: T1047 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →