wgpsec/aboutsecurity/adcs-certipy-attack
Claude Code and agent skill by wgpsec/aboutsecurity
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Active Directory Certificate Services (ADCS) 证书攻击。当发现域内有 CA 服务器、ADCS Web Enrollment、证书模板配置错误时使用。覆盖 ESC1-ESC11 所有证书滥用路径、Certipy 工具链、证书伪造、NTLM 中继到 ADCS。发现 ADCS/CA/证书/certsrv 相关内容时一定要使用此技能
Install
npx vskill@latest install wgpsec/aboutsecurity/adcs-certipy-attackSKILL.md
The same SKILL.md was published earlier as wgpsec/aboutsecurity/adcs-certipy-attack.
ADCS 证书攻击方法论
ADCS 是 Active Directory 的 PKI 基础设施。错误配置的证书模板可以让低权限用户直接获取域管权限——这是目前域渗透中最被低估也最强大的攻击面。
⛔ 深入参考(必读)
- ESC1-ESC11 各漏洞详细利用命令和条件 → references/esc-techniques.md
- 模板 ACL 滥用 (ESC4)、ESC7/ESC11、模板枚举与清理 → references/template-acl-attacks.md
- Golden Certificate、Schannel 认证、证书格式转换、持久化 → references/certificate-persistence.md
- → references/certifried-attack.md — CVE-2022-26923 Certifried 机器账户证书欺骗
Phase 1: ADCS 发现
ADCS Web Enrollment 检测
Phase 2: 漏洞决策树
最常见的攻击路径:
- ESC1 — 存在配置错误模板,直接申请域管证书
- ESC8 — PetitPotam + NTLM Relay 到 ADCS,获取域控证书
- ESC4 — 有写权限的模板,改成 ESC1 再利用
Phase 3: ESC1 快速利用(最常见)
ESC1 条件:模板允许 CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT(申请者可指定 SAN)
Phase 4: ESC8 中继攻击
Phase 5: 证书认证
工具速查
| 工具 | 用途 | |
|---|---|---|
| certipy | ADCS 枚举 + 利用全流程 | |
| ntlmrelayx.py | NTLM 中继到 ADCS | |
| PetitPotam | 强制域控认证 | |
| Rubeus | Windows 下证书认证 | |
| PassTheCert | 证书直接认证(无 PKINIT) |
关键概念
- SAN(Subject Alternative Name):证书中的身份字段,ESC1 允许申请者指定 → 冒充任何人
- PKINIT:用证书进行 Kerberos 预认证 → 获取 TGT → 提取 NTLM Hash
- CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT:模板标志,允许申请者自定义 SAN = ESC1
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/lateral/adcs-certipy-attack/SKILL.md
Popularity
- Repository stars
- 1,557
- Repository forks
- 228
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. 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/wgpsec/aboutsecurity/adcs-certipy-attack)