Back to Blog
Red Teaming Sep 1, 2026 191 views

Windows Credential Guard: How It Works, How to Deploy It, and What Attackers Have Found

Credential Guard moves secrets out of reach of the OS entirely. This post covers the architecture, how to deploy and validate it, what it does not protect, and the bypass techniques researchers have published.

By Obaida Albasha, Security Researcher, Cytomate

Part 2 of our Windows Credential Protection series: where PPL and registry controls hit their ceiling, what Microsoft built instead, and how to know whether it is actually running on your machines.

Why locking LSASS was not enough

The first post in this series showed how WDigest could hand an attacker a plaintext password from a single registry write. The obvious defense is to protect LSASS itself, and Microsoft did that with Protected Process Light. Make LSASS a protected process, and user-mode tools cannot open a read handle to it.

The problem is that PPL is a user-mode and kernel-mode boundary, not a hardware boundary. Any attacker who loads a vulnerable signed driver can strip PPL at the kernel level and get back to dumping credentials. The protection works against off-the-shelf tooling, but it does not hold once a skilled attacker gets a kernel handle. Microsoft needed a control that would keep working even when the kernel was compromised. Credential Guard is that control.

What Credential Guard is

Credential Guard is not a patch, a service hardening, or a registry setting that blocks something. It is a structural change to where credentials live in memory. On a standard Windows machine, the OS kernel is the highest-privilege entity on the box and everything in memory is reachable from kernel level. Credential Guard adds a hypervisor layer underneath the kernel and moves credential material into a separate environment that the kernel cannot touch.

That isolation is enforced by the CPU itself through a feature called Second Level Address Translation (SLAT). It is not software policy that can be overridden by kernel code. The kernel cannot read memory that the hypervisor has assigned to the isolated environment, period. That is what makes this qualitatively different from anything that came before it.

Microsoft introduced Credential Guard in Windows 10 Enterprise and Windows Server 2016. Starting with Windows 11 22H2 and Windows Server 2025, it is enabled by default on domain-joined devices that meet the hardware requirements, though that default enablement ships without the firmware lock, which we will cover in the hardening section.

The architecture underneath it

To understand what Credential Guard actually protects, you need to understand Virtualization-Based Security (VBS), which is the platform it sits on.

When VBS is active, the system boots with a Type-1 hypervisor beneath the Windows kernel. That hypervisor splits the machine into two isolated trust environments:

  • VTL0 is the normal Windows world: the kernel, all drivers, and every user-mode process including LSASS. This is the environment an attacker controls once they have compromised the machine.
  • VTL1 is the Secure Kernel, a separate environment with its own memory space. Code running in VTL0 cannot read or write VTL1 memory. The hypervisor enforces that boundary in hardware using SLAT page tables.
CPU Hardware  |  Hypervisor (SLAT-enforced memory boundaries)
VTL1: Secure Kernel
securekernel.exe
Isolated User Mode (IUM)
lsaiso.exe ← real secrets live here
VTL0: Normal OS
ntoskrnl.exe + Drivers
LSASS.exe
encrypted blobs only: no keys
VTL0 code, including a fully compromised kernel, cannot read VTL1 memory.

Credential Guard installs a trustlet inside VTL1's Isolated User Mode called lsaiso.exe (Isolated LSA). This process holds the actual cryptographic operations for NTLM and Kerberos. The signing requirements for Isolated User Mode mean only Microsoft-signed binaries can run there. An attacker cannot inject arbitrary code into it even with kernel access.

LSASS still exists in VTL0, as it always has. The difference is what it holds. Before Credential Guard, LSASS held the actual credential material and an attacker who could read its memory had everything. After Credential Guard is enabled, LSASS holds only encrypted blobs. The keys to decrypt them live exclusively in lsaiso.exe in VTL1, sealed by a per-session key that the Secure Kernel generates at boot and never exposes to VTL0.

How authentication still works

When LSASS needs to perform an authentication operation, say generating an NTLM response or a Kerberos ticket, it sends a request over ALPC to lsaiso.exe. The trustlet performs the cryptographic work using the real credentials and returns only the result. The underlying keys never cross back into VTL0. Mimikatz reading LSASS memory now finds encrypted blobs where it used to find hashes and tickets. Those blobs are useless without the key that only lsaiso.exe holds.

