- Home
- Skills
- Web3 & Crypto
- cross forest trust abuse
Works with the AI tools you already use
cross forest trust abuse
Execute multi-stage Active Directory cross-forest trust attacks and bypass SID filtering.
$11
cross forest trust abuse
Example session with this skill installed
I have DA in FOREST-A. The trust to FOREST-B has trustAttributes 0x48. I need to get into FOREST-B. What is the attack path?
- Read your context and instructions
- Compiled the cross forest trust
The trustAttributes value 0x48 indicates both FOREST_TRANSITIVE and TREAT_AS_EXTERNAL (Quarantined) are set. SID filtering is enforced. Any extra-SIDs added to a ticket (Step 2) will be stripped at the forest boundary. You must pivot to Step 2b and target well-known SIDs that survive the filter.
Quarantined Trust Escalation Plan
| Action | Command / Logic | Objective |
|---|---|---|
| 1. Map Well-Known Rights | ldapsearch -H ldap://dcB.B.domain -b "DC=B,DC=domain" "(nTSecurityDescriptor=*)" | Identify objects where S-1-5-11 (Auth Users) has WriteProperty or GenericAll. |
| 2. Identify Privilege Nesting | Search B's directory for empty groups nested into Backup Operators or Account Operators. | Find the entry point for forest-wide escalation. |
| 3. Check Machine Gold | secretsdump.py -hashes :<NT_HASH> FOREST-A/DC-A$@DC-A.A.domain | Extract _SC_ service account plaintexts from Forest A; test for reuse in Forest B. |
| 4. Execute ksu Trick | samba-tool user create root --userou="OU=Target" -H ldap://dcB.B.domain -k | If a Linux host exists in B's realm, create a 'root' principal to bypass local auth. |
Next steps
- Run
ldap3orimpacketscripts to parse B's domain root SDDL into human-readable format. - Search for
S-1-5-11in thenTSecurityDescriptorof theAdminSDHolderobject in Forest B. - If unconstrained delegation is enabled on Forest A's DC, attempt an EFS coercion against Forest B's DC.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
The problem
Attacking a forest trust often stalls after gaining Domain Admin in the initial forest. Standard tools like impacket fail with obscure errors, and forged tickets are frequently stripped by SID filtering without clear feedback.
What it does
- Evaluates
trustAttributesbitmasks to determine if a trust is quarantined or clean before attempting exploitation. - Executes the SID history golden ticket attack for clean trusts, including mandatory RID hardening for Server 2025.
- Identifies and exploits well-known SID vulnerabilities (Authenticated Users, Everyone) when SID filtering is enforced.
- Leverages coercion chains and unconstrained delegation to capture machine account TGTs across forest boundaries.
Frameworks & tools
Impacket (ticketer, secretsdump, lookupsid), BloodHound, Samba-tool, MIT Kerberos (ksu), and LDAP.
Why this beats prompting it yourself
General LLMs often suggest DCSync attacks that fail across trusts due to NC mismatches. This skill provides the specific logic for bypassing SID filtering and handles the technical nuances of SMB3 backup flags and MIT Kerberos interactive shell traps that generic prompts miss.
Use cases
- Pivoting from a compromised child forest to a parent forest via SID history.
- Escalating privileges in a quarantined trust by hunting for misconfigured well-known SID ACEs.
- Compromising Linux members in a Kerberos realm using the ksu interactive bypass.
- Deploying exploit dependencies to air-gapped target environments using offline wheel pipelining.
Known limitations
Requires Domain Admin credentials or the krbtgt AES key from the source forest. Impacket 0.13 does not support the necessary SMB3 flags for direct remote SAM/NTDS reads via SeBackupPrivilege.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 7 days ago
- Passed all security checks, Safe to install