Lion Cipher Lab
Hunt three kinds of Linux persistence on your own VM: plant harmless markers, find them, remove them
- SOC Analyst / Blue Team
- Intermediate
- ~60 min
- Free · no account required
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
- taking a small baseline of the places persistence hides in one user account
- finding a cron entry, a systemd user unit and an extra SSH key with commands from the manual pages
- using file modification times to narrow a search
- setting an audit rule in the syscall form and reading the event it records
- removing each item without disturbing the rest of the account
- proving the account matches the baseline again
Steps in this lab
- The authorization rule, and what you are about to do
- Take a baseline first
- Plant the three markers
- Optional: set an audit rule first, then repeat the key write
- Hunt: run the sweep script
- Confirm each find against its source and against the baseline
- Remove each marker, and only the markers
- Prove the account matches the baseline
- What this teaches, when not to rely on it, and what a professional does differently
- Clean up
Open the full interactive lab →