Lion Cipher Lab

Mine least-privilege roles and catch toxic combinations (identity governance from scratch)

Why it matters

Almost every organization runs access reviews, and almost none of them measure anything. Somebody exports a list of who is in which group, mails it to managers, the managers click Approve, and a control is marked green. That process is not wrong so much as blind: it moves entitlements around and eyeballs them, and it cannot answer the questions that actually matter. How much of the access you have granted is never used? Which of your leavers still hold live privileges because the account was disabled but never deprovisioned? Which single person can both create a supplier and approve the…

What you'll learn

Steps in this lab

  1. What this lab does that an access review does not
  2. Open a terminal and check Python (zero-assumption setup)
  3. The raw material: the four exports an IGA tool actually eats
  4. Write mkestate.py — generate the estate (seeded, so your numbers match)
  5. Write iga.py — the whole analysis in one file
  6. Failure mode (a): the group cycle, and flattening to the truth
  7. Measure over-provisioning honestly: unused, orphaned, outlier
  8. Role mining from scratch — and why explainable beats fancy
  9. Failure mode (b): role explosion — sweep theta and find the knee
  10. The thesis: mining the drift launders over-permission into a certified role
  11. Segregation of duties: the violations a spreadsheet cannot find
  12. Mitigate vs remediate: compensating controls as dated objects
  13. The certification campaign: volume is not the same as governance
  14. Failure mode (e): deny grants, and why an allow-only matrix lies
  15. When you would reach for role mining, and when you would not
  16. When NOT to do this
  17. How a pro does it differently

Open the full interactive lab →