Lion Cipher Lab

Hunt Linux persistence from host telemetry (build the analytic from scratch)

Why it matters

An intruder who lands on a Linux host has one problem above all others: the box will reboot, the session will drop, the shell will die -- and if they have not planted something that re-executes on its own, they lose everything and have to break in again. So they establish PERSISTENCE: a mechanism that quietly re-runs their code on a schedule, at boot, at login, or inside every program that starts. This is not optional tradecraft; it is the load-bearing step of almost every real intrusion, which is exactly why MITRE ATT&CK devotes a whole tactic to it and catalogs dozens of Linux-specific…

What you'll learn

Steps in this lab

  1. What Linux persistence is, and why you hunt the anchors
  2. Generate self-contained telemetry: a benign baseline plus three needles
  3. Build the hunter (part 1): enumerate cron and systemd
  4. Build the hunter (part 2): shell init, the linker, SUID, SSH keys, rc.local
  5. Run it and watch the needles surface next to honest false positives
  6. The baseline-diff round: point-in-time vs a clean snapshot
  7. Map every vector to ATT&CK, and why persistence re-executes
  8. The judgment: when to hunt persistence, and how the pros do it

Open the full interactive lab →