Lion Cipher Lab

Find the gaps in conditional access policies by replaying a sign-in log

Why it matters

Most organisations that use Microsoft Entra ID protect sign-ins with conditional access: a set of if-then rules such as 'if anyone signs in to anything, then require MFA'. The rules are written one at a time, by different people, over years, and nobody ever reads them all together against real traffic. That is how a company ends up with an MFA policy that is switched on and still lets password-only sign-ins through: one policy only covers modern apps, a 'temporary' exclusion group from two years ago still holds six service accounts, the legacy-protocol block was left in report-only mode after…

What you'll learn

Steps in this lab

  1. Conditional access from zero: five words you need
  2. How several policies combine (the rules your model must copy)
  3. Why replay a log, and when to use the real tools instead
  4. Set up the folder and generate one week of sign-ins
  5. Write the policy set as data, traps included
  6. Build the evaluator: the documented rules, as about 100 lines of Python
  7. Replay BEFORE: count the sign-ins that got in on a password alone
  8. Fix it: four changes, each matched to a documented recommendation
  9. Replay AFTER, and measure what the fix costs
  10. What this model cannot see (read this before you trust any number)
  11. The judgment to keep

Open the full interactive lab →