// 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@kalibash
$aws configureConfirm which principal your keys belong to.
🐺 howlsec@kalibash
$aws sts get-caller-identityAWS — S3
List a bucket's contents (unauthenticated if public).
🐺 howlsec@kalibash
$aws s3 ls s3://<bucket> --no-sign-requestDownload a single object.
🐺 howlsec@kalibash
$aws s3 cp s3://<bucket>/file . --no-sign-requestMirror an entire bucket locally.
🐺 howlsec@kalibash
$aws s3 sync s3://<bucket> ./loot --no-sign-requestAWS — IAM enum
List IAM users in the account.
🐺 howlsec@kalibash
$aws iam list-usersShow policies attached to a user (find over-privilege).
🐺 howlsec@kalibash
$aws iam list-attached-user-policies --user-name <u>List a user's access keys.
🐺 howlsec@kalibash
$aws iam list-access-keys --user-name <u>AWS — external recon / Pacu
Find public S3 buckets tied to a keyword/brand.
🐺 howlsec@kalibash
$cloud_enum -k <keyword>Launch Pacu and run enumeration modules.
🐺 howlsec@kalibash
$pacuAzure / Entra
Log in to Azure.
🐺 howlsec@kalibash
$az loginShow the current subscription and tenant.
🐺 howlsec@kalibash
$az account showList directory users.
🐺 howlsec@kalibash
$az ad user list -o tablePassword-spray Entra/O365 accounts with MSOLSpray.
🐺 howlsec@kalibash
$python MSOLSpray.py --userlist users.txt --password 'Spring2024!'