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

Foreign SID principals count should be investigated

AD-GMC-06InfoActive DirectoryGroups

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

Run this check
Invoke-Maester -TestId AD-GMC-06

Foreign SIDs represent security identifiers from domains other than the current domain:

  • SID History: Migrated accounts may retain original SIDs for access continuity
  • Trust Relationships: External domain SIDs indicate trust-based access
  • Cross-Forest Access: Forest trusts may introduce SIDs from entirely different forests
  • Security Auditing: Foreign SIDs should be tracked as they bypass some local security checks

Operational

Monitor and audit foreign SIDs carefully:

  • Review SID history from domain migrations for continued necessity
  • Verify that trust relationships with external domains are still required
  • Be cautious of foreign SIDs in highly privileged groups
  • Document all foreign SID sources for compliance and security reviews

This test analyzes group membership for foreign SIDs by:

  • Comparing member SIDs against the current domain SID
  • Identifying SIDs that don’t match the local domain pattern
  • Grouping foreign SIDs by their domain of origin
  • Counting unique foreign SID principals

For performance reasons, the test analyzes the first 50 groups.

  • Test-MtAdGroupMemberTrustCount - Count of trust members overall
  • Test-MtAdGroupMemberTrustDetails - Detailed view by group
Every attribute of this check
FieldValue
Test IDAD-GMC-06
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureGroups
AreaExternal access and sharing
Resource typeGroup
MITRE ATT&CKNone
PowerShell testTest-MtAdGroupMemberForeignSidCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:domainDNS:ReadProperty, ActiveDirectory:Ldap:group:ReadProperty, ActiveDirectory:Ldap:group.member:ReadProperty