Security Basics

What Is NTLM? Authentication, Hashes, Relay Attacks and Microsoft's Deprecation Plan

By Vince AntonioPublished 10 min read

NTLM is the old way Windows proves who you are on a network. It still runs on most Windows business networks, and attackers love it. This guide explains what NTLM is, how NTLM authentication works, why its hashes get stolen, and what Microsoft's plan to switch it off means for your business.

An IT administrator in a server room checking a laptop that shows a login key passing between two computers

In plain English

  • NTLM is an old Windows sign-in method that still runs quietly on most business networks.
  • Attackers steal NTLM logins to crack passwords or pass them on to your own servers.
  • Microsoft has deprecated NTLM and plans to turn it off by default in a future Windows release.
  • Find out where you still use NTLM now, before a Windows update breaks something.

What is NTLM?

NTLM (NT LAN Manager) is a set of Microsoft protocols that Windows uses to check who you are when you connect to something on a network. That might be a shared folder, a printer or an intranet site. It dates back to the early 1990s, and Microsoft has now deprecated it (stopped improving it ahead of phasing it out).

In short: NTLM lets your PC prove you know your password without sending the password itself. It does this with a hash, a scrambled fixed-length version of the password. The problem is that this hash can be stolen and misused.

Most Windows networks use Kerberos, a newer and safer sign-in method. But Windows still falls back to NTLM when Kerberos cannot be used, and that happens more often than most IT teams think.

How NTLM authentication works

