Skip to content

Commit 56c4aca

Browse files
authored
improve special identities coverage (#208)
1 parent 658fd34 commit 56c4aca

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

src/CommonLib/Helpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class Helpers {
2323
private static readonly DateTime EpochDiff = new(1970, 1, 1);
2424

2525
private static readonly string[] FilteredSids = {
26-
"S-1-5-2", "S-1-5-3", "S-1-5-4", "S-1-5-6", "S-1-5-7", "S-1-2", "S-1-2-0", "S-1-5-18",
26+
"S-1-5-3", "S-1-5-4", "S-1-5-6", "S-1-2", "S-1-2-0", "S-1-5-17", "S-1-5-18",
2727
"S-1-5-19", "S-1-5-20", "S-1-0-0", "S-1-0", "S-1-2-1"
2828
};
2929

src/CommonLib/WellKnownPrincipal.cs

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ public static bool GetWellKnownPrincipal(string sid, out TypedPrincipal commonPr
4848
"S-1-5-18" => new TypedPrincipal("Local System", Label.User),
4949
"S-1-5-19" => new TypedPrincipal("Local Service", Label.User),
5050
"S-1-5-20" => new TypedPrincipal("Network Service", Label.User),
51-
"S-1-5-113" => new TypedPrincipal("Local Account", Label.User),
52-
"S-1-5-114" => new TypedPrincipal("Local Account and Member of Administrators Group", Label.User),
53-
"S-1-5-80-0" => new TypedPrincipal("All Services ", Label.Group),
51+
"S-1-5-21-0-0-0-496" => new TypedPrincipal("Compounded Authentication", Label.Group),
52+
"S-1-5-21-0-0-0-497" => new TypedPrincipal("Claims Valid", Label.Group),
5453
"S-1-5-32-544" => new TypedPrincipal("Administrators", Label.Group),
5554
"S-1-5-32-545" => new TypedPrincipal("Users", Label.Group),
5655
"S-1-5-32-546" => new TypedPrincipal("Guests", Label.Group),
@@ -82,6 +81,24 @@ public static bool GetWellKnownPrincipal(string sid, out TypedPrincipal commonPr
8281
"S-1-5-32-581" => new TypedPrincipal("System Managed Accounts Group", Label.Group),
8382
"S-1-5-32-582" => new TypedPrincipal("Storage Replica Administrators", Label.Group),
8483
"S-1-5-32-583" => new TypedPrincipal("Device Owners", Label.Group),
84+
"S-1-5-64-10" => new TypedPrincipal("NTLM Authentication", Label.Group),
85+
"S-1-5-64-14" => new TypedPrincipal("Schannel Authentication", Label.Group),
86+
"S-1-5-64-21" => new TypedPrincipal("Digest Authentication", Label.Group),
87+
"S-1-5-65-1" => new TypedPrincipal("This Organization Certificate", Label.Group),
88+
"S-1-5-80" => new TypedPrincipal("Service", Label.Group),
89+
"S-1-5-80-0" => new TypedPrincipal("All Services ", Label.Group),
90+
"S-1-5-82" => new TypedPrincipal("IIS AppPool", Label.Group),
91+
"S-1-5-90" => new TypedPrincipal("Window Manager\\Window Manager Group", Label.Group),
92+
"S-1-5-96" => new TypedPrincipal("Font Driver Host\\UMFD-0", Label.Computer),
93+
"S-1-5-113" => new TypedPrincipal("Local Account", Label.User),
94+
"S-1-5-114" => new TypedPrincipal("Local Account and Member of Administrators Group", Label.User),
95+
"S-1-5-1000" => new TypedPrincipal("Other Organization", Label.Group),
96+
"S-1-18-1" => new TypedPrincipal("Authentication Authority Asserted Identity", Label.Group),
97+
"S-1-18-2" => new TypedPrincipal("Service Asserted Identity", Label.Group),
98+
"S-1-18-3" => new TypedPrincipal("Fresh Public Key Identity", Label.Group),
99+
"S-1-18-4" => new TypedPrincipal("Key Trust", Label.Group),
100+
"S-1-18-5" => new TypedPrincipal("MFA Key Property", Label.Group),
101+
"S-1-18-6" => new TypedPrincipal("Attested Key Property", Label.Group),
85102
_ => null
86103
};
87104

0 commit comments

Comments
 (0)