Lion Cipher Lab

Recover earlier versions of a PDF from its incremental updates

Why it matters

Invoice and payment fraud often comes down to one question: what did this document say when it was approved, and who changed it afterwards? PDFs are unusually good witnesses, because the format lets a program save changes by appending them to the end of the file instead of rewriting it. The original bytes stay where they were, so an edited invoice can still carry the version that was signed, with the old amount and the old bank details intact. Investigators who know this can recover the earlier version in minutes and show exactly which objects changed and when the editing software says it…

What you'll learn

Steps in this lab

  1. Why a saved PDF can still contain the version before it
  2. Build four evidence files by hand
  3. Read the end of the file the way a PDF reader does
  4. Count revisions two ways and watch the shortcut fail
  5. Open the recovered revisions
  6. Diff the revisions: which objects, which dates, which text
  7. Why a raw search found the old amount and missed the new one
  8. What the signature proves, and what it does not
  9. Honest limits: where this method stops
  10. When to reach for this, and how a professional does it

Open the full interactive lab →