Lion Cipher Lab

Validate a CloudTrail-style digest chain and catch a deleted log (and see what it can't catch)

Why it matters

CloudTrail is the record of who did what in an AWS account, and in a cloud incident it is often the ONLY record. That makes it the first thing a careful intruder goes after: erase the CreateAccessKey that gave them persistence, rewrite the source IP, or just turn logging off for a while. Log file validation is AWS's answer, and the beginner lab had you switch it on. But a checkbox you do not understand is a checkbox you will over-trust. An investigator who says 'validation passed, so the logs are complete' is making a claim the mechanism does not support. Validation proves that the files that…

What you'll learn

Steps in this lab

  1. What validation promises, in plain terms (and what this replica is)
  2. Set up: a scratch folder, Python, openssl, and a signing keypair you own
  3. Generate 8 hours of synthetic logs and their signed, chained digests
  4. Verify one digest signature by hand with openssl
  5. Write the validator: newest digest first, then walk the chain back
  6. Build six tampered copies of the bucket (the pristine one is never touched)
  7. Measure what the chain catches: edit, delete-log, delete-digest, forge
  8. The honest negatives: injection, tail truncation, and a StopLogging gap all pass
  9. Close the gaps: freshness, Object Lock, a separate archive account, and alerts
  10. The judgment: what 'validate-logs passed' lets you say, and how a pro uses it

Open the full interactive lab →