Lion Cipher Lab

Build a SIEM correlation engine from scratch

Why it matters

Single-event alerting is where most detection programs drown: a port scan, a login after a few failures, a large upload -- each is common and benign on its own, so a rule that fires on any one of them buries the analyst in false positives while still missing the story that only emerges when those events are read together. Correlation is the craft of reading events together. A real intrusion is a sequence -- recon, then a brute-forced login, then lateral movement to a second host, then exfiltration -- and no single log line reveals it; the signal lives in the join between sources and the order…

What you'll learn

Steps in this lab

  1. What a SIEM correlation engine actually is (and why single events lie)
  2. Open a terminal and make a clean folder
  3. Model the multi-source event stream (with a real kill chain hidden in it)
  4. Write the naive per-event detector (the strawman we will beat)
  5. Build the correlation engine: a windowed state machine with variable binding
  6. Run it: watch 8 noisy alerts collapse into 1 incident
  7. Failure mode 1 -- base rate: a join key that is too broad
  8. Failure mode 2 -- clock skew between sources breaks the ordering
  9. Why this, not that -- and when a simple detection wins

Open the full interactive lab →