awsAWS

AWS CLI

Credentials are stored by default in ~/.aws/credentials

# Get identity of users credentials
aws sts get-caller-identity

Enumerating Users Info

Users

aws iam list-users

User Policies

aws iam list-user-policies --user-name [username]
aws iam list-attached-user-policies --user-name [username]
aws iam get-user-policy --policy-name [policyname] --user-name [username]

User Groups

aws iam list-groups-for-user --user-name [username]

AssumeRole

If the user's policy has the sts:AssumeRole action, we can check the roles available

List Bucket Contents

Last updated