The TRUSTED_BY permission in Active Directory establishes a trust relationship where an account or system is explicitly recognized as reliable by another domain (or security principal). This trust designation is crucial for inter-domain authentication, delegated access, and secure interactions between systems, ensuring seamless collaboration while maintaining security boundaries. Proper configuration of the TRUSTED_BY permission allows for controlled delegation of access rights, reducing redundant authentication prompts and streamlining cross-domain operations.
However, if misconfigured, the TRUSTED_BY permission can introduce significant security vulnerabilities. An attacker who exploits this trust relationship could abuse the trust to impersonate trusted accounts, escalate privileges, or bypass access controls within the trusted environment. Such exploitation might enable unauthorized access to sensitive systems, facilitate credential theft, and lead to widespread compromise of interconnected domains.
Identification
PowerShell
Active Directory Module
Using the ActiveDirectory PowerShell module, you can enumerate TRUSTED_BY entries.
By leveraging PowerShell’s built-in .NET DirectoryServices namespace, you can enumerate TRUSTED_BY entries without relying on any external modules or dependencies.
1. Find-ADTrustSimple function
2. Get all domain trusts
Active Directory Domains and Trusts
1. Open Active Directory Domains and Trusts.
2. Click on your domain.
3. You can see trusted domains in the list
4. Click OK to close the dialogs.
Exploitation
The TRUSTED_BY relationship is a trust link between two domains. It does not directly grant privileges, but it enables accounts in one domain to be recognized and authenticated by another.