Skip to content
AdminKit

NTLM (NT LAN Manager)

What is NTLM (NT LAN Manager)?

NTLM (NT LAN Manager) is a family of Windows authentication protocols that proves a user knows an account's password through a challenge-response exchange instead of sending the password itself. AdminKit explains how NTLM works, why its password hashes enable relay and pass-the-hash attacks, and why Microsoft now steers Windows toward Kerberos.

By AdminKit team, Netbase JSC · Updated

NTLM is the authentication family that Windows has carried since the LAN Manager era. Microsoft’s NTLM overview describes it as a family of protocols in Msv1_0.dll, covering LAN Manager versions 1 and 2 and NTLM versions 1 and 2, that authenticate users and computers with a challenge-response mechanism proving the user knows the account’s password.

How does NTLM authentication work?

The client never sends the password. Microsoft’s MS-NLMP protocol specification defines the exchange, in which three messages pass between client and server:

1. NEGOTIATE     client -> server   supported options
2. CHALLENGE     server -> client   random server challenge
3. AUTHENTICATE  client -> server   response computed from
                                    the challenge and the
                                    password hash

To check the response, the server either contacts a domain controller for a domain account or looks the account up in its local database. NTLM rides inside the application protocols that use it, such as SMB file sharing. For web servers, RFC 4559 documents how Windows negotiates Kerberos or NTLM over HTTP.

Why is NTLM a security risk?

The response is computed from the password hash, not the password, so the hash is as good as the password. MITRE ATT&CK technique T1550.002 describes pass the hash: adversaries capture valid password hashes and use them to authenticate as that user, a technique MITRE records against many named groups and tools such as Mimikatz.

The second risk is relay. NTLM was designed for networks where servers were assumed to be genuine, and it does not let a client verify a server’s identity. An attacker who poisons an LLMNR or NetBIOS Name Service reply can receive a victim’s authentication and forward it to another server, as MITRE ATT&CK technique T1557.001 describes. SMB signing stops that relay on file shares because the attacker never learns the session key.

Microsoft’s list of deprecated Windows features now marks every NTLM version as deprecated and says calls to NTLM should be replaced by calls to Negotiate, which tries Kerberos first and falls back to NTLM only when necessary. NTLMv1 is removed starting in Windows 11, version 24H2 and Windows Server 2025.

NTLM itself has no port; it travels inside whatever protocol carries it. AdminKit’s port check probes a fixed list of nine TCP ports on your own public IP and does not test port 445 or any UDP port, so it will not show whether a Windows file server offers NTLM to the internet.

NTLM is part of AdminKit’s machine protocols cluster; the full AdminKit glossary lists other related terms.

Frequently asked questions

Is NTLM still used?

Yes. Microsoft says NTLM must still be used for Windows authentication on workgroup systems and for local logon on non-domain controllers, and applications may still call it. Kerberos version 5 is the preferred method in Active Directory domains.

Has Microsoft deprecated NTLM?

Yes. Microsoft's list of deprecated Windows features, in a June 2024 entry, says all versions of NTLM, including LANMAN, NTLMv1 and NTLMv2, are no longer under active feature development and are deprecated. NTLMv1 is removed starting in Windows 11, version 24H2 and Windows Server 2025.

What is pass-the-hash?

MITRE ATT&CK describes pass the hash as authenticating as a user with a stolen password hash, without knowing the cleartext password. It works because NTLM's challenge-response proof is computed from the hash, not the password.

How is an NTLM relay attack different from pass-the-hash?

In a relay the attacker never holds the hash: they forward a victim's live challenge-response exchange to another server in real time. Requiring SMB signing, or using Kerberos, defeats it on file shares.