Lion Cipher Lab

Detect anomalous logins with a behavioral baseline: build a UEBA analytic from scratch

Why it matters

Signature detection answers 'have I seen this exact bad thing before?' — a known malware hash, a known C2 domain, a Sigma rule for a specific command line. It is essential, and it is blind to the attack that looks completely normal: a valid username and a valid password, used by the wrong person. That is ATT&CK T1078 Valid Accounts, and it is one of the most common and most damaging initial-access and persistence techniques precisely because nothing is malformed — the login SUCCEEDS. You cannot write a signature for 'this is the real Alice' versus 'this is an attacker holding Alice's…

What you'll learn

Steps in this lab

  1. The idea: learn 'normal', then alert on the deviation
  2. The three signals — and the false positives to name up front
  3. Generate a synthetic authentication log
  4. Write the detector: baseline, impossible travel, off-baseline, risk fusion
  5. Run it and read the ranked alerts
  6. The judgment: drift, cold start, the VPN blind spot, alert-don't-block
  7. What you built — and the reflex to keep

Open the full interactive lab →