File Carving
Also called Data Carving.
Recovering files from raw bytes using signatures, not the file system.
What it is
Carving reconstructs files by scanning raw disk or memory for known header and footer signatures and structures, independent of file-system metadata.
Why it matters
It recovers deleted or otherwise unreferenced data. Files whose directory entries are gone but whose contents still sit in unallocated space or slack.
In practice
Recovering a deleted JPEG from unallocated space by locating its 0xFFD8 header and 0xFFD9 footer.
What to look for
- Known file headers and footers in unallocated space.
- Fragments that carve but will not open, a sign of fragmentation.
- Recovered files whose hashes match known items.
Common mistake
Reporting carved files as if their names and times are known. Carving recovers content only; metadata comes from elsewhere, if at all.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- Windows Artifact Reader
Read a Prefetch file, a shortcut, a Recycle Bin $I file, or a carved MFT or USN record. It detects which one you dropped.
- Collection Plan
Build a host collection command list, ordered by volatility.
- Windows Host Case
An alert on a live Windows workstation: read the event logs and the Registry, rebuild the timeline, then decide what to collect.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
Eric Zimmerman's tools Free
Command line parsers for Windows artifacts such as the MFT, Prefetch and the Registry. Our notes.
-
Plaso Open source
Builds a super timeline from many artifacts in one image. Our notes.
-
Velociraptor Open source
Collects the same artifacts remotely, without pulling a full disk image. Our notes.
Tools practitioners use
- Autopsy: GUI front-end (built on Sleuth Kit) for keyword/artifact analysis
Read next
- Master File Table: The NTFS index of every file, and a goldmine of timestamps.
- Memory Acquisition: Capturing a live system's RAM into an image for analysis.
- Data Exfiltration: Stealing data out of a network to attacker-controlled systems.