Event Triggered Execution: Windows Management Instrumentation Event Subscription T1546.003

Tactics: Privilege Escalation, Persistence

Adversaries may establish persistence and elevate privileges by executing malicious content triggered by a Windows Management Instrumentation (WMI) event subscription. WMI can be used to install event filters, providers, consumers, and bindings that execute code when a defined event occurs. Examples of events that may be subscribed to are the wall clock time, user login, or the computer's uptime.

Events covered

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

Authoring guide

Patterns shared across the 23 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (29 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
Image7eq 4, ends_with 3, contains 1, starts_with 1c:\windows\system32\wbem\scrcons.exe, \bin\oleconverter.exe, \scrcons.exe, \wmiprvse.exe, c:\program files\microsoft\exchange server\
EventID4eq 421, 20, 4688
process_name4eq 3, ends_with 1mofcomp.exe, scrcons.exe, wmic.exe
parent_process_name3regex_match 2, in 1(?i)(WmiPrvSE), cmd.exe, powershell.exe
CommandLine2contains 1, in 1 create , *\\AppData\\Local\\*, *\\Users\\Public\\*, activescripteventconsumer
ImageLoaded2ends_with 2\scrrun.dll, \vbscript.dll, \wbemcons.dll, \wbemdisp.dll
ParentImage2ends_with 1, eq 1\edgetransport.exe, c:\windows\system32\svchost.exe
ScriptBlockText2contains 2-classname __eventfilter , -classname commandlineeventconsumer , -namespace root/subscription , arguments, class
event.type2eq 2start
process.args2ends_with 1, eq 1.mof, ActiveScriptEventConsumer, CommandLineEventConsumer, create
Consumer1contains 1subscription:activescripteventconsumer, subscription:commandlineeventconsumer
EventData1contains 1arguments, class, namespace
EventType1eq 1SetValue
LogonType1eq 1Network
ObjectName1contains 1subscription

Top indicator values (76 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
EventIDeq
21
22
EventIDeq
20
1
EventIDeq
4688
1313
Imageeq
c:\windows\system32\wbem\scrcons.exe
22
Imageeq
c:\windows\system32\conhost.exe
1
Imageeq
c:\windows\system32\wbem\wmiprvse.exe
1
event.typeeq
start
2606
parent_process_nameregex_match
(?i)(WmiPrvSE)
22
process_nameeq
mofcomp.exe
22
CommandLinecontains
create
13
CommandLinecontains
activescripteventconsumer
1
CommandLinein
*\\AppData\\Local\\*
1
CommandLinein
*\\Users\\Public\\*
14
Consumercontains
subscription:activescripteventconsumer
1
Consumercontains
subscription:commandlineeventconsumer
1
EventDatacontains
arguments
1
EventDatacontains
class
1
EventDatacontains
namespace
1
EventTypeeq
SetValue
16
Imagecontains
this program cannot be run in dos mode
1
Imagecontains
this program must be run under win32
1
Imagecontains
writeprocessmemory
1
Imageends_with
\bin\oleconverter.exe
1
Imageends_with
\scrcons.exe
19
Imageends_with
\wmiprvse.exe
12
Imagestarts_with
c:\program files\microsoft\exchange server\
1
ImageLoadedends_with
\scrrun.dll
1
ImageLoadedends_with
\vbscript.dll
13
ImageLoadedends_with
\wbemcons.dll
1
ImageLoadedends_with
\wbemdisp.dll
1

Exclusions (13 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
Imageends_with
\bin\oleconverter.exe
1
Imageeq
c:\windows\system32\conhost.exe
1
Imagestarts_with
c:\program files\microsoft\exchange server\
1
PossibleCauseeq
Permanent
1
Providereq
SCM Event Provider
1
Querywildcard
select * from MSFT_SCMEventLogEvent
1
TargetLogonIdeq
0x3e7
1
parent_process_nameeq
ScenarioEngine.exe
1
process.argswildcard
*\MSSQL\Binn\*.mof
1
process.argswildcard
*\Microsoft SQL Server\???\Shared\*.mof
1
process.argswildcard
*\OLAP\bin\*.mof
1
usereq
s-1-5-32-544
1
user.ideq
S-1-5-18
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 15 rules

Elastic 3 rules

Splunk 5 rules