← All docs

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 $I exists 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 $I files 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 $R was wiped, a surviving $I still 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:

  1. Acquire the full $Recycle.Bin tree from every NTFS volume. USB drives that were attached during the window matter too — see where the Recycle Bin lives.
  2. Parse every $I. Run RBCmd against the acquired tree or drop the files into the in-browser parser. See how to parse $I files.
  3. Attribute by SID. Resolve each S-1-5-21-… against ProfileList in the registry. See SID subfolders.
  4. 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 *.pst archives in the final hours of the employee's tenure is a strong signal.
  5. 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.
  6. 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 / Sysmon 1 for 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:

  1. Shift-Delete. Bypasses the bin. No $I row. Absence of a $I for a file you know existed is itself an indicator — pair with USN journal evidence of the FILE_DELETE reason.
  2. sdelete -p 3 -z or similar. Overwrites then deletes. Often leaves Prefetch traces of sdelete.exe itself.
  3. fsutil on the journal. Deleting the USN journal with fsutil usn deletejournal. Detectable: the journal abruptly resets, $UsnJrnl:$J shrinks, and EVTX may carry the elevation event.
  4. 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 $I and $R. Recover from shadow copies, the USN journal, or cluster carving.
  • Service accounts and SYSTEM occasionally generate $I entries 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.