competition-ad-certificate-abuse — скилл для Claude Code: AD CS
Скилл competition-ad-certificate-abuse для Claude Code разбирает злоупотребления сертификатами AD CS в CTF-песочнице. Запускается по вопросам о шаблонах сертификатов, правах выдачи, PKINIT и путях получения привилегий через сертификат.
MIT 109 установок ★ 45 047 обновлён 2026-09-22
npx skills add zhaoxuya520/reverse-skill --skill competition-ad-certificate-abuse -a claude-codeЧто делает competition-ad-certificate-abuse
Скилл связывает настройки CA и шаблона сертификата с тем, как выданный сертификат принимается для аутентификации или получения привилегий. Он фиксирует права выдачи, EKU, требования к субъекту и SAN, а затем прослеживает путь через PKINIT, Schannel или другой сервис. Для работы он должен быть подключён после ctf-sandbox-orchestrator, который задаёт условия песочницы и направляет запрос сюда.
Результат сводится к цепочке: право на выдачу или ошибка настройки, сертификат, принятое сопоставление и итоговая привилегия. Скилл также помогает отделить факт выдачи сертификата от его принятия сервисом. Для контрольного списка AD CS, шаблонов и оформления доказательств он загружает references/ad-certificate-abuse.md; задачи о делегировании или преобразовании билетов после PKINIT возвращаются к Kerberos-скиллу.
Какие задачи решает
- сопоставить права выдачи с настройками шаблона сертификата
- проверить, как сервис принимает выданный сертификат
- связать ошибку CA или шаблона с полученной привилегией
- сократить путь злоупотребления до ключевых шагов
Примеры запросов агенту
- Разбери путь злоупотребления через шаблон AD CS в этой CTF-песочнице.
- Покажи, как сертификат с SAN и EKU принимается через PKINIT.
- Свяжи права выдачи сертификата с привилегией, которую получает сервис.
Как установить competition-ad-certificate-abuse
1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-ad-certificate-abuse -a claude-code2Вручную: положить файлы
~/.claude/skills/competition-ad-certificate-abuse/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/competition-ad-certificate-abuse/
1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-ad-certificate-abuse -a codex2Вручную: положить файлы
.agents/skills/competition-ad-certificate-abuse/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-ad-certificate-abuse -a cursor2Вручную: положить файлы
.cursor/skills/competition-ad-certificate-abuse/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install zhaoxuya520/reverse-skill CTF-Sandbox-Orchestrator/competition-ad-certificate-abuse/SKILL.md2Вручную: положить файлы
.github/skills/competition-ad-certificate-abuse/SKILL.md1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-ad-certificate-abuse -a gemini-cli2Командой платформы
gemini skills install https://github.com/zhaoxuya520/reverse-skill --path CTF-Sandbox-Orchestrator/competition-ad-certificate-abuseВручную: положить файлы
.devin/skills/competition-ad-certificate-abuse/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-ad-certificate-abuse -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о competition-ad-certificate-abuse
Как установить competition-ad-certificate-abuse в Claude Code?
Выполни npx skills add zhaoxuya520/reverse-skill --skill competition-ad-certificate-abuse -a claude-code. Файл скилла находится по пути ~/.claude/skills/competition-ad-certificate-abuse/SKILL.md.
Что делает competition-ad-certificate-abuse?
Он разбирает настройки AD CS и прослеживает, как выданный сертификат сопоставляется с аутентификацией или привилегией. Скилл предназначен для CTF-песочницы и подключается через ctf-sandbox-orchestrator.
Когда скилл переключается обратно на Kerberos?
Если задача касается делегирования или преобразования билетов после PKINIT, он возвращается к более узкому Kerberos-скиллу.
Исходный текст
SKILL.md · MIT
--- name: competition-ad-certificate-abuse description: Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for AD CS, certificate templates, enrollment rights, EKUs, SAN controls, PKINIT, certificate mapping, and cert-based privilege paths. Use when the user asks about ESC-style abuse, certificate templates, enrollment agents, EKUs, SAN or subject controls, smartcard or PKINIT logon, CA policy, or how an issued cert turns into accepted privilege. Use only after `$ctf-sandbox-orchestrator` has already established sandbox assumptions and routed here. --- # Competition AD Certificate Abuse Use this skill only as a downstream specialization after `$ctf-sandbox-orchestrator` is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to `$ctf-sandbox-orchestrator` first. Use this skill when the decisive identity edge is certificate-based and the hard part is proving how a template or CA policy turns into accepted privilege. Reply in Simplified Chinese unless the user explicitly requests English. ## Quick Start 1. Identify the CA, template, enrolling principal, and accepting service before diving into every certificate detail. 2. Separate template enrollability from cert-based authentication or privilege acceptance. 3. Record EKUs, subject or SAN controls, issuance requirements, enrollment rights, and mapping behavior in compact blocks. 4. Tie the issued cert to one accepted path: PKINIT, Schannel, LDAPS, WinRM, or another mapped service. 5. Reproduce the smallest certificate issuance-to-acceptance chain that yields the decisive privilege. ## Workflow ### 1. Map CA And Template Trust - Record CA configuration, template name, enrollment permissions, manager approval, authorized signatures, EKUs, subject requirements, and SAN behavior. - Note whether the path depends on alternate subject names, `UPN`, DNS names, enrollment agent behavior, or template supersedence. - Keep principal, template, and issuance policy tied together. ### 2. Prove Cert-To-Privilege Acceptance - Show how the issued certificate is mapped or accepted: PKINIT, smartcard logon, Schannel auth, service mapping, or explicit certificate mapping. - Record serial, subject, SAN, EKU, validity, and the exact service or domain edge that accepts it. - Distinguish certificate issuance from the separate step where privilege is actually granted. ### 3. Reduce To The Decisive Abuse Chain - Compress the path to the smallest sequence: enrollment right or misconfig -> issued cert -> accepted mapping -> resulting privilege. - State clearly whether the weakness lives in template config, CA policy, mapping logic, relay path, or enrollment rights. - If the task is really about delegation or ticket transformation after PKINIT, switch back to the tighter Kerberos skill. ## Read This Reference - Load `references/ad-certificate-abuse.md` for the AD CS checklist, template checklist, and evidence packaging. ## What To Preserve - CA names, template names, rights, EKUs, issuance flags, SAN controls, and mapping details - Issued certificate fields, serials, subjects, SANs, and the accepting service or logon path - The smallest reproducible enrollment-to-privilege chain
© zhaoxuya520 · MIT · zhaoxuya520/reverse-skill