PassRole refers to the AWS IAM permission iam:PassRole, which lets a principal assign an existing IAM role to an AWS service or resource it configures. Attackers abuse a broad grant to pass a more privileged role to a service they control and then use its credentials. Defenders restrict it to named role ARNs and use the iam:PassedToService condition.
What PassRole Actually Does in AWS
iam:PassRole is not a permission to use the role’s privileges directly. It is a delegation step that lets a principal attach an existing IAM role to an AWS service or resource so that service can assume the role later. That makes PassRole a control point for how privilege is transferred into runtime workloads, not a general “role admin” right.
Because the permission is scoped to the act of passing a role, its security meaning depends on both the role being passed and the service that is allowed to receive it. A narrow PassRole grant can be safe in one workflow and dangerous in another if it can be reused against a more powerful role or a broader set of services.
Why PassRole Is Security-Sensitive
PassRole matters because it can turn configuration ability into effective privilege escalation. If an attacker gains a principal that can pass roles too broadly, they may assign a high-privilege role to a service they control and then rely on that service’s runtime credentials. That is why PassRole is often treated as an authorization boundary, not just an IAM convenience.
In practice, the key danger is confused delegation. The caller may not need the role’s permissions itself, but once the service assumes that role, the resulting access can reach AWS APIs, data planes, or infrastructure actions that were never intended for the original principal.
How Organisations Reduce Exposure
Defensive use of PassRole starts with inventory and explicit scope. The permission should be tied to named role ARNs, not broad wildcard patterns, and it should be constrained with conditions so the role can only be passed to the intended service. That keeps delegation aligned to the deployment path the organisation actually expects.
It also helps to review where PassRole is used in IaC, CI/CD, and console-driven provisioning, because this permission often hides inside automation. For cloud workloads, the distinction between the execution role and the application or task role matters, so the organisation should know exactly which identity receives which permissions and why. Amazon ECS and Fargate Security Guide is a useful reference when PassRole is part of task-role design and runtime hardening.
From Misuse to Detection and Review
When PassRole is abused, the evidence often appears as a change in how a service was configured rather than as a direct privilege action. Monitoring should therefore focus on role-assignment events, unusual service launches, and unexpected pairing of principals, roles, and services. Post-incident review should also ask whether credentials, sessions, or service-linked access derived from the passed role were used after the handoff.
PassRole is also closely related to privilege governance. If a principal can pass powerful roles, it may function like an indirect admin path even when the principal has no obvious high privilege on paper. Privileged Access Management Guide helps place that delegation risk in the broader context of standing privilege, session control, and overprivileged access.
Risk and Threat Considerations
PassRole is dangerous when its scope exceeds the service or role relationship the organisation intended. Attackers look for broad grants because one successful pass can create a trusted runtime identity with far more access than the originating principal should ever have held.
Failure mechanism: A compromised or overprivileged principal passes a stronger role to a service, then uses the service’s assumed credentials or downstream access to expand control, reach data, or persist.
Impact: The result can be privilege escalation, unauthorized access to AWS resources, and a compromise path that survives beyond the original login session.
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, CIS Controls v8 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-9 — Identification and Authentication (Service, Workstation, and Device Authenticators) | PassRole governs service-assumed access paths and delegated runtime identity. |
| AC-6 — Least Privilege | PassRole should be limited to the minimum roles and services needed for delegation. | |
| AU-6 — Audit Record Review, Analysis, and Reporting | PassRole misuse is best detected through review of role-assignment and service-launch activity. | |
| Recommendation — Constrain service-to-service role handoff and verify the receiving service is explicitly authorized. Restrict iam:PassRole to named roles and intended services only. Review logs for unexpected role passing and anomalous service configuration changes. | ||
| CIS Controls v8 | CIS-6 — Access Control Management | PassRole is an access-control decision that must be inventoried and bounded. |
| Recommendation — Inventory and restrict role-passing permissions to approved workflows and services. | ||
| NIST Zero Trust (SP 800-207) | Least Privilege | PassRole is a delegated access path that should be continuously constrained and verified. |
| Recommendation — Apply least-privilege trust decisions to every role-passing path and service boundary. | ||
Practitioner Guidance
Common misunderstanding: Treat PassRole as a narrow delegation right, not as permission to use or manage every capability in the target role. The safest pattern is to make the pass relationship explicit enough that reviewers can see which service may receive which role and why.
Practitioner takeaway: If a workflow needs PassRole, make the role target and service target equally specific, then review the grant as if it were a privilege boundary rather than a configuration detail.
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 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org