Quickly enumerate AWS credential permissions across 69 services — built for pentesters, red teamers, and cloud security assessors
___ _ ________ __
/ || | /| / /_ __/__ ___ / /_
/ /| || |/ |/ / / / / -_|_-</ __/
/_/ |_||__/|__/ /_/ \__/___/\__/
Fast AWS Credential Permission Enumeration for Pentesters & Red Teamers
AWTest quickly enumerates the permissions of AWS credentials by performing read-only list/describe operations across 69 AWS services with 143 API calls. Hand it a set of AWS keys and in seconds you'll know exactly what those credentials can access — S3 buckets, EC2 instances, IAM users, Lambda functions, databases, secrets, and dozens more. Built for pentesters, red teamers, and cloud security assessors who need fast, comprehensive credential reconnaissance.
# Install via Homebrew
brew install --cask mattmillerai/tap/awtest
# Scan using your default AWS CLI profile
awtest
# Scan with explicit credentials
awtest --aki=AKIAEXAMPLE --sak=YourSecretAccessKey
# Fast scan with JSON output
awtest --speed=fast --format=json -o results.json
--speed presets (safe, fast, insane) for OPSEC-aware concurrent scanning, or fine-grained --concurrency control--output-file export--services and --exclude-services--timeoutbrew install --cask mattmillerai/tap/awtest
macOS users: Binaries are code-signed and notarized by Apple, so you won't see Gatekeeper warnings.
Requires Go 1.26+:
go install github.com/mattmillerai/awtest/cmd/awtest@latest
Download pre-built binaries from GitHub Releases:
| Platform | File |
|---|---|
| macOS (Intel) | awtest_<version>_darwin_amd64.tar.gz |
| macOS (Apple Silicon) | awtest_<version>_darwin_arm64.tar.gz |
| Linux (amd64) | awtest_<version>_linux_amd64.tar.gz |
| Linux (arm64) | awtest_<version>_linux_arm64.tar.gz |
| Windows | awtest_<version>_windows_amd64.zip |
# Scan with temporary credentials (STS)
awtest --aki=ASIAEXAMPLE --sak=YourSecretKey --st=YourSessionToken
# Scan only specific services
awtest --services=s3,ec2,iam,lambda
# Exclude noisy services
awtest --exclude-services=cloudwatch,cloudtrail
# Maximum speed with JSON output
awtest --speed=insane --format=json --output-file=results.json
[AWTest] [user-id] [info] AKIABCDEFGHIJKLMNO
[AWTest] [account-number] [info] 123456789012
[AWTest] [iam-arn] [info] arn:aws:iam::123456789012:user/exampleUser
[AWTest] [s3:ListBuckets] [info] S3 bucket: example-bucket-1
[AWTest] [s3:ListBuckets] [info] S3 bucket: example-bucket-2
[AWTest] [ec2:DescribeInstances] [info] EC2 instance: [ID: i-0abcdef1234567890, State: running, Type: t3.micro, IP: 10.0.1.5]
[AWTest] [iam:ListUsers] [info] IAM user: exampleUser1
[AWTest] [lambda:ListFunctions] [info] Lambda function: myFunction
[AWTest] [eks:ListClusters] [info] Found EKS Cluster: production (Status: ACTIVE, Version: 1.28)
[AWTest] [rds:DescribeDBInstances] [info] Found RDS instance: mydb (us-east-1a)
[AWTest] [appsync:ListGraphqlApis] [info] Error: Access denied to this service.
========================================
Scan Summary
========================================
Duration: 12s
Total Services: 69
Accessible: 8
Access Denied: 61
Resources Found: 11
========================================
| Flag | Description | Default |
|---|---|---|
--aki, --access-key-id | AWS Access Key ID | |
--sak, --secret-access-key | AWS Secret Access Key | |
--st, --session-token | AWS Session Token | |
--region | AWS Region | us-west-2 |
--format | Output format: text, json, yaml, csv, table | text |
-o, --output-file | Write output to file | |
--services | Include only specific services (comma-separated) | all |
--exclude-services | Exclude specific services (comma-separated) | none |
--endpoint-url | Custom AWS-compatible endpoint URL used for every service (e.g. http://localhost:4566); also read from AWS_ENDPOINT_URL | none |
--replay | Offline replay mode: serve canned responses from a fixture directory (or builtin:sample) on 127.0.0.1 and scan that; no AWS access (see Replay mode) | none |
--all-regions | Scan every enabled AWS region instead of the default four US regions (opt-in; many more API calls) | false |
--timeout | Maximum scan duration (e.g., 5m, 300s) | 5m |
--speed | Speed preset: safe, fast, insane (controls scan parallelism) | safe |
--concurrency | Number of concurrent service scans (overrides speed preset when specified) | 1 |
--quiet | Suppress info messages, show only findings | false |
--debug | Enable debug output | false |
--check-update | Check if a newer version is available | false |
-v, --version | Print version and build info |
Subcommand: awtest diff [-format text|json] <before.json> <after.json> compares two JSON scan outputs offline (see Comparing scans).
Point awtest at any AWS-compatible endpoint instead of real AWS:
awtest -endpoint-url http://localhost:4566 -aki test -sak test
https endpoints with self-signed certificates, set AWS_CA_BUNDLE to your CA file.-quiet is set; results do not come from real AWS.http or https; anything else exits with code 2.AWS_ENDPOINT_URL environment variable.