Skip to content

ShellBags

Evidence: ShellBags
Description: Enumerate ShellBags
Category: System
Platform: windows
Short Name: sbgs
Is Parsed: Yes
Sent to Investigation Hub: Yes
Collect File(s): No

ShellBags are Windows Registry artifacts that track folder access and view preferences in Windows Explorer. When a user opens a folder in Explorer, Windows creates a ShellBag entry to remember the folder’s view settings (icon size, column sort order, etc.).

ShellBags persist even after folders are deleted, providing evidence of folder access including folders on external drives, network shares, and deleted directories.

This collector gathers structured data about shellbags.

FieldDescriptionExample
UsernameUser account nameuser
DomainNameDomain nameWORKSTATION01
KeyPathRegistry key pathSoftware\Microsoft\Windows\Shell\BagMRU\0\1
ValueRegistry value name2
TypeShell item type49
ViewView type0
CachedFileModifiedCached modification time2023-10-15T14:30:00
CachedFileAccessedCached access time2023-10-15T15:45:00
CachedFileCreatedCached creation time2023-10-01T10:00:00
PathFull folder pathC:\Users\user\Documents\Project
SlotModifiedTimeSlot modification time2023-10-15T16:00:00
MFTEntryMFT entry number12345
MFTSequenceMFT sequence number1
FileExistsWhether folder currently existsTRUE
FileModifiedCurrent modification time2023-10-15T14:30:00
FileAccessedCurrent access time2023-10-15T15:45:00
FileCreatedCurrent creation time2023-10-01T10:00:00
RegPathPath to source registry hiveRegistry/ntuser.dat

This collector:

  • Collects user registry hives (ntuser.dat, UsrClass.dat)
  • Searches for ShellBag registry keys in various locations:
    • Software\Microsoft\Windows\Shell\BagMRU
    • Software\Microsoft\Windows\ShellNoRoam\BagMRU
    • Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU
    • Local Settings\Software\Microsoft\Windows\Shell\BagMRU
  • Parses binary shell item data using libfwsi
  • Recursively processes nested ShellBag entries
  • Compares cached timestamps with current file system state

ShellBags provide evidence of folder access that persists even after deletion. Investigators use this data to prove folder access on external drives, establish user interaction with specific directories, detect access to deleted folders, identify network share usage, track folder access on removable media, reconstruct user navigation patterns, and correlate folder access with other user activity.