What your machine needs to run it

Credential Guard is not available everywhere. It has hardware requirements that cannot be worked around in software, and it is gated behind specific Windows editions.

Requirement Details Status
CPU 64-bit with VT-x (Intel) or AMD-V, plus SLAT Required
Firmware UEFI mode, not Legacy BIOS or CSM Required
Secure Boot Must be enabled in firmware Required
TPM TPM 1.2 or 2.0 recommended for boot binding Recommended
Windows Edition Enterprise E3/E5 or Education A3/A5 Required
Windows Home Not supported, the feature is simply absent Not available
Domain Controllers Not supported and not recommended on DCs Not supported

A note on application compatibility: enabling Credential Guard breaks applications that depend on Kerberos DES encryption, unconstrained Kerberos delegation, NTLMv1, or TGT extraction. WDigest is also restricted. If you have legacy apps in your environment that use any of these, test in a staging environment before rolling this out fleet-wide. Digest authentication and some CredSSP flows are affected too, which can show up in certain RDP single sign-on scenarios.

How to check if it is actually running

Configuration and reality are two different things with Credential Guard. The registry can say it is enabled while VBS is not running at all, usually because the hardware requirements are not met or Secure Boot is off in firmware. Always verify what is actually running, not just what is configured.

The authoritative source is the Win32_DeviceGuard WMI class:

PowerShell querying Win32_DeviceGuard: SecurityServicesConfigured, SecurityServicesRunning and VirtualizationBasedSecurityStatus

If SecurityServicesConfigured shows 1 but VirtualizationBasedSecurityStatus shows 1 rather than 2, the feature is configured but VBS is not actually running. That usually means a firmware requirement is not met: Secure Boot is off, the firmware is in Legacy mode, or virtualization extensions are not exposed to the OS. No registry setting will fix that. The firmware has to be corrected first.

Checking Secure Boot state, hypervisor presence and UEFI firmware mode before enabling Credential Guard

You can also check in System Information (msinfo32) under the System Summary. Look for the fields named "Virtualization-based security", "Virtualization-based security Services Configured", and "Virtualization-based security Services Running". Those three lines tell the whole story at a glance.

Enabling and disabling Credential Guard

On Windows 11 22H2 and Server 2025, if your hardware qualifies and the machine is domain-joined and not a domain controller, Credential Guard may already be on by default. Before enabling it manually, check the status with the commands above so you know what you are starting from.

Enable via registry (lab or single machine)

Registry commands to enable VBS and Credential Guard (LsaCfgFlags), then reboot

Enable via Group Policy (fleet rollout)

Group Policy path to Turn On Virtualization Based Security, with the UEFI-lock versus no-lock options

Disabling it

If Credential Guard was enabled without the UEFI lock, disabling it is a registry change and a reboot:

Disabling Credential Guard by setting LsaCfgFlags to 0, which only works when it was enabled without a UEFI lock

If it was enabled with the UEFI lock, a registry change alone does nothing. The policy is stored in firmware (NVRAM), so disabling it requires clearing that variable. Microsoft's Device Guard readiness tool handles the full sequence:

Running the DG_Readiness_Tool.ps1 -Disable script to remove the UEFI variable and clean up the registry

Validating protection with Mimikatz

After you enable Credential Guard and reboot, confirm it is actually protecting credentials rather than just claiming to. The test is simple: log in with a domain account after the feature is active, dump LSASS with Mimikatz, and look at what comes back.

mimikatz sekurlsa::logonpasswords, the credential dump that Credential Guard defeats

On a machine without Credential Guard, the wdigest and kerberos blocks show usable hashes and, if WDigest is re-enabled, cleartext passwords. On a machine with Credential Guard running properly, those fields come back null or as encrypted blobs that cannot be used anywhere.

One thing to watch for: Credential Guard protects credentials cached after it was enabled. If a user logged in before you enabled the feature and has not logged in again since, their session might still hold pre-isolation material. Always test with a fresh domain logon that happened after the reboot that activated the feature. Local account hashes from the SAM database may also still appear, since Credential Guard covers domain credentials, not local ones.

