Sysinternals registry tools
Process Monitor, Autoruns, RegJump, RegDelNull, Registry Usage, AccessChk, PsExec and Sysmon for registry troubleshooting and security.
The free Microsoft Sysinternals suite is the standard toolkit for seeing what the registry is doing. Download single tools from Microsoft Learn or run them straight from \\live.sysinternals.com\tools.
Process Monitor: what reads and writes a key
Procmon records every registry, file, network and process event in real time. It answers "which value does this app read?" and "what changed when I clicked that checkbox?".
- Start Procmon, then press Ctrl+E to pause capture and Ctrl+X to clear.
- Add filters (Ctrl+L): Process Name is app.exe, Operation begins with Reg, and optionally Path contains Policies.
- Start capture, reproduce the action, stop capture.
- Look at
RegQueryValueresults with NAME NOT FOUND: those are settings the app checks that you could set.RegSetValuerows show what it changes.
Tools > Registry Summary groups activity per key. Boot logging (Options > Enable Boot Logging) captures activity during startup and sign-in, which is useful for slow logons on VDAs.
Autoruns: everything that starts automatically
Autoruns lists every autostart location: Run and RunOnce keys, services, drivers, scheduled tasks, Winlogon, Explorer shell extensions, image hijacks and more. Hide Microsoft entries, check VirusTotal results, and untick an entry to disable it without deleting it. autorunsc.exe exports the same data as CSV for many machines, and it can analyse an offline system.
RegJump: open Regedit at a path
regjump HKLM\SYSTEM\CurrentControlSet\Services\TermService
regjump -c # jump to the path that is on the clipboard
RegDelNull: keys you can't delete
Malware and some buggy installers create keys with an embedded null character, which Regedit can't open or delete. RegDelNull finds and deletes them:
regdelnull HKLM\SOFTWARE -s
Registry Usage (RU): what is filling a hive
ru -h C:\Users\Default\NTUSER.DAT # usage of an offline hive file
ru -l 3 HKLM\SOFTWARE # top three levels of a live key
Useful when profiles or the SOFTWARE hive grow abnormally large on session hosts.
AccessChk and AccessEnum: who can change a key
accesschk -k -w "Users" HKLM\SOFTWARE # keys that members of Users can write
accesschk -k -s -w "Everyone" HKLM\SYSTEM\CurrentControlSet\Services
Writable service keys are a privilege-escalation risk. AccessEnum gives the same view in a GUI.
PsExec: see the registry as SYSTEM
psexec -s -i regedit.exe
Opens Regedit as LocalSystem so you can read HKLM\SAM and HKLM\SECURITY or test what a SYSTEM-context deployment script sees in HKCU. Use it on test machines.
Sysmon: continuous registry auditing
Sysmon logs registry events to the event log: event ID 12 (key or value created or deleted), 13 (value set) and 14 (key or value renamed). Configure it to watch persistence locations such as Run keys, services and Winlogon, and forward the events to your SIEM.
References: Process Monitor, Autoruns, RegJump, RegDelNull, Registry Usage, AccessChk, PsExec, Sysmon.