iam:PassRole
The IAM permission needed to hand a role to an AWS service, such as an EC2 instance or a Lambda function, so it runs with that role.
PassRole on a powerful role lets someone run code with that role's permissions through a service.
In more detail
PassRole is how many escalation paths work: with lambda:CreateFunction and lambda:InvokeFunction, a user can run code as any role they can pass. Limit it to specific role ARNs.
Related terms
- privilege escalation — Gaining the rights of a more powerful account, such as root, either deliberately through a tool like sudo or illegitimately through a flaw.
- IAM action — A named operation that a policy can allow or deny, written as service:Operation, such as s3:GetObject or iam:CreateRole.
Taught in
- Cloud IAM Architecture & Permission Boundaries — Cloud Security & DevSecOps Engineering
- Least Privilege Enforcement & CIEM Architecture — Cloud Security & DevSecOps Engineering