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.
Open-sourcing awsjail - a login shell that only accepts aws ... commands. Users use standard SSH, land at an awsjail:<account-id>:<user> > prompt instead of bash, and can run scoped AWS CLI commands and nothing else. No shell or OS command access, no keys handed out, no internet access from the terminal with every command logged.
A blog post about some post exploitation scenarios with MySQL, MSSQL, PostgreSQL and Oracle that use SQL Injection to make network requests resulting in Server Side Request Forgery/Cross Site Port Attacks.
A quick blog post to investigate what instance-identity security credentials are that can be generated using the metadata instance on every EC2 instance in AWS, even when no role is attached to the instance.
Slides of my talk on using mis-configurations, overtly permissive IAM policies and application security vulnerabilities to get shells in AWS EC2 instances and go beyond the plane of attack. Presented at OWASP Bay Area August 2019 meetup.