Skip to content
WETNav

Execution · Windows · LOLBAS

wmic.exe

WMI command-line utility

Queries and controls WMI from the command line. Used for discovery, local and remote process creation and shadow copy deletion. It is deprecated and absent on newer Windows 11 builds unless added as a feature on demand.

Legitimate use

Admins use it to query hardware, software and system state and to manage remote hosts.

Worst caseCritical

Subcommands

process

Lists processes, or with call create starts a new one locally or remotely.

Medium
shadowcopy

Lists or deletes volume shadow copies.

Medium
service

Lists and controls services.

Low
useraccount

Lists local user accounts.

Low
product

Lists installed software.

Low
qfe

Lists installed hotfixes.

Low
call

Invokes a method, for example create on process.

Medium
create

With process call, starts a process.

Medium
delete

Deletes the queried objects, for example shadow copies.

High

Switches

/node<value>

Runs the query or action against a remote host. A lateral movement signal.

Medium
/user<value>

Account for the remote connection.

Medium
/password<value>

Password for the remote connection, in clear text.

High

Command lines to worry about

  • Critical

    Shadow copy deletion through WMI

    wmic deletes volume shadow copies, removing a recovery path. A hallmark of ransomware before encryption.

    Detection regexwmic(\.exe)?\s+.*shadowcopy\s+delete

    T1490

  • Medium

    Process creation through WMI

    wmic starts a process through WMI, which breaks the normal parent-child link and can target a remote host with /node.

    Detection regexwmic(\.exe)?\s+.*process\s+call\s+create

    T1047

  • Medium

    Remote WMI command

    wmic runs against a remote host. Check the account used and whether this source normally administers that target.

    Detection regexwmic(\.exe)?\s+\/node:

    T1047T1021.002

Where it is recorded

  • Security4688Process creation with the full command line, when command-line auditing is enabled.
  • Sysmon1Process creation with command line, hashes and parent process.
  • WMI5857WMI provider loaded, part of the WMI operational trail.
  • WMI5861WMI permanent event consumer registered, which can signal WMI persistence.

Community detections

