Lion Cipher Lab

Implement just-in-time (JIT) privileged access on your own Linux machine

Why it matters

Most breaches are not clever — they are an attacker landing on an account that already had administrator power sitting there, unused, waiting. That waiting power is called standing privilege, and it is pure attack surface: every hour an account can become root is an hour that account is worth stealing. Just-in-time (JIT) access flips the default. Instead of handing out admin rights and hoping nobody abuses them, you grant elevated access only at the moment it is needed, only for as long as it is needed, and you log the whole thing. Cloud platforms have spent years building exactly this — AWS…

What you'll learn

Steps in this lab

  1. The idea: standing privilege is the attack surface
  2. Set up a safe throwaway box and a helper account
  3. Feel it first: elevation is already time-limited
  4. Confirm the audit trail before you rely on it
  5. The wrong way, so you never mistake it for the right way
  6. Recovery drill: how NOT to lock yourself out
  7. Grant JIT access: a time-boxed sudoers drop-in
  8. Make it expire on its own: auto-revoke with a systemd timer
  9. Verify the full cycle: use it, then watch it vanish
  10. How the cloud does JIT (read-the-docs, free)
  11. Why this is the whole game

Open the full interactive lab →