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 stale count should be investigated

AD-TRUST-06InfoActive DirectoryTrusts

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

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

Stale trusts (those not validated for extended periods) indicate potential issues:

  • Decommissioned Domains: The target domain may no longer exist
  • Connectivity Issues: Network problems preventing trust validation
  • Orphaned Trusts: Trusts created for temporary purposes that were never removed
  • Security Hygiene: Unused trusts increase attack surface unnecessarily
  • Operational Risk: Stale trusts may fail unexpectedly when needed

Trust validation occurs when the trusting domain attempts to verify the trust relationship with the trusted domain. If this hasn’t happened within MaximumValidationAgeDays (default 60), it suggests the trust is not actively used.

Operational

Immediate Actions:

  • Review all stale trusts to determine if they are still needed
  • Test connectivity to the target domain
  • Verify the target domain still exists

Remediation Steps:

  1. Verify Need: Confirm if the trust serves a business purpose
  2. Test Connectivity: Attempt to validate the trust manually
  3. Remove if Unused: Delete trusts that are no longer needed
  4. Document Exceptions: For trusts that must remain, document why

Command to Validate a Trust:

Test-ADTrust -Target <TrustName>

Command to Remove a Trust:

Remove-ADTrust -Target <TrustName>

This test checks the LastValidated property of each trust. Trusts are considered stale if:

  • LastValidated is not null
  • LastValidated is older than MaximumValidationAgeDays (default 60)

The test returns:

  • Total trust count
  • Count of stale trusts
  • Count of trusts with unknown validation status
  • Count of valid trusts
  • Test-MtAdTrustStaleDetails - Lists specific stale trusts with details
  • Test-MtAdTrustTotalCount - Overall trust count
  • Test-MtAdTrustDetails - Complete trust configuration including last validated date
Every attribute of this check
FieldValue
Test IDAD-TRUST-06
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureTrusts
AreaExternal access and sharing
Resource typeTrust
MITRE ATT&CKNone
PowerShell testTest-MtAdTrustStaleCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:trustedDomain:ReadProperty