Trust stale count should be investigated
AD-TRUST-06InfoActive DirectoryTrusts
Part of Active Directory · Active Directory · Trusts · All checks
Invoke-Maester -TestId AD-TRUST-06Overview
Section titled “Overview”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.
Control Type
Section titled “Control Type”Operational
Security Recommendation
Section titled “Security Recommendation”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:
- Verify Need: Confirm if the trust serves a business purpose
- Test Connectivity: Attempt to validate the trust manually
- Remove if Unused: Delete trusts that are no longer needed
- 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>How the Test Works
Section titled “How the Test Works”This test checks the LastValidated property of each trust. Trusts are considered stale if:
LastValidatedis not nullLastValidatedis older thanMaximumValidationAgeDays(default 60)
The test returns:
- Total trust count
- Count of stale trusts
- Count of trusts with unknown validation status
- Count of valid trusts
Related Tests
Section titled “Related Tests”Test-MtAdTrustStaleDetails- Lists specific stale trusts with detailsTest-MtAdTrustTotalCount- Overall trust countTest-MtAdTrustDetails- Complete trust configuration including last validated date
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-TRUST-06 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Trusts |
| Area | External access and sharing |
| Resource type | Trust |
| MITRE ATT&CK | None |
| PowerShell test | Test-MtAdTrustStaleCount |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:trustedDomain:ReadProperty |
Source
Section titled “Source”- Test:
tests/ad/trust/Test.AD-TRUST-06.ps1 - Documentation:
tests/ad/trust/Test.AD-TRUST-06.md
About this check
- Severity
- Info
- Product
- Active Directory
- Feature
- Trusts
- Area
- External access and sharing
- Suite
- Active Directory