# Golden certificate

## Theory

Golden certificates usually refer to one of two types of attacks.

* Forge certificate and sign them with the CA cert private key --> [Certificate authority](/ad/persistence/ad-cs/certificate-authority.md#stolen-ca)
* Modify a template and turn it into a SmartCard template --> [Access controls](/ad/persistence/ad-cs/access-controls.md)

Most tools ([certsync](https://github.com/zblurx/certsync), [certipy](https://github.com/ly4k/Certipy#golden-certificates)) and resources refer to the [Certificate authority](/ad/persistence/ad-cs/certificate-authority.md#stolen-ca) technique when mentioning Golden Certificates. Since Golden Tickets consist in Kerberos tickets forged when knowing the KRBTGT keys, it makes sense to call "Golden Certificate" a technique that consists in forging a certificate when knowing the CA private key.

## Resources

{% embed url="<https://cyberstoph.org/posts/2019/12/an-introduction-to-golden-certificates/>" %}

{% embed url="<https://www.hackingarticles.in/domain-persistence-golden-certificate-attack/>" %}

{% embed url="<https://san3ncrypt3d.com/2022/02/19/gc/>" %}

{% embed url="<https://www.youtube.com/watch?v=2KZCsfplSlI>" %}


---

# 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://red.infiltr8.io/ad/persistence/ad-cs/golden-certificate.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.
