- Home
- Skills
- Web3 & Crypto
- cross forest trust abuse
Works with the AI Agents 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.
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.
Requires Domain Admin or krbtgt keys from forest A. Impacket 0.13 lacks SMB3 backup flags; manual host execution or custom clients required for SeBackupPrivilege exploitation.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 months ago
Permissions
No special permissions declared or detected