Lion Cipher Lab

Ship tamper-evident logs off-box over mutual-TLS syslog, then prove a deletion is detectable

Why it matters

Almost every logging tutorial ends at 'the logs are arriving at the collector,' and treats that as the finish line. It is not even half the problem. Shipping logs off-box answers one threat -- an attacker who deletes the LOCAL copy on the machine they compromised -- but it silently assumes two things that are not free: that nobody can read or forge the records on the wire, and that nobody can quietly rewrite history ON THE COLLECTOR once the records land. Real incidents turn on exactly those assumptions. An attacker who reaches the log store, or an insider with access to it, can delete the…

What you'll learn

Steps in this lab

  1. Read this first: your own machine, your own files, authorized-only
  2. The threat model: two different problems, two different mechanisms
  3. Build your own CA, then issue a collector (server) cert and a sender (client) cert
  4. Design the record: an RFC 5424 message that carries its own integrity metadata
  5. The hash chain, exactly: what it catches, what it doesn't, and why
  6. Build the collector: a mutual-TLS syslog server that appends what it receives
  7. Build the sender: a mutual-TLS syslog client that chains as it ships
  8. Run it end to end -- and prove the mutual part by getting rejected without a client cert
  9. Build the verifier: recompute the chain and pinpoint the first break
  10. The attack: edit, delete, and truncate -- and watch the verifier name the spot
  11. When it fails, and how to do it better -- the honest limits and the production versions

Open the full interactive lab →