Pass-the-Hash
A technique in which an attacker authenticates with a stolen password hash, without ever knowing the actual password. It lets them move between systems with logins that look legitimate.
Reading Time:
3 min
Pass-the-hash is a technique in which an attacker authenticates to a system using a stolen password hash instead of the password itself. It works because, in some authentication protocols, the hash is all that is needed to prove identity, so there is no need to crack it.
A hash is a fixed-length value computed from a password by a one-way function. Systems store and compare hashes instead of passwords. In Windows environments the NTLM hash of a password is kept in memory and in the directory.
NTLM is an older Windows authentication protocol that uses a challenge and response based on the password hash. It has been largely replaced by Kerberos, but it remains enabled in many environments for compatibility with older systems and applications, which keeps this technique alive.
The step that comes before pass-the-hash: extracting hashes and other credentials from the memory of a machine or from local stores. An attacker usually needs administrative rights on the machine to do it, which is why those rights matter so much.
NTLM authentication uses the hash to answer a challenge. Anyone who holds the hash can answer it, so the hash is effectively equivalent to the password. The attacker never needs to know the original text.
The logins use valid hashes and ordinary network authentication. The target systems see a legitimate account signing in. The signs appear in the pattern: the same account on many machines in a short time, or sign-ins from machines the account never uses.
Pass-the-hash reuses an NTLM hash. Pass-the-ticket reuses a Kerberos ticket. The idea is the same, valid proof stolen and replayed, but the protocol is different.
No. The attack uses network authentication that does not involve an interactive login, so there is no prompt to approve. Protection comes from limiting NTLM, protecting credentials in memory and narrowing privileges.
An attacker compromises a workstation and extracts the hash of an administrator who recently signed in. They use it to authenticate to a file server, then a management server, and then a domain controller. Each login is accepted as the administrator’s, and nobody typed a password.
By comparing authentication with what is normal for each identity: which machines it uses, at what times and how many at once. A valid hash used in an invalid pattern is the signal.
Sharelock monitors behaviour across systems, so an account that begins authenticating to machines it never uses, in a pattern typical of pass-the-hash, is flagged and investigated quickly.
Explore more terms