The Windows registry: what it reveals about users, programs run, USB sticks and the networks a computer has connected to
How the Windows registry is analysed in a forensic investigation: the SAM, SYSTEM, SOFTWARE, NTUSER.DAT, UsrClass.dat and Amcache files, the keys on accounts, USB devices, programs run, files opened, Wi-Fi networks and autostart, last write times, transaction logs, tools, mistakes and value in court.
The Windows registry is the great archive in which the operating system and programs keep settings and operating information. Nobody consults it in everyday life, but for a digital forensics expert it is one of the richest sources: it tells which users exist and when they last logged in, which programs were installed and run, which USB sticks were connected and when, which files and folders were opened, which Wi-Fi networks the computer joined.
Many of these traces remain even when the user deletes files and histories, because the system writes them for its own operation and they are not visible. But they must be read carefully: each key has a precise meaning, dates do not always say what they seem to, and some traces only prove that a file existed, not that it was opened.
What can be reconstructed
- Users
- Local accounts, creation date, last logon, logon count.
- System
- Windows version, installation date, computer name, configured time zone.
- USB devices
- Make, model and serial number of sticks and drives, first and last connections.
- Programs
- Installations, executions, run counts, last run per user.
- Files and folders
- Recent documents, folders opened, typed paths, searches in File Explorer.
- Networks
- Wi-Fi and wired networks the computer connected to, with dates.
The registry is analysed on the forensic copy and together with other artefacts, such as Prefetch, LNK files and event logs; for the basic entry see Windows registry.
The pages of this topic
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 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 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.