Lion Cipher Lab

Find dormant, orphaned, and never-logged-in accounts

Why it matters

Every directory slowly fills with ghosts. Someone leaves and their account is never disabled. A contractor's access outlives the contract. A test account gets spun up for a migration and nobody ever cleans it up. A service account is created, forgotten, and left with the keys still in the ignition. Each of these is an enabled login that belongs to no one who is watching it -- and an attacker who finds one has a foothold that triggers no 'a real person is behaving oddly' alarm, because there is no real person. These stale identities are exactly how breaches start and how they stay quiet. The…

What you'll learn

Steps in this lab

  1. The three kinds of stale account -- every term, defined once
  2. What this is NOT: recertification vs lifecycle automation vs this
  3. Create the two exports -- directory and HR roster
  4. Write the detection tool and pin 'today'
  5. Measure the BEFORE directory
  6. The honest negatives -- why last_login lies, and the allowlist
  7. Remediate and measure the AFTER directory
  8. What you built -- and the reflexes to keep

Open the full interactive lab →