IAM CreateAccessKey PrivEsc
Exploit iam:CreateAccessKey to get access to an Amazon S3 bucket containing sensitive data that your IAM user should not have been able to access. The flag is the credit card number for "Kayla Sanchez" from the exfiltrated customers file.
- 9 guided tasks
- Capture the flag
- Terminal in the browser
- Video walkthrough

Scenario
Only high level admins should have the iam:CreateAccessKey permission, because an attacker with the iam:CreateAccessKey permission on other users can create an access key ID and secret access key for that user, which means they can authenticate as that user.
Exploit this lab's misconfigured IAM policy to elevate your privileges. You've successfully completed this lab once you've accessed and downloaded sensitive files containing customer PII in Amazon S3 and you've submitted the credit card number for "Kayla Sanchez" from the customers.txt file.
What you will learn
- Configure the AWS CLI with the access key the lab gives you
- Enumerate your user, your group, and the group policy that allows iam:CreateAccessKey
- Create an access key for the Victim user and authenticate as that user
- Read the Victim user's S3 policy and download the sensitive data from the bucket
- Submit the credit card number for Kayla Sanchez to capture the flag