Skip to main content

SID History Attribute: The Post-Migration Escalation Path

High severityActive Directory About 20 minutes to fixGenerated 14 Jul 2026

Overview

A migrated Active Directory account can carry forward its old domain's privileged group SIDs long after the source domain is decommissioned. Kerberos still honours those SIDs inside the PAC, and neither group membership reviews nor standard trust audits reliably catch it.

At a glance

Symptom
A migrated account authenticates and its Kerberos PAC includes a retained privileged SID from the decommissioned source domain.
Likely cause
ADMT migrations write sIDHistory to target accounts while trusts remain without SID filtering enforced.
Impact
Compromised or migrated accounts inherit source-domain privileged group rights invisibly, bypassing target-domain group membership reviews entirely.
Verification signal
Re-run the detection test and a controlled negative-path test.
Safe correction
Enforce SID filtering with netdom quarantine on all trusts and clear sIDHistory once the migration coexistence window ends.
Rollback or recovery
Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.

The Trap

The sIDHistory attribute retained on user and computer objects after an ADMT (Active Directory Migration Tool) migration, with no SID filtering enforced on the trust used to carry out the move.

The Default State

The standard ADMT migration wizard ships with “migrate objects’ SIDs to target domain” enabled, which writes the source domain’s account SID into sIDHistory on the target object so existing resource ACLs keep working during coexistence. SID filtering is on by default for external and forest trusts, so migration teams turn it off for coexistence (/quarantine:no on an external trust, /enablesidhistory:yes on a forest trust) and frequently never turn it back on. SID filtering is set per trust, not per account: netdom has no option to exempt only the migrated accounts, so relaxing it to let their sIDHistory through also accepts sIDHistory from any other principal that authenticates across that trust. Intra-forest domain consolidations are worse still: SID filtering only operates at a trust boundary, so a same-forest migration has no mechanism at all to constrain sIDHistory values once they are written.

The Blast Radius

When a domain controller builds the Kerberos PAC (Privilege Attribute Certificate) for authentication, it includes every SID in sIDHistory alongside current group memberships. A migrated account that shows up as a plain member of Domain Users in the target domain can still authenticate with the authorisation power of Domain Admins or Enterprise Admins from the retired source domain, because that SID never left sIDHistory. Any resource ACL still referencing the old domain’s privileged SID silently grants access. Worse, an attacker who compromises a domain controller or exploits an unfiltered trust can inject arbitrary sIDHistory values (SID-History Injection, MITRE ATT&CK T1134.005), forging membership in a privileged group that was never granted through normal delegation. Access reviews that walk only group membership miss this entirely (BloodHound does model it as a HasSIDHistory edge), because the escalation lives in an attribute nobody re-checks after go-live.

The Lead Mechanic Fix

Audit users, groups and computers first, and export the results: Get-ADObject -LDAPFilter '(sIDHistory=*)' -Properties sIDHistory against every domain that has ever run a migration. Once migration access is validated, enforce SID filtering from the trusting (resource) side. On an external trust, netdom trust <TrustingDomain> /domain:<TrustedDomain> /quarantine:yes accepts only SIDs from the directly trusted domain. On a forest trust, netdom trust <TrustingForestRoot> /domain:<TrustedForestRoot> /enablesidhistory:no (valid only on outbound forest trusts) stops migrated users using SID history. Run either switch without a value first to show the current state; doing it earlier breaks access that still depends on sIDHistory. Intra-forest migrations get no such protection, so treat sIDHistory as a time-boxed artefact: re-ACL resources still referencing legacy SIDs (ADMT security translation can help) and verify access, then clear it on one test account with Set-ADUser -Identity <user> -Clear sIDHistory before widening scope. Clearing is destructive: the values cannot be written back with Set-ADUser, only re-added by an ADMT SID migration while the source domain still exists or recovered by an authoritative restore, so keep the export and a current backup.

3

Apply the safer control

Before you change production

Confirm the affected scope, export the current configuration, and test the replacement control in a non-production environment first.

Fix commands and configuration

Get-ADObject -LDAPFilter '(sIDHistory=*)' -Properties sIDHistory
netdom trust <TrustingDomain> /domain:<TrustedDomain> /quarantine:yes
netdom trust <TrustingForestRoot> /domain:<TrustedForestRoot> /enablesidhistory:no
4

Verify, roll back or escalate

Verify

Re-run the detection test and a controlled negative-path test. Confirm the unsafe behaviour is blocked while approved traffic still succeeds.

Rollback

Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.

Escalate

Escalate when the blast radius is uncertain, the control cannot be tested safely, or remediation requires an outage or security exception.

The KBY Brief

Fixed? Get the next one before it hits you: The KBY Brief

Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.

About this page

Credited to

Dates

Published

Last updated

Corrections

  • : Corrected during a review of published articles. Details

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

After remediation

Further reading stays below the corrective workflow and is selected by platform, category and shared technical keywords.

SID History Attribute: The Post-Migration Escalation Path