Lion Cipher Lab

Find malicious and hidden scheduled tasks in the Windows task store (XML files + TaskCache)

Why it matters

Scheduled tasks are one of the most common ways an intruder makes sure their foothold survives a reboot -- MITRE ATT&CK tracks it as T1053.005 and lists well over a hundred groups and malware families that use it. The obvious way to look for them is to ask Windows: open Task Scheduler or run schtasks /query. In 2022 Microsoft documented a piece of malware, Tarrask, that defeats exactly that by deleting a single registry value -- the task keeps running but disappears from both tools. Worse, the event logs that would have recorded the task being created are not audited by default, so on many…

What you'll learn

Steps in this lab

  1. What a scheduled task is, and why intruders love it
  2. Where Windows actually keeps a task: two stores, not one
  3. Why not just read the event logs? (when to reach for this lab)
  4. Read the XML format before you parse it
  5. Build the synthetic task store
  6. Look at one raw task file and at the TaskCache export
  7. Write the hunter: inventory, score, reconcile
  8. Read the measurement: what the listing missed
  9. Read the false positive and the weak signals honestly
  10. Doing this on a real system (read-only)
  11. The limits -- what this cannot see
  12. Where this goes next

Open the full interactive lab →