Lsass.exe audit mode
Explanation
Enable auditing of Lsass.exe to evaluate feasibility of enabling LSA protection. For more information, see http://technet.microsoft.com/en-us/library/dn408187.aspx
Use cases
Turns on LSA protection audit mode (AuditLevel = 8 on LSASS.exe): Windows logs in the CodeIntegrity/Operational log the modules that would be blocked without blocking them (events 3065 and 3066). It is the preparation step before enforcing RunAsPPL.
Audit mode is on by default on Windows 11 22H2 and later; Smart App Control or kernel debugging can suppress these events.
Microsoft source: Configure added LSA protection
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\LSASS.exe- Value name
AuditLevel
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 8 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: SecGuide/Pol_SecGuide_0203_LsassAudit
$k = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\LSASS.exe'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AuditLevel' -Value 8 -Type DWordDisable
# Disable: SecGuide/Pol_SecGuide_0203_LsassAudit
$k = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\LSASS.exe'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AuditLevel' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": SecGuide/Pol_SecGuide_0203_LsassAudit
$k = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\LSASS.exe'
Remove-ItemProperty -Path $k -Name 'AuditLevel' -ErrorAction SilentlyContinueApplication
Microsoft Security Baseline (MSS, SecGuide) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.