Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Is Windows Registry Forensics?

The Windows registry records program execution, device connections, network history, and persistence in a hierarchical database that attackers rely on and rarely clean thoroughly.

Illustration for the cybersecurity term Windows Registry Forensics
Home / Blog / Cybersecurity Terms / What Is Windows Registry Forensics?
17 November 2026

What Is Windows Registry Forensics?

What Is Windows Registry Forensics?

The Windows registry is a hierarchical configuration database, and almost incidentally it is one of the richest forensic artefacts on the system. It records which programs were present and which ran, which devices were connected, which networks the machine joined, which documents were opened, and where an attacker arranged to be restarted after a reboot.

Attackers depend on it heavily for persistence, which gives examiners an advantage: a backdoor that survives a restart must have left something behind, and the registry is usually where that something is.

The Hives and Where They Live

Each hive has .LOG1 and .LOG2 transaction logs alongside it. Recent writes may exist only in those logs and not yet in the hive itself, so a collection that omits them loses exactly the entries an investigation cares about most. Replay them with Eric Zimmerman’s Registry Log Replay before parsing.

Artefacts Worth Knowing by Name

Execution and presence. AppCompatCache, usually called ShimCache, under the Session Manager key in SYSTEM, records file paths and modification times; on Windows 10 and later it is evidence of presence rather than of execution, and holds around 1,024 entries. Amcache stores paths, publishers, and SHA-1 hashes of binaries, which is useful for matching against threat intelligence. UserAssist in NTUSER.DAT records graphical program launches with run counts and focus time, with the value names encoded in ROT13. The Background Activity Moderator keys under SYSTEM list executables run per user account with last execution times.

Persistence. Run and RunOnce keys in both machine and user hives, the Services key, Winlogon Shell and Userinit values, image file execution options and debugger entries, AppInit_DLLs, COM object hijacks under CLSID, and scheduled task definitions mirrored into the registry. Comparing these against an earlier copy from a shadow copy is the fastest way to isolate what changed.

Devices and networks. USBSTOR and MountedDevices record removable media by serial number, with first and last connection times, and the NetworkList profiles under SOFTWARE record every network the machine joined, with the first and last connected timestamps and the gateway MAC address.

User activity. RecentDocs, TypedPaths, RunMRU, the Open and Save dialog histories, and mapped network drives.

Tools

RegRipper runs plugin sets against a hive and produces readable output oriented around investigative questions. Registry Explorer presents hives interactively, replays transaction logs automatically, and recovers deleted keys and values from unallocated space within the hive, which matters because deletion marks a cell as free rather than wiping it. For bulk work across many hosts, Velociraptor queries registry artefacts remotely at scale.

Reading It Carefully

Two habits separate a solid registry finding from a weak one. The first is to use key last-write times correctly: they tell you when the key was last modified, not when each value within it was set, and a key with twelve values carries one timestamp. The second is to understand what each artefact actually proves. ShimCache entries on modern Windows demonstrate that a file existed at a path, not that it ran, and saying otherwise in a report is the sort of error that unravels under cross-examination.

Corroborate across artefacts as a matter of course: an Amcache entry with a hash, a prefetch file with run times, a Security event log process creation record, and a service key created in the same minute together describe an event that no single source establishes alone.

Registry hives are part of the standard triage collection in our Investigation and Incident Response Services, because they are small, fast to parse, and frequently answer the scoping question before the disk images have finished copying.

FAQ – Frequently Asked Questions

Why Must Registry Transaction Logs Be Collected Too?

Because Windows writes changes to the .LOG1 and .LOG2 files before committing them into the hive, recent modifications may exist only in the logs. Parsing a hive without replaying them can miss precisely the entries created during an intrusion. Collect the hive and both logs together, replay them into a working copy, and then parse the result.

Does ShimCache Prove a Program Was Executed?

On Windows 10 and later, no. The AppCompatCache records that a file existed at a given path with a given modification time, which can result from the file simply being enumerated rather than run. Earlier Windows versions behaved differently. Treat it as evidence of presence and corroborate execution with prefetch, Amcache, process creation events, or endpoint telemetry.

Can Deleted Registry Keys Be Recovered?

Often, yes. Deleting a key or value marks the cell as available for reuse rather than overwriting it, so the data commonly survives inside unallocated space within the hive file. Registry Explorer and similar tools recover these cells and present them separately. An attacker who removes a persistence key may therefore leave it entirely readable.

Which Registry Artefact Shows USB Device Use?

USBSTOR under the SYSTEM hive records connected mass storage devices by vendor, product, and serial number, with first and last connection times available through associated keys. MountedDevices links devices to drive letters, and the user’s shellbags can show which folders on that device were browsed, which together tie a specific device to specific file access.

Related Terms

You May Be Interested In These

What Is the DROWN Attack?

Cybersecurity Terms

17 November 2026

What Is the DROWN Attack?

Read More
What Is Secrets Management?

Cybersecurity Terms

17 November 2026

What Is Secrets Management?

Read More
What Is Autopsy?

Cybersecurity Terms

17 November 2026

What Is Autopsy?

Read More