Windows Management Instrumentation

From enterprise
Jump to: navigation, search
Windows Management Instrumentation
ID T1047
Tactic Execution
Platform Windows
System Requirements

WMI service, winmgmt, running. Host/network firewalls allowing SMB and WMI ports from source to destination.

SMB authentication.
Permissions Required User, Administrator
Data Sources Authentication logs, Netflow/Enclave netflow, Process command-line parameters, Process monitoring
Supports Remote Yes

Windows Management Instrumentation (WMI) is a Windows administration feature that provides a uniform environment for local and remote access to Windows system components. It relies on the WMI service for local and remote access and the server message block (SMB)1 and Remote Procedure Call Service (RPCS)2 for remote access. RPCS operates over port 135.3

An adversary can use WMI to interact with local and remote systems and use it as a means to perform many tactic functions, such as gathering information for Discovery and remote Execution of files as part of Lateral Movement.4


  • APT29 used WMI to steal credentials and execute backdoors at a future time.5
  • APT34 has used WMI for execution.6
  • The Deep Panda group is known to utilize WMI for lateral movement.7
  • Lazarus Group malware SierraAlfa uses the Windows Management Instrumentation Command-line application wmic to start itself on a target system during lateral movement.8
  • Stealth Falcon malware gathers system information via Windows Management Instrumentation (WMI).9
  • menuPass uses a modified version of pentesting script wmiexec.vbs, which logs into a remote machine using WMI.1011
  • A BlackEnergy 2 plug-in uses WMI to gather victim host details.12
  • Cobalt Strike can use WMI to deliver a payload to a remote host.13
  • The DustySky dropper uses Windows Management Instrumentation to extract information about the operating system and whether an anti-virus is active.14
  • HALFBAKED can use WMI queries to gather system information.15
  • KOMPROGO is capable of running WMI queries.16
  • POWRUNER may use WMI when collecting information about a victim.17


Disabling WMI or RPCS may cause system instability and should be evaluated to assess the impact to a network. By default, only administrators are allowed to connect remotely using WMI. Restrict other users who are allowed to connect, or disallow all users to connect remotely to WMI. Prevent credential overlap across systems of administrator and privileged accounts.4


Monitor network traffic for WMI connections; the use of WMI in environments that do not typically use WMI may be suspect. Perform process monitoring to capture command-line arguments of "wmic" and detect commands that are used to perform remote behavior.4