Join our Newsletter — 33% off our NHI Course
Home› Glossary› Foundations & NHI Taxonomy› DsEnumerateDomainTrusts
Foundations & NHI Taxonomy

DsEnumerateDomainTrusts

← Back to Glossary
By NHI Mgmt Group Updated November 9, 2026 Domain: Foundations & NHI Taxonomy

DsEnumerateDomainTrusts is an Active Directory API function that lists trusted domains and the trust relationships between them. Administrators and security tools use it to discover how authentication and authorisation can flow across domain boundaries, including external, forest and transitive trusts.

What the function exposes about domain trust

DsEnumerateDomainTrusts is a discovery primitive for Active Directory trust topology. It helps you answer a basic but important question, which domains does this environment trust, and therefore which external or forest boundaries can influence authentication and authorization decisions.

That makes the function useful for both administration and security review. A trust is not just a directory relationship, it is also a path by which principals, tokens, and access decisions may be accepted from outside the local domain.

How trust enumeration works in practice

The API returns the presence and type of trust relationships, such as external, forest, and transitive trusts. Practitioners use that output to understand where directory scope ends, where cross-domain resolution begins, and which relationships may widen the blast radius of a compromised account or misconfigured policy.

Enumeration is especially valuable in complex enterprises, because trust relationships are often older than current access models and may outlive the business reason they were created for. That creates hidden connectivity between domains that does not show up in a simple user or group review.

Why trust relationships matter for security

Trusts directly affect how far authentication material and authorization context can travel. If a trust is broader than intended, a compromise in one domain can become a stepping stone into another, and security tooling may miss the path if the trust inventory is incomplete.

They also matter for visibility. Security teams often understand local domain controls well, but cross-domain trust paths can be the gap that explains unexpected logon sources, delegated access, or lateral movement opportunities.

What defenders should check after enumerating trusts

After trust enumeration, defenders should compare the returned relationships with the intended business architecture and with current administrative ownership. The goal is to identify stale, unnecessary, or overly permissive trusts, then confirm that monitoring and access review cover every domain boundary that still exists.

Where trust paths are legitimate, they should be treated as security dependencies, not just directory metadata. That means validating which systems rely on them, who can administer them, and whether the trust still matches the organisation's current segmentation and privilege model.

Risk and Threat Considerations

Trusts expand the attack surface because they create accepted paths between identity boundaries. If an attacker compromises an account, service, or admin path in one trusted domain, the trust may provide a route to search for reachable users, groups, and systems beyond the initial foothold.

Failure mechanism: Weak, forgotten, or excessive trusts can let authentication and authorization assumptions cross into places the defenders no longer monitor closely, which makes privilege escalation and lateral movement easier.

Impact: A trust misconfiguration can turn one domain compromise into multi-domain exposure, especially when security teams rely on an outdated understanding of which relationships still exist.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-2 — Account ManagementDomain trusts change which accounts can be recognized across boundaries.
AC-3 — Access EnforcementTrust relationships influence how access decisions are enforced across domains.
IA-2 — Identification and Authentication (Organizational Users)Trusts determine where user authentication assertions can be accepted.
Recommendation — Review trusted-domain paths and remove any account exposure that is no longer required. Enforce access decisions consistently across trusted domains and verify boundary behavior. Validate which domains may authenticate users and restrict trust acceptance to intended boundaries.
NIST CSF 2.0ID.AM-01 — Physical devices and systems within the organization are inventoriedEnumerating domain trusts is part of discovering the identity infrastructure boundary.
PR.AA-01 — Identities and credentials are issued, managed, verified, revoked, and auditedTrusts govern where identity assertions and authorization context are accepted.
Recommendation — Inventory every trusted domain relationship and reconcile it with the authoritative directory design. Audit trust relationships to ensure identity acceptance remains limited to approved domains.

Practitioner Guidance

Why practitioners should care: Trust enumeration is a control-validation task, not just an inventory exercise. If the trust map is incomplete, access reviews, incident scoping, and segmentation assumptions will all be weaker than they appear.

What to watch for: Pay special attention to trusts that are older than the current domain design, trusts created for migrations or mergers, and any relationship whose business owner cannot be identified quickly. Those are common places for hidden exposure to persist.

Practitioner takeaway: Treat the trust list as part of your security boundary model, then keep it aligned with monitoring, admin ownership, and least-privilege expectations.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org