NTLM authentication is a "challenge and response" check. The server sends a random puzzle, and your PC solves it using your password hash. Here are the steps, simplified from Microsoft's own description:

  1. You sign in to your PC. Windows turns your password into a hash and keeps the hash, not the password.
  2. You open a shared folder. Your PC sends your user name to the file server.
  3. The server replies with a random number, called the challenge.
  4. Your PC scrambles the challenge using your password hash and sends back the result, called the response.
  5. The server passes your user name, the challenge and the response to the domain controller (the server that holds everyone's accounts).
  6. The domain controller does the same math with its copy of your hash. If the results match, you are in.

Your real password never crosses the network. But the server never proves who it is to you. Anyone who can trick your PC into talking to them can capture or reuse that response.

"Auth NTLM" in a browser or app: intranet sites and apps such as on-premises Exchange can also ask for NTLM sign-in. Their settings may say "NTLM" or "Negotiate", which means "try Kerberos first, fall back to NTLM".

NTLMv1 vs NTLMv2

There are two main versions, plus an even older one called LAN Manager (LM).

  • NTLMv1 uses very old encryption (DES). A captured NTLMv1 response can be cracked fast with modern hardware. Microsoft removed NTLMv1 starting in Windows 11, version 24H2 and Windows Server 2025.
  • NTLMv2 adds extra random data and a timestamp, so it is much harder to crack. It is what most networks use today. It is still open to relay attacks, and weak passwords can still be cracked.

If any of your systems still allow LM or NTLMv1, fix that first. In Group Policy, the setting is Network security: LAN Manager authentication level. The safest value is "Send NTLMv2 response only. Refuse LM & NTLM". Test it on a few machines first.

What is an NTLM hash, and why do attackers want it?

People say "NTLM hash" for two different things. The difference matters.

  • The stored hash (NT hash). This is the scrambled password Windows keeps on the PC and on the domain controller. If attackers steal it from a hacked machine, they can often use it directly to sign in as you. This is called pass-the-hash. They never need your real password.
  • The network response (often called a NetNTLMv2 hash). This is what your PC sends during the challenge step. Attackers capture it by tricking your PC into signing in to a server they control. They cannot pass it like a stored hash. Instead they either crack it offline to find your password, or relay it live to another server.

Cracking works well against short or common passwords. Relay is the bigger worry, because it works even when the password is strong.

NTLM relay attacks explained

An NTLM relay attack is a type of man-in-the-middle attack. Microsoft describes it in two steps. First, the attacker tricks a victim into signing in to a machine the attacker controls. Second, the attacker passes that sign-in on, in real time, to the server they actually want to get into.

  1. The victim's PC starts an NTLM sign-in with the attacker's machine.
  2. The attacker connects to a real company server, such as a file server, and gets a challenge.
  3. The attacker forwards the challenge to the victim's PC, then forwards the answer back to the real server.
  4. The real server accepts it. The attacker is now signed in as the victim.

This works because plain NTLM has no way to tie a sign-in to the server it was meant for. If the victim is an IT admin, one relayed sign-in can hand over the whole network.

A current example. In November 2026, Microsoft fixed an Outlook flaw that attackers were already using. Opening a booby-trapped message file made Outlook send the user's NTLMv2 hash to an attacker's server. See our Outlook zero-day CVE-2026-124194 post. Attacks like this start with an email, so teaching staff to spot phishing helps too.

NTLM vs Kerberos

Kerberos is the sign-in method Microsoft wants everyone to use. Instead of answering a challenge each time, your PC gets a "ticket" from the domain controller for each service you use. Here is how the two compare.

NTLMKerberos
How you prove who you areAnswer a challenge using your password hashShow a ticket issued by the domain controller
Does the server prove who it is?NoYes, both sides check each other
Relay riskHigh, unless signing or EPA is turned onMuch lower, as each ticket is for one service
Needs a domain controller?No, also works for local accounts and standalone PCsYes, it needs to reach one (Microsoft is changing this)
Connecting by IP addressWorksUsually needs the server's name instead
StatusDeprecated, to be off by default in future WindowsMicrosoft's recommended default

So why does NTLM still show up? Common reasons are connecting by IP address, local accounts, PCs that cannot reach a domain controller, older apps that ask for NTLM by name, and devices such as NAS boxes or scanners that only support NTLM.

Microsoft Windows NTLM deprecation: the timeline

WhenWhat happened
June 2024Microsoft deprecated all versions of NTLM, including LANMAN, NTLMv1 and NTLMv2.
Late 2024NTLMv1 removed starting in Windows 11, version 24H2 and Windows Server 2025.
December 2024Microsoft confirmed relay protections are on by default in Windows Server 2025 (EPA for certificate services, channel binding for LDAP) and in Exchange Server 2019 CU14.
July 2025Detailed NTLM audit logs arrive for Windows 11 24H2 and Windows Server 2025, later Server 2019 and 2022.
29 January 2026Microsoft published a three-phase plan to disable NTLM by default.
13 October 2026The October security update started blocking NTLMv1-based single sign-on by default on PCs without Credential Guard.

The three phases in Microsoft's plan are:

  1. Visibility. Better NTLM auditing, available now.
  2. Fixing the main reasons NTLM is still used. New features called IAKerb and local KDC let Kerberos work where NTLM used to be forced. Microsoft targeted the second half of 2026, starting in pre-release.
  3. NTLM off by default. In the next major Windows Server release and the Windows client releases that go with it, network NTLM will be disabled by default. You will need a policy to turn it back on.

Note that "disabled by default" is not "removed". NTLM stays in Windows for now so you can re-enable it where you must. Microsoft has not given a date for phase 3 and says timelines may change.

"Authentication failed because NTLM authentication has been disabled"

This is the exact text of Windows error 1937 (0x791, ERROR_NTLM_BLOCKED). It means a policy somewhere blocked NTLM, and Kerberos could not be used instead. The block can sit on your PC, on the server you are connecting to, or on the domain controller. People often see it when mapping a drive to a NAS or after a Windows upgrade.

A related case: if a Windows update disabled NTLM sign-in for Wi-Fi or VPN, you may be hitting the October 2026 change. It blocks single sign-on that relies on NTLMv1, such as PEAP-MSCHAPv2 Wi-Fi and VPN. Typing the password by hand still works. Look for event 4025 in the NTLM log.

What to do:

  1. If you connected by IP address, try the server's full name instead. That often lets Kerberos work.
  2. Open Event Viewer on the PC and the server. Go to Applications and Services Logs, then Microsoft, Windows, NTLM, Operational. The events show what used NTLM and why.
  3. Check the "Network security: Restrict NTLM" policies in Group Policy to find which one blocks the connection.
  4. Fix the cause: update the device firmware, move the app to Kerberos, or replace the device.
  5. If you must allow NTLM, add a narrow exception for that one server. Do not turn NTLM back on everywhere.
For the Wi-Fi and VPN case, Microsoft allows a registry setting (BlockNtlmv1SSO set to 0) to go back to audit mode. Microsoft says to treat it only as a scoped, temporary exception. Our advice is to plan a move to a sign-in method that does not rely on NTLMv1, such as certificate-based sign-in.

How to protect your business from NTLM attacks

You do not have to wait for Microsoft. These steps cut the risk now, roughly in order of value.

  • Audit NTLM use before you disable anything. The new NTLM logs are on by default on supported systems. Review them for a few weeks to find what still needs NTLM.
  • Require SMB signing. SMB is the protocol behind Windows file sharing. Signing stops relayed sign-ins on file servers. Windows 11 24H2 Pro and Enterprise require it by default. Older servers and NAS devices often do not.
  • Turn on LDAP signing and channel binding on your domain controllers, and Extended Protection for Authentication (EPA) on Exchange and certificate services. These tie each sign-in to the server it was meant for. Windows Server 2025 does much of this by default. On Server 2019 and 2022, turn it on yourself.
  • Block outbound SMB (TCP port 445) at your firewall. PCs should never send Windows sign-ins to servers on the internet. Our firewall configuration checklist covers this.
  • Turn off NTLMv1 and LM everywhere they still exist.
  • Use long passwords and MFA (a second sign-in step, such as a code on your phone). MFA on email, VPN and remote access means a cracked password is not enough.
  • Turn on Credential Guard where your hardware supports it. It protects stored hashes on the PC from being stolen.
  • Give admins separate accounts with no mailbox, so one opened email cannot leak an admin hash.

For more on the basics behind these steps, see our network security basics guide.

How NextGarrison can help

NTLM relay is one of the first things a skilled tester tries on an internal network, and it often works. A penetration test shows you whether an attacker inside your network could capture or relay a sign-in, and which settings would stop them. We then help you plan the move away from NTLM without breaking the apps your team relies on. For a quick start, take our free security assessment.

Sources

Topics:Network SecurityPenetration TestingSmall Business

Need a hand with this?

Talk to a senior consultant. We reply within one business day with clear next steps and a scoped quote.

Prefer to just ask? Contact us and a consultant will reply.

Written by

Vince Antonio

Security writer and consultant, NextGarrison

Vince writes NextGarrison's security news, technical vulnerability write-ups and guides. He covers actively exploited flaws, penetration testing, SOC monitoring and getting ready for SOC 2, ISO 27001 and PCI DSS, in plain English with sources for every claim.

Want the next alert like this one?

New vulnerability alerts as soon as we publish them. Free, no sign-up, works in Feedly, Outlook, Slack and Teams.

Frequently Asked Questions

What is NTLM authentication used for today?

Windows still uses NTLM when Kerberos cannot be used. Common cases are connecting by IP address, local accounts, and older apps or devices that only support NTLM.

Is NTLM being removed from Windows?

Not yet. Microsoft has deprecated all versions and removed NTLMv1 in Windows 11 24H2 and Windows Server 2025. It plans to turn network NTLM off by default in the next major Windows Server release, but it will stay available through policy for now.

Is NTLMv2 secure?

It is much stronger than NTLMv1, but it is still open to relay attacks, and weak passwords can be cracked from a captured response. SMB signing, LDAP signing, EPA and long passwords close most of the gap.

What does "authentication failed because NTLM authentication has been disabled" mean?

It is Windows error 1937. A policy on the PC, the server or the domain controller blocked NTLM, and Kerberos could not be used instead. Check the NTLM Operational event log to see which connection was blocked and why.

Keep reading