// notes/ Cheatsheets & Payloads
☁️

Cloud Pentest (AWS/Azure) — Cheatsheet

S3/IAM enumeration, AWS CLI, Pacu, and Azure/Entra spraying.

#cloud#aws#azure#s3#iam#pacu

Cloud Pentest (AWS/Azure) — Cheatsheet

AWS — configure & identity

Set your access key, secret, and region.

🐺 howlsec@kali
$aws configure

Confirm which principal your keys belong to.

🐺 howlsec@kali
$aws sts get-caller-identity

AWS — S3

List a bucket's contents (unauthenticated if public).

🐺 howlsec@kali
$aws s3 ls s3://<bucket> --no-sign-request

Download a single object.

🐺 howlsec@kali
$aws s3 cp s3://<bucket>/file . --no-sign-request

Mirror an entire bucket locally.

🐺 howlsec@kali
$aws s3 sync s3://<bucket> ./loot --no-sign-request

AWS — IAM enum

List IAM users in the account.

🐺 howlsec@kali
$aws iam list-users

Show policies attached to a user (find over-privilege).

🐺 howlsec@kali
$aws iam list-attached-user-policies --user-name <u>

List a user's access keys.

🐺 howlsec@kali
$aws iam list-access-keys --user-name <u>

AWS — external recon / Pacu

Find public S3 buckets tied to a keyword/brand.

🐺 howlsec@kali
$cloud_enum -k <keyword>

Launch Pacu and run enumeration modules.

🐺 howlsec@kali
$pacu

Azure / Entra

Log in to Azure.

🐺 howlsec@kali
$az login

Show the current subscription and tenant.

🐺 howlsec@kali
$az account show

List directory users.

🐺 howlsec@kali
$az ad user list -o table

Password-spray Entra/O365 accounts with MSOLSpray.

🐺 howlsec@kali
$python MSOLSpray.py --userlist users.txt --password 'Spring2024!'