Golden and Silver Tickets
The Kerberos lesson ended with two observations: the KDC opens a TGT and believes what it says because only krbtgt's key could have made it, and a service opens a service ticket and believes the PAC because only its own key (or the KDC) could have made it. Turn those around and you get the two most persistent forms of AD compromise. With the krbtgt key, anyone can make a TGT for any account with any groups: a golden ticket. With a service's key, anyone can make a service ticket to that service for any identity: a silver ticket. Neither needs a password, both survive password resets of the impersonated users, and the golden ticket survives everything except resetting krbtgt itself. This lesson shows the mechanism on the toy model, then spends most of its time on how forged tickets are caught and how a domain recovers.
How the keys are obtained (DCSync, a DC backup, a dumped server) is covered in DCSync and LSASS and Stored Credentials; the tools that forge tickets (Mimikatz, Rubeus, Impacket's ticketer) are named here only so you recognise them in reports.
The mechanism on the toy model
The toy encryption from the Kerberos lesson, reduced to what matters: a ticket is a sealed blob, and the receiver checks only that it opens with the expected key. Nonces are fixed numbers so the output is stable; the "attacker" holds the two keys and never talks to the KDC to create the tickets.
import json, hashlib
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
from cryptography.exceptions import InvalidTag
def key(label): return hashlib.sha256(label.encode()).digest() # toy long-term keys
def seal(k, obj, n):
nonce = n.to_bytes(12, "big")
return nonce + AESGCM(k).encrypt(nonce, json.dumps(obj).encode(), None)
def unseal(k, blob): return json.loads(AESGCM(k).decrypt(blob[:12], blob[12:], None))
K_KRBTGT, K_FS01 = key("krbtgt lab key"), key("FS01$ lab key")
def kdc_tgs(tgt): # the KDC opens the TGT and copies the PAC into a service ticket
t = unseal(K_KRBTGT, tgt)
return seal(K_FS01, {"cname": t["cname"], "pac": t["pac"]}, 99)
def fs01_accept(ticket): # the service opens the ticket with its own key and trusts the PAC
t = unseal(K_FS01, ticket)
return f"FS01 accepts {t['cname']} with groups {t['pac']}"
# silver ticket: made with FS01's key; the KDC is never involved
silver = seal(K_FS01, {"cname": "administrator", "pac": [512, 519]}, 1)
print("silver:", fs01_accept(silver))
# golden ticket: a TGT made with krbtgt's key, for an account that doesn't exist, valid for 10 years
golden = seal(K_KRBTGT, {"cname": "nobody", "pac": [512], "lifetime_h": 87600}, 2)
print("golden:", fs01_accept(kdc_tgs(golden)))
# the fix: after krbtgt is reset (twice), the old key opens nothing
K_KRBTGT = key("krbtgt new lab key")
try:
kdc_tgs(golden)
except InvalidTag:
print("after krbtgt reset: KDC rejects the forged TGT")
print("silver after krbtgt reset:", fs01_accept(silver))silver: FS01 accepts administrator with groups [512, 519]
golden: FS01 accepts nobody with groups [512]
after krbtgt reset: KDC rejects the forged TGT
silver after krbtgt reset: FS01 accepts administrator with groups [512, 519]
The forged TGT names an account that doesn't exist, with a ten-year lifetime, and the toy KDC still accepts it. Real KDCs have added checks since 2021 (the PAC_REQUESTOR must match an existing account and PAC signatures are verified: The PAC), so a forger must now build a PAC consistent with a real account. With the real krbtgt key, a consistent PAC for a real admin is exactly what a forger can make, so the principle stands: whoever has the key is the KDC. The last line shows the other half: the silver ticket survives the krbtgt reset, because it never involved the KDC.
In the Kerberos lab, the golden-ticket setting greys out the AS exchange: the forged TGT goes straight into a TGS-REQ, so the DC logs a 4769 with no 4768 before it. The silver-ticket setting skips all four messages with the KDC, and the only trace is the logon (4624) on the service host. Those missing events are exactly the first two rows of the table below.
How forged tickets are detected
Forged tickets skip steps of the normal flow, and the skipped steps are where detection lives:
| Signal | Golden | Silver |
|---|---|---|
| service logon (4624, Kerberos) on a server without any 4769 for that service and account on any DC | yes: the KDC never issued it | |
| 4769 (service ticket) for an account without a 4768 (TGT) from that host within the TGT lifetime | yes: the TGT never came from a DC | |
ticket lifetimes beyond policy (10 h TGT, 7 days renewal) in endpoint telemetry or klist |
often | often |
| account or group mismatch: nonexistent user, a name with another account's RID, groups the account doesn't have | sometimes | sometimes |
| RC4 tickets in an AES-only domain (older tools defaulted to RC4) | sometimes | sometimes |
| KDC System events about missing or invalid PAC requestors and signatures | when forged without the new fields |
The first two rows need correlation between servers and DCs, which is easy in a SIEM and in pandas. The program joins synthetic server logons with the DCs' 4768/4769 events.
import pandas as pd
T = pd.Timestamp
dc = pd.DataFrame([ # DC events: 4768 TGT, 4769 service ticket
(T("2026-01-15 08:00"), 4768, "alice", "10.10.0.21", "krbtgt"),
(T("2026-01-15 08:01"), 4769, "alice", "10.10.0.21", "FS01quot;),
(T("2026-01-15 09:10"), 4769, "administrator", "10.10.0.66", "SQL01quot;), # no 4768 from that host
], columns=["time", "id", "account", "ip", "service"])
srv = pd.DataFrame([ # server 4624 logons with package Kerberos
(T("2026-01-15 08:01"), "FS01quot;, "alice", "10.10.0.21"),
(T("2026-01-15 09:05"), "FS01quot;, "administrator", "10.10.0.66"), # no 4769 at all
(T("2026-01-15 09:10"), "SQL01quot;, "administrator", "10.10.0.66"),
], columns=["time", "server", "account", "ip"])
TGT_LIFE = pd.Timedelta(hours=10)
for _, l in srv.iterrows():
st = dc[(dc.id == 4769) & (dc.account == l.account) & (dc.service == l.server)
& (dc.time <= l.time) & (dc.time >= l.time - TGT_LIFE)]
if st.empty:
print(f"ALERT silver? {l.time:%H:%M} {l.account} logged on to {l.server} from {l.ip}: no 4769 on any DC")
continue
t_st = st.time.iloc[-1]
tgt = dc[(dc.id == 4768) & (dc.account == l.account) & (dc.ip == l.ip)
& (dc.time <= t_st) & (dc.time >= t_st - TGT_LIFE)]
if tgt.empty:
print(f"ALERT golden? {l.time:%H:%M} {l.account} got a ticket for {l.server} from {l.ip}: no 4768 for that TGT")
else:
print(f"ok {l.time:%H:%M} {l.account} -> {l.server}: 4768 and 4769 found")ok 08:01 alice -> FS01$: 4768 and 4769 found
ALERT silver? 09:05 administrator logged on to FS01$ from 10.10.0.66: no 4769 on any DC
ALERT golden? 09:10 administrator got a ticket for SQL01$ from 10.10.0.66: no 4768 for that TGT
The rules have known blind spots (TGTs obtained before the log window, DC events lost in forwarding, a forger who requests a real TGT first), so they are strong signals, not proof, and they depend on collecting 4768/4769 from every DC.
How it is prevented and recovered
Prevent key theft (the only real prevention): DCs, their backups and their hypervisors are Tier 0; no replication rights outside DCs; gMSAs and computer accounts (whose keys rotate) instead of static service passwords.
Reduce the value of a stolen key: PAC validation on important services (a silver ticket fails when the service asks the DC), AES only, current patches (PAC signatures and requestor checks enforced).
Recover from krbtgt compromise: reset the krbtgt password twice. AD keeps the current and the previous key so that tickets issued just before a reset stay valid; after one reset, a ticket made with the stolen key still opens with the "previous" key. Wait at least the maximum ticket lifetime plus replication time between the two resets (with default policy, more than 10 hours), then reset again. Microsoft published a script for this (New-KrbtgtKeys.ps1, now in the archived microsoftarchive GitHub repository; community-maintained forks exist) that resets the key and checks its replication to every writable DC. Then reset everything else the attacker may have: admin accounts, service accounts, computer accounts of compromised servers, trust keys, and the AD CS CA key if the CA was in reach. RODCs have their own krbtgt_NNNNN accounts, each to be reset.
Recover from a service-key compromise: reset the computer account password (Reset-ComputerMachinePassword on the server, or rejoin) or the service account password.
Rotate krbtgt routinely (for example twice a year) so a key stolen in the past and never detected eventually stops working.
Pitfalls
- Resetting
krbtgtonce and declaring victory: the old key is still the "previous" key. - Resetting twice in quick succession: legitimate tickets fail across the domain until users and services get new TGTs; disruptive, sometimes chosen deliberately during an active incident.
- Resetting user passwords only. Golden tickets don't need them.
- Resetting keys while the attacker still has the access that stole them: remove that access first.
Practice
1. Why does the silver ticket still work after the krbtgt reset in the program?
It never touched the KDC; it is sealed with FS01's key. Only resetting FS01's computer account password invalidates it.
2. Why must the two krbtgt resets be separated by the maximum ticket lifetime?
After the first reset, legitimate TGTs issued with the old key are still accepted (as the previous key). Waiting lets them expire and renew under the new key; the second reset then removes the old key without breaking legitimate sessions.
3. The correlation flags a silver ticket on FS01 every morning at 06:00 for svc-scan. Before escalating, what would you check?
Whether the DC logs from around 06:00 reach the SIEM (a forwarding gap), whether svc-scan obtained its ticket before the log window began, and the ticket's encryption type and lifetime on FS01. A daily pattern from a known scanner is more likely a data gap than a forger, but confirm it.
Test yourself
Which key is needed to forge a golden ticket?
- Any user's password
- The krbtgt account's key
- The service's key
- The CA's key
Which detection signal points to a silver ticket?
- A 4768 with pre-auth type 0
- A Kerberos logon on a server with no matching 4769 on any DC
- Many 4625 events
- A new service (7045)
Why is krbtgt reset twice?
- Once per DC
- AD accepts the current and the previous key, so a ticket made with the stolen key survives one reset
- To change the RID
- Because of RC4
What does PAC validation do against silver tickets?
- Nothing
- The service asks the DC to verify the PAC's KDC signature, which a forger with only the service key can't produce
- It encrypts the PAC
- It disables Kerberos
In the Kerberos lab's silver-ticket setting, which event is the only trace of the forged ticket?
- 4768 on the DC
- 4769 on the DC
- The logon (4624) on the service host, with no matching 4769 on any DC
- None at all