Trust configuration details should be investigated
AD-TRUST-05InfoActive DirectoryTrusts
Part of Active Directory · Active Directory · Trusts · All checks
Invoke-Maester -TestId AD-TRUST-05Overview
Section titled “Overview”Comprehensive trust documentation is essential for security operations:
- Security Audits: Auditors require detailed trust configuration information
- Incident Response: Understanding trust relationships helps during security incidents
- Change Management: Tracking trust configurations supports change control processes
- Risk Assessment: Detailed trust information enables proper risk evaluation
- Compliance: Many frameworks require documentation of trust relationships
Trust details reveal critical security properties including:
- Direction: Who can access whose resources
- Type: External vs Forest trust (different security models)
- SID Filtering: Whether the trust has strong SID filtering
- Selective Authentication: Whether authentication is restricted
- Trust Classification: Derived
IsForest,IsExternal, andSidFilteringWeakproperties
Control Type
Section titled “Control Type”Operational
Security Recommendation
Section titled “Security Recommendation”Configuration Best Practices:
- Use Forest Trusts: Prefer forest trusts over external trusts for better security
- Enable SID Filtering: Always enable SID filtering on external trusts
- Selective Authentication: Use selective authentication when possible
- Inbound Only: Prefer inbound trusts over bidirectional when possible
- Document Everything: Maintain detailed documentation of each trust’s purpose
Trust Properties to Monitor:
Quarantined: Should be$truefor external trusts (SID filtering enabled)SidFilteringWeak: Should be$falsefor both external and forest trustsSelectiveAuthentication: Consider enabling for sensitive environmentsDirection: Bidirectional trusts have higher riskIsForest/IsExternal: Helps identify which SID filtering rules apply
How the Test Works
Section titled “How the Test Works”This test retrieves all trust properties from LDAP and derives display values:
- Quarantined: Derived from
trustAttributesbit0x4(QUARANTINED_DOMAIN) - Selective Authentication: Derived from
trustAttributesbit0x10(CROSS_ORGANIZATION) - Intra-Forest: Derived from
trustAttributesbit0x20(WITHIN_FOREST) - IsForest: Derived from
trustAttributesbit0x8(FOREST_TRANSITIVE) - IsExternal: Derived from
trustTypein1,2and absence ofFOREST_TRANSITIVE/WITHIN_FOREST - SidFilteringWeak: External trusts weak when
QUARANTINED_DOMAINnot set; forest trusts weak whenTREAT_AS_EXTERNAL(0x40) is set - Trust Type: Mapped from numeric
trustType(1=External Downlevel, 2=Domain Uplevel, 3=MIT Kerberos, 4=DCE) - Direction: Mapped from numeric
trustDirection(1=Inbound, 2=Outbound, 3=Bidirectional)
Related Tests
Section titled “Related Tests”Test-MtAdTrustTotalCount- Overall trust countTest-MtAdTrustInterForestCount- External trust identificationTest-MtAdTrustQuarantinedCount- SID filtering statusTest-MtAdTrustStaleCount- Trust validation status
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-TRUST-05 |
| 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-MtAdTrustDetails |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:trustedDomain:ReadProperty |
Source
Section titled “Source”- Test:
tests/ad/trust/Test.AD-TRUST-05.ps1 - Documentation:
tests/ad/trust/Test.AD-TRUST-05.md
About this check
- Severity
- Info
- Product
- Active Directory
- Feature
- Trusts
- Area
- External access and sharing
- Suite
- Active Directory