Pcornel
Browse topics
Options
Recent
Favorites
Identity · Technical reference

NTLM Authentication

Direct 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.

When to use this

Use this when tracing how an NTLM authentication works.

First 30 seconds

1. Logon events with Authentication Package NTLM.

2. Source machine and target.

3. Fallback reason.

4. Block LM/NTLMv1.

5. Reduce over time.

Operational verification

negotiate → challenge → response → DC validates

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows Server Active Directory and identity
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows Server Active Directory and identity
Scope / prerequisiteUse this when tracing how an NTLM authentication works.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • NTLM is a challenge-response protocol.
  • The DC validates domain account responses.
  • Responses can be relayed to other servers.
Key checks
  • Get-WinEvent -FilterHashtable @{LogName='Security';Id=4624} -MaxEvents 50 | ? {$_.Message -match 'NTLM'} — NTLM logons
  • Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Lsa -Name LmCompatibilityLevel — NTLM level
  • Get-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*):

PolicySettingLogs to
Network security: Restrict NTLM: Audit incoming NTLM trafficEnable auditing for all accountsMicrosoft-Windows-NTLM/Operational on the server
Network security: Restrict NTLM: Audit NTLM authentication in this domainEnable allNTLM/Operational on DCs (event 8004)
Network security: Restrict NTLM: Outgoing NTLM traffic to remote serversAudit allNTLM/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

CauseFix
Connecting by IP addressUse the DNS name that matches the SPN
Alias (CNAME) without SPNAdd the SPN for the alias on the service account
No line of sight to a DCNetwork / DNS to DCs
Local accounts or workgroupExpected — NTLM is the only option
Application hard-coded to NTLMVendor 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows Server Active Directory and identity current

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%
Terminology layer

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.

Aliases that resolve here
ntlm authenticationntlm challenge response
Confirmation

Confirm action

Continue?