iwakishirokoshu/hermesultimate/adcs-esc1
Claude Code and agent skill by iwakishirokoshu/hermesultimate
- community
Checking that the SKILL.md file is still in the repository.
Exploit Active Directory Certificate Services ESC1 — vulnerable template allows arbitrary SAN, enabling user impersonation up to domain admin.
Install
npx vskill@latest install iwakishirokoshu/hermesultimate/adcs-esc1SKILL.md
The same SKILL.md was published earlier as ranjithvettayan/method-red/adcs-esc1.
ADCS ESC1 Exploitation
ESC1 is the most common ADCS misconfig: a certificate template with ENROLLEE_SUPPLIES_SUBJECT set, allowing any enrollee to request a cert for any user. Pair with Client Authentication EKU → authenticate as that user via PKINIT → instant domain admin.
1. Enumerate templates
Decepticon ingest:
2. Identify ESC1 candidates
A template is ESC1-vulnerable when ALL true:
Enrollment Rightsincludes a group the attacker is in (Domain Users / Authenticated Users is jackpot)Client Authentication EKUorSmart Card Logon EKUorAny PurposeEnrollee Supplies Subjectflag set (CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT)Manager ApprovaldisabledAuthorized Signatures Requiredis 0
certipy output marks these clearly:
3. Request the cert as Domain Admin
The magic is -upn administrator@dom — because ENROLLEE_SUPPLIES_SUBJECT is set, the CA issues a cert with that UPN even though we're a regular user requesting it.
4. Authenticate as Domain Admin
PKINIT (cert → TGT):
You get back:
- A TGT in
administrator.ccache(use w/export KRB5CCNAME=...) - The NT hash of administrator (because PKINIT replies include the user's NT hash for legacy compat)
5. Operate as Domain Admin
With NT hash:
6. Promote
ESC variants quick-ref
| ESC | Misconfig | Sub-skill | |
|---|---|---|---|
| ESC1 | Enrollee supplies subject + client auth EKU | THIS doc | |
| ESC2 | Any Purpose EKU template | similar to ESC1 | |
| ESC3 | Enrollment Agent template | needs ESC3 + ESC2 combo | |
| ESC4 | Vulnerable template ACL (GenericAll, WriteDacl) | edit template → ESC1 | |
| ESC5 | Vulnerable PKI object ACL | edit CA settings | |
| ESC6 | EDITF_ATTRIBUTESUBJECTALTNAME2 on CA | request as any user via SAN | |
| ESC7 | Vulnerable CA ACL (ManageCA, ManageCertificates) | approve denied req | |
| ESC8 | NTLM relay → AD CS web enrollment | coerce + relay | |
| ESC9 | UPN no security extension | low-priv → high-priv via S4U2self | |
| ESC10 | Weak certificate mapping (StrongCertificateBindingEnforcement=0) | UPN spoof | |
| ESC11 | NTLM relay to ICPR (RPC) | similar to ESC8 | |
| ESC13 | Cert template w/ OID linked to group → group membership manipulation |
OPSEC
- Certipy req generates event 4886 on the CA (cert issued)
- PKINIT generates event 4768 on DC w/ certificate fields populated
- Hard to suppress; rely on engagement being permitted to be loud here
CVSS
- Any ESC1 reachable from low-priv user:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H= 9.0 - ESC1 reachable from anonymous (rare): 10.0
- ESC8 NTLM relay (different exploit, same outcome): 9.8
Defender remediation
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingstack/decepticon-slim/upstream/packages/decepticon/decepticon/skills/standard/ad/adcs-esc1/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iwakishirokoshu/hermesultimate/adcs-esc1)