SID Decode
Synopsis
Extracts and decodes Windows Security Identifier (SID) information.
Schema
- sid_decode:
field: <ident>
target_field: <string>
format: <string>
resolve_well_known: <boolean>
add_components: <boolean>
description: <text>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
| Field | Required | Default | Description |
|---|---|---|---|
field | Y | - | Source field containing SID to decode (string, byte array, or array of strings) |
target_field | N | {field}_decoded | Target field to store decoded SID information |
format | N | Auto-detect | Input format: string, hex, base64 (auto-detects if not specified) |
resolve_well_known | N | false | Resolve well-known SIDs to account names |
add_components | N | false | Add parsed SID components (revision, authority, sub-authorities, domain info) |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue processing if decoding fails |
ignore_missing | N | false | Skip processing if referenced field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
Decodes Windows Security Identifiers (SIDs) from multiple input formats (string, hex, base64, byte arrays) into standardized SID strings with optional component parsing and well-known SID resolution.
The processor supports three input formats with automatic detection: standard SID strings (S-1-5-21-...), hexadecimal binary SIDs, and base64-encoded binary SIDs. Byte arrays are processed directly as binary SID data.
Default behavior returns the SID string only. Use add_components to extract revision, authority, authority name, sub-authorities, domain identification, and RID information. Use resolve_well_known to map SIDs to account names like "Local System", "Administrators", "Domain Admins".
When add_components is enabled for domain SIDs (S-1-5-21-...), the processor identifies domain context, extracts domain_id, RID, and RID type (well-known, user, group/computer). Well-known RIDs (500=Administrator, 512=Domain Admins, etc.) are automatically resolved.
The processor handles arrays of SIDs, processing each element independently with consistent error handling via ignore_failure.
Examples
Basic String SID
Decoding SID string... | |
returns SID string by default: | |
Well-Known SID Resolution
Resolving well-known SID to account name... | |
adds name and well-known flag: | |
Component Parsing
Extracting SID component details... | |
parses all SID components: | |
Hex Binary SID
Decoding binary SID from hex... | |
converts to SID string with name: | |
Array of SIDs
Processing multiple SIDs... | |
resolves each SID: | |