Security operations

What Is a Pass-the-Hash Attack? How PtH Works and How to Stop It

Pass-the-hash turns a stolen password hash into a working login, no cracking needed. Here is how the attack chain runs and the controls that break it.

Cysoro Security TeamPublished · 7 min read
aad3b435b51404ee aad3b435b51404ee NTLM hash — stolen reused, never cracked ! SECURITY OPERATIONS Pass-the-hash attack The hash is the password.
Quick answer

A pass-the-hash attack is a Windows lateral movement technique in which an attacker steals the NTLM hash of a password and presents that hash directly to another system to authenticate as the account owner, without ever knowing or cracking the plaintext password. MITRE ATT&CK catalogs it as T1550.002, and it works because NTLM accepts the hash itself as proof of identity.

Key takeaways

  • Pass-the-hash reuses a stolen NTLM hash to authenticate, so the attacker never needs the actual password or to crack anything.
  • It is a second-stage attack: the attacker first needs a foothold and a way to read hashes from memory, the SAM database or the domain controller.
  • Credential Guard, LSA protection, tiered admin accounts and removing NTLM where possible are the controls that actually break the chain.

Most people assume a stolen password is only useful if the attacker can read it. Pass-the-hash breaks that assumption: the attacker steals the scrambled hash of your password and logs in with it directly, no cracking required.

What is a pass-the-hash attack?

A pass-the-hash attack is a Windows lateral movement technique in which an attacker authenticates as a user by presenting that user's stolen NTLM password hash, without knowing the plaintext password. MITRE ATT&CK catalogs it as sub-technique T1550.002 under "Use Alternate Authentication Material".

The key point is that NTLM, the Windows authentication protocol, treats the hash as proof of identity. In the challenge-response exchange, the client proves it knows the password by performing a calculation with its hash. An attacker who already holds the hash can perform the same calculation, so the server cannot tell the difference between the real user and the attacker.

Pass-the-hash is never the first step of an intrusion. The attacker must already control a machine and have a way to extract a hash from it. What it does is turn one compromised machine into access across the whole network.

How does a pass-the-hash attack work?

The attack follows a repeatable chain, and defenders can break it at several points. Understanding each step shows where the controls belong.

The pass-the-hash attack chain 1 Get a foothold phishing or an exposed service, then local admin 2 Steal the hash dump LSASS memory, SAM or NTDS.dit 3 Pass the hash present the hash to SMB, RDP or WinRM 4 Expand repeat on each new host until Domain Admin Each new host yields more hashes — which is why one stolen hash can end in domain compromise.
The pass-the-hash chain, from first foothold to domain compromise. Illustration by Cysoro.

1. Get a foothold

The attacker compromises one Windows machine, often through phishing or an unpatched service, and gains local administrator rights. Our guide to what spear phishing is covers the most common way in.

2. Steal the hash

With admin rights, the attacker reads NTLM hashes from LSASS memory, where Windows keeps credentials for signed-in users, or from the local SAM database. Tools such as Mimikatz automate this; MITRE notes its sekurlsa::pth module can impersonate a user with only a password hash.

3. Pass the hash

The attacker injects the hash into an authentication attempt against another system over SMB, RDP or WinRM. The target accepts the NTLM challenge-response and logs the attacker in as the account owner.

4. Expand until Domain Admin

Each new host holds more hashes in its LSASS memory. The attacker repeats the cycle until a Domain Admin hash appears, then uses it against the domain controller. At that point the whole domain is compromised.

Where do attackers get the hashes?

Hashes come from three main places, and each one maps to a different defense. LSASS memory holds the hashes of accounts that have signed in to the compromised machine, which is why a Domain Admin logging into a workstation is so dangerous. The SAM registry hive holds local account hashes.

The third source is the domain controller itself. With a Domain Admin hash, an attacker can perform a DCSync attack and pull the entire directory database, NTDS.dit, which contains every account's hash. That is the endgame of most pass-the-hash campaigns.

Cached credentials are a related but different risk: cached domain logons stored on a laptop cannot be passed directly, but they can be cracked offline. The practical lesson is the same: limit which privileged accounts ever touch ordinary workstations.

Pass-the-hash vs pass-the-ticket: what is the difference?

Both techniques reuse stolen authentication material instead of a password, and both sit under MITRE ATT&CK T1550. The difference is which protocol they abuse, and that decides which controls and log sources apply.

