🖥️
Windows DFIR
  • Introduction
  • Windows Artifacts
    • Windows Quick Tips
      • Windows Command Line
      • Workstation File/Folder Locations
      • Server File/Folder Locations
    • Account Usage
      • Authentications SAM Artifacts
        • Last Login
        • Last Failed Login
        • Last Password Change
      • Authentications (Windows Event Log)
        • Logon ID
      • Group Membership
        • Event ID: 4798
        • Event ID: 4799
      • RDP
        • Source System Artifacts - Quick Reference
        • Destination System Artifacts - Quick Reference
      • SSH
      • Rouge Local Accounts
      • CrowdStrike Searches
        • Event Name - UserLogon
        • Event Name - UserLogonFailed
        • Event Name - UserLogonFailed2
        • Event Name - SsoApplicationAccess
    • Browser Usage
      • History & Downloads
        • Viewing History Files - DB Browser
        • Transition Types
      • Auto-Complete Data
      • Bookmarks
      • Browser Preferences
      • Cache
      • Cookies
      • Extensions
      • Super Cookies (HTML5 Web Storage)
      • Media History
      • Private Browsing
      • Session Restore
      • Stored Credentials
      • Suggested/Frequent Sites
      • DB Browser Queries
        • Firefox
        • Chrome
        • Media History
      • PowerShell Scripts
        • Browser Extension Finder
        • Browser History Finder
    • Processes
      • at.exe
      • explorer.exe
      • lsass.exe
      • lsaiso.exe
      • PuTTy.exe
        • X11 Forwarding
      • runtimebroker.exe
      • services.exe
      • smss.exe
      • System
      • svchost.exe
        • Services
      • winlogon.exe
      • wininit.exe
    • Cloud Storage
    • Deleted File or File Knowledge
      • WordWheelQuery (Win 7+)
      • ACMRU (Win XP)
      • Internet Explorer file:///
      • Last Visited MRU
      • Thumbs.db (Win XP)
      • Thumbcache
      • Recycle Bin
      • User Typed Paths
      • Windows Search Database
    • File Download
      • Zone.Identifer
      • Open/Save Most Recently Used (MRU)
      • Email
      • Drive By Downloads
        • Malvertising
      • Web Browsing
        • Cache Files
      • CrowdStrike Searches
        • MoTW
    • Folder/File Opening/Creation
      • Recent Files
      • Office Recent Files
      • Shell Bags
      • .lnk Files
      • Jump Lists
        • AppIDs
      • Prefetch
      • Index.dat file://
      • PowerShell Scripts
        • .lnk Files
    • Persistence
      • Registry
        • NTUSER.DAT & HKU\SID
        • Run and Run Once
        • Shell Folders and UserInit Key
        • Services
        • Logon Scripts
        • Office Add-ins
        • Winlogon Shell
        • Image File Execution Options (IFEO)
        • AppInit_DLLs
        • Scheduled Tasks
      • Scheduled Tasks
        • Scheduled Task Destination System Artifacts
        • Scheduled Task Source System Artifacts
      • Startup
      • Tool: AutoRuns
      • Accounts
      • WMI Event Consumers
        • WMI: Source System Artifacts
        • WMI: Destination System Artifacts
        • WMI: PowerShell Analysis
      • PowerShell Scripts
        • Startup Programs
      • CrowdStrike Searches
        • Files Written to Startup Folder
        • Files Written to Startup Folder from the Internet
        • Local Account Creation/Deletion
        • Azure Account Creation/Deletion
        • Scheduled Tasks
    • Physical Location
      • Time zone
      • Wireless SSID
      • Network History (Vista/Win7–11)
      • Cookies
      • Browser Search Terms
    • Program Execution
      • Prefetch
        • Decoding Prefetch Files with Eric Zimmerman's PECmd Tool
      • BAM/DAM
      • CapabilityAccessManager
      • UserAssist
      • Last Visited MRU
      • RunMRU
      • MUI Cache
      • ShimCache
      • Amcache
      • Jump Lists
    • Shadow Copies
      • VSC Permissions
      • Event ID 8193: Volume Shadow Copy Service Error
    • USB Usage
      • Key Identification
      • Drive Letter and Volume Name
      • Connection Timestamps
      • User
      • Volume Name
      • Plug & Play Event Log
    • Windows Services
      • DoSvc (Delivery Optimization)
    • System Information
    • Event IDs
      • Authentication / Account
        • 4624 - Authentication Success
          • Logon Types
        • 4625 - Authentication Failure
          • SubStatus Codes
        • 4634 - Account Logoff
        • 4648 - Explicit Credentials Success
        • 4672 - Special Privileges
        • 4720 - Account Creation
        • 4722 - Account Enabled
        • 4732 - Addition to Local Group
        • 4738 - Account Changed
        • 4776 - Kerberos Authentication Attempt
          • Substatus Codes
        • 4771 - Kerberos Failure
        • 4768
      • File System
        • 1006
        • 4688 - Process Created
        • 4663
        • 4656
        • 6416
        • 20001
        • 20003
  • Windows DFIR & MITTR
    • Initial Access
      • Content Injection
      • Drive-by Compromise
        • Watering Hole Attack
        • Microsoft Files (Payload Execution)
        • Exploit Delivery
        • Viewing Browser History Files
      • Phishing
    • Execution
    • Persistence
    • Privilege Escalation
    • Defense Evasion
    • Credential Access
      • Logon ID
    • Discovery
    • Lateral Movement
    • Collection
    • Command and Control
    • Exfiltration
    • Impact
  • SOC Related
    • Cached Credentials
    • Domain Controller Password Spraying
