The Windows registry: how it works
How the Windows registry is built: hive files and where they are, keys and values, last write time, transaction logs, earlier copies, the main keys of forensic interest.
The registry files
| File | Where it is | What it contains |
|---|---|---|
| SAM | Windows\System32\config | Local accounts, groups, logon dates |
| SYSTEM | Windows\System32\config | Hardware configuration, USB devices, services, time zone, BAM |
| SOFTWARE | Windows\System32\config | Installed programs, Windows version, networks joined |
| SECURITY | Windows\System32\config | Security policies |
| NTUSER.DAT | Each user’s folder | The individual user’s activity: recent documents, programs started, searches |
| UsrClass.dat | The user’s AppData\Local\Microsoft\Windows | ShellBags: the folders viewed |
| Amcache.hve | Windows\AppCompat\Programs | Programs run or present, with the files’ SHA-1 hashes |
Keys, values and dates
The registry is organised in keys, similar to folders, which contain values. Each key has a single date, its last write time: it says when something inside it changed, not what. Some values in turn contain their own dates, often in FILETIME format and in UTC.
The Windows registry: step-by-step procedure
The stages of forensic registry analysis: acquiring hive files with transaction logs, time zone, mapping users, USB devices, program execution, files and folders, networks, autostart, correlation and documentation.
The pages of this topic
Back to the overviewThe Windows registry: tools
The tools for analysing the Windows registry: Registry Explorer and RECmd, RegRipper, Autopsy, commercial forensic suites, and why Registry Editor must not be used on the computer under examination.
The Windows registry: mistakes to avoid
The most common mistakes in registry analysis: working on the live system, ignoring transaction logs, misreading last write time, taking ShimCache as proof of execution, getting the user wrong, forgetting the time zone, reading absence as proof.
The Windows registry: value in court
The value of registry traces as evidence: provenance and integrity of the files, precise meaning of each key, degrees of certainty, confirmation from other artefacts, attribution to the user, repeatability.
The Windows registry: case study
A company laptop returned “clean” after a contested departure: the registry shows an external drive connected, a wiping program run the day before and an outside Wi-Fi network.
The Windows registry: checklist
The checks for a correct analysis of the Windows registry.
The Windows registry: frequently asked questions
Short answers to the most common questions about forensic analysis of the Windows registry.