Recycle Bin
1. Why the Recycle Bin Matters in Forensics
When a user deletes a file via Windows Explorer, the file often goes to the Recycle Bin instead of being immediately wiped.
This makes the Recycle Bin a “goldmine” for forensic investigators because it can provide:
The original path of the deleted file
The deletion timestamp
The file size and original filename
Even after a user empties the Recycle Bin, deleted content may still be recoverable via unallocated space or parsing Recycle metadata files.
2. How the Recycle Bin Works (Technical Details)
Location: Each volume typically has a hidden system folder named
\$Recycle.Binat its root.Per-User Subfolder: Inside
\$Recycle.Bin, there are subfolders named after user SIDs.File Pairing: For each deleted file, Windows creates two files:
$R...: Contains the actual data / content of the deleted file.$I...: Contains metadata about the deleted file (original path, size, deletion time).
Older Versions (pre-Vista):
Windows XP and earlier used a single
INFO2file to index deleted items, rather than separate$Ifiles.The
INFO2structure stores original path, size, deletion timestamp, and a unique ID.
3. Forensic Value of $I and $R Files
$I and $R Files$I File: Very important, because it includes:
Original full path (where the file was before deletion)
File size
Deletion timestamp (in Windows time format)
$R File: Contains the actual content. If intact, you can recover the file for further inspection.
Recycle Bin Folder Timestamps:
The modification time of the
\$Recycle.Binfolder (or the user’s SID subfolder) can help indicate the last time an item was deleted or restored.
Restore / Undo Behavior:
According to forensic testing, when a file is restored via “Restore” or undo operations, sometimes only the
$Rfile moves back, leaving the$Ifile behind.This can lead to “orphaned”
$Ifiles, which may be valuable evidence.
4. Tools & Techniques for Analysis
Rifiuti2: A popular forensic tool to parse
$Iand$Rfiles. It supports modern Windows recycle bin formats (Vista and later) and older INFO2 formats.Usage example:
rifiuti-vista.exe -x -z -o result.xml <SID-folder-path>
Recbin: Another utility to parse Recycle Bin metadata, particularly
$Ifiles.Manual Analysis:
Use a hex editor on
$Ifiles to extract deletion timestamp, original path, and file size.Investigate the
desktop.inifile inside Recycle Bin directories — it may give hints about folder configuration.
File Carving: If the Recycle Bin has been emptied, you can try carving the unallocated space to recover file content.
5. Forensic Investigation Workflow
Here’s a step-by-step process you might follow when analyzing the Recycle Bin in a forensic investigation:
Acquisition
Acquire a forensic image of the disk / volume.
Ensure
\$Recycle.Bindirectory is included.
Identification
Navigate to
\$Recycle.Bin→ identify subfolders for each user (by SID).Collect all
$I*and$R*files.
Metadata Parsing
Use Rifiuti2 (or similar) to parse
$Ifiles. Extract original path, deletion times, file size.Export results to CSV / XML for timeline analysis.
Content Recovery
Copy
$Rfiles for examination. These are the actual deleted files.If
$Rfile is intact, try opening / inspecting the content (e.g., with appropriate app / hex editor).
Timeline Construction
Use deletion timestamps from
$Ifiles + Recycle Bin folder timestamp to reconstruct when deletions happened.Correlate with other artifacts: event logs, USN Journal, MFT entries, etc.
Restoration / Undo Detection
Identify orphaned
$Ifiles without matching$Rfiles — these may reflect restored files or “undo” operations.Investigate whether deletion / restore pattern is suspicious (e.g., repeated delete + restore).
Reporting
Document each deleted file: original path, size, deletion time, whether the content could be recovered.
Highlight any anomalies: orphan
$Ifiles, repeated delete/restore, unusual file types.
6. Challenges & Limitations
Shift+Delete Bypass: If the user pressed
Shift + Delete, the file bypasses the Recycle Bin entirely, so no$I/$Rpair is created.Emptied Bin: When the Recycle Bin is emptied, both
$Iand$Rfiles are deleted; recovery depends on leftover data in unallocated space.SSD / TRIM Effects: On SSDs with TRIM enabled, deleted data may be erased quickly, reducing recovery chances.
Orphaned Metadata:
$Ifiles may remain without$R(e.g., after restore), complicating interpretation.Time Zone / Timestamp Interpretation: The deletion timestamp in
$Ifiles is often in Windows FILETIME (UTC). Investigation may require converting / adjusting for local time zones.
Last updated