A trust policy states which principals may assume a role or receive access, and under which conditions. On an AWS IAM role it covers external ID, source account and OIDC claims such as repository or branch. One that names an entire external account or omits claim conditions is a frequent source of unintended access.
What a trust policy actually governs
A trust policy is the rule set that decides which external principal can assume a role or obtain access, and the conditions that must be satisfied first. In practice, it is less about “who is known” and more about “who is allowed under which constraints,” which makes it a core control point for federated access and role assumption.
That distinction matters because trust policy mistakes often turn a narrowly scoped trust relationship into broad, unintended access. A policy that is too open can authorise the wrong principal, while a policy that is too vague can leave downstream permission boundaries intact but ineffective.
How trust policy conditions narrow access
Trust policy conditions are what keep assumption decisions tied to the right context. On cloud role trust policies, conditions can require attributes such as an external ID, a source account, or identity claims from an OIDC token. These checks help ensure that the caller is not merely authenticated in some general sense, but is the specific workload, repository, branch, or partner context the role was designed for.
That conditional model is what makes trust policy a security boundary rather than just a configuration detail. The same role can be safe for one producer of tokens and unsafe for another if the conditions do not distinguish between them.
Common failure modes in trust policy design
The most common weakness is over-broad trust. If a policy names an entire external account, or accepts a token without claim-level conditions, it can accidentally authorise many more principals than intended. This is especially dangerous in federated automation, where identity assertions are short-lived but highly privileged once accepted.
Another failure mode is treating trust policy as if it were equivalent to authorization on the target resource. Trust policy answers whether the principal may assume the role at all; permissions attached to the role answer what that role can do after assumption. Confusing those layers often leads to either unnecessary exposure or false confidence in a policy that is technically present but not meaningfully constrained.
Why trust policy is central to federated identity security
Trust policy is one of the first gates in workload and external identity federation, so it directly shapes the blast radius of compromise. If the trust rule is weak, an attacker who can mint or replay a valid assertion may convert that into role assumption, temporary credentials, and access to downstream cloud resources. If it is well-scoped, the same federation path remains usable without becoming a generic entry point.
For that reason, trust policy should be read as an access agreement with explicit guardrails, not as a passive allowlist. It is the place where the organisation encodes which issuer, subject, repository, branch, audience, or external account actually deserves the right to cross the trust boundary.
Risk and Threat Considerations
Trust policy failures can create direct privilege exposure because a small mistake in the trust boundary can grant access to a much larger set of principals than intended. The danger is highest where federated credentials are short-lived, automation is frequent, and the same role can be reached from many systems or repositories.
Failure mechanism: Over-broad trust conditions, missing claim checks, or acceptance of an entire external account can let an unintended principal assume the role and inherit its permissions.
Impact: Attackers or misconfigured automation may gain temporary but real cloud access, enabling data exposure, privilege escalation, lateral movement, or malicious changes under the role’s authority.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Trust policies rely on controlled assertions, tokens, and credential lifecycles for role assumption. |
| AC-6 — Least Privilege | Trust policy limits which principals may assume a role, directly shaping access minimization. | |
| IA-2 — Identification and Authentication (Organizational Users) | Federated trust decisions depend on reliable identity assertion before access is granted. | |
| Recommendation — Tighten assertion and credential handling so role assumption only succeeds with valid, managed authenticators. Restrict role trust conditions so only the minimum required principals can obtain access. Require strong identity proofing and authentication before accepting federated role assumptions. | ||
| NIST CSF 2.0 | PR.AA-05 — Managed Access | Managed access covers controlling which identities can obtain and use permissions through trust policies. |
| Recommendation — Use managed access rules to constrain who can assume roles and under what conditions. | ||
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | Weak trust policies can accept insufficiently constrained workload or federated assertions. |
| Recommendation — Harden federation checks so only properly bound non-human identities can authenticate into roles. | ||
Practitioner Guidance
What to watch for: Treat every trust policy review as a control-design decision, not a syntax check. The key question is whether the policy binds the assumed role to the exact issuer and claims you expect, instead of relying on a broad external identity boundary.
Governance implication: Ownership should sit with the team that understands both the identity provider claims and the role’s business purpose, because the right condition set depends on both. A trust policy that is technically valid but operationally overbroad is still a governance failure.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org