Lion Cipher Lab

Reconstruct a Linux intrusion from login records and shell history

Why it matters

When a Linux box is suspected compromised, the first hour decides everything: is this real, when did it start, who got in, and what did they touch? Full disk imaging is slow and sometimes overkill. A responder who can read the login records and shell history on the live box can build a defensible, ordered timeline in minutes and hand it to an IR lead — or rule the alert out. These artifacts are also exactly what attackers try to erase, so knowing where they live, and knowing that a missing record is itself a finding, is core Linux DFIR judgment.

What you'll learn

Steps in this lab

  1. The Linux forensic artifact map (read this first)
  2. Snapshot the box and work on copies, never originals
  3. Stage the incident — become the attacker for five minutes
  4. Decode successful logins with last (who, from where, how long)
  5. Decode failed logins with lastb (the brute-force signal)
  6. Read the raw records with utmpdump
  7. Corroborate with auth.log / secure
  8. Read the attacker's shell history — and check for timestamps
  9. Find the persistence — accounts and cron
  10. Assemble the ordered timeline
  11. The honest limits — absence of evidence is not evidence of absence

Open the full interactive lab →