Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› IAM Role Trust Policy
Architecture & Implementation

IAM Role Trust Policy

← Back to Glossary
By NHI Mgmt Group Updated October 28, 2026 Domain: Architecture & Implementation

An IAM role trust policy is the policy that says who or what can assume an IAM role. It defines the trusted principals, such as an account, user, role, or federated identity, and often the conditions that must be met before temporary credentials are issued.

What the trust policy actually does

An IAM role trust policy is the trust boundary for role assumption. It decides which principals may request temporary credentials for the role, and under what conditions, so it is a core control on delegated access rather than a permissions policy.

Because the trust policy governs who can enter the role, it is evaluated before the role’s permissions are even used. That makes it the first place to look when you are tracing an unexpected AssumeRole path, a cross-account dependency, or a federation setup that should only work from specific identities or contexts.

Trusted principals and assumption paths

The policy usually names trusted principals such as an AWS account, a user, another role, or a federated identity. In practice, that means it can describe several different assumption paths at once, including cross-account access, service-to-role access, and federation from an external identity provider.

The important distinction is that trust does not grant permissions by itself, it only authorizes role assumption. The moment a principal is allowed through, STS can mint temporary credentials for the role, so a weak trust policy can widen access far beyond what the attached permissions alone suggest.

For AWS-specific role design and chaining patterns, see AWS IAM Policies and Roles Guide.

Conditions, context, and confused deputy defenses

Conditions are what turn a basic allow list into a controlled trust relationship. They let the policy require specific context before assumption succeeds, such as a matching external identifier, source account, source ARN, or other request attributes that narrow when the role can be assumed.

This is especially important in delegated access and third-party access patterns, where the role may be callable by a broad service principal but should only be usable for one intended tenant, workload, or integration. Without those conditions, the role can become vulnerable to confused deputy problems or overbroad federation trust.

For a practical review pattern that focuses on these controls, see How to review AWS cross-account trust policies for confused deputy.

Why this policy is a security boundary

Trust policies matter because they sit at the intersection of authorization and credential issuance. If the trust boundary is too broad, an attacker or an unintended integration can obtain temporary credentials for a role that was never meant to be assumable from that context.

That risk is not limited to direct compromise of a user. It also appears when roles are reused across environments, when third-party integrations are loosely scoped, or when federated trust is expanded without a corresponding review of who can actually assume the role.

The broader identity and access implications of role trust are easier to see when they are treated as part of a lifecycle problem, not just a syntax problem. Ultimate Guide to NHIs, what are non-human identities is a useful reference point for the kinds of machine and workload identities that often rely on these trust relationships.

Operationally, trust policy mistakes can create stale access paths that survive longer than the workload, pipeline, or external partner they were created for. That is why assumption paths need to be reviewed alongside role ownership, conditions, and the principals that are still genuinely expected to use the role.

Reviewing and validating trust policies

A good review focuses on whether every trusted principal is still necessary, whether the conditions are strong enough, and whether the role can be assumed from any path that was not intentionally designed. In AWS environments, that usually means checking the trust policy itself, then validating the result against inventory and access analysis tools.

When the role is used in cloud automation or workload identity patterns, the review should also confirm that the assumption path is narrow enough for the workload’s real operating context. The tighter the trust policy, the less chance there is for role assumption to become a lateral movement route or an unexpected third-party bridge.

For cloud workload patterns that commonly depend on role assumption, see Cloud Workload Identity Guide. For AWS and federation-specific hardening patterns, AWS IAM Roles Anywhere Security Guide is also relevant.

Risk and Threat Considerations

IAM role trust policies are high-value targets because they control who can mint temporary credentials, not just who can read or write data. A mis-scoped trust relationship can turn a single assumption path into broad access, especially when the trusted principal is external, shared, or too generic.

Failure mechanism: An attacker, compromised integration, or unintended principal abuses a permissive trust policy to assume a role, then uses the resulting temporary credentials to reach resources that were not intended for that path.

Impact: The result can be privilege expansion, cross-account access, lateral movement, persistence through federated trust, or unauthorized use of cloud services until the trust policy is corrected and any dependent credentials or sessions are reviewed.

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 and OWASP API Security Top 10 address the attack and risk surface, while CSA Cloud Controls Matrix and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CSA Cloud Controls MatrixIAM — Identity & Access ManagementCovers cloud identity trust and access control for role assumption.
Recommendation — Map role trust relationships to IAM controls and verify trusted principals, conditions, and access paths.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementTemporary credentials and trust boundaries depend on controlled credential issuance and lifecycle.
IA-9 — Service Identification and AuthenticationRole assumption by services, workloads, and federated identities fits non-user authentication paths.
AC-6 — Least PrivilegeTrust policies should limit who can assume a role to the minimum necessary principals.
Recommendation — Manage credential issuance and rotation around role assumption paths to limit misuse of temporary access. Apply service authentication controls to constrain which non-human principals can assume roles. Restrict role trust to the smallest set of principals and conditions required for the use case.
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationWeak role trust allows insecure assumption of non-human identities and workload credentials.
NHI-05 — Overprivileged NHIOverbroad trust expands who can obtain a role's temporary credentials.
NHI-08 — Environment IsolationTrust policies often need environment and account separation to keep access paths isolated.
Recommendation — Harden trust policies so only intended non-human principals can authenticate into the role. Constrain role trust to prevent unnecessary principals from obtaining privileged temporary access. Separate trust by environment and account to prevent unintended cross-environment role assumption.
OWASP API Security Top 10API2 — Broken AuthenticationFederated or role-based API access can fail when trust validation is too weak.
API5 — Broken Function Level AuthorizationAssuming a role can grant functions that the caller should not reach.
Recommendation — Validate API-facing trust chains so only intended principals can exchange for access. Check that role assumption does not bypass function-level authorization boundaries.

Practitioner Guidance

Why practitioners should care: Treat the trust policy as a control that needs ownership and review, not as a static setup detail. The question is not only whether the role works, but whether every principal and condition still matches the intended trust relationship.

What to watch for: Broad principals, wildcard-like trust patterns, missing condition checks, and trust paths that no longer match the workload, account, or federation model are the usual signs that the boundary is too open.

Practitioner takeaway: Review role trust the way you review privilege boundaries, because once the role can be assumed, the temporary credentials behave like any other high-trust access path.

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 October 28, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org