How it works
A Golden Ticket is a TGT fabricated offline. Its weak point is that it has no history: no domain controller issued it, and anything the forger gets slightly wrong (lifetime, flags, PAC contents) differs from what the KDC would have produced.
A Diamond Ticket keeps the power of the Golden Ticket attack and removes that weak point. The attacker:
- Requests a TGT in the normal way, as an account they control. The KDC issues it and logs the request.
- Decrypts the TGT with the krbtgt key.
- Edits the Privilege Attribute Certificate (PAC): the user name and RID, the group RIDs, extra SIDs.
- Recomputes the PAC signatures with the krbtgt key and encrypts the ticket again.
The result is a TGT whose start time, end time, flags and session key came from the KDC, with authorization data the attacker chose. The session key is unchanged, so the attacker can build authenticators for it and use it for service ticket requests.
The PAC holds several typed buffers: the logon information with SIDs and groups, UPN and DNS names, the requestor SID, and checksums. They describe the same identity in several places, and a careless edit leaves them contradicting each other. Changing covered data means recomputing the server checksum, the KDC checksum, and on patched domains the ticket and full PAC signatures. Holding the krbtgt key makes all of that possible, which is why a valid signature proves nothing once the key is stolen.
Sapphire Ticket is a variant that does not edit the PAC at all. Using S4U2Self combined with user-to-user authentication, the attacker asks the KDC for a ticket to themselves on behalf of a privileged user. That ticket contains the privileged user's genuine PAC, built by the KDC. The attacker decrypts it, lifts the PAC and places it in their own TGT. Every field is authentic; only the pairing of ticket and PAC is forged.
Prerequisites
- The krbtgt key for the domain. The AES256 key is needed to decrypt a TGT that was issued with AES, which is the default; tools take both the AES key and the NT hash so that whichever type the KDC used can be handled. The key comes from DCSync, a copy of the AD database, or a compromised domain controller. Holding it means the domain is already compromised; like the Golden Ticket, this is a persistence technique.
- Credentials for any domain account, to request the original TGT: a password, a hash, a certificate, or the current logon session.
- Network access to a domain controller. Unlike a Golden Ticket, a Diamond Ticket cannot be made offline.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Request and modify a TGT with Rubeus
Rubeus requests a TGT for /user, decrypts it with /krbkey, sets the identity given by /ticketuser and /ticketuserid and the groups in /groups, and re-encrypts it:
# Original TGT requested with a password, AES pre-authentication
.\Rubeus.exe diamond /krbkey:<krbtgt_aes256_key> /user:alice /password:<password> /enctype:aes /domain:corp.example.com /dc:DC01.corp.example.com /ticketuser:Administrator /ticketuserid:500 /groups:512 /ptt
Without knowing any password, the tgtdeleg trick obtains a usable TGT for the current logon session and modifies that one:
.\Rubeus.exe diamond /tgtdeleg /krbkey:<krbtgt_aes256_key> /ticketuser:Administrator /ticketuserid:500 /groups:512 /ptt
Only one TGT fits in a logon session, and /ptt replaces the existing one. To keep the current session intact, apply the ticket to a new hidden logon session instead:
.\Rubeus.exe diamond /tgtdeleg /krbkey:<krbtgt_aes256_key> /ticketuser:Administrator /ticketuserid:500 /groups:512 /createnetonly:C:\Windows\System32\cmd.exe
2. The same from Linux with Impacket
With -request, ticketer.py authenticates as -user, takes the TGT it receives as a template and changes only what was supplied. It honors the encryption type of the issued ticket, so give it both krbtgt keys:
ticketer.py -request -user alice -password '<password>' \
-nthash <krbtgt_nt_hash> -aesKey <krbtgt_aes256_key> \
-domain-sid S-1-5-21-1111111111-2222222222-3333333333 -domain corp.example.com \
-user-id 500 -groups 512 Administrator
3. Sapphire variant
Adding -impersonate makes ticketer.py obtain the named user's real PAC through S4U2Self and user-to-user authentication and place it in the new ticket:
ticketer.py -request -impersonate Administrator -user alice -password '<password>' \
-nthash <krbtgt_nt_hash> -aesKey <krbtgt_aes256_key> \
-domain-sid S-1-5-21-1111111111-2222222222-3333333333 -domain corp.example.com Administrator
4. Use the ticket
export KRB5CCNAME=Administrator.ccache
psexec.py -k -no-pass corp.example.com/Administrator@DC01.corp.example.com
On Windows the injected ticket is used by the logon session it was applied to. From here it is ordinary Pass-the-Ticket.
Impact
The same as a Golden Ticket: the attacker acts as any user with any group membership, across the domain, regardless of password changes and MFA, until the krbtgt key is rotated twice. The difference is in how long that goes unnoticed. Detections built on "a TGT that was never issued" or on tool-default lifetimes do not fire.
OPSEC and artifacts
- A real issuance record. The original TGT request writes a normal event 4768 for the low-privileged account, with real pre-authentication. What remains: that event names the account that asked (for example
alice), while the service ticket requests that follow (event 4769) name the identity written into the ticket. When the operator changes the ticket's user name, the client address shows a TGT for one account and service tickets for another. - Keeping the name, changing the groups. Leaving the user name alone and adding only group RIDs or extra SIDs removes that mismatch. What remains: the account now receives privileges on targets (event 4672) that its directory group membership does not grant.
- KDC-set times and flags. Nothing in the ticket's lifetime or options differs from policy, because the KDC wrote them.
- Ticket hashes. A modified TGT is a different ticket. On domain controllers that record ticket hashes in events 4768 and 4769, the TGT presented in the service ticket request matches no issued ticket.
- Sapphire. The PAC is genuine, so even a comparison with the directory finds nothing wrong. What remains: the S4U2Self request itself, logged as an event 4769 in which an ordinary user account requests a ticket to itself on behalf of a privileged user.
- On the host. The Rubeus or Python process, its command line with the krbtgt key in it, and the
.kirbior.ccachefile./createnetonlyadds a logon of type 9 (new credentials) on the source. - The key theft that made the attack possible, usually replication from a non-domain-controller (event 4662).
Detection
- Issued ticket against used ticket. On supported builds, compare the
ResponseTickethash in event 4768 withRequestTicketHashin event 4769. A service ticket request whose TGT hash matches no ticket issued by any domain controller points to a forged or modified TGT. Renewed tickets and uncollected domain controllers are the ordinary explanations to rule out. - Account switch on one client. A 4768 for one account, then 4769 requests under a different account name from the same address with no 4768 of their own:
WindowsEvent
| where Provider == "Microsoft-Windows-Security-Auditing" and EventID in (4768, 4769)
| where tostring(EventData.Status) =~ "0x0"
| extend Account = tolower(tostring(split(tostring(EventData.TargetUserName), "@")[0])),
Source = tostring(EventData.IpAddress)
| where Account !endswith "$"
| summarize TgtAccounts = make_set_if(Account, EventID == 4768),
TgsAccounts = make_set_if(Account, EventID == 4769) by Source, bin(TimeGenerated, 10h)
| extend Unexplained = set_difference(TgsAccounts, TgtAccounts)
| where array_length(Unexplained) > 0
Shared hosts, terminal servers and NAT addresses produce several accounts per source, so apply it to workstations first.
- Privilege that the directory does not grant. A privileged logon on a target (4624 with 4672) for an account that is in no group that explains it.
- S4U2Self by user accounts. Service-for-user requests from accounts that are not services, especially for privileged users.
- The preconditions. The DCSync detection rules catch the usual route to the krbtgt key, and the Golden Ticket detection rules cover tickets that fail the KDC's PAC checks, which a sloppy modification also triggers.
A single adjacent 4768 and 4769 is ordinary traffic. No one of these signals proves modification on its own; they select sessions to examine.
Mitigation
The mitigation is the Golden Ticket's, because the stolen secret is the same.
- Reset the krbtgt password twice once exposure is credible, with an interval that covers ticket lifetimes and replication between the two resets. Microsoft's procedure assumes the default 10-hour lifetime; check the effective policy first. An immediate double reset breaks legitimate authentication. See the krbtgt password reset guide.
- Contain first. Remove the attacker's access to domain controllers, backups and replication rights before rotating, or the new key is taken too.
- Protect the key. Restrict replication rights to domain controllers and the few services that need them (see DCSync), treat domain controller backups and virtual disks as Tier 0, and administer domain controllers from dedicated workstations.
- Review delegation. Where the evidence points to a service-for-user path, review the delegation settings of the accounts involved. See constrained delegation.
- Keep domain controllers updated so that the newer 4768 and 4769 fields and the PAC signature checks are available.
- Collect Kerberos events from every domain controller. The comparisons above only work with complete coverage. The Kerberos hardening steps are in how to secure the Kerberos authentication protocol.
Encryption policy cannot restore trust in a key that someone else already holds. Enforcing AES is still worth doing, but it does not remove a Diamond Ticket.
Detection rules for this attack
Log events to collect
FAQ
How is a Diamond Ticket different from a Golden Ticket?
Both need the krbtgt key. A Golden Ticket is written from nothing, so no domain controller ever issued it. A Diamond Ticket starts from a TGT the KDC really issued to a normal account: the attacker decrypts it, changes the authorization data and encrypts it again. The request for the original ticket is in the logs, and the ticket's times and flags are the KDC's own.
What is a Sapphire Ticket?
A variant that avoids writing the PAC by hand. The attacker uses S4U2Self with user-to-user authentication to obtain a ticket that contains the genuine PAC of a privileged user, then places that PAC into their own TGT with the krbtgt key. Every group and attribute in the result is exactly what the KDC would have issued for that user.
How do you detect a Diamond Ticket?
Compare the ticket that was issued with the ticket that is used. On domain controllers that log ticket hashes, the hash of the TGT in a service ticket request (event 4769) should match a ticket issued in an event 4768. A modified TGT matches none. Also look for a TGT request by one account followed by service ticket requests under another account name from the same client.
References
- Steal or Forge Kerberos Tickets, T1558 (MITRE ATT&CK)
- Rubeus: diamond (GhostPack)
- Impacket ticketer.py (Fortra)
- MS-PAC: Privilege Attribute Certificate Data Structure (Microsoft Learn)
- 4768(S, F): A Kerberos authentication ticket (TGT) was requested (Microsoft Learn)
- AD forest recovery: reset the krbtgt password (Microsoft Learn)
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.