snailsploit/claude-red/offensive-active-directory
Claude Code and agent skill by snailsploit/claude-red
- community
Checking that the SKILL.md file is still in the repository.
Active Directory attack methodology for internal network red team engagements. Covers reconnaissance (BloodHound, PowerView, ADExplorer), credential abuse (Kerberoasting, ASREProasting, NTLM relay, LLMNR/NBT-NS poisoning), privilege escalation (ACL abuse, GPO abuse, unconstrained/constrained delegation), lateral movement (Pass-the-Hash, Pass-the-Ticket, Overpass-the-Hash, WMI/WinRM/PsExec), persistence (Golden/Silver/Diamond Tickets, DCSync, DCShadow, AdminSDHolder, Skeleton Key), forest trust attacks, ADCS abuse (ESC1-ESC15), and modern MDI/Defender for Identity evasion. Use when assessing on-prem AD, hybrid AD/Entra ID environments, or ADCS deployments.
Install
npx vskill@latest install snailsploit/claude-red/offensive-active-directorySKILL.md
The same SKILL.md was published earlier as snailsploit/claude-red/offensive-active-directory.
Active Directory — Offensive Testing Methodology
Quick Workflow
- Recon AD structure offline (BloodHound, ADExplorer snapshot) — minimize live queries
- Harvest creds via poisoning, Kerberoasting, ASREProast, or LSASS where allowed
- Map attack paths to Domain Admin / Enterprise Admin / Tier 0
- Execute path with lowest detection cost, validate at each hop
- Establish persistence and document every action with timestamps
Reconnaissance
BloodHound Collection
PowerView (No Tool Drop)
ADExplorer Offline
Credential Harvesting
LLMNR / NBT-NS / mDNS Poisoning
Crack with hashcat mode 5600. If cracking fails, relay instead.
NTLM Relay
Kerberoasting
ASREProasting
LSASS / SAM Dumping
Parse with Mimikatz or pypykatz offline:
Privilege Escalation Within AD
ACL Abuse
| Right | Abuse | |
|---|---|---|
GenericAll / GenericWrite | Add SPN → Kerberoast; reset password; add member | |
WriteDacl | Grant yourself DCSync rights, then DCSync | |
WriteOwner | Take ownership → grant rights → exploit | |
AllExtendedRights (User) | Force password change | |
AllExtendedRights (Domain) | DCSync | |
AddMember | Add self to privileged group | |
WriteSPN | Set SPN, kerberoast target |
Kerberos Delegation
Coercion Primitives
| Technique | Tool / RPC | |
|---|---|---|
| PetitPotam | MS-EFSRPC (EfsRpcOpenFileRaw, EfsRpcEncryptFileSrv) | |
| PrinterBug | MS-RPRN (RpcRemoteFindFirstPrinterChangeNotificationEx) | |
| DFSCoerce | MS-DFSNM (NetrDfsRemoveStdRoot) | |
| ShadowCoerce | MS-FSRVP | |
| WebDAV | Search-and-replace UNC path embedded in any web fetch |
GPO Abuse
ADCS Abuse — ESC1 through ESC15
Enumeration
Common Misconfigurations
| ID | Misconfig | Exploitation | |
|---|---|---|---|
| ESC1 | Client Auth + ENROLLEE_SUPPLIES_SUBJECT | Request cert with arbitrary UPN | |
| ESC2 | Any Purpose EKU | Request cert valid for any use | |
| ESC3 | Enrollment Agent | Request agent cert, then on-behalf-of any user | |
| ESC4 | Vulnerable template ACL | Modify template to ESC1 | |
| ESC6 | EDITF_ATTRIBUTESUBJECTALTNAME2 on CA | SAN injection on any template | |
| ESC7 | Vulnerable CA ACL (ManageCA) | Approve own pending requests | |
| ESC8 | Web Enrollment HTTP + no EPA | NTLM relay → cert | |
| ESC9 | No security extension + UPN | UPN spoofing post-account-rename | |
| ESC10 | StrongCertificateBindingEnforcement weak | UPN spoofing without rename | |
| ESC11 | RPC unprotected (no ICertPassage IF_ENFORCEENCRYPTICERTREQUEST) | Relay over RPC | |
| ESC13 | Issuance policy linked to group | Cert grants group membership | |
| ESC14 | altSecurityIdentities write | Map attacker cert to admin | |
| ESC15 | EKUwu — schema v1 templates | Inject EKU at request time |
ESC1 Exploitation
ESC8 (Web Enrollment Relay)
Lateral Movement
Pass-the-Hash / Overpass-the-Hash
Pass-the-Ticket
Silent Lateral Tools
Persistence
Golden Ticket (krbtgt forge)
Silver Ticket (per-service forge)
Diamond / Sapphire Ticket (modern, evades MDI on krbtgt)
DCSync
DCShadow (register rogue DC, push changes)
AdminSDHolder
Add ACE granting your account GenericAll on CN=AdminSDHolder,CN=System,DC=corp,DC=local. SDProp propagates to all protected groups every 60 minutes.
Forest & Trust Attacks
Hybrid AD / Entra ID (Azure AD) Pivots
| Pivot | Path | |
|---|---|---|
| AAD Connect server compromise | Dump MSOL_ account → DCSync on-prem | |
| Seamless SSO | Forge Kerberos ticket for AZUREADSSOACC$ → cloud SSO any user | |
| PTA agent | DLL hijack Microsoft.Azure.SecurityTokenService → harvest cleartext | |
| PHS hash sync | Read on-prem hashes from AAD Connect SQL (ADSync DB) | |
| Federated trust | Forge SAML token via stolen ADFS token-signing cert (Golden SAML) | |
| Pass-the-PRT | Steal PRT cookie from device → cloud session as user |
Detection Evasion (MDI / Defender for Identity)
| MDI Detector | Evasion | |
|---|---|---|
| Honeytoken account access | Always check description and recent activity before hitting accounts | |
| Reconnaissance via SAMR | Use ADWS / LDAP-only collection, throttle | |
| Suspicious Kerberos delegation | Avoid noisy S4U2self chains on monitored DCs | |
| Golden/Silver Ticket detection | Use Diamond/Sapphire variants; match legitimate ticket lifetime/encryption | |
| DCSync from non-DC | Relay through legitimate replication-permitted accounts | |
| Pass-the-Hash | Use overpass-the-hash to convert to Kerberos before lateraling |
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSkills/active-directory/offensive-active-directory/SKILL.md
Popularity
- Repository stars
- 1,288
- Repository forks
- 221
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/snailsploit/claude-red/offensive-active-directory)