To enable auditing of Windows Registry events when a user opens a registry key through the Remote Registry service (accessed via a named pipe winreg), you can follow these steps:
-
Open Local Group Policy Editor:
- Press
Win + Rand typegpedit.mscthen pressEnter. - If you don't have Local Group Policy Editor, you can use the Registry Editor (
regedit).
- Press
-
Navigate to:
- For Local Group Policy Editor:
Computer Configuration > Windows Settings > Security Settings > Local Policies > Audit Policy - For Registry Editor:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AuditPolicy
- For Local Group Policy Editor:
-
Set the following auditing policies:
- Audit Object Access: Enabled
- Audit Process Tracking: Enabled
- Audit Account Logon Events: Enabled
-
To audit Registry access, create a new registry key:
- For Local Group Policy Editor:
Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment - For Registry Editor:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System
- For Local Group Policy Editor:
-
Create a new DWORD value named
EnableLUAand set its value to1. -
To audit Remote Registry access, create a new registry key:
- For Local Group Policy Editor:
Computer Configuration > Administrative Templates > System > Remote Registry - For Registry Editor:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry\Parameters
- For Local Group Policy Editor:
-
Set the
Security Eventspolicy toEnabled. -
Restart the Remote Registry service:
- Press
Win + Rand typeservices.mscthen pressEnter. - Find
Remote Registry, right-click and selectRestart.
- Press
Now, when a user opens a registry key through the Remote Registry service (accessed via a named pipe winreg), auditing will be enabled, and the related events will be recorded in the Security Event Log.
References:
-
Books:
- Microsoft Windows Server 2012 R2 Inside Out, Microsoft Press, 2013.
- Windows Server 2016 Inside Out, Microsoft Press, 2016.
-
Articles:
-
Online Resources: