Sddl tool works with Windows security descriptors represented in Security Descriptor Definition Language (SDDL) or raw binary form. Use it to understand access control entries, convert between SDDL and binary representations, resolve well-known SIDs, and look up Active Directory extended rights and property GUIDs.
Subcommands
| Command | Description |
|---|---|
| describe | Parse and describe a security descriptor |
| lookupguid | Look up a GUID for an AD extended right, property, or property set |
| lookupwks | Look up a well-known SID |
For help on any subcommand, run
Sddl <subcommand> -h.describe
Parses a security descriptor and prints a human-readable description of its owner, group, DACL, and SACL. Accepts input in either SDDL string form or as a hex-encoded binary security descriptor.Parameters
Parameters
One or more security descriptors. Each may be:
- An SDDL string:
O:BAG:SYD:(A;;0x1F;;;BA) - A hex-encoded binary security descriptor:
010004805800...
Describe options
Describe options
The type of object the security descriptor belongs to. Controls how access mask bits are translated to named permissions. Defaults to
File if not specified. Possible values:FileDirectoryRegistryKeySamServerSamDomainSamGroupSamAliasSamUserAccountDirectoryObjectScmService
Print the binary form of the security descriptor as a hex string. Use this to convert an SDDL input to its binary representation.
Print the SDDL form of the security descriptor. Use this to convert a binary hex input to SDDL.
Conversion
-PrintHex and -PrintSddl let you convert between representations:
- Pass an SDDL string and use
-PrintHexto get the binary form. - Pass a hex-encoded binary and use
-PrintSddlto get the SDDL string.
Examples
lookupguid
Looks up one or more GUIDs and identifies them as Active Directory extended rights, properties, or property sets.Parameters
Parameters
One or more GUIDs to look up, in standard
{...} or plain hyphenated format. Separate multiple GUIDs with commas.Example
lookupwks
Looks up well-known SIDs by their string SID or well-known SID (WKS) abbreviation.Parameters
Parameters
One or more SID strings or WKS abbreviations to look up. Separate multiple values with commas. Accepts:
- Well-known SID abbreviations:
DA,BA,SY,BU - String SIDs:
S-1-18-1 - Domain placeholder SIDs:
S-1-5-21-<domain>-512
Examples
Common usage patterns
Analyzing security descriptors from Reg getsd
Analyzing security descriptors from Reg getsd
Pipe or pass the SDDL output from
Reg getsd directly into Sddl describe to get a readable breakdown:Resolving ACE GUIDs in Active Directory
Resolving ACE GUIDs in Active Directory
Active Directory DACL entries on directory objects often use GUIDs to reference extended rights or attribute property sets. Use This identifies the GUID as the “DS-Replication-Get-Changes” extended right (required for DCSync).
lookupguid to identify them:Converting between SDDL and binary
Converting between SDDL and binary
Security descriptor values in the registry (
Reg getsd) or LDAP (nTSecurityDescriptor attribute) may be returned as hex bytes. Use Sddl describe with -PrintSddl to convert them:Related tools
Reg getsd
Retrieve security descriptors from remote registry keys.
Reg setsd
Apply SDDL security descriptors to registry keys.
Ldap
Query the
nTSecurityDescriptor attribute on AD objects.