Skip to content

SSZcreate/Pentab_server / .agents/skills/cybersecurity/skills/exploiting-adcs-with-certipy

exploiting-adcs-with-certipy

Verified

Use Certipy to enumerate AD CS certificate authorities and templates over LDAP/RPC, then exploit ESC1-ESC16 misconfigurations - SAN abuse, NTLM relay to web enrollment (ESC8), Shadow Credentials, golden certificate forgery, and PKINIT/Schannel auth. Use during authorized penetration tests to escalate a domain foothold to Domain Admin, or to validate that certificate template ACLs and CA hardening detect these attacks.

FileKindSize
LICENSEother11.0 KB
SKILL.mdskill md10.4 KB
references/api-reference.mdmarkdown3.2 KB
references/standards.mdmarkdown1.1 KB
scripts/agent.pyscript5.7 KB

references/standards.md

View on GitHub
# Standards Mapping — Exploiting AD CS with Certipy

## MITRE ATT&CK (Enterprise)

| ID | Name | Rationale |
|----|------|-----------|
| T1649 | Steal or Forge Authentication Certificates | Certipy requests, relays, and forges AD CS certificates that map to privileged principals, enabling PKINIT authentication as those principals. |

Reference: https://attack.mitre.org/techniques/T1649/

## NIST Cybersecurity Framework 2.0

| ID | Name | Rationale |
|----|------|-----------|
| PR.AA-05 | Access permissions, entitlements, and authorizations are defined, managed, and enforced incorporating least privilege and separation of duties | AD CS template enroll rights, CA management permissions, and PKI object ACLs are exactly the access-control surface this skill tests; ESC1-ESC16 all stem from over-permissive entitlements. |

Reference: https://csrc.nist.gov/projects/cybersecurity-framework

## Notes
- ESC8/ESC11 chain Forced Authentication (T1187) and Adversary-in-the-Middle (T1557) when combined with coercion + relay; those are covered in companion skills.
- Remediation maps to NIST PR.PS-01 (hardening baselines) for CA/template configuration.
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall