Cleartext passwords are not being stored in LSASS on modern Windows by design, even when UseLogonCredential is set to 1, because WDigest credential caching is disabled by default starting with Windows 8.1 / Windows Server 2012 R2 and later, and the platform has progressively deprecated and restricted Microsoft Digest (wDigest) functionality.
From the security advisory and baseline guidance:
-
UseLogonCredentialis the registry value under:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SecurityProviders\WDigest -
UseLogonCredential = 1means: WDigest will store credentials in memory. -
UseLogonCredential = 0means: WDigest will not store credentials in memory. - On Windows 8.1, Windows Server 2012 R2 and later versions, the default is that WDigest credential caching in memory is disabled when the registry value is not present; the security baseline explicitly recommends keeping this disabled.
However, in current Windows versions (including Windows 11), Microsoft Digest (wDigest) is being deprecated and its capabilities are being reduced:
- Microsoft Digest (wDigest) is explicitly marked as deprecated starting in Windows 11 22H2.
- Future Windows versions will include limited capabilities for Microsoft Digest and will eventually remove support.
This deprecation and hardening mean that simply setting UseLogonCredential = 1 is no longer sufficient to force LSASS to keep reusable cleartext passwords in memory in the way older attack techniques assumed. The platform is intentionally designed to prevent exactly the cleartext extraction scenario being attempted.
Because of this:
- Cleartext passwords may not be stored in LSASS at all, even with
UseLogonCredential = 1, due to the deprecation and hardening of Microsoft Digest on Windows 11. - There is no supported process in the provided documentation to “fully enable” WDigest on Windows 11 25H2 for the purpose of extracting cleartext passwords from LSASS. The official guidance instead focuses on disabling WDigest credential caching (
UseLogonCredential = 0) and treating any remaining Microsoft Digest capability as legacy and on a path to removal.
For security baselines and supported configuration, the recommended and documented state is:
- Keep WDigest Authentication disabled by ensuring
UseLogonCredential = 0underSYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest. - Follow the Windows security baseline guidance, which treats enabling WDigest credential caching as a non-compliant, high-risk configuration.
References: