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

Distinct account types of members count should be retrievable

AD-GMC-02InfoActive DirectoryGroups

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

Run this check
Invoke-Maester -TestId AD-GMC-02
  • Understanding the types of objects that can be group members helps assess Active Directory security posture:
  • Security Principal Types: Groups can contain users, groups, computers, and foreign security principals
  • Nested Groups: Groups containing other groups create inheritance chains that can be complex to audit
  • Computer Membership: Computers in groups may indicate service accounts or special access requirements
  • Foreign Principals: External domain members represent trust relationships that extend beyond the local domain

Operational

  • Monitor group membership composition:
  • Nested group membership can create unexpected access paths
  • Foreign security principals indicate cross-domain access that should be regularly reviewed
  • Computer accounts in sensitive groups may indicate misconfigurations
  • This test analyzes group membership across Active Directory and:
  • Identifies distinct object classes among group members
  • Counts unique account types (user, group, computer, foreignSecurityPrincipal)
  • Provides visibility into membership composition

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

  • Test-MtAdGroupMemberAccountTypeDetails - Detailed breakdown of account types
  • Test-MtAdGroupMemberForeignSidCount - Identifies foreign security principals specifically
Every attribute of this check
FieldValue
Test IDAD-GMC-02
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureGroups
AreaIdentity lifecycle and hygiene
Resource typeGroup
MITRE ATT&CKNone
PowerShell testTest-MtAdGroupMemberAccountTypeCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:group:ReadProperty, ActiveDirectory:Ldap:group.member:ReadProperty