Lion Cipher Lab

Hunt three kinds of Linux persistence on your own VM: plant harmless markers, find them, remove them

Why it matters

Persistence means the way something stays on a machine after a reboot or logout. Attackers use boring, legitimate features for it, and MITRE ATT&CK catalogues each: scheduled tasks and cron, system services, and extra SSH keys. A defender who has never planted and found one of each does not know what normal looks like or which command shows it. Doing it once on a machine you own, with markers that do nothing, builds the habit of baseline first, then compare. It also shows how little evidence the change leaves unless you ask for it.

What you'll learn

Steps in this lab

  1. The authorization rule, and what you are about to do
  2. Take a baseline first
  3. Plant the three markers
  4. Optional: set an audit rule first, then repeat the key write
  5. Hunt: run the sweep script
  6. Confirm each find against its source and against the baseline
  7. Remove each marker, and only the markers
  8. Prove the account matches the baseline
  9. What this teaches, when not to rely on it, and what a professional does differently
  10. Clean up

Open the full interactive lab →

Keep learning