ad-exploitation

ad-exploitation is a skill for Claude Code from DouglasRao/Claude-Pentest-Skills. It costs 111 tokens per session (3,636 once invoked), scanned A, original, MIT.

A workflow for attacking Active Directory after the network has been mapped. Active Directory is Microsoft’s system for managing users, computers, and permissions across a Windows organisation.

In plain words
What is it for?
Use it during an authorised security test to try attacks such as Kerberoasting, pass-the-hash, pass-the-ticket, DCSync, and Golden Ticket techniques.
Why use it?
It organises common credential attacks, movement between machines, and attempts to gain higher privileges after reconnaissance. It can also use files produced by an earlier reconnaissance stage.

Skill for Claude Code

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

Part of the claude-pentest-skills plugin — 8 skills shipped together

Good fit Use it during an authorised security test to try attacks such as Kerberoasting, pass-the-hash, pass-the-ticket, DCSync, and Golden Ticket techniques.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/douglasrao/claude-pentest-skills/ad-exploitation
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 DouglasRao/Claude-Pentest-Skills --skill ad-exploitation
Clone the repo
git clone --depth 1 https://github.com/DouglasRao/Claude-Pentest-Skills

Made for: Claude Code.

Or install claude-pentest-skills, the plugin that ships this one along with the rest of its 8 skills.

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 ad-exploitation

README.md
[![agentmods](https://agentmods.dev/badge/skills/douglasrao/claude-pentest-skills/ad-exploitation/github.svg)](https://agentmods.dev/skills/douglasrao/claude-pentest-skills/ad-exploitation)
Your own site
<a href="https://agentmods.dev/skills/douglasrao/claude-pentest-skills/ad-exploitation"><img src="https://agentmods.dev/badge/skills/douglasrao/claude-pentest-skills/ad-exploitation/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 ad-exploitation

Your own site · 80×15
<a href="https://agentmods.dev/skills/douglasrao/claude-pentest-skills/ad-exploitation"><img src="https://agentmods.dev/badge/skills/douglasrao/claude-pentest-skills/ad-exploitation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,636 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00111 $0.03636
Opus 5 $0.00056 $0.01818
Sonnet 5 $0.00022 $0.00727
Haiku 4.5 $0.00011 $0.00364

Measured 12d ago against content hash 2d6f42de0237, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ad-exploitation scanned grade A with 1 finding 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 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/ad_attacks.sh, scripts/common_ad.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Kerberos clock skew**: if Kerberos errors occur, sync with `sudo ntpdate $DC_IP`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/ad-exploitation/SKILL.md · 360 lines

How it starts

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

AD Exploitation — Credential Attacks & Domain Domination

Architecture

scripts/
├── common_ad.sh    # Shared functions (logging, has_tool, phase_done, emit_summary)
└── ad_attacks.sh   # PHASES 1-3: credential attacks, network sweep, DCSync

Initial Setup — Context from ad-recon

Point to the output directory from a prior ad-recon run when available:

DC_IP="10.10.10.100"
DOMAIN="corp.local"
USERNAME=""        # leave empty to start with unauthenticated attacks (AS-REP Roasting)
PASSWORD=""
NTLM_HASH=""       # format: LM:NT or :NT

# ad-recon output directory (feeds users.txt, asrep_hashes.txt, kerberoast_hashes.txt)
RECON_OUT="$(pwd)/corp-local"

OUT="$(pwd)/corp-local-exploit"
SCRIPTS="$HOME/.claude/skills/ad-exploitation/scripts"

mkdir -p "$OUT"/{hashes,tickets,loot,enum}

# Link or copy recon files so scripts can find them
[ -d "$RECON_OUT" ] && {
  cp -n "$RECON_OUT/enum/users.txt"             "$OUT/enum/users.txt"         2>/dev/null || true
  cp -n "$RECON_OUT/hashes/asrep_hashes.txt"    "$OUT/hashes/asrep_hashes.txt" 2>/dev/null || true
  cp -n "$RECON_OUT/hashes/kerberoast_hashes.txt" "$OUT/hashes/kerberoast_hashes.txt" 2>/dev/null || true
}

If no prior ad-recon was run, ask the user for DC_IP, DOMAIN, and a users.txt before proceeding.

Create progress tasks with TaskCreate:

"PHASE 1 — Credential Attacks (AS-REP Roasting, Kerberoasting, hash cracking)"
"PHASE 2 — Credential Validation Sweep (CME across subnet)"
"PHASE 3 — Domain Domination (DCSync, Golden Ticket)"
"PHASE 4 — Lateral Movement & Persistence"
"PHASE 5 — Report"

Tool Priority

1. CLI — always first

impacket-GetNPUsers     — AS-REP Roasting (unauthenticated)
impacket-GetUserSPNs    — Kerberoasting (requires valid creds)
hashcat > john          — hash cracking
crackmapexec / netexec  — credential sweep, pass-the-hash validation
evil-winrm              — WinRM shell
impacket-psexec         — SMB shell (admin share)
impacket-smbexec        — SMB shell (no admin share needed)
impacket-secretsdump    — DCSync, LSA dump
impacket-ticketer       — Golden / Silver Ticket generation
kerbrute                — password spraying (warn about lockout first)
xfreerdp / rdesktop     — RDP access

Read the full file on GitHub · 360 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 360 lines · 111 tokens per session scan A 2d6f42de0237

Subscribe to this mod's changes

ad-exploitation is a skill published in the GitHub repository DouglasRao/Claude-Pentest-Skills (11 stars, last pushed 5mo ago), licensed MIT. It adds 111 tokens to every session and 3,636 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

conducting-domain-persistence-with-dcsync

Perform DCSync attacks to replicate Active Directory credentials and establish domain persistence by extracting KRBTGT, Domain Admin, and service account hashes for Golden Ticket creation.

26zl/cybersec-toolkit · 42 tokens

deploying-active-directory-honeytokens

Deploys deception-based honeytokens in Active Directory including fake privileged accounts with AdminCount=1, fake SPNs for Kerberoasting detection (honeyroasting), decoy GPOs with cpassword traps, and fake BloodHound paths. Monitors Windows Security Event IDs 4769, 4625, 4662, 5136 for honeytoken interaction. Use…

xalgorix/xalgorix · 101 tokens

conducting-internal-network-penetration-test

Execute an internal network penetration test simulating an insider threat or post-breach attacker to identify lateral movement paths, privilege escalation vectors, and sensitive data exposure within the corporate network.

26zl/cybersec-toolkit · 45 tokens

deploying-active-directory-honeytokens

Deploys deception-based honeytokens in Active Directory including fake privileged accounts with AdminCount=1, fake SPNs for Kerberoasting detection (honeyroasting), decoy GPOs with cpassword traps, and fake BloodHound paths. Monitors Windows Security Event IDs 4769, 4625, 4662, 5136 for honeytoken interaction. Use…

26zl/cybersec-toolkit · 101 tokens

conducting-internal-reconnaissance-with-bloodhound-ce

Conduct internal Active Directory reconnaissance using BloodHound Community Edition to map attack paths, identify privilege escalation chains, and discover misconfigurations in domain environments.

26zl/cybersec-toolkit · 44 tokens

active-directory-full-attack-chain

Execute a complete Active Directory penetration test from initial enumeration to domain dominance. Use this skill for AD security assessments including LDAP enumeration, Kerberos attacks (Kerberoasting, AS-REP roasting), BloodHound attack path analysis, credential dumping with Mimikatz, lateral movement via…

ShulkwiSEC/bb-huge · 96 tokens