Easier configuring additional LSA protection

This week another short blog post about another nice configuration addition to Windows. This time it’s about configuring additional Local Security Authority (LSA) protection for credentials. LSA, which includes the Local Security Authority Server Service (LSASS) process, validates users for local and remote sign-ins and enforces local security policies. Starting with Windows 8.1 and later, additional protection is provided for the LSA, to prevent reading memory and code injection by non-protected processes. That provides added security for the credentials that LSA stores and manages. Not really something new, but it’s good to know that something has changed from a configuration perspective. The protected process setting for LSA can also be configured in Windows 8.1 and later. That would, however, always require the manual creation of a registry setting. That has changed. Starting with Windows 11 version 22H2 these settings are introduced as actual GPO settings and as ADMX-backed settings via the Policy CSP. This post will start with a short introduction about the new setting, followed with the steps to actually configure that setting. This post will end with showing the behavior after applying the configuration.

Important: The intention of this post is not to discuss the usage of LSA protection version Credential Guard. Only to provide guidance with the technical implementation of enabling additional LSA protection. Besides that, I would always say that both technologies are complimentary to each other. For a good read have a look at this article.

Note: This new configuration option is introduced with the new policy definitions for Windows 11 version 22H2. No more manual registry keys required. In the future this might also come to earlier versions of Windows.

Introducing the Local Security Authority configuration options

The additional LSA protection is focused on running LSASS as a protected process. That configuration is now available as a GPO setting in the new LocalSecurityAuthority ADMX-file, and as an ADMX-backed setting in the new LocalSecurityAuthority node in the Policy CSP. That ADMX-file contains a couple of new settings that are available via GPO, and via the Policy CSP. Besides that, the default behavior of Windows has changed. Starting with Windows 11 version 22H2, additional LSA protection will be enabled by default with a new install of a device (not with the upgrade of a device). That does require the device to be (hybrid) (Azure) Active Directory joined and to be capable of hypervisor-protected code integrity (HVCI). When the additional LSA protection is not a standard within the environment yet, that might cause different behavior between old and new devices. Make sure to be familiar with this change. On existing devices running Windows 10 or later, it’s possible to use the new settings that are available via GPO, or via the Policy CSP. The table below provides an overview of those new settings and how those settings can be used.

AllowCustomSSPsAPsThis policy setting controls whether the LSASS will allow loading of custom security support providers (SSPs) and authentication providers (APs). When enabled, LSASS will allow loading of custom SSPs and APs. And when disabled, LSASS will block custom SSPs and APs from loading.
This policy setting controls whether the LSASS will run as a protected process. When disabled (0) or not configured, LSASS won’t run as a protected process. When enabled with UEFI lock (1), LSASS will run as a protected process and this setting will be stored in a UEFI variable. When enabled without UEFI lock (2), LSASS will run as a protected process and this setting won’t be stored in a UEFI variable. The latter is the default for devices with a new install of Windows 11 version 22H2.

Important: Unlike most ADMX-backed settings, the ConfigureLsaProtectedProcess policy setting requires an Integer as value that corresponds to the required configuration. Any other String configuration will result in error 0x86000011.

Note: The root node in the Policy CSP is ./Device/Vendor/MSFT/Policy/Config/LocalSecurityAuthority/.

Configuring the Local Security Authority configuration options

When looking at the actual configuration of these new settings in the Policy CSP, and using Microsoft Intune for the configuration, the configuration is actually pretty straight forward. In the future it will probably even become easier. For now, the configuration will still rely on using a custom device configuration profile. The following nine steps walk through the creation of that custom device configuration profile, with the settings to configure LSASS to run as a protected process.

  1. Open the Microsoft Endpoint Manager admin center portal navigate to Devices Windows > Configuration profiles
  2. On the Windows | Configuration profiles blade, click Create profile
  3. On the Create a profile blade, provide the following information and click Create
  • Platform: Select Windows 10 and later as the platform for the configuration profile
  • Profile type: Select Templates as the profile type for the configuration profile
  • Template name: Select Custom as the template name for the configuration profile
  1. On the Basics page, specify a valid Name and optionaly a Description and click Next
  2. On the Configuration settings page (see Figure 1), click Add to add rows for the following custom settings and click Next
  • OMA-URI setting 1 – This setting is used to configure the LSASS process to run as a protected process
    • Name (1): Provide a name for the OMA-URI setting to distinguish it from other similar settings
    • Description: (Optional) Provide a description for the OMA-URI setting to further differentiate settings
    • OMA-URI (2): Specify ./Device/Vendor/MSFT/Policy/Config/LocalSecurityAuthority/ConfigureLsaProtectedProcess
    • Data type (3): Select Integer as data type for the configuration of the value of the setting
    • Value (4): Specify 1 as value to configure LSASS to run as a protected process with UEFI lock
  1. On the Scope tags page, configure the required scope tags click Next
  2. On the Assignments page, configure the required assignment and click Next
  3. On the Applicability rules page, configure the required applicability rules and click Next
  4. On the Review + create page, verify the configuration and click Create

Important: Keep in mind that the device needs a restart to actually run the LSASS process as a protected process.

Note: At some point in time these settings might become directly available within Microsoft Intune.

Verifying the additional LSA protection

After configuring the additional LSA protection, the easiest method to verify a successful configuration is by looking at the Event Viewer. When the device is restarted, the Event Viewer will show Event ID 12 in the System log that will mention LSASS.exe was started as a protected process with level: 4. That information is shown below on the right in Figure 2. Besides that, it’s possible to simply verify the configuration by testing it. An easy method to test that is by using Mimikatz, as shown below on the left in Figure 2. Using the command sekurlsa:logonpasswords would previously dump password data in LSASS for currently logged on account (and more), but is now simply denied.

Note: I did notice that using Microsoft Intune the configuration would apply successfully, but the LSA protection was not always active. Not sure why at this moment.

More information

For more information about configuring the Network List Manager policies, refer to the following docs.

22 thoughts on “Easier configuring additional LSA protection”

  1. I think it is in the Intune Settings Catalogue now (either it is newly added or was just hard to find).
    It is listed under: Device Guard > Credential Guard > Enabled with UEFI Lock.
    I assume this is the same thing…

  2. Peter,
    Every client we’ve tried this at fails, with error -2016281112 (Remediation failed). Any feedback on that?

  3. In the Configuration Profile settings under Defender, I see “Block credential stealing from the Windows local security authority subsystem”. I selected “Block”, but I don’t see this enabling or locking down this setting on my devices.

  4. Hello,
    The interesting part is that the setting to enable the RunAsPPL is just an entry in the registry.
    But what if, before implementing an attack, the registry entry is deleted or changed to 0? 🙂

  5. It is now found in the settings catalog, under “Local Security Authority” and Configure LSA Protected Process.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.