You can also confirm lsaiso.exe is running as part of this check:

Confirming Credential Guard is active by finding the lsaiso.exe isolated process

What Credential Guard does not protect

This is as important as knowing what it does protect. Credential Guard has a well-defined scope, and planning around it means understanding the edges.

  • Local account credentials live in the SAM database, which stays in VTL0. Local admin hashes remain dumpable.
  • Credentials cached before the feature was enabled may not be re-protected until the user logs in again after a reboot with Credential Guard active.
  • Domain Controllers are explicitly excluded. The feature is not supported on DCs and should not be enabled there.
  • Credentials at the moment of entry. Credential Guard protects secrets at rest in lsaiso.exe. A keylogger capturing a password as someone types it is a completely separate attack surface that this control does not address.
  • Regular Kerberos service tickets (TGS). The TGT session key is protected. Service tickets obtained for arbitrary SPNs are not and can be injected on other hosts after capture.
  • NTLMv1 responses via the Remote Credential Guard protocol. Research published in 2025 demonstrated that the authentication interface Credential Guard uses for Remote Desktop scenarios can be abused to generate NTLMv1 challenge responses. The section below covers this in detail.

What researchers have found against it

Since its introduction, Credential Guard has seen relatively few successful public attacks compared to the broader LSASS-dumping ecosystem. Four techniques have been publicly disclosed. Microsoft has addressed three of them. One remains open at the time of writing.

Understanding these techniques matters for two reasons: it shows the control is not a silver bullet, and it tells you exactly where to focus your detection investment to catch the cases where Credential Guard alone is not enough.

WDigest Memory Patching (BypassCredGuard)

Mitigated

Rather than disabling Credential Guard, this technique patches two global variables inside wdigest.dll directly in LSASS memory: g_IsCredGuardEnabled and g_fParameter_UseLogonCredential. Flipping them re-enables cleartext credential caching without touching the registry or the VBS configuration. The next logon event populates WDigest with a cleartext password that Mimikatz can read. Requires local administrator access and opening LSASS with PROCESS_ALL_ACCESS, which is very noisy for any endpoint detection tool watching LSASS handle operations. Research by @wh0amitz.

Pass the Challenge

Mitigated on Win11 / Server 2025

lsaiso.exe exposes cryptographic methods back to LSASS over ALPC, including one called NtlmIumCalculateNtResponse. This technique abuses that interface to compute an NTLMv1 challenge-response using the isolated credentials, then cracks the response offline to recover the original NT hash. It requires a full LSASS dump plus injecting a custom SSP into LSASS to obtain the context handle and encrypted blob needed to call the function. Fully patched on Windows 11 and Server 2025 via MIC validation enforcement. Research by Oliver Lyak (@ly4k_).

Windows Downdate (CVE-2022-34709)

Patched

SafeBreach Labs released a tool that rolls back individual Windows patches using the Component Servicing stack. When applied to CVE-2022-34709, a VTL privilege escalation vulnerability, it re-opens a path from VTL0 to VTL1 and allows access to the isolated memory where lsaiso.exe holds credentials. Only confirmed effective on Windows 11 21H2. Fully patched in all current builds. Research by Alon Leviev at SafeBreach.

SSP Negotiation via Remote Credential Guard (DumpGuard)

Not patched

Remote Credential Guard is a feature that redirects RDP authentication back to the client so credentials are not exposed on the remote host. Internally, it uses an interface called NtlmCredIsoRemote which routes requests to Credential Guard when it is on, or to the in-process NTLM stack when it is off. The key insight: both paths work. By simulating the Terminal Services SSP flow using a machine account as the fake remote host, an attacker can call NtlmCalculateNtResponse through this interface with a chosen challenge and obtain an NTLMv1 response for the current user's credentials, without ever touching LSASS. The response can be cracked to the NT hash via pre-computed rainbow tables. Works on fully patched systems, does not require elevated privileges for the current user's credentials, and functions whether or not Credential Guard is enabled. Research by Valdemar Caroe at SpecterOps, published October 2025. Ransomware groups including Akira and Qlin have incorporated similar techniques into active campaigns.

The DumpGuard technique in practice

