Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Group SID History count should be retrievable

AD-GRP-05InfoActive DirectoryGroups

Part of Active Directory · Active Directory · Groups · All checks

Run this check
Invoke-Maester -TestId AD-GRP-05
  • SID History is an attribute used during Active Directory domain migrations to maintain access to resources in the source domain:
  • Groups with SID History are important to monitor because persistent SID History on groups can indicate:
  • Incomplete migrations: Groups that were migrated but never fully transitioned
  • Security risks: SIDs from untrusted or decommissioned domains may grant unintended access
  • Directory bloat: Unnecessary data that complicates troubleshooting and auditing
  • Audit complexity: Makes it difficult to determine effective permissions
  • Trust dependencies: Hidden dependencies on domains that may no longer exist
  • Groups with SID History are particularly concerning because they often control access to resources, and the SID History may grant access to users or groups from the source domain.

Detective

  • Review all groups with SID History to determine if migration is complete
  • Remove SID History attributes once group memberships are verified in the new domain
  • Be cautious of SID History containing SIDs from external or untrusted domains
  • Document any groups that legitimately require long-term SID History
  • Regularly audit SID History contents during security reviews
  • This test retrieves all group objects from Active Directory and:
  • Checks the SIDHistory attribute for each group
  • Counts groups where SIDHistory is populated with one or more SIDs
  • Calculates the percentage of groups with SID History
  • Test-MtAdGroupStaleCount - Groups with SID History may also be stale if migration was long ago
  • Test-MtAdGroupAdminCount - Privileged groups with SID History require special attention
Every attribute of this check
FieldValue
Test IDAD-GRP-05
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureGroups
AreaIdentity lifecycle and hygiene
Resource typeGroup
MITRE ATT&CKT1134.005 SID-History Injection
PowerShell testTest-MtAdGroupSidHistoryCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:group:ReadProperty