Project — Digital Forensics
forensic-system-carver
A deep recovery engine for a single disk image. Carves deleted files from unallocated space, reconstructs NTFS metadata, and visually correlates every hit.
Deleted does not mean gone. It means unallocated, and someone has to go into the raw bytes and pull it back.
What it is
One disk image, six automated phases. It hashes the image with MD5 and SHA-256, sweeps raw bytes for ASCII and UTF-16 strings, bulk recovers deleted files with The Sleuth Kit (mmls, fls, tsk_recover, fsstat), and carves unallocated sectors by matching raw file signatures. Every hit is validated and cross referenced against surrounding NTFS records to tie loose byte fragments back to a real filename and timestamp. E01 images mount through ewfmount.
What it does
Standard carvers stop at raw recovery; this one correlates what it pulls back. It ranks carved images against recovered files using perceptual hashing, built on Pillow, matching pictures by visual structure even after their bytes are re encoded or renamed. Targets and carve signatures are configured in YAML or JSON. Every run writes an append only JSONL audit log and a state.json checkpoint for instant resume. The image stays strictly read only, and external tools run as direct argument lists with zero shell injection surface.