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) →

Stale groups count should be retrievable

AD-GRP-03InfoActive DirectoryGroups

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

Run this check
Invoke-Maester -TestId AD-GRP-03

Groups that have not been modified for an extended period (in this case, before 2020) may represent:

  • Abandoned groups: Created for projects or purposes that no longer exist
  • Orphaned permissions: Groups with memberships that haven’t been reviewed
  • Security blind spots: Groups that could be repurposed by attackers
  • Directory clutter: Unused objects that complicate administration
  • Compliance issues: Undocumented groups that auditors may question

Stale groups pose particular risks because:

  • They may contain members who should have been removed
  • They might grant access to resources that should be restricted
  • Their purpose may be forgotten, making them difficult to audit

Detective

  • Establish a regular review process for groups that haven’t been modified recently
  • Document all groups and their purposes
  • Consider implementing a group lifecycle policy with automatic expiration
  • Remove groups that are no longer needed after confirming they’re not referenced
  • Update the modifyTimeStamp by reviewing group membership periodically

This test retrieves all group objects from Active Directory and:

  • Examines the modifyTimeStamp property of each group
  • Counts groups where modifyTimeStamp is before January 1, 2020
  • Calculates the percentage of stale groups in the environment
  • Test-MtAdGroupWithManagerCount - Groups with managers are more likely to be actively maintained
  • Test-MtAdGroupSidHistoryCount - Stale groups may be remnants of domain migrations
Every attribute of this check
FieldValue
Test IDAD-GRP-03
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureGroups
AreaIdentity lifecycle and hygiene
Resource typeGroup
MITRE ATT&CKNone
PowerShell testTest-MtAdGroupStaleCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:group:ReadProperty