/claude-ad:ad-methodologyfrom claude-ad
Phase sequencing for Active Directory penetration tests: setup, collection, exploitation, post-processing. Covers tooling (netexec/nxc, impacket, certipy, bloodyAD, kerbrute, BloodHound CE) and why order matters (map before exploit, harvest before spray, collect graph before path analysis).
Ships in claude-ad. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A domain assessment is not a bag of tricks you run in random order. The order is the craft. Enumeration feeds exploitation; a credential harvested cheaply saves you a spray that locks accounts; a graph collected once tells you which of a hundred possible attacks actually reaches Domain Admin. Run the phases in order and each one narrows the next.
Four phases, in sequence:
The rest of this skill is what happens inside each phase and why that order holds.
You cannot attack a DC you cannot reach, resolve, or authenticate against. Get these four things straight before anything else.
The DC is the DNS server for the domain. If your resolver does not point at it,
corp.local, dc01.corp.local and SRV records will not resolve, and half your tools
fail with confusing errors that look like auth problems.
# Point resolution at the DC, confirm the domain answers
nslookup -type=SRV _ldap._tcp.dc._msdcs.corp.local <dc_ip>
nxc smb <dc_ip> # confirms host up + prints domain/hostname/OS
Kerberos also needs FQDNs. Add the DC to /etc/hosts (<dc_ip> dc01.corp.local dc01)
so short names and IPs both resolve to the canonical FQDN. This one step prevents a
whole class of Kerberos SPN failures later (see ad-environment-constraints).
Kerberos rejects tickets when client and DC differ by more than five minutes
(KRB_AP_ERR_SKEW). Sync before you touch Kerberos.
sudo ntpdate <dc_ip> # or: sudo rdate -n <dc_ip>
Fingerprint the environment's hardening before you pick an auth path. Whether NTLM is
disabled, whether the KDC is AES-only, whether LDAP signing / channel binding is
required, whether LDAPS is even listening. Every one of these changes which command
will work and which will silently fail. Probe it first, then choose Kerberos vs NTLM,
LDAPS vs LDAP, RC4 vs AES accordingly. The full catalogue of constraints and how to
read them lives in ad-environment-constraints; the point here is that posture
detection belongs in setup, not as an afterthought when a bind fails.
# Cheap unauthenticated fingerprint of the target surface
nxc smb <dc_ip> --gen-relay-list relaytargets.txt # SMB signing posture across hosts
nxc ldap <dc_ip> # LDAP/LDAPS reachability + null bind behaviour
Everything downstream is gated on having a foothold identity. Before you assume you have none, try the credential-free vectors that frequently yield one:
# RID-cycle a user list from a null session, then feed AS-REP roasting
nxc smb <dc_ip> -u '' -p '' --rid-brute > rids.txt
GetNPUsers.py corp.local/ -usersfile users.txt -dc-ip <dc_ip> -no-pass -format hashcat
You leave setup with: reachable DC, working resolution, clock in sync, a read on the posture, and ideally one credential or hash to work with.
Map before you exploit. This is the rule that separates a professional assessment from flailing. You collect the entire directory and network picture first, reason over it, and only then act, because the graph tells you which attacks are worth attempting and which lead nowhere. Collection is read-only: LDAP queries, SAMR lookups, share listings. Nothing here changes state on the target.
Before enumerating one domain, learn the shape of the forest. A trust can make a credential from domain A the key to domain B, and a path that looks blocked inside one domain is trivial across a trust.
nxc ldap <dc_ip> -u user -p pass -M enum_trusts
nxc ldap <dc_ip> -u user -p pass --dc-list # enumerate DCs in the domain
Collect the object graph once, in full. Users, groups, computers, ACLs, sessions, GPOs, delegation: this is the single most valuable artifact of the engagement, because attack paths are computed from it. BloodHound CE (Apache-2.0, genuinely open source) ingests the collector output and lets you query low-priv → Domain Admin routes.
# Python collector (bloodhound-ce-py): LDAP + SMB collection into JSON for BloodHound CE
bloodhound-ce-python -u user -p pass -d corp.local -ns <dc_ip> -c All --zip
# or netexec's built-in BloodHound module
nxc ldap <dc_ip> -u user -p pass --bloodhound --collection All --dns-server <dc_ip>
Request only the attributes you need and spread queries over time. BloodHound-style
collection has a well-known LDAP signature that MDI and ATA detect (see
ad-opsec-telemetry).
Fill in the detail the graph does not capture on its own:
# Users, descriptions (passwords are routinely left in the description field), pwd policy
nxc smb <dc_ip> -u user -p pass --users
nxc ldap <dc_ip> -u user -p pass -M get-desc-users
nxc smb <dc_ip> -u user -p pass --pass-pol # read lockout threshold BEFORE spraying
# Share inventory across the estate
nxc smb <targets> -u user -p pass --shares
Reading the password policy here is not optional. The lockout threshold you learn in this phase is what makes spraying safe in the next one.
Port-scan the in-scope range, inventory which hosts run SMB/WinRM/RDP/MSSQL, and record reachability so the exploitation phase does not waste workers on dead hosts.
nxc smb <cidr> --gen-relay-list live.txt # live SMB hosts
nxc smb <targets> -u user -p pass # OS/signing/domain per host, one pass
You leave collection with: the trust map, a full BloodHound graph, user/share inventories, the password policy, and a live-host list.
Now you act, and the order inside this phase matters as much as the phase order itself.
Before running a single exploit, ask the graph what is reachable. Mark the identities you already control as owned in BloodHound and query shortest paths to Domain Admins, to Tier-0 assets, and to any high-value target. This turns "try everything" into "run the three techniques that are actually on a path to DA." Reasoning over the graph before touching a DC is the whole reason collection came first.
Harvest credentials that cost nothing and lock nothing before you ever send a spray. These read from data you already collected or query the DC gently:
Groups.xml on SYSVOL, AES-decryptable with a
published key.# GPP cPassword from SYSVOL: read-only, no lockout risk
Get-GPPPassword.py -no-pass corp.local/ -dc-ip <dc_ip>
nxc smb <dc_ip> -u user -p pass -M gpp_password -M gpp_autologin
Every credential you win here is one you did not have to guess, and none of them can lock an account. Do this before spraying, always.
Only now do you spray, and only because you read the lockout policy in collection. Spraying blind is how you lock out real accounts and burn the engagement. Try, in order of decreasing safety:
# ONE password across all users, staying under the lockout threshold you read earlier
nxc smb <dc_ip> -u users.txt -p 'Winter2026!' --continue-on-success
# check pre2k accounts specifically
nxc smb <dc_ip> -u computers.txt -p '' --pre2k
Cap attempts per account below the threshold, and leave a window before lockout resets. Spraying is a controlled action, not a brute-force.
With more identities in hand, spider the shares you inventoried for secrets: config files with connection strings, scripts with embedded passwords, KeePass databases, private keys. Bound the spider by depth, time, and file count per share so you do not run for hours or trip DLP.
nxc smb <targets> -u user -p pass -M spider_plus # controlled recursive share hunt
Each new credential feeds back to 3.1: mark it owned, re-query the graph, repeat. The exploitation phase is a loop, not a straight line: collect, reason, act, re-collect.
compliance-mapping), and document the
telemetry each step generated so the client can correlate with their own logs (see
ad-opsec-telemetry).Setup makes the target reachable and gives you a foothold identity. Collection turns the domain into a graph you can reason over, and reading the password policy here is what makes later spraying safe. Exploitation starts by asking the graph what is worth doing, then takes the credentials that cost nothing before the ones that risk lockout, then sprays only within the known policy, then hunts with every identity gained, looping back to re-reason each time ownership grows. Post-processing proves the path and writes it up. Skip a phase or run one out of order and you either miss the path that was in front of you or lock out the accounts that would have led you to it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub adscanpro/claude-ad --plugin claude-ad8 skills in this plugin
/acl-abuseAbusing 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 own toward a higher-value object, and you want the exact bloodyAD/impacket command to weaponize that ACE, plus detection and remediation. DCSync is covered here strictly as a post-compromise technique, not a user entry path./adcs-attacksActive 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 the exact certipy command, what each ESC actually checks, the Windows Event IDs that fire, and the remediation. ESC1 and ESC8 are the two you hit most in the field./ad-environment-constraintsReal-world Active Directory environment constraints that silently break attacks when ignored: NTLM disabled (Kerberos fallback), AES-only KDCs (RC4 blocked by GPO), LDAP signing and channel binding requiring LDAPS on 636, Kerberos clock skew (KRB_AP_ERR_SKEW), SPNs that must be FQDNs never short names or IPs (the misleading invalidCredentials), Protected Users / LAPS / gMSA / MachineAccountQuota, LDAP 1000-object paging, and VPN latency. Use this whenever a bind, TGT request, LDAP query, or SMB negotiation fails in a way that looks like bad credentials but is really hardening, or before running any AD tooling against a domain you have not fingerprinted. Standard-tooling knowledge (netexec, impacket, certipy, bloodyAD, kerbrute), no vendor-specific engine.
Other plugins' skills for the same job