This one deserves more detail because it is the only unpatched technique and because the prerequisites are lower than they look. By default, domain users can add up to ten machine accounts per domain. That alone satisfies the SPN requirement without needing any additional privileges.

Creating a machine account with Powermad as an unprivileged domain user
Extracting the current user's NTLMv1 response with DumpGuard /mode:self using the static challenge
Extracting all authenticated users' NTLMv1 responses with DumpGuard /mode:all after elevating to SYSTEM
Cracking the NTLMv1 response to the NT hash via rainbow tables or hashcat mode 5500

The NT hash recovered this way is directly usable for Pass-the-Hash lateral movement and for requesting Kerberos TGTs, since the NT hash is the RC4 long-term key in Kerberos. Microsoft reviewed the DumpGuard report and declined to service it as a security vulnerability, treating it as a design behavior of the Remote Credential Guard protocol rather than a flaw.

Detection

The four bypass techniques each leave different traces. Covering all of them requires watching in several places at once, none of which are particularly exotic if you already have Sysmon and Windows Security auditing in place.

SYSMON EVENT ID 10

LSASS handle access

The WDigest patching technique opens LSASS with access mask 0x1FFFFF (PROCESS_ALL_ACCESS). Sysmon Event 10 records every process that opens a handle to lsass.exe. Anything outside of known Windows components requesting memory-read rights is a strong signal and catches the memory-patching variant too.

WINDOWS SECURITY 4703

SeDebugPrivilege acquisition

Enable Audit Token Right Adjustment under Detailed Tracking. This generates Event 4703 whenever a process adjusts its token privileges. Alert on non-Microsoft binaries acquiring SeDebugPrivilege, which is required before WDigest patching can happen. The event includes the binary path, account, and logon session.

WINDOWS SECURITY 4741 + 4768 + 4769

Machine account creation and Kerberos activity

The DumpGuard technique starts with creating a machine account. Event 4741 fires on the DC when that happens. Follow it with 4768 (TGT requested for the new account) and 4769 (service ticket from an elevated account to the machine account, which is anomalous in almost every real environment).

SYSMON EVENT ID 7

Terminal Services DLL loads

DumpGuard loads tspkg.dll, sspicli.dll, and kerberos.dll to initiate the NTLM/Kerberos negotiation. Alert on those DLLs being loaded by any process outside of System32. Legitimate loaders are mstsc.exe, msrdc.exe, and svchost.exe. Everything else is worth investigating.

EDR API HOOK

LsaCallAuthenticationPackage targeting TSSSP

EDR platforms that instrument this API call can catch DumpGuard at the point of execution. Alert specifically on calls targeting the TSSSP authentication package combined with the static challenge value 1122334455667788, which is the rainbow table challenge and a reliable indicator of this specific tool.

WINDOWS SECURITY 4656 / 4657

Downgrade registry and file access

The Windows Downdate technique accesses the SideBySide component store registry keys and requires SeBackupPrivilege and SeRestorePrivilege together. Event 4656 and 4657 cover registry access and modification respectively, and 4703/4704 cover the privilege changes. The combination of those three privileges in a short window is unusual outside of legitimate update processes.

Making the control stick

