The Confused Deputy Problem occurs when a trusted entity (the "deputy") is manipulated into performing actions on behalf of an unauthorized party. In AWS, this typically happens with cross-account roles: a third-party service that assumes a role in your account could be tricked by another customer into using your role instead of theirs.
AWS recommends using the sts:ExternalId condition in your role's trust policy. The external ID is a shared secret between you and the third party - the deputy must present it when assuming the role, preventing unauthorized parties from using the same role.
A resource-based policy attached to an IAM role that defines which principals (users, services, accounts) are allowed to assume that role.
The ability to grant permissions for identities in one AWS account to access resources in another, typically using IAM roles with trust policies.
The process of obtaining temporary security credentials by calling AWS STS to take on the permissions of an IAM role.
Toc Consulting: AWS Security & Cloud Architecture
Our team helps engineering teams secure and architect AWS the right way: assessment in week one, a prioritized action plan in week two.