WMIEXEC
- Capabilities
- Lateral movementPost exploitationReconnaissance
- Platforms
- Windows
WMIExec is a dual-use remote command-execution utility in the open-source Impacket toolkit. It uses Windows Management Instrumentation to execute commands on remote Windows systems and provides remote shell functionality. Attackers commonly use it for post-exploitation and lateral movement with compromised administrative credentials, including NT password hashes. Its characteristic execution behavior redirects standard output and error to timestamp-named files on a Windows administrative share, allowing command results to be retrieved through SMB.
WMIExec supports operator-directed reconnaissance and payload execution on systems accessible to the compromised account. Observed uses include executing commands to identify the current user and moving between hosts after credential compromise. It does not itself establish that credentials were stolen or provide evidence of a particular initial-access mechanism.
The utility has been used by multiple unrelated threat actors, including Volt Typhoon, FIN8, APT41, and the Memento ransomware operators. It has also appeared in intrusions affecting educational organizations in Africa and Latin America and web servers in South Korea. WMIExec is not inherently malicious, and its presence alone does not establish malicious intent or threat-actor attribution.
Associated threat actors
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
In May, the attacker deployed the wmiexec remote shell tool and the secretsdump hash dumping tool to a Windows server.
The following is an example of the "dir" command being executed by wmiexec.py.
“A command line ending with ‘> \\127.0.0.1\ADMIN$\__<timestamp> 2>&1’ ... is an indicator of wmiexec usage.”
APT41 used the WMIEXEC utility to execute whoami commands on remote machines.
Techniques & procedures
9 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
2 techniques
Execution
edr-win-lat-impacket-wmiexec; edr-win-lat-wmic-remote-node
WMIExec - Microsoft command-line tool that can be used to execute commands on remote computers.
Discovery
1 technique
Discovery
APT41 used the WMIEXEC utility to execute whoami commands on remote machines; FIN10 used Meterpreter to enumerate users on remote systems; Operation Wocao enumerated sessions and users on a remote host.
Lateral Movement
6 techniques
Lateral Movement
Lateral Movement Techniques • Use RDP, PsExec and WMI
"Block process creations originating from PsExec and WMI commands ... to prevent lateral movement originating from PsExec and WMI, including Impacket’s WMIexec."
It was followed by the execution of discovery commands using wmiexec in the context of the built-in domain administrator account.
BRONZE PRESIDENT regularly leverages Wmiexec to move laterally. During one intrusion, the threat actors extensively used this tool to execute WMI commands on remote hosts in the environment.
«Pass-the-hash через RDP (T1550.002 + T1021.001)»
...spread laterally via WMIExec and SMBExec to reach the domain controller and propagate EtherRAT across over 11 hosts.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.