Lion Cipher Lab

Carve transferred files out of a PCAP with tshark

Why it matters

When an investigation hands you a packet capture, the question is rarely "did traffic happen" — it's "what left the building, and can I get it back?" Carving the actual files out of a PCAP turns a wall of packets into evidence you can hash, scan, and submit. tshark does the reassembly for you, so you spend your time on the forensic question, not the protocol. Just as important is knowing when carving quietly fails — encrypted traffic and gappy captures both hand you nothing, or worse, a truncated file that looks real. An analyst who trusts a carved object without checking its hash and its…

What you'll learn

Steps in this lab

  1. What "carving" means here — and the boundary
  2. Make a known payload and fingerprint it
  3. Capture the transfer on loopback
  4. Carve the file back out and prove it matches
  5. Read what actually crossed the wire
  6. Honest limit 1 — TLS defeats carving
  7. Honest limit 2 — a truncated capture carves a broken file
  8. What carving proves — and what it doesn't

Open the full interactive lab →