acl-abuse
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Enumerates Active Directory domains and maps attack surface for penetration testing.
$ npx -y skills add blacklanternsecurity/red-run --skill ad-discovery --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ad-discoveryContext preview
The summary Claude sees to decide when to auto-load this skill.
Enumerates Active Directory domains and maps attack surface for penetration testing.
name: ad-discovery description: > Enumerates Active Directory domains and maps attack surface for penetration testing. keywords: - enumerate domain - AD recon - bloodhound - domain enumeration - active directory - find attack paths - domain controllers - kerberos - pre2k - pre-created computer accounts - machine account default password - netexec modules tools: - bloodhound-python - rusthound-ce - netexec - certipy - bloodyAD - kerbrute - Impacket - PowerView opsec: medium
You are helping a penetration tester enumerate an Active Directory domain and identify attack paths. All testing is under explicit written authorization.
This skill works at three access levels: 1. **No credentials** — network-level recon, poisoning, RID cycling 2. **Username only** — AS-REP roasting, Kerberos user validation 3. **Valid credentials** — full enumeration, BloodHound, ADCS, ACLs
Check for `./engagement/` directory. If absent, proceed without logging.
When an engagement directory exists:
descriptive filenames (e.g., `sqli-users-dump.txt`, `ssrf-aws-creds.json`).
This skill covers Active Directory discovery — enumerating domain objects, identifying misconfigurations, and reporting findings to the orchestrator. When you confirm an exploitable finding — **STOP**.
Do not load or execute another skill. Do not continue past your scope boundary. Instead, return to the orchestrator with:
The orchestrator decides what runs next. Your job is to execute this skill thoroughly and return clean findings.
**Stay in methodology.** Only use techniques documented in this skill. If you encounter a scenario not covered here, note it and return — do not improvise attacks, write custom exploit code, or apply techniques from other domains. The orchestrator will provide specific guidance or route to a different skill.
You MUST NOT:
When you find exploitable attack paths, present routing recommendations in your return summary. Do not continue past enumeration.
Call `get_state_summary()` from the state MCP server to read current engagement state. Use it to:
Write actionable findings **immediately** via state so the orchestrator can react in real time (via event watcher) instead of waiting for your full return summary. Use these tools as you discover findings:
Your return summary must include:
`bloodyAD`, `kerbrute`, Impacket suite (`GetUserSPNs.py`, `GetNPUsers.py`, `lookupsid.py`)
**Kerberos-first authentication** (when credentials are available):
This skill may start unauthenticated. Once credentials are obtained, switch to Kerberos authentication for all subsequent enumeration:
# Get a TGT (password, hash, or AES key) # Use getTGT.py or impacket-getTGT — both are the same tool (see Troubleshooting) getTGT.py DOMAIN/user:'Password123'@dc.domain.local # or with NTLM hash getTGT.py DOMAIN/user@dc.domain.local -hashes :NTHASH export KRB5CCNAME=user.ccache # Then use -k -no-pass on all Impacket tools # Use --use-kcache on NetExec # Use -k on Certipy and bloodyAD
Identify domain controllers and assess the network posture.
# DNS SRV records nslookup -type=srv _ldap._tcp.dc._msdcs.DOMAIN.LOCAL nslookup -type=srv _kerberos._tcp.DOMAIN.LOCAL # NetExec SMB scan — shows OS, signing, SMBv1 nxc smb 10.10.10.0/24 # NetExec generate /etc/hosts entries nxc smb 10.10.10.0/24 --generate-hosts-file hosts
# SMB signing — signing:False = relay target nxc smb 10.10.10.0/24 | grep -i "signing:False" # LDAP signing — signing:None = relay to LDAP viable nxc ldap DC01.DOMAIN.LOCAL # Determine if LDAPS is available nxc ldap DC01.DOMAIN.LOCAL --port 636
**Findings:**
**State writes:**
Security assessment toolkit for Claude Code. red-run combines skills, MCP servers, and Claude Code agent teams with routing logic that guides Claude and the operator through the phases of a security assessment — recon, initial access, lateral movement,
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Establishes persistent access in Active Directory environments after domain compromise. Covers DCShadow (rogue DC attribute modification), Skeleton Key (LSASS…
Exploits ADCS through ACL abuse on templates/CA objects and NTLM relay to enrollment endpoints. Covers ESC4 (template ACL → modify to ESC1), ESC5 (PKI object…
Establishes persistence and exploits weak certificate mapping in AD CS. Covers ESC9 (no security extension), ESC10 (weak certificate mapping), ESC12-15…
Exploits misconfigured AD CS certificate templates to impersonate any domain user via SAN manipulation or enrollment agent abuse. Covers ESC1 (enrollee…
Forces remote systems to authenticate back to attacker-controlled listeners and relays captured authentication to escalate privileges or move laterally. Covers…