A Diamond in the Ruff
This blog was co-authored by Andrew Schwartz at TrustedSec.
One day, while browsing YouTube, we came across an older presentation from Blackhat 2015 by Tal Be'ery and Michael Cherny. In their talk, and subsequent brief, Watching the Watchdog: Protecting Kerberos Authentication with Network Monitoring, they outlined something we had never heard of before... the Diamond Privilege Attribute Certificate (PAC) attack. Since we both have been interested in forging tickets over the past year, this technique immediately grabbed our attention and started us on a journey of examination and POC weaponization.
Golden Ticket vs Diamond Ticket
Both Golden and Diamond Tickets require access to the KRBTGT key. However, unlike Golden, Diamond would almost certainly require access to the AES256 key. The reason for this is, while Golden takes advantage of being able to forge a ticket granting ticket (TGT) from scratch, Diamond takes advantage of being able to decrypt and re-encrypt genuine TGTs requested from a domain controller (DC). The primary reason for this is so that there is a AS-REQ/AS-REP exchange with the KDC prior to using the forged ticket.
Diamond PAC vs Diamond Ticket
The original Diamond PAC attack:
- Requesting a TGT without a PAC
- Ensuring that the service account for the service to be accessed did not have the NA bit (NO_AUTH_DATA_REQUIRED) set in its UserAccountControl (UAC) attribute.
- Forging a PAC and signing it with the KRBTGT key
- Injecting it into the resulting Service Ticket (ST) by including it in the enc_authorization_data section of the TGS-REQ
The NA bit in the UAC attribute has the value 33554432:

After setting the NA bit in a service account's UAC attribute, service ticket requests to that service account have no PAC:

Whenever authorization data is included within the enc_authorization_data section of a TGS-REQ (like in the screenshot below), it is copied into the authorization_data section of the encrypted part of the resulting ST:

Diamond PAC took advantage of this behavior to inject a PAC into the resulting service ticket when the target service account did not have the NA bit set:

Note the difference in 'size' of the ticket output between this and the previously requested ST.
As shown below, while the ticket belongs to Loki, the PAC has a different user’s information (i.e., Thor):

Due to the November 2021 Kerberos/AD patches, it is no longer possible to use a TGT without a PAC on fully up-to-date Domain Controllers (DCs). So, we knew immediately that this version of the attack would no longer work. But, after reading it, we were not certain why the attack needed to be so complex. In the process of simplifying the attack, we removed most of the requirements while at the same time making it possible on fully up-to-date DC's. We knew a requirement needed to be having the KRBTGT key, and the attack made use of any other valid account to request a TGT. So we thought why not just decrypt that TGT, modify it however we wanted, recalculate the PAC signatures, and re-encrypt it. This is what we’ve termed the 'Diamond Ticket'.
Weaponizing Rubeus
We have implemented 'Diamond Ticket' into Rubeus with a new command (diamond) within this PR. In the following demonstration, we use this new command to create and use a Diamond Ticket.
First we demonstrate that we don't have access to the C$ File Share (CIFS) on a DC using our low-privileged user (Loki). As shown below, we get an Access is denied response:

Assuming we have previously compromised the KRBTGT key, we can use the new diamond command in Rubeus to create a Diamond Ticket. This command first requests a normal TGT for the low-privileged user Loki; it then decrypts it, modifies the relevant parts, recalculates the signatures, and re-encrypts it:


The resulting ticket can then be used like any other TGT, but now with the modifications. We then request an ST to the CIFS service on our target DC (Earth-DC).

Lastly, in the same terminal, we can now access the C$ share on the DC, authenticating as a different user than the account that requested the TGT:

OPSEC Advantages
There are many potential ways to detect Golden Ticket usage or actions required to gain access to the KRBTGT key (like DCSync). One technique is to monitor for ST requests (TGS-REQs) that have no corresponding TGT request (AS-REQ). The 'Diamond Ticket' technique makes it more likely to bypass this type of detection by requesting a valid TGT before using the resulting ticket. Additionally, as the ticket is first created by a DC, some values (for example, the ticket times) are more likely to be correct by default, rather than the requirement of calculating the proper times for OPSEC Golden Ticket creation.
Detection Guidance
In the original research, the following was listed as ‘network-based’ detection guidance:
- An AS-REQ with a PA-PAC-REQUEST set to false
- Adding authorization data in a subsequent TGS message
- The target service has its NA bit set to false, which means it requires PAC for authorization
Given our improved technique, the above does not apply. The 'Diamond Ticket' technique does not require requesting a TGT without a PAC, sending a forged PAC within an enc_authorization_data section of a TGS-REQ, or setting the NA bit on any service accounts.
However, some similar detection logic that is used for Golden Tickets may also be applied in detecting a 'Diamond Ticket' (for example, the actions required to gain access to the KRBTGT key). Many other techniques that may be used to detect any type of forged ticket (Golden, Silver, or Diamond) largely depend on the level of care taken during the creation of the ticket—for example, setting the ticket times different from what they should be.
None of these methods are guaranteed to be 'silver bullets' in detecting this technique, just as there are no silver bullets for detecting Golden Tickets.
Conclusion
This post has sought to demonstrate a minimal POC weaponization of 'Diamond Tickets', albeit a Mimikatz style minimal implementation. This research can be easily extended to provide full control and manipulation of any tickets, given the right keys.
While this technique is a slightly different take on Golden/Silver Tickets, it may provide a useful and preferred alternative in certain environments.
Upon concluding our research and creating a POC weaponization, Elad Shamir sent us Tim Medin's DerbyCon 2014 talk Attacking Microsoft Kerberos Kicking the Guard Dog of Hades. In his talk, Tim discusses the same technique but in the context of STs. It is worth noting that while this post and the current implmentation focused on TGTs, the general idea is usable for both TGTs and STs.