WMIExec is a dual-use remote command-execution utility in the Impacket toolkit, used for legitimate administration and abused by attackers for post-exploitation and lateral movement across Windows systems. It executes commands through Windows Management Instrumentation using authenticated access, including compromised administrator credentials or NT hashes. Its remote-shell functionality allows operators to execute commands and retrieve their output. A characteristic execution pattern redirects standard output and errors to timestamp-named files accessed through an administrative SMB share.
Attackers use WMIExec to run reconnaissance commands, identify remote user contexts, and execute commands on additional compromised hosts. Documented users include APT41, FIN8, Volt Typhoon, and the Memento ransomware operators. It has also appeared in intrusions affecting educational organizations in Africa and Latin America and web-server environments in South Korea. WMIExec is an execution tool rather than an inherently malicious implant; its presence alone does not establish malicious activity or attribution.
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.
9 distinct techniques documented for this family, organized by ATT&CK tactic.
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.
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 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.
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.