ad-recon

ad-recon is a command for Claude Code from ADScanPro/Claude-AD. It costs 46 tokens per session (380 once invoked), scanned A, original, MIT.

A command for collecting read-only information about an organization’s Active Directory, the system Windows networks use to manage users, computers, and permissions.

In plain words
What is it for?
Use it to inventory users, groups, service accounts, permissions, certificate templates, trusts, and a BloodHound CE graph showing relationships.
Why use it?
It gathers the facts needed for a security assessment without changing the directory, and stops if the authorized scope is missing.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

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

Good fit Use it to inventory users, groups, service accounts, permissions, certificate templates, trusts, and a BloodHound CE graph showing relationships.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/adscanpro/claude-ad/ad-recon
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.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/adscanpro/claude-ad/ad-recon"><img src="https://agentmods.dev/badge/commands/adscanpro/claude-ad/ad-recon.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 380 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.
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.00046 $0.00380
Opus 5.5 $0.00018 $0.00152
Sonnet 5.5 $0.00009 $0.00076
Haiku 4.5 $0.00005 $0.00038

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

Security

Grade A, and why

ad-recon 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 2mo 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.

commands/ad-recon.md · 34 lines

What it actually says

Run reconnaissance / collection against $1.

Authorized engagements only. This reads the scope defined by /ad-scope; if ./ad-engagement/scope.md does not exist, tell the operator to run /ad-scope $1 first and stop.

Steps:

  1. Read ./ad-engagement/scope.md and confirm the domain $1, DC IP, and the credentials/privilege level to use are present. Surface any forbidden actions the client set.

  2. Launch the ad-enumerator agent with that scope. It runs the collection phase with standard tools (netexec/nxc, impacket, rusthound-ce or bloodhound-python for the BloodHound CE graph, certipy find) and follows ad-methodology, ad-environment-constraints and ad-opsec-telemetry.

  3. Collection is read-only. The enumerator must not modify the directory; if the scope forbids specific enumeration (for example loud BloodHound collection), respect it.

  4. When the agent returns, save its structured inventory under ./ad-engagement/ and print a short summary: counts of users/groups, kerberoastable and AS-REP-roastable accounts, vulnerable ADCS templates, interesting ACLs, trusts, and the BloodHound CE zip path.

Do not plan or execute a path here. Next step is /ad-attack-paths $1.

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. 2mo ago First seen · 34 lines · 46 tokens per session scan A ea99a9ce0c51

Subscribe to this mod's changes

ad-recon is a command published in the GitHub repository ADScanPro/Claude-AD (216 stars, last pushed 2mo ago), licensed MIT. It adds 46 tokens to every session and 380 once invoked, about $0.0002 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

ad-recon compared with commands from other repositories

ad-recon next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ad-reconADScanPro/Claude-ADCommand2162mo agoMITA46Claude Code
huntEvaluris-Solutions/claude-active-directoryCommand176mo agononeA0Claude Code
reconEvaluris-Solutions/claude-active-directoryCommand176mo agononeA0Claude Code
autopilotEvaluris-Solutions/claude-active-directoryCommand176mo agononeA0Claude Code
chainEvaluris-Solutions/claude-active-directoryCommand176mo agononeA0Claude Code
intelEvaluris-Solutions/claude-active-directoryCommand176mo agononeA0Claude Code
scopeEvaluris-Solutions/claude-active-directoryCommand176mo agononeA0Claude Code