1. Resources
  2. Identity Threats
  3. Active Directory

Overpass-the-Hash (Pass-the-Key)

Also known as: Pass-the-Key, OPtH, Overpass the hash, PtK

An attacker who holds an account's NT hash or AES key uses it to request a real Kerberos TGT from the domain controller and then acts as that user without the password.

Platform
Active Directory
Impact
High
Last updated
Attack difficulty
Low
Detection difficulty
High
Privileges required: Specific rights or roles
The NT hash or an AES Kerberos key of the target account, usually taken from LSASS with local administrator rights, or through DCSync or a copy of NTDS.dit.
What the attacker gains
A genuine TGT for the account, and through it every Kerberos service the account can use, including where NTLM is blocked.
Threat groups
APT1APT28APT32APT41Aquatic PandaChimeraEmber BearFIN13GALLIUMKimsukyWizard SpiderAPT29BRONZE BUTLERGroups that MITRE ATT&CK records using T1550.002, T1550.003.

How it works

The first exchange in Kerberos is the AS exchange. The client sends an AS-REQ with pre-authentication data: a timestamp encrypted with the account's long-term key. The domain controller decrypts the timestamp with its copy of the key and, if it is valid, returns a TGT and a session key, the latter encrypted with the same long-term key.

The KDC has verified possession of the key. It has not verified that anyone typed a password. A client that holds the key can build the same request without ever knowing the password, and the TGT it gets back is genuine: issued and signed by the KDC, with a correct PAC and policy lifetime.

Which stolen value works depends on the encryption type:

Value Length Derived from Kerberos encryption type Also works for NTLM
NT hash 16 bytes, 32 hex MD4 of the UTF-16LE password RC4-HMAC (0x17) Yes
AES128 key 16 bytes, 32 hex PBKDF2 over password and salt AES128 (0x11) No
AES256 key 32 bytes, 64 hex PBKDF2 over password and salt AES256 (0x12) No
  • Overpass-the-Hash is the RC4 form. RFC 4757 defines the RC4-HMAC key as the MD4 of the Unicode password, which is exactly the NT hash. The same 16 bytes that enable Pass-the-Hash over NTLM are a valid Kerberos key.
  • Pass-the-Key is the AES form. The AES keys are salted with the realm and account name and cannot be computed from the NT hash. They are stolen separately, from LSASS memory, a keytab, or a replication response.

The technique converts stolen key material into a Kerberos identity. That matters where NTLM is restricted, where the target only accepts Kerberos, or where the attacker wants activity that looks like a normal sign-in. After the TGT arrives, the rest is Pass-the-Ticket.

Some conditions block the RC4 route: a domain policy that removes RC4 from the allowed Kerberos encryption types, membership of the target account in Protected Users (which refuses RC4 and DES pre-authentication), and Windows Server 2025 domain controllers, which do not issue RC4 TGTs. The AES route is not affected by any of them.

Prerequisites

  • A long-term key of the target account: the NT hash, or an AES128 or AES256 key. Sources are LSASS credential dumping on a host where the account signed in, DCSync, a copy of NTDS.dit or a backup, a keytab file, or a cracked password.
  • Network access to a domain controller on port 88.
  • For the RC4 route: the domain and the account still accept RC4. An old account whose password was never changed since before AES support has only an NT hash; a recent one has both.
  • An account worth impersonating. The TGT carries the account's own rights and nothing more.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Obtain the key

On a host where the attacker is local administrator, Mimikatz lists the Kerberos keys of every logged-on account, including the AES keys:

mimikatz # privilege::debug
mimikatz # sekurlsa::ekeys

2. Request a TGT with the key

Rubeus builds the AS-REQ itself. It needs no elevation to request a TGT or to apply it to the current logon session:

# NT hash, RC4 pre-authentication, inject into the current session
.\Rubeus.exe asktgt /user:alice /rc4:<nt_hash> /domain:corp.example.com /dc:DC01.corp.example.com /ptt

# AES256 key, request shaped like a genuine Windows AS-REQ, applied to a new logon session
.\Rubeus.exe asktgt /user:alice /aes256:<aes256_key> /domain:corp.example.com /opsec /createnetonly:C:\Windows\System32\cmd.exe /show

Mimikatz takes the other approach: it starts a process in a new logon session and writes the key into that session's Kerberos credentials, so that Windows itself requests the TGT when the process first needs one. It requires elevation:

mimikatz # sekurlsa::pth /user:alice /domain:corp.example.com /aes256:<aes256_key> /run:powershell.exe
mimikatz # sekurlsa::pth /user:alice /domain:corp.example.com /ntlm:<nt_hash> /run:powershell.exe

From Linux, Impacket saves the TGT as alice.ccache:

getTGT.py corp.example.com/alice -hashes :<nt_hash> -dc-ip 192.0.2.10
getTGT.py corp.example.com/alice -aesKey <aes256_key> -dc-ip 192.0.2.10

3. Use the TGT

klist
dir \\SRV01.corp.example.com\C$
export KRB5CCNAME=alice.ccache
psexec.py -k -no-pass corp.example.com/alice@SRV01.corp.example.com

NetExec performs both steps in one command when given a hash and -k:

nxc smb SRV01.corp.example.com -u alice -H <nt_hash> -k

Use host names, not IP addresses, so that the client asks for a Kerberos service ticket instead of falling back to NTLM.

Impact

The attacker holds a genuine TGT for the account and can request service tickets for everything the account may use: file shares, remote management, SQL Server, LDAP. For lateral movement it replaces Pass-the-Hash wherever NTLM is disabled or monitored.

