Active Directory - Golden Certificate
A Golden Certificate is a maliciously crafted certificate that an attacker generates using the CA’s private key.
Obtain CA certificate
Export the CA certificate including the private key:
-
- Open
certsrv.msc - Right click the CA ->
All Tasks->Back up CA... - Follow the wizard but make sure to check
Private key and CA certificate
- Open
-
- Open
certlm.msc - Go to
Personal->Certificates - Right click the CA signing certificate ->
All Tasks->Export - Follow the wizard but make sure to choose
Yes, export the private key
- Open
Forge Golden Certificates
Forge a certificate of a target principal:
Useful parameters when generating a golden certificate.
-crl: If the-crloption is omitted when forging, authentication might fail. While the KDC doesn't typically perform an active CRL lookup during initial TGT issuance for performance reasons, it does often check for the presence of a CDP extension in the certificate. Its absence can lead to aKDC_ERROR_CLIENT_NOT_TRUSTEDerror.-template 'attacker.pfx': Certipy will copy extensions (like Key Usage, basic constraints, AIA, etc.) from attacker.pfx into the new forged certificate, while still setting the subject, UPN, and SID as specified.-subject "CN=xyz-CA-1, DC=xyz, DC=htb": set the Distinguished Name for the certificate
Request a TGT
References
- BloodHound - GoldenCert Edge - SpecterOps - April 20, 2025
- Certificate authority - The Hacker Recipes - July 16,2025
- Domain Persistence Techniques - Valdemar Carøe - August 6, 2025
- Post‐Exploitation - Oliver Lyak - May 15, 2025
- Steal or Forge Authentication Certificates - MITRE ATT&CK - April 15, 2025