Use this when tracing how an NTLM authentication works.
NTLM Authentication
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.
1. Logon events with Authentication Package NTLM.
2. Source machine and target.
3. Fallback reason.
4. Block LM/NTLMv1.
5. Reduce over time.
negotiate → challenge → response → DC validates
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Allowing NTLM to internet-facing services.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- NTLM is a challenge-response protocol.
- The DC validates domain account responses.
- Responses can be relayed to other servers.
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
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
Find out who still uses NTLM — audit first
Enable auditing through Group Policy (*Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options*):
| Policy | Setting | Logs to |
|---|---|---|
| Network security: Restrict NTLM: Audit incoming NTLM traffic | Enable auditing for all accounts | Microsoft-Windows-NTLM/Operational on the server |
| Network security: Restrict NTLM: Audit NTLM authentication in this domain | Enable all | NTLM/Operational on DCs (event 8004) |
| Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers | Audit all | NTLM/Operational on clients (event 8001) |
PS C:\> Get-WinEvent -LogName 'Microsoft-Windows-NTLM/Operational' -MaxEvents 50 | Select TimeCreated, Id, Message
PS C:\> Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4624} -MaxEvents 500 |
Where { $_.Properties[10].Value -eq 'NTLM' } | Select TimeCreated, @{n='User';e={$_.Properties[5].Value}}, @{n='Source';e={$_.Properties[18].Value}}
Why a client falls back to NTLM
| Cause | Fix |
|---|---|
| Connecting by IP address | Use the DNS name that matches the SPN |
| Alias (CNAME) without SPN | Add the SPN for the alias on the service account |
| No line of sight to a DC | Network / DNS to DCs |
| Local accounts or workgroup | Expected — NTLM is the only option |
| Application hard-coded to NTLM | Vendor configuration or upgrade |
NTLM versions
NTLMv1 and LM are weak and should be refused: Network security: LAN Manager authentication level = Send NTLMv2 response only. Refuse LM & NTLM. Before enforcing, check event 4624 for "Package Name (NTLM only): NTLM V1".
Relay protection
NTLM is vulnerable to relay. SMB signing, LDAP signing and channel binding, and Extended Protection for Authentication on HTTP services prevent relayed sessions from being useful. Windows Server 2025 and Windows 11 24H2 add SMB NTLM blocking options — useful once audit shows which clients still depend on NTLM.
*The NTLM event queries above are illustrative examples, not captured from a lab or production system.*
How it works
NTLM is a challenge–response protocol: the server sends a random challenge, the client answers with a response computed from the password hash, and the server (or a DC through pass-through authentication for domain accounts) verifies it. The password is not sent, but the hash is enough to authenticate (pass-the-hash), and the server is not authenticated to the client.
Commands
Get-WinEvent -LogName Security -FilterXPath "*[System[EventID=4624]] and *[EventData[Data[@Name='AuthenticationPackageName']='NTLM']]" -MaxEvents 20
Shows NTLM logons; enable NTLM auditing to find which apps still use it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in NTLM → NTLM Authentication. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/security/kerberos/ntlm-overview · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.