Active Directory Series

🎫 A Top 1% Hands-On: Forging a Golden Ticket From the krbtgt Hash Stolen via DCSync — Why a Single Password Change Can't Invalidate It

Introduction

This article is part of the Top 1% Series Complete Article Guide, and article 43.05 in the Active Directory Series.

Prerequisite Knowledge

Getting the Big Picture

The krbtgt account’s secret key is the key used to sign every single TGT issued within the domain. Get hold of that key, and an attacker can freely forge a TGT, entirely inside their own machine, with no query to the real domain controller at all. That TGT can claim a nonexistent username, membership in the Domain Admins group, and an expiration date years in the future — and this is called a Golden Ticket.

graph TB
    DCSync["Steal the krbtgt hash via DCSync"] --> Forge["Forge a TGT, entirely inside the attacker's own machine"]
    Forge --> Golden["Golden Ticket<br/>(any username, any privilege, any expiration)"]
    Golden --> Access["Access any resource in the domain"]
    Access --> Reset1["Change the krbtgt password once"]
    Reset1 -->|"Still valid (the previous password is also kept)"| Golden
    Reset1 --> Reset2["Change the krbtgt password a second time"]
    Reset2 -->|"Finally invalidated"| Invalid["Golden Ticket revoked"]

Deep Dive Into the Fundamentals

Why a Single Password Change Can’t Invalidate a Golden Ticket

AD DS keeps both the current password and the previous password for the krbtgt account, simultaneously. This is Kerberos’s own key-rollover design, meant to stop a ticket already being validated at the exact moment of a password change from suddenly failing. But because of this design, changing the krbtgt password just once still leaves a Golden Ticket, signed with the stolen “previous password,” valid. A genuine invalidation requires changing the password twice in a row, and the second change should ideally happen only after the default Kerberos ticket lifetime (10 hours) has elapsed (doing the second change immediately after the first risks a separate problem: some DCs may still be on the old password before replication completes).

Why Golden Tickets Are Hard to Detect, and What Anomalies to Watch For

Because a Golden Ticket is correctly signed with the genuine krbtgt key, the domain controller accepts it as a cryptographically valid ticket. What’s worth watching for detection isn’t the ticket’s content itself, but anomalies in how the ticket gets used. Three well-known anomaly patterns are: an implausibly long ticket lifetime, access under a username that doesn’t actually exist in the domain, and the use of an outdated encryption method like RC4 despite running a modern domain.

From Stealing the krbtgt Hash to Generating a Golden Ticket, With mimikatz

Using the krbtgt NTLM hash obtained via DCSync, an attacker can generate a forged TGT, with any username, any SID history, and any expiration date, using mimikatz’s kerberos::golden command. Load the generated ticket into memory with kerberos::ptt (Pass the Ticket), and every subsequent Kerberos authentication succeeds with that ticket’s content.

What a Pro Sees Here (Top 1% Understanding)

“The Hash Was Stolen” and “Changing the Password Makes It Safe” Are Two Separate Things

With most leaked credentials, changing the password invalidates the leaked credential. But for an account like krbtgt, designed to simultaneously hold two generations of a secret — current and previous — this intuition doesn’t hold. The habit of digging one layer deeper to check that credential’s own design is the perspective a top-1% engineer uses to avoid stopping at the incomplete response of “I changed the password, so it’s safe now.”

Common Misconceptions and Pitfalls

Troubleshooting Perspective

  1. You’ve determined the krbtgt hash may have been leaked: Don’t stop at a single password change — change it twice in a row, with the default ticket lifetime as a gap between the two.
  2. You want to investigate whether a Golden Ticket is in use: Check for the three anomaly patterns — an implausible ticket lifetime, access under a nonexistent username, and use of an outdated encryption method.
  3. Suspicious access continues even after changing the krbtgt password: Check whether the second change happened with a sufficient gap after the first.

Summary

Takeaways to Apply Today

  1. When credentials leak, check whether the premise “changing the password makes it safe” genuinely holds for that specific account’s design.
  2. Build regular krbtgt password rotation into your ongoing operations.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).