Has established persistence through the use of a WMI event subscription combined with unusual living-off-the-land binaries such as cdb.exe.1
Windows Management Instrumentation Event Subscription T1546.003
- Tactics
- Persistence, Privilege Escalation
- Platform
- Windows
- Version
- 1.5
- Created
- 24 January 2020
- Last modified
- 24 October 2025
- Contributors
- Brent Murphy, Elastic; David French, Elastic; Viren Chaudhari, Qualys
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.[1]
Windows Management Instrumentation Event Subscription MITRE reference T1546.003
10 groups have been recorded using this technique. Newest first; each entry carries MITRE’s procedure text and a link to the group’s full record. Click a name to filter the rules below.
Mustang Panda's custom ORat tool uses a WMI event consumer to maintain persistence.1
Has used mofcomp.exe to establish WMI Event Subscription persistence mechanisms configured from a *.mof file.1
Has used WMI event subscriptions for persistence.1
Has complied VBScript-generated MOF files into WMI event subscriptions for persistence.1
Has attempted to use WMI event subscriptions to establish persistence on compromised hosts.1
All 10 groups for this technique · 6 newest in this preview
2 campaigns have been recorded using this technique. Listed newest first; dates are year-granularity and attribution is MITRE’s.
During the SolarWinds Compromise, APT29 used a WMI event filter to invoke a command-line event consumer at system boot time to launch a backdoor with rundll32.exe.12
During Operation Ghost, APT29 used WMI event subscriptions to establish persistence for malware.1
All 2 campaigns for this technique
13 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Can use a WMI event filter to invoke a command-line event consumer to gain persistence.1
Can use WMI event subscriptions for persistence.1
Registered a WMI event subscription consumer called "hard_disk_stat" to establish persistence.1
Can compile randomly-generated MOF files into the WMI repository to persistently run malware.1
Can create a WMI Event to execute a payload for persistence.1
Has the ability to use WMI for persistence.1
All 13 software entries for this technique · 6 newest in this preview
Offense vs defense T1546.003
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
How it got here
Adversary activity (campaign spans) over cumulative rule output. Each source is plotted independently from zero, so neither line includes the other. Campaign dates are year-granularity.
Windows Management Instrumentation Event Subscription detection strategy DET0086
MITRE names one behaviour worth catching for this technique and breaks it into 1 analytic, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detect WMI Event Subscription for Persistence via WmiPrvSE Process and MOF Compilation
AN0236 · Windows
Monitor for creation of WMI EventFilter, EventConsumer, and FilterToConsumerBinding objects through WMI or MOF file execution. Detect command-line execution of mofcomp.exe, usage of Register-WmiEvent via PowerShell, and anomalous child processes of WmiPrvSE.exe that indicate triggered execution. Look for lateral anomalies in process lineage and WMI logging channels.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| WMI CreationDC0008 | WinEventLog:WMI | EventCode=5857, 5858, 5860, 5861 |
| Module LoadDC0016 | WinEventLog:Sysmon | EventCode=7 |
| Process CreationDC0032 | WinEventLog:Sysmon | EventCode=1 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| TimeWindow | Defines temporal correlation range between WMI creation and child process execution |
| UserContext | Tune for specific accounts (e.g., SYSTEM or attacker-controlled users) |
| ProcessNameAllowlist | Used to exclude known benign consumers triggered via WMI (e.g., backup tools) |
| ParentProcessAnomalyThreshold | Defines what constitutes anomalous spawning from WmiPrvSE.exe |
The Sysinternals tool Autoruns checks the registry and file system for known identify persistence mechanisms. It will output any tools identified, including built-in or added-on Microsoft functionality and third party software. Many of these locations are known by adversaries and used to obtain Persistence. Running Autoruns periodically in an environment makes it possible to collect and monitor its output for differences, which may include the removal or addition of persistent tools. Depending on the persistence mechanism and location, legitimate software may be more likely to make changes than an adversary tool. Thus, this analytic may result in significant noise in a highly dynamic environment. While Autoruns is a convenient method to scan for programs using persistence mechanisms its scanning nature does not conform well to streaming based analytics. This analytic could be replaced with one that draws from sensors that collect registry and file information if streaming analytics are desired.
D3FEND techniques
The defensive countermeasure this analytic implements, in MITRE’s D3FEND ontology.
| ID | Name |
|---|---|
| D3-SICA | System Init Config Analysis |
On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent malware from abusing WMI to attain persistence.
Prevent credential overlap across systems of administrator and privileged accounts.
By default, only administrators are allowed to connect remotely using WMI; restrict other users that are allowed to connect, or disallow all users from connecting remotely to WMI.
Tests from Atomic Red Team (MIT licence) · technique definition