Powered by GitBook
On this page
  • Key Insights:
  • Deeper Dive
  • Analyzing The Artifact
  • Tools for Analysis

Was this helpful?

  1. Windows Artifacts
  2. Folder/File Opening/Creation

Shell Bags

Shell bags are forensic artifacts found within the Windows Registry that provide a wealth of information regarding a user's interaction with the file system. They record details about accessed folders, including those on local drives, network shares, and removable devices. Shell bags not only capture the paths of accessed folders but also retain information about folders that have been deleted or overwritten, making them invaluable for forensic investigations to reconstruct user activities.

Key Insights:

  • Primary Data Locations:

    • USRCLASS.DAT\Local Settings\Software\Microsoft\Windows\Shell\Bags

    • USRCLASS.DAT\Local Settings\Software\Microsoft\Windows\Shell\BagMRU

  • Residual Desktop Items and Network Shares:

    • NTUSER.DAT\Software\Microsoft\Windows\Shell\BagMRU

    • NTUSER.DAT\Software\Microsoft\Windows\Shell\Bags

Shell bags provide a detailed account of folder access by each user, encompassing a wide array of data, including timestamps for the file system as well as first and last interaction times with folders. Additionally, shell bags can contain information on "exotic" items, such as mobile device connections, control panel access, and interactions with Zip archives.

Deeper Dive

  • Shell Bags: Shell bags persist user preferences for folder views, such as icon size, window position, and view mode (e.g., list, details), across sessions. This data is stored in the Registry and helps to reconstruct the user's interaction with the file system.

  • BagMRU (Most Recently Used): The BagMRU key tracks the hierarchy of accessed folders, serving as a navigational breadcrumb trail that forensic analysts can follow to determine the sequence of folder accesses.

  • Bags: The Bags key stores detailed settings for individual folders accessed by the user, including display preferences and window sizes.

  • Evidence of Folder Activities: Analysis of shell bags can reveal evidence of folders that have been accessed even after those folders have been deleted. This can be critical in cases where proving the existence or prior presence of specific data or directories is necessary.

Analyzing The Artifact

To analyze shell bags:

  1. Extract the USRCLASS.DAT and NTUSER.DAT files from a user's profile.

  2. Use forensic tools capable of parsing the Windows Registry to access the paths listed under the Key Insights section.

  3. Investigate the BagMRU keys to understand the navigational paths taken by the user.

  4. Examine the Bags keys for specific folder view settings, which can provide context about how the user interacted with the filesystem.

  5. Pay special attention to entries related to removable devices, network shares, and previously existing folders to piece together a comprehensive picture of user activity.

Tools for Analysis

  • Registry Explorer/RECmd: Tools designed for advanced Registry analysis, capable of parsing and interpreting the complex structure of shell bags.

  • Forensic Explorer: A forensic tool that includes capabilities for shell bag analysis, offering a graphical interface to visualize user activities.

  • Autopsy: An open-source digital forensics platform that can analyze shell bags as part of its broader examination of Windows systems.

  • ShellBags Explorer: A specialized tool focused on the extraction and interpretation of shell bag data, providing an intuitive interface for investigators.

Practical Example:

An investigator analyzing a system for a suspected data leak might use shell bags to discover that a user frequently accessed a now-deleted folder on an external USB drive. The shell bags could reveal the folder's name, the times it was accessed, and the settings the user had configured for viewing it, offering leads on what the folder contained and when it was used.

PreviousOffice Recent FilesNext.lnk Files

Last updated 1 year ago

Was this helpful?