Lion Cipher Lab

Detect WMI event-subscription persistence from telemetry

Why it matters

WMI event subscriptions are a favourite persistence trick because they are fileless: no program on disk, no Run key, no Startup folder — the trigger and the payload live inside the WMI repository and survive every reboot. A SOC that only watches files and autorun keys never sees it. But the telemetry that reveals it is a minefield of legitimate look-alikes: your patch-management agent, your laptop vendor's health monitor, and your log forwarder all create real WMI consumers that run commands on a schedule. A rule written the obvious way pages the analyst on every one of them. Learning to…

What you'll learn

Steps in this lab

  1. What WMI persistence looks like from the outside
  2. The three Sysmon events that carry the signal
  3. Generate a labeled dataset
  4. Write the naive detection and measure it
  5. Tune it: consumer type, content, and a publisher allowlist
  6. Name what the telemetry cannot see

Open the full interactive lab →