API Reference
IdentityPolicy
Central policy helpers for identity classification used by rules/engines. Provides a single source of truth for "privileged" detection so callers do not re-implement or drift in semantics.
Inheritance
- Object
- IdentityPolicy
Methods
public static Boolean IsBroadAccessSid(String sid) #BooleanReturns true when the SID belongs to broad-access principals (Everyone/Auth Users/Domain Users/Domain Computers). Helpful when flagging ACLs that grant too-wide access.
Parameters
- sid System.String
public static Boolean IsDangerousRid(Int32 rid) #BooleanReturns true when a RID (relative identifier) is considered dangerous to have in SIDHistory. Used by SIDHistory analysis to flag history chains that include high-value built-ins/admins.
Parameters
- rid System.Int32
public static Boolean IsPrivilegedSid(String domainSid, String sid) #BooleanReturns true if the SID should be treated as privileged for delegation/rights analysis. Considers local/forest well-knowns and domain-relative admin RIDs.
Parameters
- domainSid System.String
- Account domain SID value (e.g., S-1-5-21-...)
- sid System.String
- SID to evaluate.
public static Boolean IsTrustedGpoOwner(String domainSid, String ownerSid) #BooleanReturns true when the provided SID is a trusted/expected owner for GPO objects.
Parameters
- domainSid System.String
- ownerSid System.String