Skip to content
Pwnversity
AD-TRUSTSexpert · 9 min · upd. 2026-11

Abusing Trusts and Forests

T1482T1134.005T1558.001

A trust lets users of one domain authenticate in another. Organizations create them to share resources between domains of the same forest or between separate forests (mergers, subsidiaries). For an attacker who already controls a domain, trusts are bridges to expand: depending on type and direction, compromising one domain can lead directly to compromising another. Microsoft’s rule is clear —the domain is not a security boundary; the forest is— but years of research show the forest boundary isn’t airtight either: some techniques cross forest trusts when they’re misconfigured.

flowchart LR
    H["child-domain DA"] -->|"child krbtgt + ExtraSid<br/>root Enterprise Admins"| T["TGT with SID history"]
    T -->|"the root doesn't filter SIDs<br/>within the forest"| R["Enterprise Admin in the root"]
  • Who attacks: someone who is already Domain Admin of a domain (typically a child) and wants to escalate to the forest root or jump to another linked forest.
  • What it breaks: the idea that each domain is a sealed compartment. Within a forest, SID filtering doesn’t apply between domains, so a child DA can impersonate an Enterprise Admin of the root.
  • What it gains: control of the whole structure: from a child domain to Enterprise Admin of the root, and —where SID filtering fails or TGT delegation is enabled— from one forest to another.
  • The key concept: within a forest, all domains share schema and configuration and trust Enterprise Admins. Between forests, the trust may be mitigated (SID filtering, selective auth, TGT delegation disabled) or not.
  • Direction: one-way or two-way. “A trusts B” means B can authenticate in A.
  • Transitivity: transitive (if A↔B and B↔C, A reaches C) or not.
  • Intra-forest (between domains of the same forest): two-way and transitive by default, no SID filtering between them.
  • Inter-forest (between forests): with SID filtering (quarantine) by default for years now.

SID history and why it works within the forest

Section titled “SID history and why it works within the forest”

A Kerberos ticket’s PAC carries the user’s group SIDs, including the SID history field (ExtraSids). If you forge a TGT that includes the root’s Enterprise Admins group SID (<root-SID>-519), and the root doesn’t filter SIDs within the forest, it accepts it: you’re Enterprise Admin.

For years, AD had TGT delegation enabled by default on all trusts. After Will Schroeder’s research (“Not a Security Boundary: Breaking Forest Trusts”), Microsoft changed the default to disabled for inter-forest trusts. BloodHound now models these paths: the AbuseTGTDelegation edge accompanies CrossForestTrust when TGT delegation is enabled, and the attack fails if SID filtering (quarantine) is active in the opposite direction. The most recent research (AORTA, SpecterOps/Improsec, 2025) also shows paths between forests even without an explicit trust (abuse of Incoming Forest Trust Builders, Account Operators), and proposes treating those groups as Tier 0.

Technique Scope Requirement
SID history injection (cross-domain Golden) child → root child DA + child krbtgt
Trust ticket (inter-realm TGT) between domains/forests dumped trust key
TGT delegation abuse inter-forest TGT delegation enabled + unconstrained delegation
Trust account attack trusting → trusted works despite SID filtering / TGT delegation disabled
Foreign group membership / cross-forest ACLs between forests user of A in a privileged group of B
Ventana de terminal
# from Windows (PowerView)
Get-DomainTrust
Get-ForestTrust
nltest /domain_trusts /all_trusts
# from Linux
nxc ldap dc01.corp.local -u jdoe -p 'Passw0rd!' -M enum_trusts

BloodHound maps trusts and, crucially, which principals of one domain have privileges in another (foreign memberships, cross-domain ACLs) and flags CrossForestTrust/AbuseTGTDelegation.

As DA of the child domain, with the child krbtgt (from a DCSync) and the root’s SID, you forge a TGT that includes the root’s Enterprise Admins in its SID history:

Ventana de terminal
# impacket: the extra SID is the root's Enterprise Admins (-519)
ticketer.py -nthash <child_krbtgt> -domain-sid <child-SID> -domain child.corp.local \
-extra-sid <root-SID>-519 Administrator
export KRB5CCNAME=Administrator.ccache
secretsdump.py -k -no-pass 'root.corp.local/Administrator@dc-root.corp.local'

