AWS CLI
Usefull commands - AWS CLI

Keep track of profiles
cat ~/.aws/credentialsConfigure a named profile
Or
Or
Information about configured identity
Account ID
Stored Credentials
Windows

Linux


Enumeration - Users
List the IAM groups that the specified IAM user belongs to :
List all manages policies that are attached to the specified IAM user :
Lists the names of the inline policies embedded in the specified IAM user :
Get policy
Enumeration - Groups
IAM Groups
All users in a group
All managed policies that are attached to the specified IAM Group
Names of the inline policies embedded in the specified IAM Group
Enumeration - Roles
List of IAM Roles
All managed policies that are attached to the specified IAM role
Names of the inline policies embedded in the specified IAM role
Enumeration - Policies
List of all iam policies
Information about the specified managed policy
Information about the versions of the specified manages policy
Information about the specified version of the specified managed policy
One of the permissions is iam:CreatePolicyVersion ? Use this to create a new version of the attached policy with privileged access
Specified inline policy document that is embedded on the specified IAM user / group / role
Enumeration - Cloud Services (EC2, S3 etc.) in an Organization AWS Account

This might not return any results if you aren't in the same region. -> Run pacu ec2__enum module
Enumeration - Get Bucket Policy
DynamoDB
CodeCommit
Interesting Book
Interesting BooksAdvanced Penetration Testing: Hacking AWS 2 This book delves deeper into analyzing the security of various AWS services and shows techniques and tactics used by an attacker to breach an AWS environment
Hands-On AWS Penetration Testing with Kali Linux Set up a virtual lab and pentest major AWS services, including EC2, S3, Lambda, and Cloud
Last updated