Automation · API / MCP 中文

Technique note · T1047

Windows Management Instrumentation

Adversaries may abuse Windows Management Instrumentation (WMI) to execute malicious commands and payloads. WMI is designed for programmers and is the infrastructure for management data and operations on Windows systems. WMI is an administration feature that provides a uniform environment to access Windows system components. The WMI service enables both local and remote access, though the latter is facilitated by Remote Services such as Distributed Component Object Model and Windows Remote Management. Remote WMI over DCOM operates using port 135, whereas WMI over WinRM operates over port 5985 when using HTTP and 5986 for HTTPS. An adversary can use WMI to interact with local and remote systems and use it as a means to execute various behaviors, such as gathering information for Discovery as well as Execution of commands and payloads. For example, `wmic.exe` can be abused by an adversary to delete shadow copies with the command `wmic.exe Shadowcopy Delete` (i.e., Inhibit System Recovery). **Note:** `wmic.exe` is deprecated as of January of 2024, with the WMIC feature being “disabled by default” on Windows 11+. WMIC will be removed from subsequent Windows releases and replaced by PowerShell as the primary WMI interface. In addition to PowerShell and tools like `wbemtool.exe`, COM APIs can also be used to programmatically interact with WMI via C++, .NET, VBScript, etc.

ATT&CK T1047 platforms — Status Active Version 20.1

Adversaries may abuse Windows Management Instrumentation (WMI) to execute malicious commands and payloads. WMI is designed for programmers and is the infrastructure for management data and operations on Windows systems.1 WMI is an administration feature that provides a uniform environment to access Windows system components. The WMI service enables both local and remote access, though the latter is facilitated by Remote Services such as Distributed Component Object Model and Windows Remote Management.2 Remote WMI over DCOM operates using port 135, whereas WMI over WinRM operates over port 5985 when using HTTP and 5986 for HTTPS.34 An adversary can use WMI to interact with local and remote systems and use it as a means to execute various behaviors, such as gathering information for Discovery as well as Execution of commands and payloads.5 For example, `wmic.exe` can be abused by an adversary to delete shadow copies with the command `wmic.exe Shadowcopy Delete` (i.e., Inhibit System Recovery).6 **Note:** `wmic.exe` is deprecated as of January of 2024, with the WMIC feature being “disabled by default” on Windows 11+. WMIC will be removed from subsequent Windows releases and replaced by PowerShell as the primary WMI interface.7 In addition to PowerShell and tools like `wbemtool.exe`, COM APIs can also be used to programmatically interact with WMI via C++, .NET, VBScript, etc.8

  1. WMI 1-3
  2. WMI 1-3
  3. WMI 1-3
  4. Mandiant WMI
  5. Mandiant WMI
  6. WMI 6
  7. WMI 7,8
  8. WMI 7,8

Groups using this technique

GroupNameCountry
grp_g0019Naikon—
grp_g1047Velvet Ant—
grp_g1018TA2541—
grp_g1043BlackByte—
grp_g1054MirrorFace—
grp_g0038Stealth Falcon—
grp_g0108Blue Mockingbird—
grp_g0009Deep PandaChina
grp_g0143Aquatic PandaChina
grp_g0129Mustang PandaChina
grp_g0032Lazarus GroupDPRK
grp_g1021Cinnamon TempestChina
grp_g0112Windshift—
grp_g0119Indrik SpiderRussia
grp_g0093GALLIUM—
grp_g0037FIN6—
grp_g1051Medusa Group—
grp_g0114ChimeraChina
grp_g0102Wizard SpiderRussia
grp_g1044APT42Iran
grp_g0049OilRigIran
grp_g0069MuddyWater—
grp_g1055VOID MANTICORE—
grp_g0061FIN8—
grp_g1017Volt Typhoon—
grp_g1059NIMBUS MANTICORE—
grp_g0065LeviathanChina
grp_g0046FIN7—
grp_g1032INC Ransom—
grp_g0099APT-C-36—
grp_g0047Gamaredon GroupRussia
grp_g0030Lotus Blossom—
grp_g0059Magic HoundIran
grp_g1016FIN13—
grp_g1003Ember BearRussia
grp_g0096APT41China
grp_g0045menuPass—
grp_g1006Earth LuscaChina
grp_g1022ToddyCat—
grp_g0016APT29Russia
grp_g0027Threat Group-3390China
grp_g0034Sandworm TeamRussia
grp_g0050APT32Vietnam

Claims

No public claim points at this technique yet.

Auto-ingested and not human-reviewed; confidence and validity read by citation.