The key works until the account's password changes. Tickets already issued survive a password reset until they expire. If the account is privileged, so is the attacker: an administrator's AES key taken from one server gives that administrator's reach across the domain.

OPSEC and artifacts

  • AES instead of RC4. A request with the AES256 key is indistinguishable by encryption type from a normal sign-in. What remains with the NT hash: on updated domain controllers, event 4768 records RC4 (0x17) as the pre-authentication encryption type for an account that normally uses AES.
  • Request shape. A hand-built AS-REQ differs from one that Windows sends, for example by sending pre-authentication in the first message. Rubeus /opsec sends the initial request without pre-authentication first, as Windows does, and by default only allows AES256 in that mode. The domain controller logs the first request as a pre-authentication-required answer, which is normal traffic.
  • Process talking to port 88. Rubeus and Impacket speak Kerberos themselves. What remains: a connection to TCP 88 from a process other than lsass.exe. The Mimikatz approach avoids this, because LSASS makes the request, at the cost of writing to LSASS memory.
  • New logon session. sekurlsa::pth and createnetonly create a logon of type 9 (new credentials) on the source host, with event 4624 naming the seclogo logon process. Applying a ticket with /ptt instead replaces the current session's TGT.
  • Unusual client for the account. Every route leaves event 4768 with the account name and the client address. An administrator's TGT requested from a workstation that the administrator never uses is the lasting trace.
  • Afterwards: event 4769 for each service ticket, and on the targets a Kerberos network logon (4624 type 3) with 4672 for administrative accounts.
  • Key theft leaves its own evidence: LSASS access on the source host, or replication events on a domain controller.

Detection

A key-based request is a valid request, so detection relies on context.

  • RC4 pre-authentication where the account uses AES. On domain controllers with the January 2025 or later updates, a successful event 4768 carries PreAuthEncryptionType. A value of 0x17 for an account that has AES keys is the NT hash route. A missing field on older builds means unknown, not RC4, and the ticket encryption type is a separate field that does not show which key the client used. The Kerberos RC4 downgrade rules cover the ticket side.
WindowsEvent
| where Provider == "Microsoft-Windows-Security-Auditing" and EventID == 4768
| where tostring(EventData.Status) =~ "0x0"
| extend Account = tostring(EventData.TargetUserName),
         PreAuthEtype = tostring(EventData.PreAuthEncryptionType),
         TicketEtype = tostring(EventData.TicketEncryptionType)
| where Account !endswith "$"
| where PreAuthEtype =~ "0x17"
| project TimeGenerated, Computer, Account, Source = tostring(EventData.IpAddress), PreAuthEtype, TicketEtype
  • New client for a privileged account. A 4768 for an administrative account from an address outside its usual set, followed by event 4769 for several services.
  • Type 9 logon on the source. A new-credentials logon followed by Kerberos activity under another account's name. The Pass-the-Hash detection rules read this event, since Mimikatz creates it for both techniques.
  • Protected accounts. A member of Protected Users that attempts RC4 pre-authentication is refused and logged. See the protected account rules.
  • On the targets. Kerberos 4624 type 3 from an unusual source, with 4672 on the same logon ID.
  • On endpoints. Non-LSASS processes connecting to TCP 88, LSASS process access, and command lines containing asktgt, sekurlsa::pth or getTGT.

Legacy systems and accounts without AES keys legitimately use RC4. Inventory them first; the signal is RC4 from an account that has stopped needing it.

Mitigation

  • Protect keys where they live. Enable Credential Guard and LSA protection so that keys cannot be read from LSASS on workstations and servers. See the LSA protection and Credential Guard guide.
  • Keep privileged accounts off lower-tier hosts. A key can only be stolen from a machine the account signed in to. Use dedicated administrative workstations and separate administrative identities.
  • Remove RC4. Audit RC4 use in events 4768 and 4769, give old accounts AES keys with a password change, then restrict the allowed Kerberos encryption types to AES. This closes the NT hash route. The RC4 to AES migration guide has the steps.
  • Put privileged users in Protected Users. Domain controllers then refuse RC4 pre-authentication for them and issue TGTs of 4 hours that cannot be renewed. It does not invalidate a stolen AES key. See the Protected Users guide.
  • Restrict replication rights and protect domain controller backups, which hand out every key in the domain at once.
  • Rotate after exposure. Reset the password of any account whose key may have been read, and treat issued tickets as usable until they expire. Reset machine and service account passwords too if they were on the affected host.
  • Limit what a ticket can reach. Least privilege, and SMB, WMI and WinRM restricted to management networks.

SMB and LDAP signing protect against relay and tampering. They do not stop a client that holds a valid ticket.

Detection rules for this attack

Log events to collect

FAQ

What is the difference between Pass-the-Hash and Overpass-the-Hash?

Both start from the same stolen NT hash. Pass-the-Hash uses it in NTLM authentication, directly against the target. Overpass-the-Hash uses it as a Kerberos key to obtain a TGT from the domain controller, and everything after that is normal Kerberos. The second works where NTLM is restricted and leaves Kerberos events instead of NTLM ones.

What is Pass-the-Key?

The same technique with an AES key instead of the NT hash. The AES128 and AES256 Kerberos keys are derived from the password and a salt, and cannot be computed from the NT hash, so they have to be stolen separately. A request made with the AES256 key looks like every normal sign-in in a modern domain.

Does disabling RC4 stop Overpass-the-Hash?

It stops the NT hash route, because the NT hash is only a valid key for RC4. It does not stop Pass-the-Key: an attacker who has the account's AES key can still request a TGT. Protecting the keys at their source and rotating exposed passwords remain necessary.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.