> For the complete documentation index, see [llms.txt](https://tt0-13.gitbook.io/overview/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tt0-13.gitbook.io/overview/golden-ticket.md).

# Golden Ticket

### Theory

The **krbtgt account’s long‑term key** can be used to **forge a Ticket Granting Ticket (TGT)**. This forged TGT can then be **passed (Pass‑the‑Ticket)** to access **any resource in the Active Directory domain**.

Because the **krbtgt key is used to sign and encrypt the PAC**, an attacker who knows this key can **create a fake PAC** that claims the user is a member of **privileged groups** (such as Domain Admins). This PAC is embedded into the forged TGT.

When the forged TGT is later used to request **service tickets**, those tickets will **inherit the fake PAC**, causing the domain to **trust the attacker as a highly privileged user** and grant broad access across the environment.

### Attack

To create a **Golden Ticket**, an attacker must obtain the **krbtgt account’s long‑term key**, either its **RC4 key (NTLM hash)** or **AES keys (128/256‑bit)**. In most environments, this is only possible with **Domain Admin–level privileges**, typically by performing a **DCSync attack**.

As a result, **Golden Tickets do not provide privilege escalation**. Instead, they are used for **persistence and lateral movement**, allowing an attacker to impersonate any user and access resources across the domain.

<kbd>-nthash</kbd> is the ntlm hash of krbtgt account.

```
impacket-ticketer -nthash "0ef74d2087ffc79d6c4755d6b9013352" -domain-sid "S-1-5-21-3124390498-3600418117-4248849704" -domain "neptunecorp.local" "Administrator"
```

<figure><img src="https://2000946950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVLHdKTDYsllKhzWHEKHj%2Fuploads%2Fe9CxHgIZU6b9j5wksfHy%2Fimage.png?alt=media&amp;token=ec26c497-6841-492b-b12d-aea8c4c35b8a" alt=""><figcaption></figcaption></figure>

Then cache the ticket.

```
export KRB5CCNAME=Administrator.ccache
```

<figure><img src="https://2000946950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVLHdKTDYsllKhzWHEKHj%2Fuploads%2FrJOlvB9NgfT9VN3guKOz%2Fimage.png?alt=media&amp;token=4bcb96f5-d320-4983-b11d-70b33cb04443" alt=""><figcaption></figcaption></figure>
