Skip to content
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) →

Sponsor

Trust stale details should be investigated

AD-TRUST-07InfoActive DirectoryTrusts

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

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

Identifying specific stale trusts enables targeted remediation:

  • Prioritization: Focus cleanup efforts on the oldest, most likely unused trusts
  • Investigation: Specific target domains can be investigated for existence and need
  • Risk Assessment: Older trusts may represent higher security risks
  • Documentation: Detailed stale trust information supports decision-making
  • Compliance: Demonstrates active trust management for audits

Stale trusts often accumulate over time as:

  • Temporary project trusts are forgotten
  • Acquired company domains are decommissioned
  • Network restructuring leaves orphaned connections
  • Test environments are removed without cleanup

Operational

Investigation Process:

  1. Identify Target Domain: Determine if the target domain still exists
  2. Check Business Need: Verify if any systems still require the trust
  3. Test Validation: Attempt manual trust validation
  4. Plan Removal: Schedule removal if trust is confirmed unused
  5. Document: Record removal rationale for audit purposes

Sample Investigation Commands:

#### Test if the trust can be validated
Test-ADTrust -Target <TrustName>
#### Check when the trust was created
Get-ADTrust -Filter {Target -eq "<TrustName>"} -Properties Created
#### View detailed trust information
Get-ADTrust -Filter {Target -eq "<TrustName>"} -Properties *

Removal Process:

  • Notify stakeholders before removing production trusts
  • Remove during maintenance windows
  • Document removal in change management system
  • Monitor for any authentication failures after removal

This test identifies trusts where LastValidated is older than StaleThresholdDays (default 60) and displays:

  • Target domain name
  • Trust direction
  • Last validation date
  • Days since last validation
  • Trust type

Results are sorted by last validation date (oldest first).

  • Test-MtAdTrustStaleCount - Count of stale trusts
  • Test-MtAdTrustTotalCount - Overall trust count
  • Test-MtAdTrustDetails - Complete trust configuration information
Every attribute of this check
FieldValue
Test IDAD-TRUST-07
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureTrusts
AreaExternal access and sharing
Resource typeTrust
MITRE ATT&CKNone
PowerShell testTest-MtAdTrustStaleDetails
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:trustedDomain:ReadProperty