Lion Cipher Lab

Detect impossible travel in sign-in logs

Why it matters

When an attacker steals a password (phished, bought, or reused from another breach), the account itself still looks legitimate -- same username, correct password, maybe even a passed MFA prompt. The login is not malformed; it is simply being done by the wrong person. MITRE ATT&CK tracks this as T1078, Valid Accounts, and it is one of the hardest things a SOC has to catch precisely because nothing is technically 'wrong.' One of the few physical tells left is GEOGRAPHY: a real human cannot sign in from New York and, twenty-five minutes later, from Singapore. That pattern -- one account, two…

What you'll learn

Steps in this lab

  1. What impossible travel is -- every term, defined once
  2. The naive rule, and why it will drown you
  3. Seed a realistic sign-in log
  4. The math: great-circle distance and implied velocity
  5. Write the detector -- three rules in one tool
  6. Measure the BEFORE: the naive rule floods
  7. Measure the velocity rule -- better, but it over-fires
  8. The honest negatives -- and the allowlist that tames them
  9. When to trust this signal -- and when it lies
  10. What you built -- and the reflex to keep

Open the full interactive lab →