AWS STS AssumeRole is an API operation that lets an authorized principal request temporary security credentials for an IAM role. AWS checks the role’s trust policy and the caller’s permissions; if the request is allowed, the resulting session receives the role’s permissions for a limited time. Cross-account integrations commonly use this mechanism so a service or account can access selected resources without receiving permanent credentials.
In attacks, stolen or misused credentials may be used to assume a trusted role and access resources in another account. The session is temporary, but its effective permissions can still enable actions such as discovering cloud resources, retrieving secrets, or accessing S3 data. Defenders should restrict trust policies to specific principals and conditions, apply least privilege, review third-party access regularly, and monitor CloudTrail for AssumeRole calls and subsequent activity. External IDs can help reduce confused-deputy risk, but do not replace these controls.


