SDDL and SID decoder
Paste a security descriptor string from sc sdshow, Get-Acl, icacls /save, a security template or an Active Directory attribute, and read it as owner, group and access entries in plain words.
Look up a SID
An Entra ID (Azure AD) user or group appears on a joined device as a SID that starts with S-1-12-1-. The four numbers after it are the object ID split into four 32-bit pieces, so each can be worked out from the other. Enter either one.
How to read an SDDL string
A security descriptor string has up to four parts, each introduced by a letter and a colon:
O:owner G:primary group D:flags(ace)(ace)... S:flags(ace)(ace)...
D: is the DACL, the list that grants or denies access. S: is the SACL, which holds auditing entries and integrity labels. Each entry in parentheses is an ACE with six fields separated by semicolons:
(type;flags;rights;object GUID;inherited object GUID;trustee)
The rights field is either a run of two-letter codes or a hexadecimal access mask such as 0x1200a9. The trustee is a SID or one of the two-letter aliases listed below. ACEs are evaluated in order, and a deny that comes before an allow wins.
ACL flags
| Flag | Meaning |
|---|---|
P | Protected: the list does not inherit entries from the parent. |
AI | Auto-inherited: inherited entries have been applied to this list. |
AR | Auto-inherit requested for child objects. |
NO_ACCESS_CONTROL | Null ACL: there is no list, so everyone has full access. |
ACE types
| Type | Meaning |
|---|---|
A | Allow |
D | Deny |
OA | Allow, limited to one property, property set, extended right or child class |
OD | Deny, limited to one property, property set, extended right or child class |
AU | Audit |
OU | Audit, limited to one property, extended right or child class |
AL | Alarm (not used by Windows) |
OL | Alarm, object-specific (not used by Windows) |
ML | Mandatory integrity label |
XA | Allow, only when the condition at the end of the entry is true |
XD | Deny, only when the condition at the end of the entry is true |
XU | Audit, only when the condition at the end of the entry is true |
ZA | Allow, object-specific and conditional |
RA | Resource attribute (a classification property of the object) |
SP | Central access policy ID |
TL | Process trust label |
FL | Access filter |
ACE flags
| Flag | Meaning |
|---|---|
OI | Object inherit: child objects such as files inherit the entry. |
CI | Container inherit: child containers such as subfolders and subkeys inherit the entry. |
IO | Inherit only: the entry does not apply to the object itself, only to children. |
NP | No propagate: only direct children inherit the entry. |
ID | Inherited: the entry came from a parent object. |
SA | Audit successful access. |
FA | Audit failed access. |
TP | Trust-protected filter. |
CR | Critical entry. |
Rights codes
The letters stand for bits in a 32-bit access mask. The low bits mean different things on different kinds of object, which is why the directory service codes also turn up in service descriptors.
| Code | Mask | Directory object | Service |
|---|---|---|---|
CC | 0x1 | Create child objects | Query configuration |
DC | 0x2 | Delete child objects | Change configuration |
LC | 0x4 | List contents | Query status |
SW | 0x8 | Validated write (self) | Enumerate dependents |
RP | 0x10 | Read property | Start |
WP | 0x20 | Write property | Stop |
DT | 0x40 | Delete subtree | Pause and continue |
LO | 0x80 | List object | Interrogate |
CR | 0x100 | Extended right (control access) | Send user-defined control codes |
| Code | Mask | Meaning on any object |
|---|---|---|
SD | 0x10000 | Delete |
RC | 0x20000 | Read permissions |
WD | 0x40000 | Change permissions |
WO | 0x80000 | Take ownership |
GA | 0x10000000 | Generic all |
GX | 0x20000000 | Generic execute |
GW | 0x40000000 | Generic write |
GR | 0x80000000 | Generic read |
FA | 0x1f01ff | File: full control |
FR | 0x120089 | File: read |
FW | 0x120116 | File: write |
FX | 0x1200a0 | File: execute |
KA | 0xf003f | Registry key: full control |
KR | 0x20019 | Registry key: read |
KW | 0x20006 | Registry key: write |
KX | 0x20019 | Registry key: execute (same bits as read) |
File and folder access masks
| Mask | icacls | Meaning |
|---|---|---|
0x1f01ff | F | Full control |
0x1301bf | M | Modify |
0x1200a9 | RX | Read and execute |
0x120089 | R | Read |
0x120116 | W | Write |
SID aliases
Aliases for domain groups stand for a SID that includes the domain's own identifier, shown here as <domain>.
| Alias | Account | SID |
|---|---|---|
AA | Access Control Assistance Operators | S-1-5-32-579 |
AC | All Application Packages | S-1-15-2-1 |
AN | Anonymous Logon | S-1-5-7 |
AO | Account Operators | S-1-5-32-548 |
AP | Protected Users | S-1-5-21-<domain>-525 |
AS | Authentication authority asserted identity | S-1-18-1 |
AU | Authenticated Users | S-1-5-11 |
BA | Built-in Administrators | S-1-5-32-544 |
BG | Built-in Guests | S-1-5-32-546 |
BO | Backup Operators | S-1-5-32-551 |
BU | Built-in Users | S-1-5-32-545 |
CA | Cert Publishers | S-1-5-21-<domain>-517 |
CD | Certificate Service DCOM Access | S-1-5-32-574 |
CG | Creator Group | S-1-3-1 |
CN | Cloneable Domain Controllers | S-1-5-21-<domain>-522 |
CO | Creator Owner | S-1-3-0 |
CY | Cryptographic Operators | S-1-5-32-569 |
DA | Domain Admins | S-1-5-21-<domain>-512 |
DC | Domain Computers | S-1-5-21-<domain>-515 |
DD | Domain Controllers | S-1-5-21-<domain>-516 |
DG | Domain Guests | S-1-5-21-<domain>-514 |
DU | Domain Users | S-1-5-21-<domain>-513 |
EA | Enterprise Admins | S-1-5-21-<domain>-519 |
ED | Enterprise Domain Controllers | S-1-5-9 |
EK | Enterprise Key Admins | S-1-5-21-<domain>-527 |
ER | Event Log Readers | S-1-5-32-573 |
ES | RDS Endpoint Servers | S-1-5-32-576 |
HA | Hyper-V Administrators | S-1-5-32-578 |
HI | High integrity level | S-1-16-12288 |
HO | User Mode Hardware Operators | S-1-5-32-584 |
IS | IIS_IUSRS | S-1-5-32-568 |
IU | Interactive logon | S-1-5-4 |
KA | Key Admins | S-1-5-21-<domain>-526 |
LA | Administrator account | S-1-5-21-<domain>-500 |
LG | Guest account | S-1-5-21-<domain>-501 |
LS | Local Service | S-1-5-19 |
LU | Performance Log Users | S-1-5-32-559 |
LW | Low integrity level | S-1-16-4096 |
ME | Medium integrity level | S-1-16-8192 |
MP | Medium Plus integrity level | S-1-16-8448 |
MS | RDS Management Servers | S-1-5-32-577 |
MU | Performance Monitor Users | S-1-5-32-558 |
NO | Network Configuration Operators | S-1-5-32-556 |
NS | Network Service | S-1-5-20 |
NU | Network logon | S-1-5-2 |
OW | Owner Rights | S-1-3-4 |
PA | Group Policy Creator Owners | S-1-5-21-<domain>-520 |
PO | Print Operators | S-1-5-32-550 |
PS | Principal Self | S-1-5-10 |
PU | Power Users | S-1-5-32-547 |
RA | RDS Remote Access Servers | S-1-5-32-575 |
RC | Restricted Code | S-1-5-12 |
RD | Remote Desktop Users | S-1-5-32-555 |
RE | Replicator | S-1-5-32-552 |
RM | RMS Service Operators | Not documented |
RO | Enterprise Read-only Domain Controllers | S-1-5-21-<domain>-498 |
RS | RAS and IAS Servers | S-1-5-21-<domain>-553 |
RU | Pre-Windows 2000 Compatible Access | S-1-5-32-554 |
SA | Schema Admins | S-1-5-21-<domain>-518 |
SH | OpenSSH Users | S-1-5-32-585 |
SI | System integrity level | S-1-16-16384 |
SO | Server Operators | S-1-5-32-549 |
SS | Service asserted identity | S-1-18-2 |
SU | Service logon | S-1-5-6 |
SY | Local System | S-1-5-18 |
UD | User-mode driver host | S-1-5-84-0-0-0-0-0 |
WD | Everyone | S-1-1-0 |
WR | Write Restricted Code | S-1-5-33 |
More Active Directory tools
-
Logon failure decoder
Read failed logon events 4625, 4771 and 4776: Status and Sub Status, Kerberos failure codes and logon types.
-
LDAP error decoder
Read an LDAP error from Active Directory: result code 49 and data 52e, 775, 773 or 532.
-
userAccountControl decoder
Read 512, 514, 66048 or any other userAccountControl value flag by flag, or tick flags to build one.
-
AD rights GUID lookup
Name the GUIDs in an ACL or event 4662: extended rights, property sets, classes and attributes.
-
groupType and sAMAccountType decoder
Turn -2147483646 or 805306368 into a group scope, a group type or an account type.
-
Kerberos encryption types decoder
Decode msDS-SupportedEncryptionTypes and ticket encryption types, and see where RC4 is still allowed.
-
Active Directory timestamp converter
Convert lastLogonTimestamp, pwdLastSet and other 18-digit values to dates and back.
-
GUID and SID converter
Turn an objectGUID or objectSid from base64, bytes or an immutableId into its GUID or S-1-5-21 form and back.
-
LDAP filter builder and explainer
Read an LDAP filter in plain words, with the bitwise and nested-group rules, or build one for common searches.