Pass-the-hash (T1550.002)Pass-the-ticket (T1550.003)
ReusesNTLM password hashKerberos ticket, usually a TGT
ProtocolNTLMKerberos
Stolen fromLSASS, SAM, NTDS.ditLSASS ticket cache
Fixed byChanging the passwordChanging the password and the KRBTGT account password twice
Key defenseCredential Guard, restrict NTLMCredential Guard, Kerberos hardening

Credential Guard protects against both, because it isolates NTLM hashes and Kerberos tickets together. That is why Microsoft presents it as the single most important mitigation for this whole family of attacks.

Why is NTLM vulnerable to this?

NTLM is a challenge-response protocol from the early 1990s, and its design predates modern credential theft. When a user logs in, Windows stores the NT hash of their password, an unsalted MD4 hash, and NTLM authentication proves identity by computing a response from that hash.

Because the hash is the secret, anyone who holds it can answer the challenge. There is no second factor in the exchange itself, no binding to a device, and no expiry beyond the password change. Kerberos is stronger, but NTLM remains enabled in most networks for legacy applications, printers and old systems that cannot do Kerberos.

Microsoft has been pushing organizations to restrict NTLM for years, and Windows now allows administrators to audit NTLM use and block it where it is not needed. The fewer systems that accept NTLM, the fewer places a stolen hash is worth anything.

How do you detect a pass-the-hash attack?

Pass-the-hash leaves a distinctive signature in Windows logs, which is the main reason it is detectable at all. A successful network logon appears as Event ID 4624 with Logon Type 3, using NTLM, from a host the account does not normally use, with no matching interactive logon beforehand.

MITRE's detection guidance for T1550.002 recommends auditing all logon and credential use events and reviewing them for discrepancies, especially anomalous NTLM logons from lateral systems. Type 9 logons, which use new credentials, are another signal when they appear without a matching session.

  • Alert on NTLM logons by privileged accounts from workstations they never normally use.
  • Watch for 4624 Type 3 logons immediately followed by access to admin shares such as ADMIN$ or C$.
  • Flag LSASS access by processes that are not part of Windows itself, such as Mimikatz or credential dumpers.
  • Correlate with lateral movement: a hash attack is usually followed by SMB, RDP or WinRM connections to new hosts.

Detection works best when you know what normal looks like. A Domain Admin logging into a file server at 3 a.m. from a marketing laptop is not normal, and your monitoring should say so.

How do you prevent pass-the-hash attacks?

No single control stops pass-the-hash. The goal is to make each step of the chain harder, so the attacker runs out of options before reaching the domain controller.

Six controls that break the pass-the-hash chain 1. Credential GuardIsolates hashes in VBS; enabled by default on Win 11 22H2 2. LSA protectionOnly signed code can load into LSASS 3. Tiered admin accountsDomain Admins never log on to workstations 4. Restrict NTLMAudit NTLM use; block it where Kerberos works 5. Unique local admin passwordsLAPS: a shared local admin password is one hash away 6. Patch and segmentKB2871997 and later; block lateral SMB/RDP by default
Defense in depth against pass-the-hash — Credential Guard first, then tiering and NTLM restriction. Illustration by Cysoro.

Enable Credential Guard

Credential Guard uses hardware-backed virtualization-based security to store Active Directory secrets in an isolated environment that the rest of the operating system cannot reach. Microsoft's documentation states that it shields systems from credential theft techniques like pass-the-hash and pass-the-ticket, even when malware runs with admin rights.

It is enabled by default on domain-joined Windows 11 version 22H2 and Windows Server 2025 systems that meet the hardware requirements, including Secure Boot and virtualization support. On older systems, enable it through Group Policy and verify it is actually running, because a policy that is set but not applied protects nothing.

Turn on LSA protection

LSA protection loads only trusted, signed code into the Local Security Authority process, which makes it much harder for credential dumping tools to read LSASS memory. Microsoft notes it is enabled by default on new Windows 11 installations, and activates after an evaluation period on upgrades.

Tier your admin accounts

Never let a Domain Admin log on to an ordinary workstation. Use separate accounts for tier 0 (domain controllers), tier 1 (servers) and tier 2 (workstations), and enforce it with Group Policy. This single rule removes the richest hashes from the machines attackers compromise first.

Restrict NTLM and patch

Audit where NTLM is still used, move applications to Kerberos where possible, and block NTLM elsewhere. Apply patch KB2871997 and later updates, which limit the default network access of local administrator accounts on Windows 7 and higher, as MITRE documents in its T1550.002 mitigations.

