Join our Newsletter — 33% off our NHI Course
Threats, Abuse & Incident Response

WMI Persistence

← Back to Glossary
By NHI Mgmt Group Updated October 29, 2026 Domain: Threats, Abuse & Incident Response

WMI Persistence is a technique that uses Windows Management Instrumentation to make malicious code or commands run again after a restart or at logon. Attackers create event filters, consumers, and bindings so the system triggers the payload automatically, which gives them durable execution without a normal startup entry.

What WMI Persistence Means

WMI persistence is dangerous because it turns Windows Management Instrumentation into a hidden restart mechanism. Instead of relying on visible startup folders or services, the attacker wires an event to a consumer through a binding so code executes again when a trigger fires.

That design makes the payload resilient and harder to spot than ordinary autorun mechanisms. It can survive reboots, blend into administrative activity, and keep re-establishing execution even after an initial cleanup if the subscription is not removed.

How WMI Persistence Works

The core building blocks are the event filter, the consumer, and the binding that connects them. The filter defines the trigger, the consumer defines the action, and the binding tells WMI to launch the action automatically when the condition is met.

In practice, that means an attacker can arrange for a command, script, or executable to be launched on logon, at system startup, or when another event occurs. Because the mechanism is native to Windows administration, it can look like legitimate instrumentation unless defenders inspect the underlying subscription objects.

Why WMI Persistence Is Hard to See

WMI persistence often lives below the level of user-facing autorun locations, so simple startup reviews miss it. The technique also benefits from the fact that WMI activity can be distributed across configuration objects rather than appearing as one obvious malicious file or registry entry.

Detection usually depends on correlating WMI object creation, script execution, and suspicious child processes from WmiPrvSE.exe. That is why defenders should treat unusual subscription creation, remote WMI activity, and unexpected administrative tooling as indicators worth investigation.

What Defenders Should Focus On

Defence should centre on visibility, restriction, and cleanup. Watch for new permanent event subscriptions, limit remote WMI use where it is not required, and review whether endpoint controls can block process creation patterns that commonly accompany WMI-based abuse.

For deeper detection and hardening guidance, use T1047 Windows Management Instrumentation Defensive Guide and T1546 Event Triggered Execution Defensive Guide. For a broader response lens, Identity Threat Detection and Response (ITDR) Guide helps explain how persistence fits into identity abuse and post-compromise response.

Risk and Threat Considerations

WMI persistence is a durable post-compromise foothold, so the main risk is not just initial code execution but repeated re-entry after a reboot or logon. If the subscription remains in place, defenders may believe a cleanup succeeded while the attacker still controls a reactivation path.

Failure mechanism: The attacker creates a WMI event subscription that survives normal cleanup paths and re-launches the payload whenever the trigger condition occurs.

Impact: The host can regain malicious execution after restart, which increases dwell time, complicates incident containment, and can support lateral movement or renewed credential theft.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1047 — Windows Management InstrumentationWMI persistence is a direct abuse of this ATT&CK technique.
T1546 — Event Triggered ExecutionWMI persistence is a form of event-triggered autorun abuse.
Recommendation — Map WMI subscriptions to T1047 and alert on suspicious WMI process and subscription activity. Hunt event-triggered persistence and remove malicious subscription objects during incident response.
NIST SP 800-53 Rev 5AU-6 — Audit Record Review, Analysis, and ReportingWMI abuse is detected by reviewing logs and anomalous event subscription activity.
CM-6 — Configuration SettingsWMI persistence depends on hostile configuration changes that must be controlled.
SI-4 — System MonitoringPersistent WMI abuse is best addressed through continuous host monitoring and alerting.
Recommendation — Correlate WMI and process audit records to identify unauthorized subscription creation and execution. Restrict and monitor WMI-related configuration changes that can create persistent execution paths. Monitor for abnormal WMI activity, child processes, and subscription creation events on endpoints.

Practitioner Guidance

What to watch for: Treat new WMI event filters, consumers, and bindings as high-value forensic artefacts. They are often the clearest evidence that persistence has been established, especially when they point to scripts, LOLBins, or unusual command lines.

Governance implication: Ownership of WMI monitoring should sit with endpoint and detection teams, because the control is less about a one-time malware scan and more about continuous inspection of a living persistence mechanism. If an incident involves WMI abuse, confirm that the subscription objects themselves were removed, not just the visible payload.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org