Active Directory Certificate Services (AD CS): ESC1–ESC8
How penetration testers audit Microsoft Active Directory Certificate Services (AD CS) for ESC1, ESC4, ESC6, and ESC8 domain-admin escalation paths.
Active Directory · By Thimmagurudu Bathini, CTO · Published · 6 min read
Why AD CS Is a Top Domain-Admin Escalation Path
Active Directory Certificate Services (AD CS) is one of the fastest paths from an unprivileged domain user to full Domain Admin in enterprise networks. Because AD CS templates and web enrollment endpoints sit outside standard OS patching, vulnerability scanners routinely miss ESC1 through ESC8 misconfigurations.
# Enumerate vulnerable certificate templates from an authorized domain test host
certipy find -u testuser@corp.local -p '<pass>' -dc-ip 10.10.1.10 -vulnerable -stdoutESC1, ESC4, ESC6 & ESC8 Misconfigurations
| Attack Class | Misconfiguration | Remediation Fix |
|---|---|---|
| ESC1 | Template allows enrollee-supplied SAN + client auth + low-priv enrollment | Disable CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT or restrict enrollment |
| ESC4 | Low-privileged users have WriteOwner/WriteDacl on certificate template | Restrict template ACLs strictly to Domain/Enterprise Admins |
| ESC6 | EDITF_ATTRIBUTESUBJECTALTNAME2 enabled on the CA itself | Disable SAN flag on CA and restart CertSvc |
| ESC8 | HTTP Web Enrollment (/certsrv) allows NTLM relay attacks | Disable HTTP Web Enrollment or enforce HTTPS + EPA |
Auditing Certificate Templates Safely
- Enumerate all Enterprise CAs and published certificate templates for client-authentication EKUs and enrollee-supplied SANs.
- Inspect ACLs on certificate templates and CA objects for non-admin write permissions (ESC4/ESC7).
- Check whether HTTP Web Enrollment (/certsrv) is reachable for NTLM relay (ESC8).
- Verify Extended Protection for Authentication (EPA) and SMB signing across DC and CA hosts.
Hardening Enterprise CAs & Web Enrollment
Audit AD CS templates using Certipy/BloodHound during every internal Active Directory test, disable HTTP web enrollment, and remove enrollee-supplied SAN flags.
From the Field: AD CS Escalation Combined With Default Credentials
On internal corporate networks, AD CS misconfigurations (such as ESC1 or HTTP Web Enrollment relay) rarely exist in isolation—they sit alongside unauthenticated database ports, default printer/BMC credentials, and disabled SMB signing that let an internal foothold reach Domain Admin quickly.
Uncover AD CS and Kerberos escalation paths in an internal AD VAPT from ₹36,000 + 18% GST. Request a scoped proposal →
AD CS Security Questions
Is AD CS checked during internal network pentesting?
Yes—Active Directory and AD CS enumeration are core parts of our internal network and AD penetration tests.
Can AD CS flaws be exploited without crashing domain controllers?
Yes, read-only template auditing and controlled verification prove domain-admin paths safely.