ad-discovery

ad-discovery is a skill for Claude Code, Codex from blacklanternsecurity/red-run. It costs 17 tokens per session (7,686 once invoked), scanned B, original, GPL-3.0.

An authorized penetration-testing skill for mapping Active Directory, the Windows system that manages users, computers, and permissions. It enumerates domains and identifies the systems and relationships that make up the environment's attack surface.

In plain words
What is it for?
Use it to discover Active Directory domains and assess their exposed accounts, systems, relationships, and potential attack paths during a permitted test.
Why use it?
Active Directory environments can contain many connected accounts, computers, and permissions that are difficult to review manually. Mapping them helps reveal areas that need security attention.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/blacklanternsecurity/red-run/ad-discovery
Any agent
npx skills add blacklanternsecurity/red-run --skill ad-discovery
Clone the repo
git clone --depth 1 https://github.com/blacklanternsecurity/red-run

Made for: Claude Code, Codex.

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-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/blacklanternsecurity/red-run/ad-discovery.svg)](https://agentmods.dev/skills/blacklanternsecurity/red-run/ad-discovery)
Your own site
<a href="https://agentmods.dev/skills/blacklanternsecurity/red-run/ad-discovery"><img src="https://agentmods.dev/badge/skills/blacklanternsecurity/red-run/ad-discovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,686 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
Origin unknown 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 $0.00017 $0.07686
Opus 5 $0.00009 $0.03843
Sonnet 5 $0.00003 $0.01537
Haiku 4.5 $0.00002 $0.00769

Measured 5d ago against content hash 2c92cccd9019, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

ad-discovery scanned grade B with 2 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 5d 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.

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

credentials, DC IP, domain name. Do not dump credentials inline.

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

Asks for rootlowPrivilege escalation

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

requires sudo which subagents cannot run.

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/ad-discovery/SKILL.md · 793 lines

The source is not reproduced here

Licensed GPL-3.0

The repository is licensed GPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 5d ago First seen · 793 lines · 17 tokens per session scan B 2c92cccd9019

Subscribe to this mod's changes

ad-discovery is a skill published in the GitHub repository blacklanternsecurity/red-run (266 stars, last pushed 5mo ago), licensed GPL-3.0. It adds 17 tokens to every session and 7,686 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (harvests environment variables, 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

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

ad-recon

Active Directory reconnaissance skill — host discovery and comprehensive AD enumeration. Activate when the user wants to map an AD environment, enumerate users, groups, shares, trusts, SPNs, or BloodHound data before attacking. Also activate for phrases like "map the domain", "enumerate AD", "find AD users", "collect…

DouglasRao/Claude-Pentest-Skills · 100 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…

akashrpatil/awesome-offensive-security-skills · 96 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

adcs-attacks

Active Directory Certificate Services (AD CS) escalation techniques ESC1 through ESC17, driven by hand with Certipy (ly4k). Use when the target runs a Certificate Authority and you want to find vulnerable certificate templates or CA misconfigurations, request a certificate that impersonates a privileged user, and know…

ADScanPro/Claude-AD · 104 tokens

acl-abuse

Abusing Active Directory object ACLs (DACL/ownership) for privilege escalation and lateral movement (GenericAll, GenericWrite, WriteDACL, WriteOwner, AddMember, ForceChangePassword, and replication rights via DS-Replication-Get-Changes-All). Use when BloodHound CE shows an outbound control edge from a principal you…

ADScanPro/Claude-AD · 120 tokens