# Kerberos Delegation

<figure><img src="/files/QHUpokCFyOvkvVGiul8T" alt=""><figcaption></figcaption></figure>

Let's assume that there is an end user in a Domain. There is a database server in some other DMZ. The user can access the database through a web server.&#x20;

Here, the user authenticates to the web server and the web server makes the requests to the database server.&#x20;

The web server impersonates the user. This means, the service account for web server is a trusted delegation to be able to make requests as the user.&#x20;

In the 6th step where the web server uses the user's TGS to decrypt the user's TGT inside it, to request a TGS for the database server.

This means, if the web server is compromised, any one can get the TGT of users connecting to the database.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://playbook.sidthoviti.com/active-directory-pentest/domain-privilege-escalation/kerberos-delegation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