51 SigmaHQ rules for wmic.exe. The explainer checks every pasted command line against all of them.

  • High
    HTML Help HH.EXE Suspicious Child Process

    Detects a suspicious child process of a Microsoft HTML Help (HH.exe)

    T1047T1059.001T1059.003T1059.005by Maxim Pavlunin, Nasreddine Bencherchali (Nextron Systems)

  • High
    NewActiveScriptEventConsumer Creation Attempt via Wmic.EXE

    Detects the attempt to create an ActiveScriptEventConsumer via WMIC.EXE. An ActiveScriptEventConsumer is a built-in Windows Management Instrumentation (WMI) class that automatically executes a predefined script (in VBScript or JScript) whenever a specific system event occurs.

    T1546.003by Florian Roth (Nextron Systems)

  • High
    Potential Defense Evasion Via Rename Of Highly Relevant Binaries

    Detects the execution of a renamed binary often used by attackers or malware leveraging new Sysmon OriginalFileName datapoint.

    T1036.003by Matthew Green - @mgreen27, Florian Roth (Nextron Systems), frack113

  • High
    Potential Remote SquiblyTwo Technique Execution

    Detects potential execution of the SquiblyTwo technique that leverages Windows Management Instrumentation (WMI) to execute malicious code remotely. This technique bypasses application whitelisting by using wmic.exe to process malicious XSL (eXtensible Stylesheet Language) scripts that can contain embedded JScript or VBScript.

    T1047T1220T1059.005T1059.007by Markus Neis, Florian Roth, Swachchhanda Shrawan Poudel (Nextron Systems)

  • High
    Potential Windows Defender Tampering Via Wmic.EXE

    Detects potential tampering with Windows Defender settings such as adding exclusion using wmic

    T1047T1685by frack113

  • High
    Shadow Copies Deletion Using Operating Systems Utilities

    Shadow Copies deletion using operating systems utilities

    T1070T1490by Florian Roth (Nextron Systems), Michael Haag, Teymur Kheirkhabarov, Daniil Yugoslavskiy, oscd.community, Andreas Hunkeler (@Karneades)

  • High
    Suspicious ArcSOC.exe Child Process

    Detects script interpreters, command-line tools, and similar suspicious child processes of ArcSOC.exe. ArcSOC.exe is the process name which hosts ArcGIS Server REST services. If an attacker compromises an ArcGIS Server system and uploads a malicious Server Object Extension (SOE), they can send crafted requests to the corresponding service endpoint and remotely execute code from the ArcSOC.exe…

    T1059T1203by Micah Babinski

  • High
    Suspicious Autorun Registry Modified via WMI

    Detects suspicious activity where the WMIC process is used to create an autorun registry entry via reg.exe, which is often indicative of persistence mechanisms employed by malware.

    T1547.001T1047by Swachchhanda Shrawan Poudel (Nextron Systems)

  • High
    Suspicious BitLocker Access Agent Update Utility Execution

    Detects the execution of the BitLocker Access Agent Update Utility (baaupdate.exe) which is not a common parent process for other processes. Suspicious child processes spawned by baaupdate.exe could indicate an attempt at lateral movement via BitLocker DCOM & COM Hijacking.

    T1218T1021.003by andrewdanis, Swachchhanda Shrawan Poudel (Nextron Systems)

  • High
    Suspicious Child Process Of Manage Engine ServiceDesk

    Detects suspicious child processes of the "Manage Engine ServiceDesk Plus" Java web service

    T1102by Florian Roth (Nextron Systems)

  • High
    Suspicious Eventlog Clearing or Configuration Change Activity

    Detects the clearing or configuration tampering of EventLog using utilities such as "wevtutil", "powershell" and "wmic". This technique were seen used by threat actors and ransomware strains in order to evade defenses.

    T1685.005T1685.001by Ecco, Daniil Yugoslavskiy, oscd.community, D3F7A5105, Swachchhanda Shrawan Poudel (Nextron Systems)

  • High
    Suspicious Microsoft Office Child Process

    Detects a suspicious process spawning from one of the Microsoft Office suite products (Word, Excel, PowerPoint, Publisher, Visio, etc.)

    T1047T1204.002T1218.010by Florian Roth (Nextron Systems), Markus Neis, FPT.EagleEye Team, Vadim Khrykov, Cyb3rEng, Michael Haag, Christopher Peacock @securepeacock, @scythe_io

  • High
    Suspicious Microsoft OneNote Child Process

    Detects suspicious child processes of the Microsoft OneNote application. This may indicate an attempt to execute malicious embedded objects from a .one file.

    T1566T1566.001by Tim Rauch (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), Elastic (idea)

  • High
    Suspicious Outlook Child Process

    Detects a suspicious process spawning from an Outlook process.

    T1204.002by Michael Haag, Florian Roth (Nextron Systems), Markus Neis, Elastic, FPT.EagleEye Team

  • High
    Suspicious Process By Web Server Process

    Detects potentially suspicious processes being spawned by a web server process which could be the result of a successfully placed web shell or exploitation

    T1505.003T1190by Thomas Patzke, Florian Roth (Nextron Systems), Zach Stanford @svch0st, Tim Shelton, Nasreddine Bencherchali (Nextron Systems)

  • High
    Suspicious Processes Spawned by Java.EXE

    Detects suspicious processes spawned from a Java host process which could indicate a sign of exploitation (e.g. log4j)

    by Andreas Hunkeler (@Karneades), Florian Roth

  • High
    Suspicious Serv-U Process Pattern

    Detects a suspicious process pattern which could be a sign of an exploited Serv-U service

    T1555by Florian Roth (Nextron Systems)

  • High
    Suspicious ShellExec_RunDLL Call Via Ordinal

    Detects suspicious call to the "ShellExec_RunDLL" exported function of SHELL32.DLL through the ordinal number to launch other commands. Adversary might only use the ordinal number in order to bypass existing detection that alert on usage of ShellExec_RunDLL on CommandLine.

    T1218.011by Swachchhanda Shrawan Poudel

  • High
    Suspicious Shells Spawn by Java Utility Keytool

    Detects suspicious shell spawn from Java utility keytool process (e.g. adselfservice plus exploitation)

    by Andreas Hunkeler (@Karneades)

  • High
    Suspicious Spool Service Child Process

    Detects suspicious print spool service (spoolsv.exe) child processes.

    T1203T1068by Justin C. (@endisphotic), @dreadphones (detection), Thomas Patzke (Sigma rule)

  • High
    Suspicious Windows Service Tampering

    Detects the usage of binaries such as 'net', 'sc' or 'powershell' in order to stop, pause, disable or delete critical or important Windows services such as AV, Backup, etc. As seen being used in some ransomware scripts

    T1489T1685by Nasreddine Bencherchali (Nextron Systems), frack113 , X__Junior (Nextron Systems)

  • High
    Suspicious WMIC Execution Via Office Process

    Office application called wmic to proxye execution through a LOLBIN process. This is often used to break suspicious parent-child chain (Office app spawns LOLBin).

    T1204.002T1047T1218.010by Vadim Khrykov, Cyb3rEng

  • High
    System File Execution Location Anomaly

    Detects the execution of a Windows system binary that is usually located in the system folder from an uncommon location.

    T1036by Florian Roth (Nextron Systems), Patrick Bareiss, Anton Kutepov, oscd.community, Nasreddine Bencherchali (Nextron Systems)

  • High
    Webshell Detection With Command Line Keywords

    Detects certain command line parameters often used during reconnaissance activity via web shells

    T1505.003T1018T1033T1087by Florian Roth (Nextron Systems), Jonhnathan Ribeiro, Anton Kutepov, oscd.community, Chad Hudson, Matt Anderson

  • Medium
    Application Removed Via Wmic.EXE

    Detects the removal or uninstallation of an application via "Wmic.EXE".

    T1047by frack113

  • Medium
    Application Termination Attempt via Wmic.EXE

    Detects an attempt to terminate a process via "wmic" with the "call terminate" flag. Adversaries may use wmic to terminate security products or other applications on the compromised host. This event is triggered on on attempt and process creation can be either successful or unsuccessful.

    T1047by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Computer System Reconnaissance Via Wmic.EXE

    Detects execution of wmic utility with the "computersystem" flag in order to obtain information about the machine such as the domain, username, model, etc.

    T1047by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Hardware Model Reconnaissance Via Wmic.EXE

    Detects the execution of WMIC with the "csproduct" which is used to obtain information such as hardware models and vendor information

    T1047by Florian Roth (Nextron Systems)

  • Medium
    Password Set to Never Expire via WMI

    Detects the use of wmic.exe to modify user account settings and explicitly disable password expiration.

    T1047T1098by Daniel Koifman (KoifSec)

  • Medium
    Potential Process Reconnaissance via Wmic.EXE

    Detects the execution of "wmic" with the "process" flag, which might indicate an attempt to perform reconnaissance on running processes. Adversaries may use wmic to query for running processes and their details as part of their reconnaissance efforts.

    T1047T1057by frack113

  • Medium
    Potential Product Class Reconnaissance Via Wmic.EXE

    Detects the execution of WMIC in order to get a list of firewall, antivirus and antispywware products. Adversaries often enumerate security products installed on a system to identify security controls and potential ways to evade detection or disable protection mechanisms. This information helps them plan their next attack steps and choose appropriate techniques to bypass security measures.

    T1047T1082by Michael Haag, Florian Roth (Nextron Systems), juju4, oscd.community, Swachchhanda Shrawan Poudel (Nextron Systems)

  • Medium
    Potential Product Reconnaissance Via Wmic.EXE

    Detects the execution of WMIC in order to get a list of firewall and antivirus products

    T1047by Nasreddine Bencherchali

  • Medium
    Potential Unquoted Service Path Reconnaissance Via Wmic.EXE

    Detects known WMI recon method to look for unquoted service paths using wmic. Often used by pentester and attacker enumeration scripts

    T1047by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Potentially Suspicious EventLog Recon Activity Using Log Query Utilities

    Detects execution of different log query utilities and commands to search and dump the content of specific event logs or look for specific event IDs. This technique is used by threat actors in order to extract sensitive information from events logs such as usernames, IP addresses, hostnames, etc.

    T1552T1087by Nasreddine Bencherchali (Nextron Systems), X__Junior (Nextron Systems)

  • Medium
    Potentially Suspicious Execution Of PDQDeployRunner

    Detects suspicious execution of "PDQDeployRunner" which is part of the PDQDeploy service stack that is responsible for executing commands and packages on a remote machines

    by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Process Creation Attempt via Wmic.EXE

    Detects the attempt to create a process via "wmic" with the "process call create" flag, which might indicate an attempt to execute a malicious process on the compromised host. Adversaries may use wmic to execute a process on the compromised host as part of their attack. This event is triggered on on attempt and process creation can be either successful or unsuccessful.

    T1047by Michael Haag, Florian Roth (Nextron Systems), juju4, oscd.community

  • Medium
    RDP Enable or Disable via Win32_TerminalServiceSetting WMI Class

    Detects enabling or disabling of Remote Desktop Protocol (RDP) using alternate methods such as WMIC or PowerShell. In PowerShell one-liner commands, the "SetAllowTSConnections" method of the "Win32_TerminalServiceSetting" class may be used to enable or disable RDP. In WMIC, the "rdtoggle" alias or "Win32_TerminalServiceSetting" class may be used for the same purpose.

    T1021.001T1047by Daniel Koifman (KoifSec), Swachchhanda Shrawan Poudel (Nextron Systems)

  • Medium
    Recon Information for Export with Command Prompt

    Once established within a system or network, an adversary may use automated techniques for collecting internal data.

    T1119by frack113

  • Medium
    Registry Enumeration via WMI Stdregprov

    Detects the usage of wmic.exe to enumerate or read Windows registry via the WMI StdRegProv class read methods (EnumKey, EnumValues, GetStringValue, etc.). While registry reads are common, attackers may use this technique to perform reconnaissance and discover sensitive configuration values, credentials, or installed software.

    T1047T1012by Swachchhanda Shrawan Poudel (Nextron Systems)

  • Medium
    Registry Manipulation via WMI Stdregprov

    Detects the usage of wmic.exe to modify Windows registry via the WMI StdRegProv class write methods (CreateKey, DeleteKey, SetStringValue, etc.). This behaviour could be potentially suspicious because it uses an alternative method to modify registry keys instead of legitimate registry tools like reg.exe or regedit.exe.

    T1047T1112by Daniel Koifman (KoifSec)

  • Medium
    Service Reconnaissance Via Wmic.EXE

    An adversary might use WMI to check if a certain remote service is running on a remote device. When the test completes, a service information will be displayed on the screen if it exists. A common feedback message is that "No instance(s) Available" if the service queried is not running.

    T1047by frack113, Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Service Started/Stopped Via Wmic.EXE

    Detects usage of wmic to start or stop a service

    T1047by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Service Startup Type Change Via Wmic.EXE

    Detects changes to service startup type to 'disabled' or 'manual' using the WMIC command-line utility.

    T1047T1685by Swachchhanda Shrawan Poudel (Nextron Systems)

  • Medium
    Shadow Copies Creation Using Operating Systems Utilities

    Shadow Copies creation using operating systems utilities, possible credential access

    T1003T1003.002T1003.003by Teymur Kheirkhabarov, Daniil Yugoslavskiy, oscd.community

  • Medium
    System Disk And Volume Reconnaissance Via Wmic.EXE

    An adversary might use WMI to discover information about the system, such as the volume name, size, free space, and other disk information. This can be done using the 'wmic' command-line utility and has been observed being used by threat actors such as Volt Typhoon.

    T1047T1082by Stephen Lincoln '@slincoln-aiq' (AttackIQ)

  • Medium
    Uncommon System Information Discovery Via Wmic.EXE

    Detects the use of the WMI command-line (WMIC) utility to identify and display various system information, including OS, CPU, GPU, and disk drive names; memory capacity; display resolution; and baseboard, BIOS, and GPU driver products/versions. Some of these commands were used by Aurora Stealer in late 2022/early 2023.

    T1082by TropChaud

  • Medium
    Windows Hotfix Updates Reconnaissance Via Wmic.EXE

    Detects the execution of wmic with the "qfe" flag in order to obtain information about installed hotfix updates on the system. This is often used by pentester and attacker enumeration scripts

    T1047by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    WMIC Remote Command Execution

    Detects the execution of WMIC to query information on a remote system

    T1047by frack113, Nasreddine Bencherchali (Nextron Systems)

  • Medium
    XSL Script Execution Via WMIC.EXE

    Detects the execution of WMIC with the "format" flag to potentially load local XSL files. Adversaries abuse this functionality to execute arbitrary files while potentially bypassing application whitelisting defenses. Extensible Stylesheet Language (XSL) files are commonly used to describe the processing and rendering of data within XML files.

    T1047T1220T1059.005T1059.007by Timur Zinniatullin, oscd.community, Swachchhanda Shrawan Poudel

  • Low
    Local Accounts Discovery

    Local accounts, System Owner/User discovery using operating systems utilities

    T1033T1087.001by Timur Zinniatullin, Daniil Yugoslavskiy, oscd.community

  • Low
    Local Groups Reconnaissance Via Wmic.EXE

    Detects the execution of "wmic" with the "group" flag. Adversaries may attempt to find local system groups and permission settings. The knowledge of local system permission groups can help adversaries determine which groups exist and which users belong to a particular group.

    T1069.001by frack113

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.