Lion Cipher Lab

Find the last clean backup before ransomware, with entropy and magic bytes

Why it matters

When ransomware hits, the question that decides how bad the week gets is not 'do we have backups?' -- it is 'WHICH backup is clean?' The instinct is to restore the newest snapshot from before the ransom note appeared. That instinct is wrong more often than people expect, because the note marks the loud night, not the first night: attackers frequently sit inside a network for days, and modern ransomware often encrypts only part of each file to move faster, so damage can quietly accumulate in several nightly backups before anyone notices. Restore the wrong one and you bring the damage back,…

What you'll learn

Steps in this lab

  1. The recovery question, and every term you need
  2. Why 'the newest backup before the ransom note' is a trap
  3. Generate 14 nights of synthetic backups
  4. Write the scanner: entropy, block sampling, magic bytes, change rate
  5. Measure the BEFORE: change rate and the naive restore point
  6. Entropy alone: false positives every night, and it still misses
  7. The full scanner: find the last clean restore point
  8. Per-file restore vs rolling the whole share back
  9. The honest negatives, measured
  10. When to use this, why it works, and how to do it better
  11. What you built, and the reflex to keep

Open the full interactive lab →