win_sid/lib.rs
1//! Crate for parsing [Windows security identifiers](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-identifiers) without depending on any Windows-only APIs. This crate is capable of parsing SIDs from their canonical string representation (e.g. S-1-5-21-1004336348-1177238915-682003330-512) as well as their canonical binary representation found within binary SDDLs, LDAP attributes, etc.
2
3#[cfg(test)]
4mod tests;
5
6pub use win_sid_core::IdentifierAuthority;
7pub use win_sid_core::SecurityIdentifier;
8pub use win_sid_core::SecurityIdentifierError;
9pub use win_sid_macros::sid;
10
11/// Module contains all well-known const SIDs as well as functions for generating well-known SIDs that are relative to another resource. For example, the Domain Admins group has the same relative identifier in every domain, but the sub authority is unique per domain.
12pub mod well_known {
13 #![allow(non_snake_case)]
14
15 use ::win_sid_core as win_sid;
16 use win_sid_core::SecurityIdentifier;
17 use win_sid_macros::sid;
18
19 // https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/81d92bba-d22b-4a8c-908a-554ab29148ab
20
21 /// No Security principal. Used when the SID is unknown.
22 pub const NULL: SecurityIdentifier = sid!("S-1-0-0");
23
24 /// WORLD. A group that includes all users.
25 pub const EVERYONE: SecurityIdentifier = sid!("S-1-1-0");
26
27 /// A group that includes all users who have physically logged on locally.
28 pub const LOCAL: SecurityIdentifier = sid!("S-1-2-0");
29 /// A group that includes users who are logged on to the physical console. This SID can be used to implement security policies that grant different rights based on whether a user has been granted physical access to the console.
30 pub const CONSOLE_LOGIN: SecurityIdentifier = sid!("S-1-2-1");
31
32 /// A group with creator authority.
33 pub const CREATOR_AUTHORITY: SecurityIdentifier = sid!("S-1-3");
34 /// A placeholder in an inheritable access control entry (ACE). When the ACE is inherited, the system replaces this SID with the SID for the object's creator.
35 pub const CREATOR_OWNER: SecurityIdentifier = sid!("S-1-3-0");
36 /// A placeholder in an inheritable ACE. When the ACE is inherited, the system replaces this SID with the SID for the primary group of the object's creator.
37 pub const CREATOR_GROUP: SecurityIdentifier = sid!("S-1-3-1");
38 /// A placeholder in an inheritable ACE. When the ACE is inherited, the system replaces this SID with the SID for the object's owner server.
39 pub const OWNER_SERVER: SecurityIdentifier = sid!("S-1-3-2");
40 /// A placeholder in an inheritable ACE. When the ACE is inherited, the system replaces this SID with the SID for the object's group server.
41 pub const GROUP_SERVER: SecurityIdentifier = sid!("S-1-3-3");
42 /// A group that represents the current owner of the object. When an ACE that carries this SID is applied to an object, the system ignores the implicit READ_CONTROL and WRITE_DAC permissions for the object owner.
43 pub const OWNER_RIGHTS: SecurityIdentifier = sid!("S-1-3-4");
44
45 /// A SID containing only the SECURITY_NT_AUTHORITY identifier authority.
46 pub const NT_AUTHORITY: SecurityIdentifier = sid!("S-1-5");
47 /// A group that includes all users who have logged on through a dial-up connection.
48 pub const DIALUP: SecurityIdentifier = sid!("S-1-5-1");
49 /// A group that includes all users who have logged on through a network connection.
50 pub const NETWORK: SecurityIdentifier = sid!("S-1-5-2");
51 /// A group that includes all users who have logged on through a batch queue facility.
52 pub const BATCH: SecurityIdentifier = sid!("S-1-5-3");
53 /// A group that includes all users who have logged on interactively.
54 pub const INTERACTIVE: SecurityIdentifier = sid!("S-1-5-4");
55 /// A logon session. The X and Y values for these SIDs are different for each logon session and are recycled when the operating system is restarted.
56 pub const fn LOGON_ID(x: u32, y: u32) -> SecurityIdentifier {
57 SecurityIdentifier::new_const(5, [5, x, y])
58 }
59 /// A group that includes all security principals that have logged on as a service.
60 pub const SERVICE: SecurityIdentifier = sid!("S-1-5-6");
61 /// A group that represents an anonymous logon.
62 pub const ANONYMOUS: SecurityIdentifier = sid!("S-1-5-7");
63 /// Identifies a SECURITY_NT_AUTHORITY Proxy.
64 pub const PROXY: SecurityIdentifier = sid!("S-1-5-8");
65 /// A group that includes all domain controllers in a forest that uses an Active Directory directory service.
66 pub const ENTERPRISE_DOMAIN_CONTROLLERS: SecurityIdentifier = sid!("S-1-5-9");
67 /// A placeholder in an inheritable ACE on an account object or group object in Active Directory. When the ACE is inherited, the system replaces this SID with the SID for the security principal that holds the account.
68 pub const PRINCIPAL_SELF: SecurityIdentifier = sid!("S-1-5-10");
69 /// A group that includes all users whose identities were authenticated when they logged on. Users authenticated as Guest or Anonymous are not members of this group.
70 pub const AUTHENTICATED_USERS: SecurityIdentifier = sid!("S-1-5-11");
71 /// This SID is used to control access by untrusted code. ACL validation against tokens with RC consists of two checks, one against the token's normal list of SIDs and one against a second list (typically containing RC - the "RESTRICTED_CODE" token - and a subset of the original token SIDs). Access is granted only if a token passes both tests. Any ACL that specifies RC must also specify WD - the "EVERYONE" token. When RC is paired with WD in an ACL, a superset of "EVERYONE", including untrusted code, is described.
72 pub const RESTRICTED_CODE: SecurityIdentifier = sid!("S-1-5-12");
73 /// A group that includes all users who have logged on to a Terminal Services server.
74 pub const TERMINAL_SERVER_USER: SecurityIdentifier = sid!("S-1-5-13");
75 /// A group that includes all users who have logged on through a terminal services logon.
76 pub const REMOTE_INTERACTIVE_LOGON: SecurityIdentifier = sid!("S-1-5-14");
77 /// A group that includes all users from the same organization. If this SID is present, the OTHER_ORGANIZATION SID MUST NOT be present.
78 pub const THIS_ORGANIZATION: SecurityIdentifier = sid!("S-1-5-15");
79 /// An account that is used by the default Internet Information Services (IIS) user.
80 pub const IUSR: SecurityIdentifier = sid!("S-1-5-17");
81 /// An account that is used by the operating system.
82 pub const LOCAL_SYSTEM: SecurityIdentifier = sid!("S-1-5-18");
83 /// A local service account.
84 pub const LOCAL_SERVICE: SecurityIdentifier = sid!("S-1-5-19");
85 /// A network service account.
86 pub const NETWORK_SERVICE: SecurityIdentifier = sid!("S-1-5-20");
87 /// Device identity is included in the Kerberos service ticket. If a forest boundary was crossed, then claims transformation occurred.
88 pub const COMPOUNDED_AUTHENTICATION: SecurityIdentifier = sid!("S-1-5-21-0-0-0-496");
89 /// Claims were queried for in the account's domain, and if a forest boundary was crossed, then claims transformation occurred.
90 pub const CLAIMS_VALID: SecurityIdentifier = sid!("S-1-5-21-0-0-0-497");
91 /// A universal group containing all read-only domain controllers in a forest.
92 pub const fn ENTERPRISE_READONLY_DOMAIN_CONTROLLERS(root_domain_id: [u32; 3]) -> SecurityIdentifier {
93 SecurityIdentifier::new_const(5, [21, root_domain_id[0], root_domain_id[1], root_domain_id[2], 498])
94 }
95 /// A user account for the system administrator. By default, it is the only user account that is given full control over the system.
96 pub const fn ADMINISTRATOR(machine_id: [u32; 3]) -> SecurityIdentifier {
97 SecurityIdentifier::new_const(5, [21, machine_id[0], machine_id[1], machine_id[2], 500])
98 }
99 /// A user account for people who do not have individual accounts. This user account does not require a password. By default, the Guest account is disabled.
100 pub const fn GUEST(machine_id: [u32; 3]) -> SecurityIdentifier {
101 SecurityIdentifier::new_const(5, [21, machine_id[0], machine_id[1], machine_id[2], 501])
102 }
103 /// A service account that is used by the Key Distribution Center (KDC) service.
104 pub const fn KRBTGT(domain_id: [u32; 3]) -> SecurityIdentifier {
105 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 502])
106 }
107 /// A global group whose members are authorized to administer the domain. By default, the DOMAIN_ADMINS group is a member of the Administrators group on all computers that have joined a domain, including the domain controllers. DOMAIN_ADMINS is the default owner of any object that is created by any member of the group.
108 pub const fn DOMAIN_ADMINS(domain_id: [u32; 3]) -> SecurityIdentifier {
109 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 512])
110 }
111 /// A global group that includes all user accounts in a domain.
112 pub const fn DOMAIN_USERS(domain_id: [u32; 3]) -> SecurityIdentifier {
113 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 513])
114 }
115 /// A global group that has only one member, which is the built-in Guest account of the domain.
116 pub const fn DOMAIN_GUESTS(domain_id: [u32; 3]) -> SecurityIdentifier {
117 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 514])
118 }
119 /// A global group that includes all clients and servers that have joined the domain.
120 pub const fn DOMAIN_COMPUTERS(domain_id: [u32; 3]) -> SecurityIdentifier {
121 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 515])
122 }
123 /// A global group that includes all domain controllers in the domain.
124 pub const fn DOMAIN_DOMAIN_CONTROLLERS(domain_id: [u32; 3]) -> SecurityIdentifier {
125 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 516])
126 }
127 /// A global group that includes all computers that are running an enterprise certification authority. Cert Publishers are authorized to publish certificates for User objects in Active Directory.
128 pub const fn CERT_PUBLISHERS(domain_id: [u32; 3]) -> SecurityIdentifier {
129 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 517])
130 }
131 /// A universal group in a native-mode domain, or a global group in a mixed-mode domain. The group is authorized to make schema changes in Active Directory.
132 pub const fn SCHEMA_ADMINISTRATORS(root_domain_id: [u32; 3]) -> SecurityIdentifier {
133 SecurityIdentifier::new_const(5, [21, root_domain_id[0], root_domain_id[1], root_domain_id[2], 518])
134 }
135 /// A universal group in a native-mode domain, or a global group in a mixed-mode domain. The group is authorized to make forestwide changes in Active Directory, such as adding child domains.
136 pub const fn ENTERPRISE_ADMINS(root_domain_id: [u32; 3]) -> SecurityIdentifier {
137 SecurityIdentifier::new_const(5, [21, root_domain_id[0], root_domain_id[1], root_domain_id[2], 519])
138 }
139 /// A global group that is authorized to create new Group Policy Objects in Active Directory.
140 pub const fn GROUP_POLICY_CREATOR_OWNERS(domain_id: [u32; 3]) -> SecurityIdentifier {
141 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 520])
142 }
143 /// A global group that includes all read-only domain controllers.
144 pub const fn READONLY_DOMAIN_CONTROLLERS(domain_id: [u32; 3]) -> SecurityIdentifier {
145 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 521])
146 }
147 /// A global group that includes all domain controllers in the domain that can be cloned.
148 pub const fn CLONEABLE_CONTROLLERS(domain_id: [u32; 3]) -> SecurityIdentifier {
149 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 522])
150 }
151 /// A global group that is afforded additional protections against authentication security threats.
152 pub const fn PROTECTED_USERS(domain_id: [u32; 3]) -> SecurityIdentifier {
153 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 525])
154 }
155 /// A security group for delegated write access on the msdsKeyCredentialLink attribute only. The group is intended for use in scenarios where trusted external authorities (for example, Active Directory Federated Services) are responsible for modifying this attribute. Only trusted administrators should be made a member of this group.
156 pub const fn KEY_ADMINS(domain_id: [u32; 3]) -> SecurityIdentifier {
157 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 526])
158 }
159 /// A security group for delegated write access on the msdsKeyCredentialLink attribute only. The group is intended for use in scenarios where trusted external authorities (for example, Active Directory Federated Services) are responsible for modifying this attribute. Only trusted enterprise administrators should be made a member of this group.
160 pub const fn ENTERPRISE_KEY_ADMINS(domain_id: [u32; 3]) -> SecurityIdentifier {
161 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 527])
162 }
163 /// A domain local group for Remote Access Services (RAS) servers. By default, this group has no members. Servers in this group have Read Account Restrictions and Read Logon Information access to User objects in the Active Directory domain local group.
164 pub const fn RAS_SERVERS(domain_id: [u32; 3]) -> SecurityIdentifier {
165 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 553])
166 }
167 /// Members in this group can have their passwords replicated to all read-only domain controllers in the domain.
168 pub const fn ALLOWED_RODC_PASSWORD_REPLICATION_GROUP(domain_id: [u32; 3]) -> SecurityIdentifier {
169 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 571])
170 }
171 /// Members in this group cannot have their passwords replicated to all read-only domain controllers in the domain.
172 pub const fn DENIED_RODC_PASSWORD_REPLICATION_GROUP(domain_id: [u32; 3]) -> SecurityIdentifier {
173 SecurityIdentifier::new_const(5, [21, domain_id[0], domain_id[1], domain_id[2], 572])
174 }
175 /// A built-in group. After the initial installation of the operating system, the only member of the group is the Administrator account. When a computer joins a domain, the Domain Administrators group is added to the Administrators group. When a server becomes a domain controller, the Enterprise Administrators group also is added to the Administrators group.
176 pub const BUILTIN_ADMINISTRATORS: SecurityIdentifier = sid!("S-1-5-32-544");
177 /// A built-in group. After the initial installation of the operating system, the only member is the Authenticated Users group. When a computer joins a domain, the Domain Users group is added to the Users group on the computer.
178 pub const BUILTIN_USERS: SecurityIdentifier = sid!("S-1-5-32-545");
179 /// A built-in group. The Guests group allows users to log on with limited privileges to a computer's built-in Guest account.
180 pub const BUILTIN_GUESTS: SecurityIdentifier = sid!("S-1-5-32-546");
181 /// A built-in group. Power users can perform the following actions:
182 /// - Create local users and groups.
183 /// - Modify and delete accounts that they have created.
184 /// - Remove users from the Power Users, Users, and Guests groups.
185 /// - Install programs.
186 /// - Create, manage, and delete local printers.
187 /// - Create and delete file shares.
188 pub const POWER_USERS: SecurityIdentifier = sid!("S-1-5-32-547");
189 /// A built-in group that exists only on domain controllers. Account Operators have permission to create, modify, and delete accounts for users, groups, and computers in all containers and organizational units of Active Directory except the Built-in container and the Domain Controllers OU. Account Operators do not have permission to modify the Administrators and Domain Administrators groups, nor do they have permission to modify the accounts for members of those groups.
190 pub const ACCOUNT_OPERATORS: SecurityIdentifier = sid!("S-1-5-32-548");
191 /// A built-in group that exists only on domain controllers. Server Operators can perform the following actions:
192 /// - Log on to a server interactively.
193 /// - Create and delete network shares.
194 /// - Start and stop services.
195 /// - Backup and restore files.
196 /// - Format the hard disk of a computer.
197 /// - Shut down the computer.
198 pub const SERVER_OPERATORS: SecurityIdentifier = sid!("S-1-5-32-549");
199 /// A built-in group that exists only on domain controllers. Print Operators can manage printers and document queues.
200 pub const PRINTER_OPERATORS: SecurityIdentifier = sid!("S-1-5-32-550");
201 /// A built-in group. Backup Operators can back up and restore all files on a computer, regardless of the permissions that protect those files.
202 pub const BACKUP_OPERATORS: SecurityIdentifier = sid!("S-1-5-32-551");
203 /// A built-in group that is used by the File Replication Service (FRS) on domain controllers.
204 pub const REPLICATOR: SecurityIdentifier = sid!("S-1-5-32-552");
205 /// Builtin\Pre-Windows 2000 Compatible Access. A backward compatibility group that allows read access on all users and groups in the domain.
206 pub const ALIAS_PREW2KCOMPACC: SecurityIdentifier = sid!("S-1-5-32-554");
207 /// An alias. Members of this group are granted the right to log on remotely.
208 pub const REMOTE_DESKTOP: SecurityIdentifier = sid!("S-1-5-32-555");
209 /// An alias. Members of this group can have some administrative privileges to manage configuration of networking features.
210 pub const NETWORK_CONFIGURATION_OPS: SecurityIdentifier = sid!("S-1-5-32-556");
211 /// An alias. Members of this group can create incoming, one-way trusts to this forest.
212 pub const INCOMING_FOREST_TRUST_BUILDERS: SecurityIdentifier = sid!("S-1-5-32-557");
213 /// An alias. Members of this group have remote access to monitor this computer.
214 pub const PERFMON_USERS: SecurityIdentifier = sid!("S-1-5-32-558");
215 /// An alias. Members of this group have remote access to schedule the logging of performance counters on this computer.
216 pub const PERFLOG_USERS: SecurityIdentifier = sid!("S-1-5-32-559");
217 /// An alias. Members of this group have access to the computed tokenGroupsGlobalAndUniversal attribute on User objects.
218 pub const WINDOWS_AUTHORIZATION_ACCESS_GROUP: SecurityIdentifier = sid!("S-1-5-32-560");
219 /// An alias. A group for Terminal Server License Servers.
220 pub const TERMINAL_SERVER_LICENSE_SERVERS: SecurityIdentifier = sid!("S-1-5-32-561");
221 /// An alias. A group for COM to provide computer-wide access controls that govern access to all call, activation, or launch requests on the computer.
222 pub const DISTRIBUTED_COM_USERS: SecurityIdentifier = sid!("S-1-5-32-562");
223 /// A built-in group account for IIS users.
224 pub const IIS_IUSRS: SecurityIdentifier = sid!("S-1-5-32-568");
225 /// A built-in group account for cryptographic operators.
226 pub const CRYPTOGRAPHIC_OPERATORS: SecurityIdentifier = sid!("S-1-5-32-569");
227 /// A built-in local group. Members of this group can read event logs from the local machine.
228 pub const EVENT_LOG_READERS: SecurityIdentifier = sid!("S-1-5-32-573");
229 /// A built-in local group. Members of this group are allowed to connect to Certification Authorities in the enterprise.
230 pub const CERTIFICATE_SERVICE_DCOM_ACCESS: SecurityIdentifier = sid!("S-1-5-32-574");
231 /// Servers in this group enable users of RemoteApp programs and personal virtual desktops access to these resources. This group needs to be populated on servers running RD Connection Broker. RD Gateway servers and RD Web Access servers used in the deployment need to be in this group.
232 pub const RDS_REMOTE_ACCESS_SERVERS: SecurityIdentifier = sid!("S-1-5-32-575");
233 /// A group that enables member servers to run virtual machines and host sessions.
234 pub const RDS_ENDPOINT_SERVERS: SecurityIdentifier = sid!("S-1-5-32-576");
235 /// A group that allows members to access WMI resources over management protocols (such as WS-Management via the Windows Remote Management service).
236 pub const RDS_MANAGEMENT_SERVERS: SecurityIdentifier = sid!("S-1-5-32-577");
237 /// A group that gives members access to all administrative features of Hyper-V.
238 pub const HYPER_V_ADMINS: SecurityIdentifier = sid!("S-1-5-32-578");
239 /// A local group that allows members to remotely query authorization attributes and permissions for resources on the local computer.
240 pub const ACCESS_CONTROL_ASSISTANCE_OPS: SecurityIdentifier = sid!("S-1-5-32-579");
241 /// Members of this group can access Windows Management Instrumentation (WMI) resources over management protocols (such as WS-Management [DMTF-DSP0226]). This applies only to WMI namespaces that grant access to the user.
242 pub const REMOTE_MANAGEMENT_USERS: SecurityIdentifier = sid!("S-1-5-32-580");
243 /// A local group that represents storage replica admins.
244 pub const STORAGE_REPLICA_ADMINS: SecurityIdentifier = sid!("S-1-5-32-582");
245 /// A SID that allows objects to have an ACL that lets any service process with a write-restricted token to write to the object.
246 pub const WRITE_RESTRICTED_CODE: SecurityIdentifier = sid!("S-1-5-33");
247 /// A SID that is used when the NTLM authentication package authenticated the client.
248 pub const NTLM_AUTHENTICATION: SecurityIdentifier = sid!("S-1-5-64-10");
249 /// A SID that is used when the SChannel authentication package authenticated the client.
250 pub const SCHANNEL_AUTHENTICATION: SecurityIdentifier = sid!("S-1-5-64-14");
251 /// A SID that is used when the Digest authentication package authenticated the client.
252 pub const DIGEST_AUTHENTICATION: SecurityIdentifier = sid!("S-1-5-64-21");
253 /// A SID that indicates that the client's Kerberos service ticket's PAC contained a NTLM_SUPPLEMENTAL_CREDENTIAL structure (as specified in [MS-PAC] section 2.6.4). If the OTHER_ORGANIZATION SID is present, then this SID MUST NOT be present.
254 pub const THIS_ORGANIZATION_CERTIFICATE: SecurityIdentifier = sid!("S-1-5-65-1");
255 /// An NT Service account prefix.
256 pub const NT_SERVICE: SecurityIdentifier = sid!("S-1-5-80");
257 /// A group that includes all service processes that are configured on the system. Membership is controlled by the operating system.
258 pub const NT_SERVICE_ALL_SERVICES: SecurityIdentifier = sid!("S-1-5-80-0");
259 /// The SID gives the DPS service access to coordinate execution of diagnostics/troubleshooting/resolution. The Diagnostic Policy Service is a Win32 service that runs as NT AUTHORITY\LocalService in a shared process of svchost.exe.
260 pub const NT_SERVICE_DPS: SecurityIdentifier = sid!("S-1-5-80-2970612574-78537857-698502321-558674196-1451644582");
261 /// The Diagnostics Service Host (wdiservicehost) account is granted the SeSystemProfilePrivilege where it's added to the local SAM of the machine, picked up by SCE, then added to the GPTTMPL.INF. The WdiServiceHost service enables problem detection, troubleshooting, and resolution for Windows components. The SID gives the service access to run certain system diagnostic, troubleshooting, and resolution routines.
262 pub const NT_SERVICE_WDISERVICEHOST: SecurityIdentifier =
263 sid!("S-1-5-80-3139157870-2983391045-3678747466-658725712-1809340420");
264 /// A built-in group. The group is created when the Hyper-V role is installed. Membership in the group is maintained by the Hyper-V Management Service (VMMS). Requires the Create Symbolic Links right (SeCreateSymbolicLinkPrivilege) and the Log on as a Service right (SeServiceLogonRight).
265 pub const NT_VIRTUAL_MACHINE_VIRTUAL_MACHINES: SecurityIdentifier = sid!("S-1-5-83-0");
266 /// The VM SID is only used for local access, while remote access uses the machine identity.
267 pub const fn NT_VIRTUAL_MACHINE_REMOTE_VIRTUAL_MACHINE(container_id: [u32; 4]) -> SecurityIdentifier {
268 SecurityIdentifier::new_const(5, [83, 1, container_id[0], container_id[1], container_id[2], container_id[3]])
269 }
270 /// Identifies a user-mode driver process.
271 pub const USER_MODE_DRIVERS: SecurityIdentifier = sid!("S-1-5-84-0-0-0-0-0");
272 /// A built-in group that is used by the Desktop Windows Manager (DWM). DWM is a Windows service that manages information display for Windows applications. It is a pseudo group which all virtual accounts that are window managers get.
273 pub const WINDOWS_MANAGER_WINDOWS_MANAGER_GROUP: SecurityIdentifier = sid!("S-1-5-90-0");
274 /// A group that includes all users who are local accounts.
275 pub const LOCAL_ACCOUNT: SecurityIdentifier = sid!("S-1-5-113");
276 /// A group that includes all users who are local accounts and members of the administrators group.
277 pub const LOCAL_ACCOUNT_AND_MEMBER_OF_ADMINISTRATORS_GROUP: SecurityIdentifier = sid!("S-1-5-114");
278 /// A group that includes all users and computers from another organization. If this SID is present, THIS_ORGANIZATION SID MUST NOT be present.
279 pub const OTHER_ORGANIZATION: SecurityIdentifier = sid!("S-1-5-1000");
280
281 /// All applications running in an app package context.
282 pub const ALL_APP_PACKAGES: SecurityIdentifier = sid!("S-1-15-2-1");
283
284 /// An untrusted integrity level.
285 pub const ML_UNTRUSTED: SecurityIdentifier = sid!("S-1-16-0");
286 /// A low integrity level.
287 pub const ML_LOW: SecurityIdentifier = sid!("S-1-16-4096");
288 /// A medium integrity level.
289 pub const ML_MEDIUM: SecurityIdentifier = sid!("S-1-16-8192");
290 /// A medium-plus integrity level.
291 pub const ML_MEDIUM_PLUS: SecurityIdentifier = sid!("S-1-16-8448");
292 /// A high integrity level.
293 pub const ML_HIGH: SecurityIdentifier = sid!("S-1-16-12288");
294 /// A system integrity level.
295 pub const ML_SYSTEM: SecurityIdentifier = sid!("S-1-16-16384");
296 /// A protected-process integrity level.
297 pub const ML_PROTECTED_PROCESS: SecurityIdentifier = sid!("S-1-16-20480");
298 /// A secure process integrity level.
299 pub const ML_SECURE_PROCESS: SecurityIdentifier = sid!("S-1-16-28672");
300
301 /// A SID that means the client's identity is asserted by an authentication authority based on proof of possession of client credentials.
302 pub const AUTHENTICATION_AUTHORITY_ASSERTED_IDENTITY: SecurityIdentifier = sid!("S-1-18-1");
303 /// A SID that means the client's identity is asserted by a service.
304 pub const SERVICE_ASSERTED_IDENTITY: SecurityIdentifier = sid!("S-1-18-2");
305 /// A SID that means the client's identity is asserted by an authentication authority based on proof of current possession of client public key credentials.
306 pub const FRESH_PUBLIC_KEY_IDENTITY: SecurityIdentifier = sid!("S-1-18-3");
307 /// A SID that means the client's identity is based on proof of possession of public key credentials using the key trust object.
308 pub const KEY_TRUST_IDENTITY: SecurityIdentifier = sid!("S-1-18-4");
309 /// A SID that means the key trust object had the multifactor authentication (MFA) property.
310 pub const KEY_PROPERTY_MFA: SecurityIdentifier = sid!("S-1-18-5");
311 /// A SID that means the key trust object had the attestation property.
312 pub const KEY_PROPERTY_ATTESTATION: SecurityIdentifier = sid!("S-1-18-6");
313}