How to Audit Registry Key Changes with Regedit
Auditing registry key modifications in Windows allows administrators
to track changes, identify unauthorized tampering, and maintain system
integrity. This guide explains how to enable registry auditing at the
operating system level, apply granular audit settings to specific keys
using the Registry Editor (regedit), and verify
modification events within the Windows Event Viewer.
Step 1: Enable the Registry Audit Policy
Before Windows can record registry access attempts configured in
regedit, the system-wide audit policy must be enabled.
- Press Win + R, type
secpol.msc, and press Enter to open the Local Security Policy editor (or usegpmc.mscfor domain environments). - Navigate to Security Settings > Advanced Audit Policy Configuration > System Audit Policies - Local Group Policy Object > Object Access.
- Double-click Audit Registry.
- Check both Success and Failure.
- Click Apply, then OK.
Step 2: Configure Audit Policies in Regedit
Once global auditing is enabled, define specific audit entries on the desired registry keys.
- Press Win + R, type
regedit, and press Enter to open the Registry Editor. - Navigate to the registry key you want to monitor (e.g.,
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run). - Right-click the key and select Permissions.
- Click the Advanced button to open Advanced Security Settings.
- Switch to the Auditing tab. If prompted for administrator permissions, click Continue.
- Click Add to create a new audit entry.
- Click Select a principal, type
Everyone(or a specific user/group), and click OK. - Configure the entry:
- Type: Select All, Success, or Fail.
- Applies to: Choose This key and subkeys (or This key only).
- Click Show advanced permissions and select the
specific actions to monitor:
- Set Value: Logs modifications to existing values or newly created values.
- Create Subkey: Logs when new subkeys are added.
- Delete: Logs when values or subkeys are removed.
- Write DAC: Logs attempts to change key permissions.
- Write Owner: Logs attempts to change key ownership.
- Click OK, then Apply, and close all open dialog boxes.
Step 3: Monitor Registry Changes in Event Viewer
Windows records tracked actions to the security log.
- Press Win + R, type
eventvwr.msc, and press Enter. - Navigate to Windows Logs > Security.
- Filter the log for the following Event IDs:
- Event ID 4657: A registry value was modified (includes process name, old value, and new value).
- Event ID 4663: An attempt was made to access an object.
- Event ID 4660: An object was deleted.
- Open the events to review the timestamp, the user account responsible, the process used to modify the key, and the specific data that changed.