Windows makes every access decision on security identifiers, not names, so a defender who cannot read a SID cannot tell whether a log line or an ACL entry means trouble. Names can be renamed, localised or spoofed in display fields; the SID S-1-5-32-544 always means the built-in Administrators group, and a domain SID ending in 512 always means Domain Admins. This reference explains how to read a SID, lists the well-known SIDs and domain RIDs that matter for security, and shows which ones signal privilege in ACLs, group changes and logon events. It is written for Windows and Active Directory administrators, detection engineers and DFIR analysts. Every value comes from Microsoft's own documentation.
Key takeaways
- Match on SIDs, not names. Accounts such as Administrator can be renamed but keep their SID, and group names differ by language, so detections keyed on names miss events.
- The last number is the RID. In a domain SID, the RID identifies the account or group, so S-1-5-21-...-512 is Domain Admins in whichever domain the prefix names.
- A short list signals privilege. RIDs 500, 502, 512, 518, 519, 520, 526 and 527 plus built-in groups S-1-5-32-544, 548, 549, 550 and 551 deserve alerting on any membership change.
- SID history grants access silently. Any SID in an account's SIDHistory attribute can allow access, so a privileged SID added there acts like group membership that does not show in group lists.
- Service identities are SIDs too. LocalSystem (S-1-5-18) carries the Administrators SID in its token, which is why services and their accounts belong in the same privilege review as people.
What SIDs are and how to read them
Microsoft describes a SID in string form as S-R-X-Y1-Y2-...-Yn. S marks the string as a SID, R is the revision level, X is the identifier authority and the Y values are subauthorities. In a domain or machine SID, every subauthority except the last forms the domain identifier, and the last value is the relative identifier (RID). Microsoft states that no two accounts or groups in a domain share the same RID.
| Identifier authority | Value | SID prefix | What you see it on |
|---|---|---|---|
| SECURITY_NULL_SID_AUTHORITY | 0 | S-1-0 | Null SID, a group with no members |
| SECURITY_WORLD_SID_AUTHORITY | 1 | S-1-1 | World (Everyone), S-1-1-0 |
| SECURITY_LOCAL_SID_AUTHORITY | 2 | S-1-2 | Local and Console Logon |
| SECURITY_CREATOR_SID_AUTHORITY | 3 | S-1-3 | Creator Owner, Creator Group and Owner Rights placeholders in ACEs |
| SECURITY_NT_AUTHORITY | 5 | S-1-5 | Built-in groups, service identities, domain and local accounts |
| SECURITY_AUTHENTICATION_AUTHORITY | 18 | S-1-18 | Authentication assertion SIDs |
Three shapes cover most of what you will meet in logs:
- Fixed well-known SIDs: the same on every Windows machine, such as S-1-5-18 (System) or S-1-5-32-544 (Administrators). The 32 subauthority marks the built-in domain.
- Domain and machine SIDs: S-1-5-21 followed by three subauthorities unique to the domain or computer, then a RID. Well-known RIDs such as 500 and 512 sit at the end.
- Capability and service SIDs: capability SIDs start with S-1-15-3 and grant Universal Windows apps access to resources; NT Service SIDs start with S-1-5-80 and identify individual services.
When reading an ACL or an event, take the domain identifier first: a privileged RID on a SID from a domain you do not recognise, or from a different forest, needs a different response from the same RID in your own domain.
Well-known SIDs table
The table lists the fixed SIDs most relevant to security work, with Microsoft's display names. The security note column is NHI Mgmt Group's reading of why each one matters.
| SID | Name | Security note |
|---|---|---|
| S-1-0-0 | Null SID | Group with no members; often used when a SID value is not known |
| S-1-1-0 | World (Everyone) | All users; write or full control for this SID on a share, file or AD object is a finding |
| S-1-5-7 | Anonymous Logon | Connections with no user name and password; review any ACE granting it access |
| S-1-5-9 | Enterprise Domain Controllers | All domain controllers in the forest; replication rights normally sit here |
| S-1-5-11 | Authenticated Users | Authenticated users and computers from any trusted domain, so broader than many admins assume |
| S-1-5-18 | System (LocalSystem) | Hidden member of Administrators; on the network it uses the computer's domain identity |
| S-1-5-19 | LocalService | Ordinary local user rights, anonymous on the network |
| S-1-5-20 | NetworkService | Ordinary local user rights, uses the computer identity on the network |
| S-1-5-80-0 | All Services | All service processes; membership is controlled by the operating system |
| S-1-5-113 | Local account | Use in "Deny access to this computer from the network" to block local accounts by type |
| S-1-5-114 | Local account and member of Administrators group | Blocks network sign-in by local administrators regardless of account name |
| S-1-5-32-544 | Administrators | Full control of the machine; on domain controllers, of the domain |
| S-1-5-32-545 | Users | Standard users; unexpected ACEs here are broad exposure |
| S-1-5-32-546 | Guests | Should be empty or tightly controlled |
| S-1-5-32-548 | Account Operators | Exists only on DCs; can create, modify and delete most users, groups and computers |
| S-1-5-32-549 | Server Operators | Exists only on DCs; can sign in interactively, start and stop services, back up and restore files |
| S-1-5-32-550 | Print Operators | Exists only on DCs; manages printers and queues; a protected group |
| S-1-5-32-551 | Backup Operators | Can back up and restore all files regardless of the permissions protecting them |
| S-1-5-32-554 | Pre-Windows 2000 Compatible Access | Read access to all users and groups in the domain; review membership |
| S-1-5-32-555 | Remote Desktop Users | Grants Remote Desktop sign-in |
| S-1-5-32-562 | Distributed COM Users | Computer-wide DCOM launch and activation access |
| S-1-5-32-578 | Hyper-V Administrators | Complete and unrestricted access to all Hyper-V features |
| S-1-5-32-580 | Remote Management Users | Remote management access to the computer |
Microsoft's full table also covers logon-type SIDs such as S-1-5-2 (Network), S-1-5-4 (Interactive) and S-1-5-14 (Remote Interactive Logon), and authentication package SIDs such as S-1-5-64-10 (NTLM Authentication). These appear in access tokens and help explain how a session was created.
Well-known domain RIDs (500, 512, 518, 519)
Domain RIDs are appended to the domain identifier. Schema Admins, Enterprise Admins and Key Admins exist only in the forest root domain, so Microsoft writes their SIDs with the root domain identifier.
| RID | Account or group | Scope | Protected (AdminSDHolder) | Why it matters |
|---|---|---|---|---|
| 500 | Administrator | Every domain and every computer | Yes | Cannot be deleted, disabled or locked out, only renamed; always detectable by RID |
| 501 | Guest | Every domain and computer | No | Should stay disabled |
| 502 | KRBTGT | Domain controllers only | Yes | Used by the KDC; its key signs Kerberos tickets. See krbtgt account |
| 512 | Domain Admins | Domain | Yes | Member of Administrators on every domain-joined computer by default |
| 513 | Domain Users | Domain | No | All user accounts; a privileged ACE here exposes everyone |
| 515 | Domain Computers | Domain | No | All computers in the domain |
| 516 | Domain Controllers | Domain | Yes | All DCs; a non-DC member is a red flag |
| 517 | Cert Publishers | Domain | No | Computers running AD Certificate Services |
| 518 | Schema Admins | Forest root | Yes | Can modify the AD schema; should be empty except during change windows |
| 519 | Enterprise Admins | Forest root | Yes | Full access to all domains in the forest |
| 520 | Group Policy Creator Owners | Domain | No | Can create Group Policy Objects, which can push code to computers |
| 521 | Read-only Domain Controllers | Domain | Yes | All RODCs |
| 525 | Protected Users | Domain | No | Extra protections against credential theft; a group to add admins to, not remove them from |
| 526 | Key Admins | Forest root | Yes | Trusted to modify key credential attributes |
| 527 | Enterprise Key Admins | Domain | Yes | Enterprise-level counterpart of Key Admins for key credential administration |
| 553 | RAS and IAS Servers | Domain | No | Servers that read remote access properties of users |
| 571 / 572 | Allowed / Denied RODC Password Replication Group | Domain | No | Controls which passwords RODCs may cache |
The protected column follows Microsoft's Appendix C list, which also includes the built-in Administrators, Account Operators, Backup Operators, Print Operators, Server Operators and Replicator groups.
Privileged SIDs to monitor
Group Policy and AD tooling resolve names, but alerting should be keyed on SIDs. A practical watch list has three tiers.
- Tier 0 groups: -512, -518, -519, -526, -527, -516, S-1-5-32-544 on domain controllers, and S-1-5-9. Any membership change outside an approved change is an incident until proven otherwise. See the Tiered Administration and Enterprise Access Model Guide.
- Operator groups: S-1-5-32-548, 549, 550 and 551. Microsoft documents that Account, Server and Backup Operators have no members by default; keep it that way unless a documented need exists. Backup Operators can back up and restore all files regardless of their permissions, which on a DC includes directory data.
- Delegation and policy: -520 Group Policy Creator Owners and any account holding replication rights on the domain head. See How to Find Accounts With DCSync Rights in Active Directory and Remove Them.
Protected groups and AdminSDHolder
Microsoft's SDProp process runs every 60 minutes by default on the PDC emulator and resets the permissions of every protected account and group to match the AdminSDHolder object in CN=System. Inheritance is disabled on those objects. Two consequences matter for SID-based monitoring: an ACE added to AdminSDHolder spreads to every protected object within the hour, and a SID granted rights there gains persistent control that is easy to miss. Full mechanics are in the AdminSDHolder, SDProp and Protected Groups Guide.
Where identity fits
Service identities are where SIDs and non-human identity meet. A service running as S-1-5-18 has the Administrators SID in its token and acts as the computer account on the network, so it is effectively a privileged machine identity. Prefer NetworkService, LocalService, virtual service accounts under S-1-5-80, or a group managed service account for anything that does not need full local control. See the Group Managed Service Accounts (gMSA) Guide and How to find service accounts with Domain Admin rights.
SID history and abuse
When a user moves between domains, Windows gives it a new SID and copies the old one into the multi-valued SIDHistory attribute. Microsoft states that any SID in the access token, including one from SIDHistory, can allow or deny access. That is what makes migrations work, and also why a privileged SID in SIDHistory is so dangerous: the account gains the rights of that SID without appearing in the group's member list. MITRE ATT&CK tracks the abuse as T1134.005 SID-History Injection.
| Control | What it does | Where set |
|---|---|---|
| SID filtering (quarantine) | With quarantine set to Yes, a trusting domain accepts only SIDs from the directly trusted domain; No accepts any SID | Trust properties; netdom trust /quarantine |
| SID history on forest trusts | Allows or blocks migrated users in the trusted forest from using SID history; Microsoft advises enabling it only if you trust that forest's administrators | netdom trust /enablesidhistory, outbound forest trusts only |
| Clean-up after migration | Removes SIDHistory values once resources are re-permissioned, which removes the hidden access path | Account attributes, as part of migration close-out |
| Audit | Event 4765 records SID history added to an account, with the SID List field | Audit User Account Management on DCs |
Trust types and their default filtering behaviour are covered in the Active Directory Trusts and SID Filtering Guide.
Using SIDs in detection
Windows security events carry SIDs in dedicated fields, which makes them stable keys for detection rules. The Active Directory Security Monitoring and Event IDs Guide covers the full event set; the table below focuses on SID fields.
| Event | Title | Audit subcategory | SID fields | Alert on |
|---|---|---|---|---|
| 4672 | Special privileges assigned to new logon | Audit Special Logon | SubjectUserSid | Any subject other than S-1-5-18, S-1-5-19, S-1-5-20 and expected admin accounts |
| 4732 | A member was added to a security-enabled local group | Audit Security Group Management | MemberSid, TargetSid, SubjectUserSid | TargetSid S-1-5-32-544, 548, 549, 550, 551 |
| 4728 | A member was added to a security-enabled global group | Audit Security Group Management | MemberSid, TargetSid, SubjectUserSid | TargetSid ending -512, -520 |
| 4756 | A member was added to a security-enabled universal group | Audit Security Group Management | MemberSid, TargetSid, SubjectUserSid | TargetSid ending -519, -518, -527 |
| 4765 | SID History was added to an account | Audit User Account Management | Source and target account SIDs, SID List | Every occurrence outside a planned migration |
| 4766 | An attempt to add SID History to an account failed | Audit User Account Management | Target account SID | Every occurrence |
Microsoft's monitoring advice for 4732 is to watch high-value groups such as the built-in Administrators, Domain Admins and Enterprise Admins, and high-value accounts by Subject and Member Security ID. For 4672 it advises flagging subjects that are not LOCAL SYSTEM, NETWORK SERVICE or LOCAL SERVICE and are not expected administrators.
Rolling out SID-based detections
- Enable the Audit Security Group Management, Audit User Account Management and Audit Special Logon subcategories on domain controllers and servers through advanced audit policy.
- Build a lookup of your domain identifiers and the privileged RIDs and built-in SIDs in this page, and enrich events with it in the SIEM.
- Run new rules in report-only mode for two weeks against change tickets to remove expected noise, such as onboarding automation.
- Promote Tier 0 rules to paging alerts, and route operator group and 4672 anomalies to triage queues.
- Scan ACLs on AdminSDHolder, the domain head and GPOs for S-1-1-0, S-1-5-11 and -513 with write rights, and for unknown foreign domain SIDs.
- Review rule hits quarterly and retire or tune rules rather than disabling the audit subcategory; rollback means lowering severity, never turning off collection.
Metrics
- Tier 0 membership: count of members of -512, -518, -519 and S-1-5-32-544 on DCs, trending down and stable.
- Operator groups: number of non-empty groups among S-1-5-32-548 to 551.
- SIDHistory residue: accounts still holding SIDHistory values after migration close-out.
- Unapproved changes: privileged group additions without a matching change ticket.
- Service accounts in privileged groups: non-human accounts holding -512 or S-1-5-32-544 membership.
Common failure patterns
- Name-based rules: alerting on "Domain Admins" by name, which misses localised systems and renamed groups.
- Ignoring the domain identifier: treating any -512 as yours, so a foreign SID in an ACL passes review.
- Forgotten SIDHistory: migrations that never clean up, leaving privileged hidden access for years.
- Populated operator groups: Backup Operators and Server Operators used as convenient admin-lite groups on DCs.
- Everyone and Authenticated Users with write: broad SIDs granted modify rights on GPO folders or AD objects during troubleshooting and never removed.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1134.005 SID-History Injection; T1098 Account Manipulation; T1078.002 Domain Accounts | Hidden privilege and group changes keyed on SIDs |
| NIST SP 800-53 Rev. 5 | AC-2 Account Management; AC-6 Least Privilege; AU-6 Audit Record Review, Analysis, and Reporting | Privileged group control and monitoring |
| NIST CSF 2.0 | PR.AA-05; DE.CM-03 | Least privilege and monitoring of account activity |
Practitioner checklist
- Record your forest's domain identifiers and build a SID lookup for privileged RIDs and built-in groups.
- Rewrite name-based detections to key on TargetSid and SubjectUserSid.
- Alert on every membership change to -512, -518, -519, -526, -527 and S-1-5-32-544 on DCs.
- Empty Account, Server, Print and Backup Operators unless a documented need exists.
- Audit SIDHistory across all accounts and remove values left from finished migrations.
- Confirm quarantine (SID filtering) on external trusts and SID history settings on forest trusts.
- Review the AdminSDHolder ACL for unexpected SIDs at least quarterly.
- Move services off S-1-5-18 where they do not need full local control.
Standards and references
- Microsoft Learn: Security identifiers
- Microsoft Learn: Appendix C, Protected accounts and groups in Active Directory
- Microsoft Learn: 4765(S) SID History was added to an account
- Microsoft Learn: 4672(S) Special privileges assigned to new logon
- Microsoft Learn: 4732(S) A member was added to a security-enabled local group
- Microsoft Learn: netdom trust
- MITRE ATT&CK: T1134.005 SID-History Injection
Related NHI Mgmt Group resources: AdminSDHolder, SDProp and Protected Groups Guide · Active Directory Trusts and SID Filtering Guide · Active Directory Security Monitoring and Event IDs Guide · Tiered Administration and Enterprise Access Model Guide