NTLM Authentication
Cheat sheet · https://pcornel.dk/topic.php?topic=3285
Answer
NTLM authentication uses a challenge-response: the server sends a challenge, the client answers with a hash-based response, and the domain controller validates it. The password hash is never sent but can be relayed or cracked.
Remember
- NTLM is a challenge-response protocol.
- The DC validates domain account responses.
- Responses can be relayed to other servers.
First checks
Get-WinEvent -FilterHashtable @{LogName='Security';Id=4624} -MaxEvents 50 | ? {$_.Message -match 'NTLM'}— NTLM logonsGet-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Lsa -Name LmCompatibilityLevel— NTLM levelGet-WinEvent -LogName Microsoft-Windows-NTLM/Operational -MaxEvents 30— NTLM audit events
Verify in this order
negotiate → challenge → response → DC validates
Where it usually breaks
First mismatch in forest/domain/object identity → authoritative DC/source policy → replication/KDC/GP processing → client token/effective policy → target resource → event/audit verification; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3285