Registry Hives
Also called SAM, SYSTEM, SOFTWARE, NTUSER.DAT, UsrClass.dat.
On-disk files backing the Windows registry, each holding distinct forensic value.
What it is
The on-disk files that store the Windows registry tree. System-wide hives (SAM, SECURITY, SYSTEM, SOFTWARE) live under the config directory, while per-user settings live in each profile's NTUSER.DAT and UsrClass.dat.
Where it lives
C:\Windows\System32\config\{SAM,SECURITY,SOFTWARE,SYSTEM,DEFAULT}, plus NTUSER.DAT per user profileWhy it matters
Hives are a dense source of configuration and user-activity evidence (accounts, installed software, services, network history, and per-user actions), and because copies exist in shadow copies and backups, examiners can compare current and historical registry state.
In practice
Parsing the SYSTEM and SOFTWARE hives revealed a malicious service and the install path of an unauthorized remote-access tool.
What to look for
- SYSTEM, SOFTWARE, SAM, SECURITY, NTUSER.DAT and UsrClass.dat.
- Transaction logs holding changes not yet written to the hive.
- Hives copied from shadow copies for earlier states.
Common mistake
Ignoring transaction logs. Recent changes may only exist there until they are committed.
Use it in CyberKit
- Registry Explorer
Walk an offline Registry hive key by key, and decode UserAssist, ShimCache and other binary values.
- Windows Host Case
An alert on a live Windows workstation: read the event logs and the Registry, rebuild the timeline, then decide what to collect.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
Autopsy Open source
A graphical forensics platform that parses file systems and common artifacts. Our notes.
-
Plaso Open source
Builds a super timeline from many artifacts in one image. Our notes.
-
Velociraptor Open source
Collects the same artifacts remotely, without pulling a full disk image. Our notes.
Tools practitioners use
- Eric Zimmerman Tools: MFTECmd, Registry Explorer, PECmd, EvtxECmd & more
- RegRipper: Registry hive parsing with a plugin ecosystem
Read next
- Registry Run Keys: Registry locations that auto-launch programs at logon or boot.
- AmCache: Registry hive recording executed/installed programs with hashes and timestamps.
- ShimCache: SYSTEM-hive cache of executable paths and file times, evidence of presence.