Documentation Index
Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Active Directory Certificate Services (ADCS) manages PKI certificates. Misconfigurations enable domain escalation. Research: “Certified Pre-Owned” by SpecterOps.Tools
Certify (Windows)
Certipy (Linux)
Vulnerability Summary
| ESC | Name | Description |
|---|---|---|
| ESC1 | Misconfigured Templates | SAN allowed + enrollee can specify SAN + low-priv can enroll |
| ESC2 | Misconfigured Templates | Any Purpose EKU or no EKU |
| ESC3 | Enrollment Agent | Enroll on behalf of other users |
| ESC4 | ACL Misconfiguration | Write access to template → modify to ESC1 |
| ESC5 | PKI Object ACL | Write access to CA objects |
| ESC6 | EDITF_ATTRIBUTESUBJECTALTNAME2 | CA flag allows SAN in any request |
| ESC7 | CA ACL | ManageCA + ManageCertificates permissions |
| ESC8 | NTLM Relay to HTTP Enrollment | Relay NTLM to web enrollment endpoint |
General Exploitation Flow
Authenticate with Certificate
Certipy
Rubeus
Quick Reference
| Task | Command |
|---|---|
| Find vulns | certipy find -u user -p pass -dc-ip DC -vulnerable |
| Certify | .\Certify.exe find /vulnerable |
| Auth with cert | certipy auth -pfx admin.pfx -dc-ip DC |
| List CAs | certipy find -u user -p pass -dc-ip DC |