Module 19 · SID History Abuse & Cross-Forest Trust Attacks

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
May 13, 2026
6 min read
Read as
100% Free

No signup. No paywall. No catch. One of our 10 most-requested practitioner modules — published in full so anyone can learn for free. We earn through consulting, not by gating knowledge.

See all 10 free modules →

Why this module exists. SID History is the legitimate AD feature that lets a user keep their old SIDs when they migrate between domains, so they retain access to resources in the source domain. When an attacker can write SID History on an account in a trusted forest, they can inject a privileged SID (e.g. the Enterprise Admins SID of the target forest) and become privileged across the forest boundary — even though SID Filtering is supposed to stop exactly this. This module covers when SID History abuse works, when SID Filtering blocks it, and how to exploit and defend the failure modes.

Why this module exists. Forest trusts were Microsoft’s promise that the forest boundary was a hard security boundary. SID Filtering — enabled by default on external trusts since Windows Server 2003 — was the control that made the promise real. But every year, a new variation on SID-History abuse shows it is not as hard a boundary as the marketing says. This module walks the canonical attack, the modern variations, and where the boundary actually lives.

What SID History actually is

SID History is the sIDHistory attribute on a user, group, or computer object. It is a multi-valued attribute holding old SIDs the principal used to have. When AD builds a Kerberos ticket for the principal, the contents of sIDHistory are added to the PAC (Privilege Attribute Certificate) alongside the principal’s current SID and group SIDs. Every Windows machine the principal authenticates to evaluates access against the union of all those SIDs.

The legitimate use: a company merger. Alice was contoso\alice with SID S-1-5-21-AAAA. After migration she becomes fabrikam\alice with SID S-1-5-21-BBBB. Resources in contoso still ACL Alice’s old SID. Putting S-1-5-21-AAAA in her sIDHistory keeps that ACL access working while she lives in fabrikam.

Need a real pentest?

Get a VAPT scoping call

Senior practitioner-led VAPT — not a checklist run by juniors. CVSS-scored findings, free retest, attestation letter. India's SMBs and SaaS teams.

Book VAPT scoping call Replies in 4 working hrs · India-only · Senior consultants