Pass-the-Challenge: Defeating Windows Defender Credential Guard
The blog post describes new techniques to recover NTLM hashes from encrypted credentials protected by Windows Defender Credential Guard, even for users who logged in before the server was compromised. An attacker with code execution in LSASS can use the exposed LSAIso functionality to compute NTLMv1 or NTLMv2 responses and then crack or use them to obtain the hash.
Published on research.ifcr.dk
In this blog post, we present new techniques for recovering the NTLM hash from an encrypted credential protected by Windows Defender Credential Guard. While previous techniques for bypassing Credential Guard focus on attackers targeting new victims who log into a compromised server, these new techniques can also be…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the LSAIso process exposes methods that allow computing NTLM responses using encrypted credentials, and these responses can be cracked or used to recover the original NTLM hash.
Impact
An attacker who has already compromised a system with Credential Guard enabled could recover NTLM hashes of logged-on users, including those who logged in before the compromise, enabling lateral movement via pass-the-hash.
What the attacker needed
Code execution in LSASS; memory dump of LSASS; Credential Guard enabled
How it was found
- Gain code execution within the LSASS process to communicate with LSAIso over ALPC.
- Obtain a memory dump of the LSASS process and extract the encrypted credentials using a modified Pypykatz.
- Use PassTheChallenge.exe with the context handle, proxy info, and encrypted blob to compute an NTLMv1 response for a static challenge.
- Submit the NTLMv1 response to crack.sh to recover the NTLM hash.
- Alternatively, use the NTLMv2 primitive to compute a response for a given challenge and use it with tools like psexec.py or Certipy to authenticate or request a certificate.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Credential Guard is a Windows security feature that keeps password hashes (like NTLM) encrypted and isolated so attackers who break into a machine cannot easily steal them. This post shows that if an attacker already has deep access to the system, they can still trick the isolated component into performing calculations that reveal the hash, for example by asking it to compute a response to a known challenge and then cracking that response offline.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.