A blog post about testing the new AWS STS GetScopedCredentials API from an attacker’s point of view. I wanted to know whether a scope policy can grant more access than the caller if explicitly specified, whether the API works with EC2 instance credentials from IMDS, how far it can be chained, what happens to scoped credentials when the parent access key or credential is deleted/expired, and what shows up in CloudTrail. I used my personal AWS account for this testing using us-west-2 and the latest AWS CLI at the time of writing.

Continue reading

Author's picture

Riyaz Walikar

Build, Break, Repeat
Independent Security Researcher