Turning Credential Guard on is the start. Keeping it working and knowing when something has undermined it is the harder part.

  1. Use UEFI lock if your threat model includes a compromised admin account. The default enablement on Windows 11 22H2 and later ships without the UEFI lock, meaning a local administrator can disable Credential Guard with a registry change and a reboot. That is intentional on Microsoft's part so that IT teams retain remote manageability. But if the scenario you are defending against includes an attacker who has elevated to local admin, the lock should be on. Set LsaCfgFlags = 1 rather than 2. The trade-off is that legitimate remote disablement requires firmware access from that point forward.
  2. Set the machine account quota to zero. The DumpGuard technique relies on having an account with a Service Principal Name. Standard domain users can create up to ten machine accounts by default, providing that prerequisite with no privileges at all. Removing that ability closes the low-privilege path to the attack.
    Setting ms-DS-MachineAccountQuota to 0 to stop unprivileged users creating machine accounts
  3. Layer in the controls that Credential Guard does not replace. Credential Guard covers domain credential material in lsaiso.exe. It does not cover local SAM hashes, credentials captured at point of entry, or service ticket contents. Keep LSASS running as PPL alongside Credential Guard. Add high-value accounts to the Protected Users group, which blocks WDigest caching, NTLM authentication, and unconstrained delegation for those accounts regardless of other configuration. Use LAPS so that local admin credentials are unique per machine and a stolen local hash does not translate to lateral movement.
  4. Watch the DeviceGuard event log on endpoints. Event ID 14 in the DeviceGuard Operational channel logs Credential Guard state at boot. If the feature is supposed to be running on a machine and that event stops appearing, something has changed. Alerting on its absence is a cheap way to catch configuration drift or a deliberate disable that did not go through your change management process.
    Event Viewer path to DeviceGuard Operational log, Event ID 14 confirming Credential Guard is enabled
  5. Test that detection actually fires. Run each technique in a controlled environment on a schedule and confirm your SIEM rules catch it. Detection rules age out, configurations drift, and agents fall off machines. The only way to know that your 4769 alert is live and tuned correctly is to generate the event and watch what happens. This is what breach-and-attack simulation is built for: run the technique in a sandbox, check what the detection stack did, close the gap before someone else finds it.

The short version

Credential Guard is a genuine architectural advance over PPL and registry-based protections. It moves NTLM hashes and Kerberos TGT session keys into a hardware-isolated VTL1 environment that even a compromised kernel cannot reach, making traditional LSASS dumping ineffective against domain credentials. It requires Enterprise or Education licensing, UEFI firmware with Secure Boot, and a CPU that supports SLAT. Three of the four publicly known bypass techniques have been patched. The remaining one, SSP Negotiation via DumpGuard, works on fully patched systems and requires no elevation for the current user, but generates detectable Kerberos and machine-account events that a well-configured SOC will catch. Enable it with UEFI lock where the threat model demands it, set the machine account quota to zero, instrument Sysmon with image-load rules for Terminal Services DLLs, and verify that your detections fire against real tool execution. Credential Guard raises the attacker's cost significantly. Paired with good detection coverage, it makes credential harvesting a much harder and noisier problem than it used to be.

Coming up in this series

Credential Guard closes the gap on domain credential dumping from LSASS. The next posts in this series take the other credential protection controls through the same lens: what breaks when they are off, how an attacker abuses that gap, and how to turn them on and keep them on.

  1. LSA Protection (RunAsPPL): running LSASS as a Protected Process Light, the vulnerable driver technique that defeats it, and how to detect driver-based PPL bypasses.
  2. Protected Users and admin tiering: blocking WDigest, NTLM, and delegation for sensitive accounts and building a tier model that holds under adversary pressure.
  3. LAPS and local admin: eliminating password reuse on local administrator accounts and why that collapses lateral movement.
  4. Cached logons and DCSync: MSCache/DCC2 exposure, replication-rights abuse, and locking down the remaining credential stores.
  5. Kerberoasting and delegation: weak service account secrets and unconstrained delegation, from the offensive test to the hardening.

Sources and Further Reading Microsoft Learn: Credential Guard overview and configuration documentation
Valdemar Caroe (SpecterOps): Catching Credential Guard Off Guard, October 2025
Oliver Lyak: Pass the Challenge, Defeating Windows Defender Credential Guard
N4kedTurtle (Team Hydra): Bypassing Credential Guard, August 2020
Alon Leviev (SafeBreach Labs): Windows Downdate, CVE-2022-34709
@wh0amitz: BypassCredGuard, WDigest memory patching PoC
MITRE ATT&CK: T1003.001 (OS Credential Dumping: LSASS Memory)
ipurple.team: Credential Guard Attack and Defense Playbook, March 2026
HackTricks: Credentials Protections reference

Everything in this post was researched against isolated lab environments we own or against publicly documented techniques. Do not run any of these tools on systems you do not have explicit authorization to test.

More from the Blog

Threat Intelligence Nov 29, 2026

The Build-Pipeline Backdoor: Inside the NullReceiver Supply-Chain Campaign

Read More
Deception Nov 29, 2026

Lying to the Machines: The Secret Weapon Against AI Attacks

Read More
Agentic Security Nov 24, 2026

Your AI Coding Agents Need an EDR Too: Introducing cADRe

Read More