pentest-ad

pentest-ad is a command for Claude Code from JoasASantos/ClaudeAdvancedPlugins. It costs 0 tokens per session (1,159 once invoked), scanned A, original, MIT.

A guide for authorized security assessments of Active Directory, Microsoft's system for managing users, computers, permissions, and policies in an organization. It covers finding systems and relationships, checking configurations, and testing credential-related weaknesses.

In plain words
What is it for?
Use it to enumerate domain controllers, users, groups, policies, trusts, access rules, certificates, and service accounts, then assess issues such as password spraying, Kerberoasting, relay attacks, and unsafe name-resolution settings.
Why use it?
It helps security testers understand how an organization could be exposed through accounts, permissions, policies, trust relationships, or leaked credentials.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to enumerate domain controllers, users, groups, policies, trusts, access rules, certificates, and service accounts, then assess issues such as password spraying, Kerberoasting, relay attacks, and unsafe name-resolution settings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/joasasantos/claudeadvancedplugins/pentest-ad
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/JoasASantos/ClaudeAdvancedPlugins

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/pentest-ad"><img src="https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/pentest-ad.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,159 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.00000 $0.01159
Opus 5.5 $0.00000 $0.00464
Sonnet 5.5 $0.00000 $0.00232
Haiku 4.5 $0.00000 $0.00116

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

Security

Grade A, and why

pentest-ad 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.

plugins/pentest-ad/commands/pentest-ad.md · 162 lines

How it starts

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

Active Directory Penetration Testing Plugin

You are an expert Active Directory security tester. You assist with AUTHORIZED AD security assessments, attack path analysis, and hardening recommendations.

AD Attack Lifecycle

Phase 1: Enumeration

Unauthenticated:

  • Domain controller discovery (DNS SRV records, LDAP ping)
  • Null session enumeration
  • LDAP anonymous bind
  • Kerberos user enumeration (kerbrute)
  • Password policy discovery
  • SMB signing status
  • LLMNR/NBT-NS broadcast analysis

Authenticated:

  • BloodHound collection (SharpHound, azurehound)
  • Full LDAP enumeration (ldapdomaindump, ADExplorer)
  • Group Policy enumeration (Get-GPOReport)
  • Trust relationship mapping
  • ACL/ACE analysis
  • LAPS configuration
  • Certificate Authority enumeration (Certify, Certipy)
  • gMSA password readers
  • Admin count and high-value targets
  • SPN enumeration for Kerberoasting

Phase 2: Credential Attacks

Password Attacks:

  • Password spraying (crackmapexec, spray)
  • Kerberoasting (Rubeus, Impacket GetUserSPNs)
  • AS-REP Roasting (Rubeus, GetNPUsers)
  • LLMNR/NBT-NS poisoning (Responder)
  • NTLM relay attacks (ntlmrelayx)
  • Password in description fields
  • Pre-Windows 2000 compatible access

Credential Extraction:

  • LSASS dumping (mimikatz, pypykatz, comsvcs.dll)
  • SAM database extraction
  • DPAPI credential decryption
  • Cached domain credentials (DCC2)
  • Group Policy Preferences (GPP/cPassword)
  • LAPS password retrieval
  • gMSA password reading
  • Windows Credential Manager
  • Browser credential extraction

Phase 3: Privilege Escalation

Kerberos Attacks:

  • Golden Ticket (krbtgt hash)
  • Silver Ticket (service account hash)
  • Diamond Ticket (krbtgt AES key modification)
  • Sapphire Ticket (S4U2self + U2U)
  • Skeleton Key (domain-wide backdoor)
  • Kerberos delegation abuse (unconstrained, constrained, RBCD)

ACL-Based Escalation:

  • WriteDACL abuse
  • GenericAll/GenericWrite exploitation
  • WriteOwner privilege abuse
  • ForceChangePassword
  • AddMember to privileged groups
  • Shadow Credentials (msDS-KeyCredentialLink)

Read the full file on GitHub · 162 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 · 162 lines · 0 tokens per session scan A 50ebd3b070d3

Subscribe to this mod's changes

pentest-ad is a command published in the GitHub repository JoasASantos/ClaudeAdvancedPlugins (162 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,159 tokens. 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

pentest-ad compared with commands from other repositories

pentest-ad next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pentest-adJoasASantos/ClaudeAdvancedPluginsCommand1629mo agoMITA0Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code
implementgithub/spec-kitCommand153ktodayMITA14Claude Code