NTLM
Cheat sheet · https://pcornel.dk/topic.php?topic=3284
Answer
NTLM is the older Windows challenge-response authentication protocol, still used when Kerberos is not possible, such as with IP addresses, workgroups or local accounts. It is weaker and should be restricted.
Remember
- NTLM is used when Kerberos cannot be.
- Relay attacks target NTLM.
- Audit before blocking.
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
challenge/response with password hash → validated by DC (pass-through)
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=3284