Active Directory · Term

What is Pass-the-Hash?

Pass-the-Hash lets an attacker log in as a user with their stolen NTLM password hash, without ever knowing or cracking the password. Here is what Pass-the-Hash is, how it drives lateral movement, and how to stop it.

Active Directory · TermAll services
TL;DR

Pass-the-Hash (PtH) is an attack where an attacker authenticates as a user using their NTLM password hash directly, without knowing or cracking the plaintext. NTLM treats the hash as the secret, so a hash stolen from LSASS memory or NTDS.dit is enough to log in. It is the engine of lateral movement across a Windows network, and it is amplified by reused local-administrator passwords. The strongest single defence is LAPS.

By John Dill, Red Team Lead, SecureLayer7Updated

What Pass-the-Hash is

When Windows authenticates with NTLM, the secret proven on the wire is derived from the NTLM hash of the password, not the password text. So if an attacker has the hash, they can present it and log in as that user, with no cracking required. The hash *is* the credential.

Hashes are stolen from the LSASS process on a compromised machine or from the NTDS.dit database on a Domain Controller. Once held, they are reused to authenticate to other systems.

Lateral movement and payload

Pass-the-Hash drives the climb to Domain Admin:

1. Compromise a machine and dump hashes: sekurlsa::logonpasswords (Mimikatz). 2. Reuse a hash to authenticate to the next machine: wmiexec.py -hashes :<nt-hash> corp.local/admin@host or psexec.py -hashes ... (Impacket). 3. Dump that machine for fresher, more privileged hashes; repeat until a Domain Admin hash appears.

Reused local-admin passwords let one stolen hash unlock hundreds of machines. Documented techniques shown for defenders.

How to defend

  • Deploy LAPS so every machine has a unique, rotating local-admin password.
  • Enable Credential Guard and add privileged accounts to Protected Users so reusable hashes are not left in memory.
  • Keep Domain Admins off ordinary workstations, the most common source of harvestable hashes.
  • Prefer Kerberos and disable NTLM where possible, then audit remaining NTLM use.
  • Detect lateral authentication patterns and LSASS access.

References

  1. [1]MITRE ATT&CK Enterprise Matrix(MITRE)
  2. [2]Microsoft: Kerberos Authentication Overview(Microsoft)
  3. [3]NIST SP 800-115 Technical Guide to Security Testing(NIST)
Related terms

Common questions

Active Directory, asked often

Need your Active Directory tested?

Scope an engagement

Test your Active Directory before an attacker does.

We run internal and Active Directory penetration tests that follow the real path from one low-privilege user to Domain Admin, then hand your team a report with reproducible evidence and a fix for every step. Free re-test included.

See all services30-min scoping call, fixed-price proposal in 48 hours.