Well-Known SIDs
RID 512 — Domain Admins (S-1-5-21-…-512)
Domain Admins is RID 512 appended to the domain identifier: the group with full control of an Active Directory domain, and the single most targeted SID in AD attacks.
What it is
Domain Admins has the relative identifier (RID) 512, appended to the
domain's own identifier: S-1-5-21-<domain>-512. Unlike the well-known SIDs
(S-1-5-18, S-1-5-32-544), the first part is unique per domain — the
S-1-5-21-X-Y-Z portion identifies the domain, and 512 identifies the group
within it.
Domain Admins are full administrators of the domain: by default the group is
nested into local Administrators (S-1-5-32-544) on every domain-joined
machine, so a Domain Admin is a local admin everywhere in the domain.
Why the RID matters
Because the domain portion varies but the RID is fixed, defenders and attackers alike key on the trailing RID to recognise privileged principals regardless of domain:
| RID | Group / account |
|---|---|
500 | Administrator (built-in) |
512 | Domain Admins |
513 | Domain Users |
516 | Domain Controllers |
518 | Schema Admins |
519 | Enterprise Admins |
520 | Group Policy Creator Owners |
How to resolve it
# Domain SID + 512
$domain = (Get-ADDomain).DomainSID.Value
[System.Security.Principal.SecurityIdentifier]"$domain-512" |
ForEach-Object { $_.Translate([System.Security.Principal.NTAccount]).Value }
Related
…-519— Enterprise Admins…-500— built-in AdministratorS-1-5-32-544— Builtin Administrators