Lion Cipher Lab

Detect an attacker registering their own MFA method (build the detector from scratch)

Why it matters

When an attacker phishes or buys a password and gets into an account, the clock starts ticking: sooner or later the real user notices, or a risky-sign-in alert fires, and someone resets the password. The attackers who matter plan for that moment in advance. One of the cleanest ways they keep the account is to register THEIR OWN multi-factor method — add their own Microsoft Authenticator app, their own phone number, or their own FIDO security key to the victim's account — often within minutes of the first suspicious sign-in. Now the account has two second factors: the victim's, and the…

What you'll learn

Steps in this lab

  1. The attack: registering your own authenticator is persistence
  2. The only witness: the identity audit log
  3. Open a terminal and confirm Python works
  4. Generate a synthetic identity log
  5. Eyeball the raw stream before you trust any rule
  6. Write the detector (standard library only)
  7. Read the before/after and catch the grant
  8. The honest negative: why self-service enrollment fools you
  9. The judgment: when this fires falsely, and how a pro hardens it
  10. Clean up

Open the full interactive lab →