Using the Recycle Bin in a forensic investigation
4 min read
Of all the Windows artefacts that prove intent, the Recycle Bin is the
cleanest. A file in $Recycle.Bin got there by deliberate action: a
right-click Delete, a Del key in Explorer, a script invoking the shell
delete verb. It is not overwriting, it is not background cleanup, it is
a user (or something running with a user's token) sending the file to
the bin. Every $I answers three investigative questions at once: what,
when, who.
What it proves
- Intent. A
$Iexists because someone or something deliberately performed a shell delete on the file. Differentiating this from background processes is the artefact's strongest property. - Timeline. Sorted FILETIMEs across a SID's
$Ifiles reconstruct the order and pace of deletion. Bursts in the final week of a resignation tell a story almost on their own. - Existence after wiping. If only the
$Rwas wiped, a surviving$Istill proves the file existed, where, when, and how big.
A worked example: departing-employee data destruction
The pattern repeats every quarter somewhere. The flow that holds up:
- Acquire the full
$Recycle.Bintree from every NTFS volume. USB drives that were attached during the window matter too — see where the Recycle Bin lives. - Parse every
$I. Run RBCmd against the acquired tree or drop the files into the in-browser parser. See how to parse $I files. - Attribute by SID. Resolve each
S-1-5-21-…againstProfileListin the registry. See SID subfolders. - Sort by deletion time for the suspicion window (last two weeks
of employment is the usual scope). A burst of deletions of source
code, customer lists, design files, or
*.pstarchives in the final hours of the employee's tenure is a strong signal. - Cross-reference the original paths. Deletions from a synced
cloud folder (
OneDrive,Dropbox), a removable drive, or a project share narrow the story. Cross-pivot to the MFT for the file's history before the delete, and the USN journal for the rename events. - Corroborate execution with Prefetch
hits on archivers (
7z.exe,WinRAR.exe) and shell extensions, plus LNK and jump list traces for files the user accessed shortly before the burst.
A worked example: ransomware self-staging
Adversaries sometimes use the Recycle Bin as a holding area for tools
before execution. The $I records of mimikatz.exe,
PsExec.exe, or a renamed loader, with paths like
C:\Users\<svc>\AppData\Local\Temp\, are forensic gold. They prove the
binary was present and named what you suspect, even if the live
filesystem no longer holds it.
Pivot:
- AmCache for the binary's SHA-1.
- Shimcache for execution evidence.
- EVTX
4688/ Sysmon1for the actual process create.
Real adversary deletion tricks
A competent operator does not use the Recycle Bin for their own clean-up
because every $I is a confession. They reach for, in rough order of
sophistication:
- Shift-Delete. Bypasses the bin. No
$Irow. Absence of a$Ifor a file you know existed is itself an indicator — pair with USN journal evidence of theFILE_DELETEreason. sdelete -p 3 -zor similar. Overwrites then deletes. Often leaves Prefetch traces ofsdelete.exeitself.fsutilon the journal. Deleting the USN journal withfsutil usn deletejournal. Detectable: the journal abruptly resets,$UsnJrnl:$Jshrinks, and EVTX may carry the elevation event.- Full bin wipe + cluster overwrite. Empty the bin, then drive heavy disk activity to overwrite freed clusters. Defeats content recovery; does not defeat MFT entries or shadow copies.
Cautions for the report
- The FILETIME is when the item entered the bin. Not creation, not last-modified, not last-opened. Pair with MFT timestamps for the rest of the file's lifecycle.
- A user who empties the bin removes both
$Iand$R. Recover from shadow copies, the USN journal, or cluster carving. - Service accounts and SYSTEM occasionally generate
$Ientries from installers and scheduled tasks. SYSTEM-context deletions are not always interesting; verify with EVTX 4688 / Sysmon 1 before treating them as adversarial.
Further reading
Frequently asked questions
- What can the Recycle Bin prove in an investigation?
- That a specific file (by name, size, and original path) was intentionally deleted, and the exact UTC timestamp it happened. That timeline is often the strongest evidence of intentional data destruction.
- Is Recycle Bin evidence admissible in court?
- Yes. As with any digital artifact, document the acquisition chain of custody and the parsing methodology. The $I structure is well-documented and reproducible, which supports admissibility.
- Can a $I record exist without its $R file?
- Yes. If the $R content was wiped or recovered but the $I survived, you still have proof the file existed and when it was deleted — a common anti-forensic blind spot.
- How do I attribute a deletion to a specific user?
- Each $I file sits under a user-SID subfolder of $Recycle.Bin. Resolve the SID to an account to attribute the deletion to that user profile.