# Trust members details by group should be investigated

Understanding which specific groups contain trust members is critical for security management:

Source: https://maester.dev/docs/tests/AD-GMC-05

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/soulemike" title="Michael Soule · Original author"><img src="https://github.com/soulemike.png" alt="Michael Soule" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/soulemike">Michael Soule</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/ad">Active Directory</a> · Active Directory · Groups · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId AD-GMC-05
```

## Overview

Understanding which specific groups contain trust members is critical for security management:

- **Privileged Access**: Trust members in privileged groups (Administrators, Domain Admins) represent significant risk
- **Access Path Analysis**: Knowing which groups contain external members helps trace access paths
- **Trust Management**: Groups with many trust members may indicate over-reliance on external access
- **Compliance**: Some compliance frameworks require documentation of cross-domain access

#### Control Type

**Operational**

#### Security Recommendation

Perform detailed review of groups containing trust members:
- Prioritize review of privileged groups with external members
- Document the source domain and purpose of each trust member
- Establish processes to periodically validate continued need for external access
- Consider creating domain-local groups specifically for external access to maintain clear boundaries

#### How the Test Works

This test provides detailed analysis of trust membership:
- Identifies which groups contain trust members
- Lists trust members per group with their SIDs and types
- Shows the distribution of external access across groups

For performance reasons, the test analyzes the first 50 groups and limits display to 10 members per group.

#### Related Tests

- `Test-MtAdGroupMemberTrustCount` - Overall count of trust members
- `Test-MtAdGroupMemberForeignSidCount` - Analysis of foreign SIDs

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | AD-GMC-05 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Groups |
| Area | External access and sharing |
| Resource type | Group |
| MITRE ATT&CK | None |
| PowerShell test | [Test-MtAdGroupMemberTrustDetails](https://github.com/maester365/maester/blob/main/tests/ad/group/Test.AD-GMC-05.ps1) |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:domainDNS:ReadProperty, ActiveDirectory:Ldap:group:ReadProperty, ActiveDirectory:Ldap:group.member:ReadProperty |

</details>

## Source

- Test: [`tests/ad/group/Test.AD-GMC-05.ps1`](https://github.com/maester365/maester/blob/main/tests/ad/group/Test.AD-GMC-05.ps1)
- Documentation: [`tests/ad/group/Test.AD-GMC-05.md`](https://github.com/maester365/maester/blob/main/tests/ad/group/Test.AD-GMC-05.md)
