Windows Management Instrumentation T1047

Tactic: Execution

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.

Events covered

22 catalog events are tagged with this technique by at least one rule.

Authoring guide

These 140 rules share fields, values, and exclusions.

Fields filtered most (59 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
CommandLine65contains 45, regex_match 13, in 4, wildcard 3, ends_with 2, eq 2, is_not_null 1, length_compare 1, match 1call, (?i)\s(os|logicaldisk|share|cpu|memorychip|useraccount|ni..., *bootstatuspolicy*, *catalog*, *create*
Image49ends_with 40, wildcard 5, contains 3, eq 1, ne 1, starts_with 1\wmic.exe, \WMIC.exe, \powershell.exe, \pwsh.exe, ?:\ProgramData\*.exe
OriginalFileName46eq 46wmic.exe, PowerShell.EXE, bcdedit.exe, pwsh.dll, vssadmin.exe
process_basename42eq 38, in 5cmd.exe, wmic.exe, WMIC.exe, powershell.exe, bitsadmin.exe
EventID23eq 234688, 4104, 1, 10, 4103
parent_process_basename22eq 20, in 3wmiprvse.exe, WmiPrvSE.exe, cmd.exe, explorer.exe, mshta.exe
event.type21eq 20, ne 1start, change, deletion
EventType17eq 14, starts_with 3, ne 1start, Image loaded*, deletion, modification
process.args15eq 11, wildcard 4, contains 2, ends_with 1, is_not_null 1, starts_with 1-encodehex, /Q, /c, create, delete
ParentImage13ends_with 11, wildcard 2, contains 1, is_not_null 1\EQNEDT32.EXE, \EXCEL.EXE, \MSACCESS.EXE, \WmiPrvSE.exe,
ScriptBlockText6contains 4, in 2, eq 1 Win32_Service , active_users , basic_info , change_user , *-CN*
dll.name6eq 6wmiutils.dll, jscript.dll, vbscript.dll, wbemprox.dll, WMINet_Utils.dll
process_name6regex_match 4, ends_with 2(?i)(certutil|cscript|mshta|msiexec|regsvr32|rundll32|ver..., (?i)cmd\.exe, (?i)wmic, \WmiPrvSE.exe, \psexesvc.exe
event.category5eq 5process, library, driver
parent_process_name5regex_match 4, ends_with 1(?i)(WmiPrvSE), (?i)(\x5cwbem\x5cwmiprvse\.exe), \WmiPrvSE.exe

Top indicator values (991 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
OriginalFileNameeq
WMIC.exe
3974
OriginalFileNameeq
PowerShell.EXE
6134
Imageends_with
\WMIC.exe
2762
Imageends_with
\powershell.exe
6181
Imageends_with
\pwsh.exe
6166
Imageends_with
\cmd.exe
5132
Imageends_with
\MSHTA.EXE
467
Imageends_with
\WmiPrvSE.exe
42
Imageends_with
\cscript.exe
472
Imageends_with
\msiexec.exe
420
Imageends_with
\regsvr32.exe
464
Imageends_with
\rundll32.exe
494
Imageends_with
\wscript.exe
474
event.typeeq
start
181036
process_basenameeq
WMIC.exe
1666
process_basenameeq
cmd.exe
10122
process_basenameeq
powershell.exe
6187
process_basenameeq
wscript.exe
584
process_basenameeq
certutil.exe
445
process_basenameeq
cscript.exe
468
parent_process_basenameeq
WmiPrvSE.exe
1424
EventTypeeq
start
13388
CommandLinecontains
*call*
88
CommandLinecontains
*create*
729
CommandLinecontains
*delete*
430
CommandLinecontains
*process*
45
EventIDeq
4688
8284
EventIDeq
4104
6269
EventIDeq
1
5226
ParentImageends_with
\WmiPrvSE.exe
58

Exclusions (597 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
process.code_signature.trustedeq
true
9
user.ideq
S-1-5-18
9
user.ideq
S-1-5-18
3
process_basenameeq
powershell.exe
7
process_basenameeq
cmd.exe
4
process_basenameeq
wscript.exe
3
Imageends_with
\WmiPrvSE.exe
3
Imageends_with
\WerFault.exe
2
Imageeq
C:\Windows\System32\svchost.exe
3
Imageeq
?:\Windows\system32\conhost.exe
2
ParentImageeq
C:\Windows\System32\services.exe
3
CommandLinecontains
*create*
2
Hasheseq
0e692d9d3342fdcab1ce3d61aed0520989a94371e5898edb266c92f1fe11c97f
2
Imagewildcard
?:\Program Files (x86)\*.exe
2
Imagewildcard
?:\Program Files\*.exe
2

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 55 rules

Elastic 44 rules

Splunk 38 rules

Kusto 2 rules

YARA-L 1 rule