PERSISTENCE
RUN KEYS
SCHEDULED TASKS
WMI SUBSCRIPTIONS
DetectionBlue TeamSOCOctober 12, 2026•9 min read

Detecting Persistence: Autoruns, Tasks, Services and WMI Subscriptions

Persistence is how an intrusion survives a reboot. It is also one of the most detectable stages, because it means writing to a small set of well-known places.

Scroll

To survive reboots, attackers write to a finite set of autostart locations: registry run keys, scheduled tasks, services, WMI event subscriptions, the startup folder and BITS jobs. This pack lists the telemetry for each. Persistence is highly detectable because the target locations are well-known — baseline them and alert on change.

Signals at a Glance

MechanismTelemetryATT&CK
Registry run keysSysmon 13 (RegistryValueSet) on Run/RunOnceT1547.001
Scheduled taskEvent 4698 (task created); Sysmon 1 schtasks.exeT1053.005
ServiceEvent 7045 / 4697 (service install)T1543.003
WMI event subscriptionSysmon 19/20/21 (WMI filter/consumer/binding)T1546.003
Startup folder / BITSFile create in Startup; Event 4702; bitsadminT1547 T1197

The Stealthy One: WMI Subscriptions

WMI event-consumer persistence is a favourite because it survives reboot and leaves little on disk. Enable Sysmon WMI events (19/20/21) and alert on the creation of permanent event filters and command-line/active-script consumers:

title: WMI Event Subscription Persistence
logsource:
    product: windows
    category: wmi_event
detection:
    selection:
        EventID:
            - 20   # WmiEventConsumer (CommandLineEventConsumer / ActiveScript)
            - 21   # WmiEventConsumerToFilter binding
    condition: selection
level: high

Baseline and Alert on Change

Vetted sources

SigmaHQ covers all major autostart locations; Sysinternals Autoruns is the reference inventory tool, and the MITRE CAR has persistence analytics.

Find What Survives Reboot

Mjolnir Security helps organisations detect and eradicate persistence across their estate.

Detection EngineeringManaged Detection & ResponseThreat HuntingCompromise AssessmentIncident Response
  • Detection Engineering Building autostart-change detections from endpoint telemetry.
  • Compromise Assessment Hunting for hidden persistence including WMI subscriptions.
  • 24/7 Incident Response Containment when persistence is found. Call +1 833 403 5875.
Written by: Mjolnir Threat Research (MTAC)  |  Published: October 12, 2026  |  Last reviewed: October 12, 2026