Trust stale details should be investigated
AD-TRUST-07InfoActive DirectoryTrusts
Part of Active Directory · Active Directory · Trusts · All checks
Invoke-Maester -TestId AD-TRUST-07Overview
Section titled “Overview”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
Control Type
Section titled “Control Type”Operational
Security Recommendation
Section titled “Security Recommendation”Investigation Process:
- Identify Target Domain: Determine if the target domain still exists
- Check Business Need: Verify if any systems still require the trust
- Test Validation: Attempt manual trust validation
- Plan Removal: Schedule removal if trust is confirmed unused
- Document: Record removal rationale for audit purposes
Sample Investigation Commands:
#### Test if the trust can be validatedTest-ADTrust -Target <TrustName>
#### Check when the trust was createdGet-ADTrust -Filter {Target -eq "<TrustName>"} -Properties Created
#### View detailed trust informationGet-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
How the Test Works
Section titled “How the Test Works”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).
Related Tests
Section titled “Related Tests”Test-MtAdTrustStaleCount- Count of stale trustsTest-MtAdTrustTotalCount- Overall trust countTest-MtAdTrustDetails- Complete trust configuration information
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-TRUST-07 |
| 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-MtAdTrustStaleDetails |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:trustedDomain:ReadProperty |
Source
Section titled “Source”- Test:
tests/ad/trust/Test.AD-TRUST-07.ps1 - Documentation:
tests/ad/trust/Test.AD-TRUST-07.md