Chapter 6 · Reading 1 of 3
Hives, accounts and identifiers
CHFI domains 4, 5, 6 · GCFE: Forensic methods, Windows filesystems and Registry foundations; Windows accounts and user activity
The Kestrel County 911 workstation K911-DISP-03 has two dispatcher profiles: dhollis, who works days, and aperez, who works evenings. A confidential incident report was opened on this machine before it appeared on a news site. Windows records a great deal about each user in the registry, but only if the examiner knows which file holds which user’s records and how to tie a profile back to an account.
The registry lives in hive files
The Windows Registry is a hierarchical database of configuration and activity. It is organized into keys (like folders) that hold values (named data). On disk, it is stored in hive files.
| Hive | File location | Typical evidence |
|---|---|---|
| SAM | C:\Windows\System32\config\SAM | Local accounts, RIDs, last logon, login count, password changes |
| SECURITY | C:\Windows\System32\config\SECURITY | Local security policy, cached domain credential data |
| SOFTWARE | C:\Windows\System32\config\SOFTWARE | Installed programs, ProfileList, Windows version, network profiles |
| SYSTEM | C:\Windows\System32\config\SYSTEM | Computer name, time zone, services, USB devices, Shimcache |
| NTUSER.DAT | C:\Users\<user>\NTUSER.DAT | Most user activity: recent documents, typed paths, searches, UserAssist |
| UsrClass.dat | C:\Users\<user>\AppData\Local\Microsoft\Windows\UsrClass.dat | ShellBags for folder navigation (Chapter 7) |
| Amcache.hve | C:\Windows\AppCompat\Programs\Amcache.hve | Program files present and run (Chapter 7) |
A running system’s hives are locked, so they are collected from an image or with a tool such as KAPE that reads them through the raw file system. Each hive has transaction logs, .LOG1 and .LOG2, holding recent changes not yet written into the hive itself. A hive collected without them may be dirty and missing its most recent changes. Registry Explorer and RECmd (Eric Zimmerman’s tools) replay the logs and can recover deleted keys and values. RegRipper runs plugins that extract and explain known keys.
Every key has a last-write time
Each key stores a last-write time, the last time any value in that key, or the key itself, changed. Values do not have their own timestamps. That is the most important limit in registry analysis: a key holding twenty values shows only when the most recent change happened, not when each value was written. Some values store their own timestamp in their data, as later readings show.
Tie a profile to an account with its SID
Windows identifies accounts by a security identifier (SID) such as S-1-5-21-3623811015-3361044348-30300820-1112. The long middle section identifies the computer or domain. The final number is the relative identifier (RID), unique within that computer or domain. Well-known RIDs include 500 for the built-in Administrator and 501 for Guest. Accounts created later usually start at 1000 or 1001 and count up.
The SOFTWARE hive’s Microsoft\Windows NT\CurrentVersion\ProfileList key maps each SID to its profile folder through a value called ProfileImagePath. On the dispatch workstation, SID …-1107 maps to C:\Users\dhollis and …-1112 to C:\Users\aperez. Those SIDs end in four-digit RIDs because they are domain accounts. The same SIDs name each user’s Recycle Bin folder and appear in event logs, which lets the examiner join evidence across sources.
Read the SAM for local accounts
The Security Account Manager (SAM) hive stores local accounts only. Under SAM\Domains\Account\Users, each account has a key named by its RID in hexadecimal, so RID 1003 appears as 000003EB. Its data includes the last logon time, the last password change, the last failed logon, the login count and account flags such as disabled or password not required. Domain accounts are authenticated by a domain controller, so their activity appears in event logs and the ProfileList, not in the local SAM. Kestrel’s workstation also has a local account, dispatch_trn, a shared training login with RID 1003, which the SAM shows logged on at 19:02:44 on 7 November. That is worth explaining: why would anyone use a shared training account on the evening the report was opened?
- NTUSER.DAT in C:\Users\aperez
- ProfileList: path → SID …-1112
- Domain directory: SID → A. Perez
- Event logs: SID’s logon sessions
On the exam, remember which hive answers which question. Accounts on this computer are in the SAM. Profiles and installed software are in SOFTWARE. Hardware, services and the time zone are in SYSTEM. What one user did is in NTUSER.DAT and UsrClass.dat. The time-zone setting in SYSTEM\CurrentControlSet\Control\TimeZoneInformation matters because several user artifacts store local time. The next reading, Tracing user interaction, opens the user hives.
Inspect the three records, then use the evidence to answer the question.
1. User
Name: dispatch_trn RID: 1003
2. Last login
2026-11-07 19:02:44 UTC
3. Logins
Login count: 87
Apply the reading
The SAM shows that account dhollis last logged on at 06:58 and has a login count of 214. Why might a domain account’s sign-ins not appear in the SAM at all?
Compare your reasoning
The SAM stores only local accounts. Domain accounts are authenticated by a domain controller, so their logons are found in event logs, the ProfileList and cached credentials rather than in the local SAM.