Skip to content

Lesson 2 of 13 · 12m

NTLM Never Left

How NTLMv2 challenge-response actually works, where it still runs inside AD, and why its hash is a password equivalent.

Kerberos is the protocol everyone diagrams and the protocol most environments only half-deploy. The moment a ticket cannot be issued — a user authenticating to a workgroup machine, a service accessed by IP instead of hostname, a machine that cannot reach a DC — Windows falls back to NTLM. On most corporate networks NTLMv2 handles a large share of authentication events, and on many it is the majority.

What NTLMv2 actually does

The exchange is three messages wrapped in NTLMSSP headers: NEGOTIATE, CHALLENGE, AUTHENTICATE. The server sends a random 8-byte challenge. The client computes HMAC-MD5(NTLMv2 hash, challenge + client challenge + timestamp + target info) and returns the blob. The NTLMv2 hash is itself HMAC-MD5(NT hash, username + domain) — where the NT hash is plain MD4 of the UTF-16 password, unsalted, unchanged since the 1993 implementation. Two things follow:

  • The password never crosses the wire — but the NT hash is the secret that generates the response. Anyone who steals the NT hash can answer any challenge forever. That is pass-the-hash: no password cracking needed because the hash is the credential. Mimikatz sekurlsa::logonpasswords pulls NT hashes out of LSASS on any host where the target logged in, and Invoke-Mimikatz-era tooling has been doing it since 2011.
  • The response is challenge-bound but not server-bound. The server name sits inside the signed blob (in the target info AV pairs — NTLMSSP AV pair MsvAvTargetName), but a relaying attacker who holds the response can present it to a different service when that service's signing policy allows. NTLM relay exists because the protocol authenticates the user to a server, not to this server.

The wrong mental model: "NTLM was replaced by Kerberos in 2000." NTLMv1 was. NTLMv2 remains the fallback path baked into LSASS and security.dll, negotiated via SPNEGO whenever Kerberos negotiation fails. Check it yourself: run nltest /dsgetdc:corp.local to confirm DC reachability, then authenticate to a file share by IP (\\10.0.0.5\share) and watch netstat — no Kerberos traffic at all; the whole exchange is NTLMv2 inside SMB.

Why defenders cannot just disable it

LmCompatibilityLevel values 3–5 restrict NTLMv1, and Group Policy Network security: Restrict NTLM can audit or block NTLM outright. Most estates cannot flip it to "deny" tomorrow: legacy apps, printer scanning, Exchange on older build chains, VPN concentrators, and every \\IP access path depend on it. The real-world evidence is in the telemetry — Microsoft documented NTLMv1 deprecation in 2024 for Windows 11 24H2 / Server 2025 precisely because disabling NTLMv2 breaks too much.

What NTLM enables for attackers

Three chains matter. Pass-the-hash: NT hash from LSASS authenticates anywhere NTLM runs — and via overpass-the-hash (sekurlsa::pth /user:x /ntlm:<hash> /run:cmd.exe) the same hash buys a Kerberos TGT too, because RC4 TGT requests key on the NT hash. Steal the hash once, choose your protocol. Relay: coerce authentication (printer bug, PetitPotam EfsRpcOpenFileRaw, WebClient UNC) and forward the challenge-response to LDAP or ADCS — the next lesson covers the full chain. Cracking: captured NTLMv2 responses crack offline in Hashcat mode 5600 — Responder -I eth0 on a flat network still harvests them from LLMNR poisoned lookups, because challenge-response leaks enough structure to brute-force weak passwords at GPU rates.

The NT-hash-equivalence point deserves repeating because it drives real decisions: rotating a compromised user's password is mandatory, but so is assuming every LSASS copy on every host they touched is gone. "We reset the password" closes nothing if the attacker already exfiltrated the NT hash for a service that still accepts it elsewhere — NTLM fallback paths and VPN concentrators being the usual survivors.

The controls are not "disable NTLM" — they are: require SMB signing so relayed SMB auth fails, require LDAP signing + channel binding (EPA) so relayed LDAP fails, and move accounts that matter into Protected Users so NTLM is refused for them at the DC. Each maps to a specific relay vector, not a generic hardening wish.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.