raiseChild.py automates the whole child → root chain in one command:

Ventana de terminal
raiseChild.py -target-exec dc-root.corp.local child.corp.local/Administrator:'Passw0rd!'

With the trust key (dumped from the DC with secretsdump/lsadump::trust), you forge an inter-domain TGT directly, without going through the child krbtgt.

  • SID filtering disabled (common on old “internal” or misconfigured trusts): SID history works between forests too.
  • TGT delegation enabled + a host with unconstrained delegation in the target forest: TGT delegation abuse across the trust (see delegation).
  • Trust account attack: abusing the trust account itself (DOMAIN$) in the trusting → trusted direction; not mitigated by SID filtering or disabled TGT delegation.
  • Foreign memberships and cross-forest ACLs discovered with BloodHound.
  1. Enumerate trusts: direction, transitivity, intra/inter-forest, SID filtering and TGT delegation state.
  2. Are you DA of a child? → SID history to the root’s Enterprise Admins (or raiseChild.py).
  3. Is there a dumpable trust key? → inter-realm trust ticket.
  4. Inter-forest: SID filtering off? TGT delegation on? trust account abusable?
  5. Review foreign memberships and cross-forest ACLs in BloodHound.
  • impacket (ticketer.py with -extra-sid, raiseChild.py, secretsdump.py for trust keys).
  • mimikatz (kerberos::golden /sids:, lsadump::trust).
  • PowerView / BloodHound — trust enumeration, foreign memberships, cross-forest edges.
  • Rubeus — forging and using inter-realm tickets.

Expansion of a compromised domain across the whole structure: from a child domain to Enterprise Admin of the root, and —where protections fail— from one forest to another. It’s how a “local” compromise becomes control of the entire organization. Chain with persistence: a Golden/Trust ticket persists access across domains.

  • Tickets with unusual SID history (SIDs from another domain, especially -519 Enterprise Admins); 4769 events with an anomalous PAC.
  • Unusual inter-domain authentications; use of foreign accounts in privileged groups.
  • Creation/use of Golden or Trust tickets (see persistence: TGT without a prior AS-REQ, anomalous lifetimes).
  • Changes to trust configuration and TGT delegation.
  • Monitoring of cross-domain/cross-forest authentications and PAC validation.
  • Auditing of privileged-group membership with foreign SIDs.
  • Microsoft Defender for Identity (SID history and Golden Ticket detection).
  • Enable SID filtering (quarantine) on trusts, especially inter-forest; review legacy trusts that have it off.
  • Selective authentication on inter-forest trusts (only explicitly authorized accounts).
  • Keep TGT delegation disabled on inter-forest trusts (now the default since Microsoft’s change) and review unconstrained delegation in the target forest.
  • Treat Incoming Forest Trust Builders, Account Operators and DNSAdmins as Tier 0.
  • Minimize and document trusts; remove unused ones; protect the forest root as maximum Tier 0.

If a trust was abused, assume the reached domains are compromised: rotate krbtgt (×2) of the affected domains and the trust keys, review memberships with foreign SIDs, and reconsider the trust architecture.

  • Child → root escalation via SID history is a standard technique (MITRE T1134.005 SID-History Injection, T1482 Domain Trust Discovery); raiseChild.py automates it.
  • Microsoft insists: “the domain is not a security boundary.” Will Schroeder (“Not a Security Boundary”) showed the forest isn’t fully one either, via TGT delegation, which led Microsoft to disable it by default between forests.
  • Improsec’s series (“SID Filter as Security Boundary,” parts 1–7) and AORTA (SpecterOps, 2025) document the trust account attack and paths between forests without an explicit trust.
  • Enumerate trusts (direction, transitivity, intra/inter-forest).
  • Are you DA of a child? → SID history to Enterprise Admins (root) / raiseChild.py.
  • Dumped trust key → inter-realm trust ticket.
  • Inter-forest: SID filtering off? TGT delegation on? trust account abusable?
  • Foreign memberships / cross-forest ACLs (BloodHound).
  • Blue: SID filtering, selective auth and disabled TGT delegation on the trusts?