Skip to main content
Version: 2.2.1-preview

AD-GMC-03 - Member account types breakdown should be retrievable

Overviewโ€‹

A detailed breakdown of account types across group membership provides comprehensive visibility:

  • User Accounts: Most common members - represent individual access
  • Group Nesting: Groups within groups create hierarchical permissions
  • Computer Accounts: Service accounts and system access requirements
  • Foreign Security Principals: Cross-domain and cross-forest access

Security Recommendationโ€‹

Review account type distributions to identify:

  • Over-reliance on group nesting that may create privilege escalation paths
  • Unusual patterns (e.g., many computer accounts in privileged groups)
  • External principals that may need periodic trust validation

How the Test Worksโ€‹

This test provides a detailed analysis of group membership composition:

  • Categorizes all unique members by their object class
  • Shows count and percentage for each account type
  • Identifies the distribution of member types across groups

For performance reasons, the test analyzes members from the first 50 groups and deduplicates by SID.

  • Test-MtAdGroupMemberAccountTypeCount - Count of distinct account types
  • Test-MtAdGroupMemberTrustDetails - Detailed view of trust members by group

Test Metadataโ€‹

FieldValue
Test IDAD-GMC-03
SeverityInfo
SuiteActive Directory
CategoryAD.Group
PowerShell testTest-MtAdGroupMemberAccountTypeDetails
TagsAD, AD-GMC-03, AD.Group

Sourceโ€‹

  • Pester test: tests/ad/group/Test-MtAdGroupMemberAccountTypeDetails.Tests.ps1
  • PowerShell source: powershell/public/ad/group/Test-MtAdGroupMemberAccountTypeDetails.ps1