Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Are Shellbags?

Shellbags are registry entries that remember how a user arranged a folder window, and in doing so record that the user opened that folder, even if it was deleted years ago.

Illustration for the cybersecurity term Shellbags
Home / Blog / Cybersecurity Terms / What Are Shellbags?
17 November 2026

What Are Shellbags?

What Are Shellbags?

Shellbags are the registry entries Windows Explorer uses to remember how you left a folder: the view mode, the window size and position, the sort order. They exist for convenience. For an examiner they answer a different question entirely, namely whether a particular user opened a particular folder, and roughly when.

They are among the most useful artefacts in an insider investigation, because they persist after the folder is deleted, after the USB drive is unplugged, and after the network share is disconnected.

Where They Live

Shellbag data is stored per user, split across two hives:

The BagMRU tree mirrors the folder hierarchy the user navigated. Each key holds one or more ShellItem structures describing a folder, and a numbered reference into Bags holding the view settings. Reconstructing the path means walking the tree and decoding each item in turn, which is why a parser is essential.

What a ShellItem Contains

Beyond the folder name, the structures frequently carry:

The last point is what makes shellbags valuable in intellectual property cases. An entry for E:\ProjectArchive\2026 on a volume matching a USB stick, created at 23:40 on a Friday, is evidence that the user interactively browsed that location on that device.

Parsing Them

Eric Zimmerman’s SBECmd is the standard tool, and it handles both hives:

SBECmd.exe -d C:\Cases\RegistryHives --csv C:\Cases\out

ShellBags Explorer presents the same data as a navigable tree, which is often clearer when explaining a finding to a non-technical audience. Most commercial forensic suites parse shellbags automatically, and the registry transaction logs should be replayed into the hives before parsing so that recent entries are not missed.

The Caveats That Decide Cases

Shellbags are strong evidence, and they are also routinely overstated. Four limitations matter:

  1. They record Explorer activity, not all access. A folder reached by command line, PowerShell, or a program’s open dialog may produce no shellbag at all. Absence proves nothing.
  2. The key timestamp is the last write. The registry key’s last-write time reflects the most recent update to that bag, not every visit. A folder browsed fifty times leaves one timestamp.
  3. Some entries are created programmatically. Software that enumerates folders through the shell interface can create bags without a human opening a window, so a single isolated entry is weaker evidence than a sequence of them.
  4. The embedded timestamps describe the folder, not the browsing. The created and modified values inside a ShellItem belong to the folder at the moment the entry was recorded, which is useful but frequently misread as a visit time.

Corroboration is what turns a shellbag into a finding. Pair it with prefetch files showing an archiving tool ran, $MFT and USN Journal records showing the files were copied, and USBSTOR entries showing the device was connected within the same window. Each on its own invites an alternative explanation; together they rarely do.

These artefacts form part of the standard triage collection our analysts take during Investigation and Incident Response Services, alongside the other registry sources that establish what a user did on a machine.

FAQ – Frequently Asked Questions

Do Shellbags Prove a User Opened a Folder?

They are good evidence that the folder was accessed through Windows Explorer under that user’s profile. They do not prove the person was physically present, and some entries can be created by software using the shell interface rather than by a human. A sequence of related entries, corroborated by other execution and file access artefacts, is much stronger than a single isolated bag.

Do Shellbags Survive Folder Deletion?

Yes, and that is their main investigative value. The registry entry describes a folder that existed at the time it was browsed, so it remains after the folder is deleted, after a USB device is removed, and after a network share is disconnected. Examiners regularly reconstruct the structure of a deleted archive directory entirely from shellbag data.

Which Registry Hive Holds Shellbag Data?

Both NTUSER.DAT and UsrClass.dat, in the user’s profile directory. On current Windows versions the majority of local folder entries sit in UsrClass.dat under Local Settings, while NTUSER.DAT historically carried network and remote locations. Collect and parse both hives, and replay their transaction logs first so the most recent writes are included.

Can Shellbags Show Access to a USB Drive?

Yes. Entries for folders on removable media persist after the device is disconnected and often include volume identifiers. Cross-referencing those with USBSTOR registry keys, which record connected device serial numbers and first and last connection times, lets an examiner tie browsing activity to a specific physical device rather than merely to a drive letter.

Related Terms

You May Be Interested In These

What Is Loyalty Programme Abuse?

Cybersecurity Terms

17 November 2026

What Is Loyalty Programme Abuse?

Read More
What Is Secure Software Development?

Cybersecurity Terms

17 January 2021

What Is Secure Software Development?

Read More
How Do You Configure a Cloud WAF?

Cybersecurity Terms

17 November 2026

How Do You Configure a Cloud WAF?

Read More