# Trust members count should be investigated

Regularly audit trust members: - Verify that trust relationships are still required and properly maintained - Review whether external users still need…

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

<!-- 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-04
```

## Overview

- Trust members represent security principals from external domains that have been granted access within the local domain:
- **Cross-Domain Access**: Trust members can access resources in the local domain
- **Trust Validation**: External members require the trust relationship to remain valid
- **Security Boundaries**: Understanding where external access is granted helps maintain security boundaries
- **Audit Trail**: Trust members should be regularly reviewed for continued necessity

#### Control Type

**Operational**

#### Security Recommendation

Regularly audit trust members:
- Verify that trust relationships are still required and properly maintained
- Review whether external users still need access to local resources
- Document the business justification for cross-domain access
- Monitor for trust members in privileged groups (Domain Admins, etc.)

#### How the Test Works

This test identifies trust members by:
- Detecting foreignSecurityPrincipal object class
- Identifying SIDs that don't match the current domain SID pattern
- Counting unique trust members across groups

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

#### Related Tests

- `Test-MtAdGroupMemberTrustDetails` - Detailed breakdown by group
- `Test-MtAdGroupMemberForeignSidCount` - Counts foreign SIDs specifically

## Details

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

| Field | Value |
| --- | --- |
| Test ID | AD-GMC-04 |
| 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-MtAdGroupMemberTrustCount](https://github.com/maester365/maester/blob/main/tests/ad/group/Test.AD-GMC-04.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-04.ps1`](https://github.com/maester365/maester/blob/main/tests/ad/group/Test.AD-GMC-04.ps1)
- Documentation: [`tests/ad/group/Test.AD-GMC-04.md`](https://github.com/maester365/maester/blob/main/tests/ad/group/Test.AD-GMC-04.md)
