Digital Forensic Tools

The Windows registry

Short answer

The registry is a database where Windows and programs store settings. It also keeps traces of user activity, so examiners read it to learn what happened on a computer.

What the registry is

The registry is a tree of keys and values, a bit like folders and files. Windows, drivers and programs save their settings in it. Because so much happens through these settings, the registry also records many traces of what users and programs did.

The registry is not one file. It is built from several files called hives. When Windows runs, it shows them together as one tree.

Main hives and where they live

The system hives SYSTEM, SOFTWARE, SAM and SECURITY are stored in the folder C:\Windows\System32\Config. Each user also has a personal hive called NTUSER.DAT in the user profile folder. A second per-user file, UsrClass.dat, sits under the user's AppData\Local\Microsoft\Windows folder.

  • SYSTEM: hardware, services, USB history, computer name.
  • SOFTWARE: installed programs and Windows settings.
  • SAM: local user accounts.
  • NTUSER.DAT: one user's settings, recent files, run history.
  • Amcache.hve: a separate hive that lists programs seen on the system.

Reading it as evidence

Each key stores a last write time, which is the last time that key or one of its values changed. Individual values do not have their own time. Examiners copy the hive files from an image and open them in a registry viewer. A live system keeps the hives locked, so work from an image or use a collection tool.

Hives also come with transaction log files (.LOG1 and .LOG2). Recent changes may sit only in these logs, so keep them with the hive and use a tool that can apply them.

Example

An examiner receives a disk image from a staff laptop. She exports NTUSER.DAT and the SYSTEM hive with their log files. In a registry viewer she can then see which user ran which recent programs and which USB drives were connected.

Common mistakes

  • Browsing the registry of the live suspect computer instead of working from a copy.
  • Forgetting to copy the transaction log files with the hive.
  • Treating a key's last write time as the time of a value inside it.
  • Looking only at the user hive and ignoring the system hives, or the other way round.

Key terms

Hive
A registry file on disk that holds one part of the registry tree.
Key
A folder-like entry in the registry that can hold values and other keys.
Value
A named piece of data stored inside a key.
Last write time
The time a key was last changed.

Questions you may be asked

Where are user-specific registry settings stored?

In the NTUSER.DAT file in the user's profile folder, and UsrClass.dat for some shell data.

Does a value have its own timestamp?

No. Only the key has a last write time, so you cannot tell which value in the key changed.

Free tools to practise with

Learn more

Written in our own words from public forensic training material and standards. Last reviewed 24 Nov 2026. Procedures and laws differ by country and agency. Follow your own lab's procedure.