# ADCS

{% embed url="<https://edermi.github.io/post/2024/mfa_bypass_mtls/>" %}
ESC vuln
{% endembed %}

{% embed url="<https://www.crowdstrike.com/wp-content/uploads/2023/12/investigating-active-directory-certificate-abuse.pdf>" %}

### Cheat Sheet:

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

### ESE Parser:

Use case:

* When the ese files are too large to parse with eseutil. Python handles parsing better.

```
#!/usr/bin/python3
from dissect.esedb import EseDB
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-db", "--databasefile", help="Database file to be parsed")
args = parser.parse_args()
edb = args.databasefile
with open(edb, "rb") as fh:
 db = EseDB(fh)
 for table in db.tables():
 for record in table.records():
 print(record)
```

{% embed url="<https://www.pkisolutions.com/understanding-active-directory-certificate-services-containers-in-active-directory/>" %}

{% embed url="<https://m365internals.com/2022/11/07/investigating-certificate-template-enrollment-attacks-adcs/>" %}

{% embed url="<https://m365internals.com/2022/11/07/investigating-certificate-template-enrollment-attacks-adcs/>" %}

{% embed url="<https://github.com/davidprowe/BadBlood>" %}

{% embed url="<https://github.com/arth0sz/Practice-AD-CS-Domain-Escalation?tab=readme-ov-file#misconfigured-certificate-templates---esc1>" %}

{% embed url="<https://www.sysadmins.lv/retired-msft-blogs/pki/default.aspx?page=8>" %}

{% embed url="<https://www.beyondtrust.com/blog/entry/esc1-attacks>" %}

{% embed url="<https://ppn.snovvcrash.rocks/pentest/infrastructure/ad/ad-cs-abuse/esc1>" %}


---

# 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://nk0.gitbook.io/dfir/windows/active-directory/attacks/adcs.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.
