Registry Analysis using Registry Explorer, ShellBags Explorer, and RegRipper
๐ฏ General Introduction
When dealing with a suspect device in a digital forensic context, we often extract registry hive files to analyze user and system behavior. Since we donโt work directly on the live system, we cannot use Regedit.
โ ๏ธ Why can't we use Regedit?
-
Regedit only reads from the current system.
-
It cannot be pointed to read standalone
.dator.hivfiles. -
Therefore, we must use tools that support analyzing Offline Registry Files.
๐งฐ Required Tools
To address this, we use specialized tools to analyze registry files extracted from the target system. The main tools include:
| ๐ ๏ธ Tool | ๐ Function | ๐งพ Supported Files | ๐ก Notable Features |
|---|---|---|---|
| Registry Explorer | Manual Analysis | All Hive Files | Supports deleted keys, transaction logs, read-only |
| ShellBags Explorer | User activity analysis | NTUSER.DAT, USRCLASS.DAT |
Extracts folder and device history |
| RegRipper | Automated analysis reports | All files | Works via CLI/GUI, uses built-in plugins |
๐ First: Registry Explorer
โ Introduction
-
Developed by Eric Zimmerman, a SANS instructor with significant contributions to forensic tools.
-
Offers an interface similar to Regedit but supports independent registry files.
๐ Additional Features:
-
Displays deleted keys and values
-
Advanced search support
-
Displays timestamp (
Last Written Time) for each key -
Read-only support (ideal for forensics)
๐ฅ Download Tool
Can be downloaded from the SANS site or Eric Zimmermanโs Tool List
๐ป Use Cases:
-
When you need to browse registry keys manually.
-
Extracting data such as:
-
Network information
-
Installed software
-
Startup settings
-
Last Write Time
๐ ๏ธ Usage Steps:
-
Download the toolโit comes as a ZIP file.
-
After extraction, ensure you have .NET Framework 4.0 installed.
-
The interface resembles Regedit, but you can manually select an offline registry hive file.
๐งช Registry File Analysis Steps
Dirty Hive Issue:
When opening files like NTUSER.DAT or SOFTWARE, a message may appear:
"The hive appears to be dirtyโฆ transaction logs missing."
Solution via FTK Imager:
-
Open FTK Imager
-
Navigate to
NTUSER.DAT -
Extract the hive along with .LOG1, .LOG2, and .BLF files
- Export them into a working directory:
โ Result:
-
Dirty Hive issue resolved.
-
Tool accurately displays all keys and values.
-
You can search the registry for any key.
๐ Benefit:
-
Once loaded successfully, you can view all keys and values as if inside Regedit and easily search.
-
Go back to Registry Explorer and reload the hive with logs.
- **Associated deleted records**
Deleted records still linked to a known key โ here, total is **0**.
- **Unassociated deleted records**
Deleted records not linked to any active key โ total is also **0**.
- **Unassociated deleted values**
Deleted values not associated with any key.
Manual searching can be tedious, so we move on to complementary tools.
๐งณ Second: ShellBags Explorer
โ What are ShellBags?
ShellBags are keys inside NTUSER.DAT and USRCLASS.DAT used to track:
-
Folders browsed by the user
-
View mode (Details/List/Icons)
-
Last viewed timestamps
-
Connected device names
-
MRU (Most Recently Used) entries
๐ ๏ธ Usage Steps:
-
Download ShellBags Explorer from Eric Zimmermanโs site.
-
Requires .NET Framework.
-
When launched, you can:
-
Analyze live registry (your current system)
-
Or select an offline hive such as
NTUSER.DATorUSRCLASS.DAT
โ ๏ธ Note:
- If you open files like
SAMorSYSTEM, you will see an error such as:
"No MRU Bags found" or "Not a valid ShellBag Hive"
-
Reason: ShellBags Explorer is specifically designed to analyze ShellBag-related registry keys, which exist only in
NTUSER.DAT,USRCLASS.DAT. -
Files like:
SAM,SYSTEM,SECURITYcontain completely different info such as user data, encrypted passwords, system settings, etc. They donโt includeShell\BagMRUorShell\Bagskeys. -
Opening an unsupported file like
SAMorSYSTEMleads the tool to not find expected keys, hence the error message.
๐ Notes:
-
Only works with:
NTUSER.DAT,USRCLASS.DAT -
Opening
SAMorSYSTEMshows no ShellBags data.
๐ก Example:
-
Opened
NTUSER.DATof user โAhmedโ. -
Dirty files were detected and handled using log files.
-
Data shown includes:
-
Connected devices like IronMan, BumbleBee
-
Folders browsed such as
SANS,iLearn Security,Work -
Search keywords like
forensics,Digital Forensics for Linux, etc.
Image taken from course lab project because nothing useful appeared when I tested this part on my own system.
๐ Third: RegRipper
โ Introduction
RegRipper is a powerful tool that performs automated analysis of registry hives using pre-built plugins.\ It works on both Windows and Linux and comes in two versions:
-
Command Line =>
rip.exe -
GUI (Graphical Interface) =>
rr.exe
๐ฅ Download Tool
-
Available on GitHub
-
Download as ZIP and extract.
๐ ๏ธ Usage Steps:
GUI Version:
-
Launch the tool and select the hive to analyze (e.g.
SYSTEM,NTUSER.DAT) -
Choose the report output location (e.g. Reports folder)
-
Click "Rip it" to begin analysis
CLI Version:
-
Run
rip.exe -
Specify the desired plugin and hive file:
rip.exe -r C:\Hive\NTUSER.DAT -f userassist > report.txt
๐งพ Example Output:
-
System info:
-
Boot settings
-
Backup/Restore info
-
List of programs launched
-
System usage timeline
๐งพ Output Format:
-
.txtreports with detailed analysis based on plugins -
Easy to read via Notepad++ or grep (Linux)
๐ธ Example report format:
๐ก Example Plugins:
-
userassistโ Opened programs -
servicesโ Active system services -
networklistโ Connected networks -
appcompatcacheโ Recently executed applications
๐ง Important Tips During Analysis
| Tip | Explanation |
|---|---|
| ๐ Extract hives with all associated files | Especially .LOG1, .LOG2, .BLF to avoid Dirty Hive issues |
| ๐งช Never work on original files | Always work on a copy of the files |
| ๐งฐ Use tools together | Use Registry Explorer for manual search, ShellBags for user history, RegRipper for quick reports |
| ๐ต๏ธ Search in multiple places | Sometimes data is in USRCLASS.DAT not just NTUSER.DAT |
| ๐ Document everything | Include notes, timestamps, and findings in separate logs for review |
โ Summary
| Tool | Main Function | File Types | Primary Uses |
|---|---|---|---|
| Registry Explorer | Manual browsing and full analysis | All hives | Key/value analysis, deleted data recovery |
| ShellBags Explorer | User activity tracking | NTUSER & USRCLASS | Device, folder, and timestamp tracing |
| RegRipper | Automated detailed reports | All hives | Comprehensive analysis via multiple plugins |