Chapter 5 · Reading 2 of 3
Carving and deleted data
CHFI domains 1, 3, 5, 6
The departing Lumen & Vale employee’s laptop is imaged two days after their last shift. The Desktop is nearly empty, and the Recycle Bin shows nothing in Explorer. The owner believes a client contact list was taken and the evidence deleted. Deleted is not the same as gone. The question is which method can bring it back, and how much a recovered file can prove.
Start with the Recycle Bin’s own records
On Windows Vista and later, deleting a file to the Recycle Bin moves it into C:\$Recycle.Bin\<SID>\, a folder for each user named by their security identifier. The file is renamed with a random suffix as $R followed by the suffix, and a small companion $I file with the same suffix records the original path, the original size and the deletion time. RBCmd, one of Eric Zimmerman’s tools, parses the $I files.
- Original path: C:\Users\nvale\Desktop\client_list.docx
- Original size: 48,230 bytes
- Deleted: 2026-11-04 17:48:09 UTC
- The document itself, renamed
- Same suffix links it to its $I file
- If the Bin was emptied, both are deleted, but may still be carved
Here the Recycle Bin had been emptied, but the MFT records for both files had not yet been reused. The $I record still showed the original name, and the $R file’s data runs pointed to intact clusters. The examiner recovered the document through the file system, which is the strongest kind of recovery, because the metadata ties the content to its name, location and times.
Carve when the file system has forgotten
When no metadata survives, file carving searches raw data, usually unallocated space, for file signatures and extracts what follows. The simplest method is header-and-footer carving: find FF D8 FF, read until FF D9, save the result as a JPEG. PhotoRec recognizes hundreds of formats and uses file-system block sizes to improve its results. Foremost carves using a configurable list of headers, footers and maximum sizes.
- JPEG part 1header
- Other fileunrelated
- JPEG part 2footer
The carver saves all seven clusters as one image. The top of the photo displays correctly, and the rest is corrupted.
Carving has firm limits. A carved file has no name, path or timestamps from the file system, so it can show that content existed on the disk but not when it was created or who saved it. Fragmentation produces partial or corrupted files. Content inside the file, such as Exif data or document properties, may still supply some context. On an SSD with TRIM, unallocated space may have been erased by the drive and carving will find very little.
Extract features across the whole disk
Bulk Extractor scans an entire image, including unallocated space, compressed data and file fragments, for features rather than whole files: email addresses, URLs, credit-card numbers, phone numbers, domain names and network packets. Its histograms show which addresses or domains appear most often. For the studio, a histogram that shows a personal email address hundreds of times near client names is a strong lead worth pursuing through the email evidence in Chapter 10.
Look in places users do not see
NTFS allows a file to have more than one data stream. An alternate data stream (ADS) is an extra, named $DATA attribute, written as file.txt:hidden, that Explorer does not display and that does not change the file’s reported size. Windows itself uses one named Zone.Identifier to mark downloaded files, recording a ZoneId (3 means the internet zone) and often the HostUrl the file came from. That stream is valuable evidence in Chapter 9. A user can also hide an entire file in an ADS. Commands such as dir /r and forensic tools that list all attributes reveal them.
File slack is the space between the end of a file’s data and the end of its last cluster. It can contain remnants of whatever previously occupied the cluster. Unallocated space, slack, the page file and the hibernation file are all places where fragments of deleted material survive.
On the exam, choose the recovery method that keeps the most context. File-system recovery keeps names and times. Carving keeps only content. The recovered client_list.docx answers part of the owner’s question. The next reading, Anti-forensics and its traces, examines what happened four minutes after it was deleted.
Inspect the three records, then use the evidence to answer the question.
1. $I file
Original path: C:\Users\nvale\Desktop\client_list.docx
2. Deleted
Deletion time: 2026-11-04 17:48:09 UTC
3. $R file
$RQ7M2KD.docx present, 48,230 bytes
Apply the reading
PhotoRec carves 312 JPEG files from unallocated space, but 40 of them show only the top half of the image. What is the likely cause?
Compare your reasoning
Those files were probably fragmented. Header-and-footer carving assumes contiguous data, so when the rest of the file sits elsewhere, the carver stitches in the wrong clusters or stops early. The partial images are still evidence, with that limit stated.