# Cached Credentials

In Kerberos authentication, **Ticket Granting Tickets (TGTs)** have a limited lifespan. To avoid requiring the user to manually re-enter their password every time the TGT needs to be renewed, the **user's credentials** (like their password hash) are temporarily cached on the system. This allows automatic renewal of the TGT without user intervention.

### LSASS Process

**LSASS (Local Security Authority Subsystem Service)**:\
The **LSASS** process is responsible for handling security tokens, enforcing security policies, and managing user logins on a Windows system. It also securely stores **credentials.**

**LSASS** temporarily holds these credentials in memory so that it can automatically renew the TGT when it expires.

User with local administrator permissions is able to dump all logged-in users hashes using [mimikatz](https://github.com/ParrotSec/mimikatz):

```
privilege::debug # verify permissions
skeurlsa::logonpasswords # extracting cached credentials
```

Tickets can also be dumped using the following command

```
sekurlsa::tickets  # extracting cached tickets
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://dudisamarel.gitbook.io/oscp-notes/windows/cached-credentials.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.
