Lion Cipher Lab
Catch ATT&CK T1053.005 Scheduled Task persistence on Windows with Sysmon, tune out the backup job, and prove cleanup (Windows Purple 6 of 6)
- SOC Analyst / Blue Team
- Intermediate
- ~60 min
- Free · no account required
Why it matters
A scheduled task is one of the most dependable ways to run something again after a reboot or a logout, and it uses a built-in, signed tool that administrators also use for backups, updates and reports. The skill is in the tuning decision: you can make a rule quiet by narrowing what it looks for or by exempting what you know, and the first quietly drops cover while the second keeps it. Seeing that difference on a real test, then proving your cleanup removed every task, is the habit that carries to the work.
What you'll learn
- explaining how scheduled tasks give persistence
- reading schtasks create parameters such as /sc, /tn, /tr and /ru
- writing a schtasks rule on the command line before running the test
- seeing why a narrow-by-trigger rule misses a variation
- exempting a known owned source instead of narrowing the behaviour
- running the atomics' cleanup without a wildcard delete
- proving cleanup by a task query and by delete events
Steps in this lab
- The rules of this lab, and what T1053.005 is
- Read atomic tests 1 and 2
- Write the detection first: broad, narrow by trigger, or exempt the known source
- Run the tests, export, and compare all three rules
- Exempt the known source instead, and read the proof it keeps cover
- Clean up by exact name, then prove the tasks are gone two ways
- Decide, write the series report, and where this goes next
Open the full interactive lab →