agentleFS
s0ld13rrs0ld13rr/pentestcode/skills/playbooks/ad/SKILL.md

playbook-ad

Skill794 starsChanged 5 months agoMITView on GitHub

AD attack decision tree — which attacks need creds, delegation types, ADCS, key paths to DA. Load when a Windows domain / DC is found. Triggers - domain controller, Kerberos, LDAP, BloodHound, kerberoast, AS-REP, NTLM, ADCS ESC1-8.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NTLM relay: only if SMB signing disabled.

    line 12
  2. Very specific:

    RBCD: if you can write msDS-AllowedToActOnBehalfOfOtherIdentity → impersonate admin.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Active Directory — Decision Tree

Without credentials

  • AS-REP Roasting: accounts with "Do not require Kerberos preauthentication" → offline crack (hashcat -m 18200). No creds needed.
  • Null session: enum4linux-ng -A DC → user list for spray.
  • Password spraying: one password, many users. Lockout-safe: 1 attempt per 30+ min. Try Season2024!, Company1!.
  • NTLM relay: only if SMB signing disabled.

With any valid user

  • Kerberoasting: any domain user can request TGS for SPN accounts → offline crack (hashcat -m 13100). Service accounts often have weak passwords.
  • BloodHound: bloodhound-python -u USER -p PASS -d DOMAIN -c all → shortest path to DA.
  • GPP passwords: netexec smb DC -u USER -p PASS --gpp-passwords — legacy, still found.

Delegation abuse

  • Unconstrained: machine impersonates ANY user to ANY service. Coerce DC auth (PrinterBug/PetitPotam) → capture TGT → DCSync.
  • Constrained: impersonate users to SPECIFIC services via S4U2Self + S4U2Proxy.
  • RBCD: if you can write msDS-AllowedToActOnBehalfOfOtherIdentity → impersonate admin. Discover: impacket-findDelegation DOMAIN/USER:PASS -dc-ip DC

ADCS — check IMMEDIATELY if present

ESC1–ESC8, many give instant DA:

  • ESC1: enrollable template with SAN override → request cert as DA
  • ESC4: template owner → modify template → create ESC1
  • ESC8: HTTP enrollment → NTLM relay to ADCS web endpoint Tool: certipy find -u USER@DOMAIN -p PASS -dc-ip DC -vulnerable

Four classic paths to DA

  1. AS-REP → crack → Kerberoast → crack SPN → ACL path → DA
  2. Spray → creds → BloodHound → ACL abuse (GenericAll/WriteDACL) → DA
  3. Null session → user list → spray → delegation abuse → DA
  4. NTLM relay → local admin → cred dump → lateral → DCSync

DCSync (endgame)

Requires "Replicating Directory Changes" rights: impacket-secretsdump DOMAIN/USER:PASS@DC → all domain hashes + krbtgt. With krbtgt hash → Golden Ticket → persistent DA.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.