Use unique local administrator passwords

If every machine shares the same local administrator password, one stolen hash opens every machine. Microsoft's Local Administrator Password Solution (LAPS) gives each machine a unique, rotating local admin password, so a hash stolen from one host is useless on the next.

What should you do if you suspect a pass-the-hash attack?

Act fast and assume the attacker has more hashes than the one you found. The response has four parts, in this order.

  1. Isolate the affected hosts from the network so the attacker cannot keep moving laterally while you investigate.
  2. Reset the passwords of every account whose hash may have been stolen, starting with privileged accounts, and reset the KRBTGT account password twice if Kerberos tickets were also taken.
  3. Remove the foothold. Find how the attacker got in, close it, and reimage compromised machines rather than trying to clean them in place.
  4. Review the logs. Trace every logon the stolen accounts made, and assume any system they touched is compromised until proven otherwise.

Do not just reset one password and declare the incident over. Pass-the-hash attacks spread by design, and the hash you found is rarely the only one the attacker holds. A full reset of affected accounts, plus tiering and Credential Guard afterward, is what stops the next attempt.

The bottom line

Pass-the-hash works because NTLM treats a hash as a password. The attacker does not need to crack anything, they only need one foothold and one privileged hash.

Enable Credential Guard and LSA protection, keep Domain Admins off workstations, give every machine its own local admin password, and restrict NTLM wherever you can. And limit who holds privileged roles in the first place with proper role-based access control.

You can check the rest of your baseline against our small business cybersecurity checklist.

Frequently asked questions

What is a pass-the-hash attack in simple terms?

It is an attack where a hacker steals the scrambled version of your password, called a hash, and uses it directly to log in to other computers as you. The hacker never learns your actual password and never has to crack it, because Windows NTLM authentication accepts the hash itself as proof of identity.

Can pass-the-hash work without the password?

Yes, that is the whole point of the attack. The NTLM protocol uses the password hash in its challenge-response exchange, so presenting a stolen hash is enough to authenticate. Changing the password invalidates the stolen hash, which is why a password reset is part of the response.

What is the difference between pass-the-hash and pass-the-ticket?

Pass-the-hash reuses a stolen NTLM password hash, while pass-the-ticket reuses a stolen Kerberos ticket, usually a ticket-granting ticket. Both are sub-techniques of MITRE ATT&CK T1550. Pass-the-hash targets NTLM, pass-the-ticket targets Kerberos, and both let an attacker move laterally without a plaintext password.

How do attackers get the hash for a pass-the-hash attack?

They first compromise a Windows machine, then read hashes from the memory of the Local Security Authority Subsystem Service (LSASS), the local SAM database, or the domain controller's database after a DCSync-style attack. Tools such as Mimikatz automate this, which is why stopping the first foothold matters so much.

Does Credential Guard stop pass-the-hash?

Yes, Credential Guard is Microsoft's main defense. It isolates NTLM hashes and Kerberos tickets in a hardware-protected virtualization-based environment that the rest of the operating system cannot read, even with administrator rights. It is enabled by default on domain-joined Windows 11 22H2 and Windows Server 2025 systems that meet the hardware requirements.

How can you detect a pass-the-hash attack?

Look for successful network logons, Windows Event ID 4624 with Logon Type 3 or Type 9, using NTLM, from a host the account does not normally log on from, with no matching interactive logon. Unusual lateral movement by privileged accounts, especially outside business hours, is the other strong signal.

Does changing your password stop pass-the-hash?

Changing the password of the compromised account invalidates the stolen hash, so that specific hash stops working. But if the attacker already used it to reach other machines and steal more hashes, you must reset every affected account and remove the attacker's foothold, or the attack simply continues with a different hash.

Is pass-the-hash still a threat in 2026?

Yes. It is still one of the most common lateral movement techniques in Windows environments, and MITRE lists real groups including APT1 and APT28 among its users. Credential Guard and the move away from NTLM reduce the risk, but many networks still run NTLM for legacy applications.

Sources

  1. MITRE ATT&CK — T1550.002: Use Alternate Authentication Material: Pass the Hash
  2. Microsoft Learn — Credential Guard
  3. Microsoft Learn — Credential Guard: Say Good Bye to Pass The Hash/Ticket Attacks
  4. CISA — Detecting and Mitigating Active Directory Compromises
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against MITRE ATT&CK T1550.002 and Microsoft Learn documentation on Credential Guard and LSA protection.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free