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

Trust inter-forest count should be investigated

AD-TRUST-02InfoActive DirectoryTrusts

Part of Active Directory · Active Directory · Trusts · All checks

Run this check
Invoke-Maester -TestId AD-TRUST-02

Inter-forest trusts (external trusts) connect different Active Directory forests and pose unique security risks:

  • SID History Attacks: External trusts may be vulnerable to SID history attacks where attackers inject privileged SIDs from the external domain
  • Less Visibility: You have less control and visibility over security practices in external forests
  • Lateral Movement: Compromised external domains can be used as pivot points for attacks
  • Trust Transitivity: Understanding which trusts are external helps assess blast radius

Intra-forest trusts (within the same forest) generally have stronger security guarantees because they share a common schema and configuration.

Operational

  • Minimize External Trusts: Only create inter-forest trusts when absolutely necessary
  • Enable SID Filtering: Always enable SID filtering (quarantine) on external trusts
  • Selective Authentication: Consider using selective authentication for external trusts
  • Regular Review: Review external trusts quarterly to ensure they are still required
  • Monitor Closely: Enable enhanced logging for authentication events across external trusts
  • Documentation: Maintain detailed documentation of why each external trust exists

This test analyzes all trust objects and identifies those where IntraForest is $false. The test returns:

  • Total count of trusts
  • Count of inter-forest trusts
  • Count of intra-forest trusts
  • Test-MtAdTrustQuarantinedCount - Checks if external trusts have SID filtering enabled
  • Test-MtAdTrustNonQuarantinedDetails - Lists external trusts without SID filtering
  • Test-MtAdTrustTotalCount - Overall trust count
  • Test-MtAdTrustDetails - Detailed trust configuration
Every attribute of this check
FieldValue
Test IDAD-TRUST-02
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureTrusts
AreaExternal access and sharing
Resource typeTrust
MITRE ATT&CKNone
PowerShell testTest-MtAdTrustInterForestCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:trustedDomain:ReadProperty