LSA protection

Also known as: Local Security Authority protection

On this page 7

LSA protection, short for Local Security Authority protection, is a Windows security feature that runs the Local Security Authority Subsystem Service (LSASS) as a Protected Process Light (PPL), so that only code signed by Microsoft can load into it or read its memory. In Windows, LSASS enforces the local security policy, authenticates users and holds cached credential material such as NTLM hashes and Kerberos tickets, which makes it the first target of credential theft tools.

The feature first appeared in Windows 8.1 and Windows Server 2012 R2 and is configured through a registry value, Group Policy, mobile device management or the Windows Security app. It does not encrypt or relocate secrets; it raises the bar by denying memory access to non-protected processes, even those running with administrative rights.

How LSA protection shields the LSASS process

LSA protection works by assigning LSASS a protection level in the kernel’s process object. When any process requests a handle to LSASS, the kernel compares the signer level of the caller with that of the target and refuses rights such as PROCESS_VM_READ, PROCESS_VM_WRITE and PROCESS_CREATE_THREAD unless the caller is protected at an equal or higher level.

The same rule applies to code loaded inside LSASS. Authentication packages, security support providers and password filters must carry a Microsoft signature and satisfy the Windows code integrity checks; otherwise the loader rejects them. This closes two classic attack paths at once: dumping LSASS memory and injecting a malicious DLL that harvests passwords as users sign in.

The table below lists the kernel-level elements that make the protection effective and what each one contributes.

ElementRoleEffect on attackers
Protected Process LightMarks LSASS with a protected signer levelHandle requests for memory access are denied
Code integrity checksVerify signatures of modules loaded into LSASSUnsigned plug-ins and injected DLLs fail to load
UEFI variable lockStores the setting in firmware on Secure Boot systemsRegistry edits alone cannot switch it off
WinInit startup checkStarts LSASS with the requested protectionLogs whether protection was actually applied
Building blocks of LSA protection

Configuration options and registry values

The core setting is the RunAsPPL DWORD under HKLM\SYSTEM\CurrentControlSet\Control\Lsa. Its value decides whether protection is enabled and whether it is anchored in UEFI firmware, which matters because a firmware-locked setting survives an attacker who has gained administrative access to the registry.

ValueBehaviorTypical use
0 or absentLSASS runs without protectionLegacy systems with incompatible plug-ins
1Protection enabled with UEFI lock on Secure Boot devicesHardened workstations and servers
2Protection enabled without UEFI lockWindows 11 22H2 and later, easier rollback
RunAsPPL values and their meaning

Since Windows 11 version 22H2, administrators can also use the Group Policy setting Configure LSASS to run as a protected process under System and Local Security Authority, and home users find a toggle named Local Security Authority protection in the Windows Security app under Device security and Core isolation. Windows 11 enables the feature by default on many new installations after an evaluation period that checks for incompatible drivers.

Removing a UEFI-locked configuration requires more than deleting the registry value. An administrator must run the LSA Protected Process Opt-out tool at boot and confirm the change with physical presence, a deliberate design that prevents silent remote disabling.

LSA protection compared with Credential Guard

LSA protection and Credential Guard address the same threat with different isolation boundaries. LSA protection relies on the normal Windows kernel to enforce access rules, whereas Credential Guard uses Virtualization-based security to move secrets into an isolated process, LSAIso, that the kernel itself cannot read.

FeatureIsolation boundaryDefeated by kernel-level attackerHardware requirements
LSA protectionKernel-enforced process protectionYes, a malicious driver can strip protectionNone beyond Secure Boot for UEFI lock
Credential GuardHypervisor-isolated virtual trust levelNo, secrets stay outside the normal kernelVirtualization extensions, TPM recommended
Memory integrityHypervisor-protected code integrityBlocks many unsigned or vulnerable driversCompatible drivers, virtualization support
Comparison of credential protection features

The features are complementary rather than alternatives. Memory integrity makes it harder to load the driver an attacker needs to defeat LSA protection, and Credential Guard protects derived secrets even if that driver loads. A layered configuration combines all three on capable hardware.

Deploying LSA protection safely

The main deployment risk is plug-in compatibility. Third-party smart card middleware, single sign-on agents, password synchronization filters and some security products load modules into LSASS; if those modules are not properly signed, they stop working once protection is active, and users may be unable to sign in.

Microsoft provides an audit mode for this reason. Setting AuditLevel to 8 under the Image File Execution Options key for LSASS.exe logs every module that would have been blocked, without blocking it. The following table maps the relevant events to their meaning.

Event IDLogMeaning
3065CodeIntegrity OperationalA module failed the signature check for a protected process
3066CodeIntegrity OperationalA module would fail the check in audit mode
12System, source WinInitLSASS started as a protected process
Events used to verify and audit LSA protection
  • Run audit mode for several weeks on a representative pilot group before enforcement.
  • Ask vendors for Microsoft-signed plug-in versions of any module flagged by event 3066.
  • Start with value 2 for testing and move to value 1 once compatibility is proven.
  • Confirm event 12 after reboot, because a policy that is set but not applied gives false assurance.

Limitations and common misconceptions

LSA protection is not a complete defense against credential theft. An attacker with administrative rights can load a signed but vulnerable driver, a technique known as bring your own vulnerable driver, and then clear the protection flag from kernel mode. Tools such as Mimikatz include a driver component for exactly this purpose, which is why the Microsoft vulnerable driver blocklist and memory integrity matter.

Another misconception is that the feature hides credentials from every process. Protected processes at a higher signer level, and legitimate interfaces such as the Windows authentication APIs, still interact with LSASS. It also does nothing for credentials typed into phishing pages, secrets stored by browsers or hashes captured from the network, which other Windows security features address.

A non-technical view

Windows keeps a small vault in memory that remembers who is signed in, so you are not asked for your password every few minutes. Thieves love that vault, because reading it can give them passwords for the whole network.

LSA protection puts a guard at the vault door who only lets in visitors carrying an official Microsoft badge. Even a user with full administrator rights cannot simply walk in. A determined intruder can still try to bribe the guard with a special tool, so the feature works best alongside other locks, not as the only one.

A concrete example

An IT team at a regional hospital manages about 1,200 Windows 11 workstations joined to Active Directory. After a penetration test showed that a single phished nurse account could lead to domain administrator credentials through an LSASS memory dump, the team decided to enable LSA protection everywhere.

They first set AuditLevel to 8 on 60 pilot machines for four weeks. Event 3066 revealed that an older badge-reader sign-in agent loaded an unsigned module into LSASS. The vendor supplied a signed update, and the team then deployed the Group Policy setting with the UEFI lock enabled. In the next penetration test, the standard memory-dumping tools returned access denied, and the testers had to attempt a vulnerable-driver attack, which the newly enabled memory integrity blocked.