
AWS Security
AWS security assessment techniques including IAM exploitation, S3 enumeration, privilege escalation, and AWS-specific attack vectors for penetration testing.
Dec 9, 2025
Updated Nov 22, 2026
2 min read
Overview
Amazon Web Services (AWS) is the largest cloud provider, and on most cloud engagements it's the environment you'll be testing.
Notes in this section
- Security Assessment Methodology: my end-to-end AWS testing approach
- S3 Bucket Enumeration: finding misconfigured buckets
- IAM Privilege Escalation: permission escalation paths
AWS services that matter for testing
| Area | Service | Why it matters |
|---|---|---|
| Identity | IAM | Users, groups, roles, policies |
| Identity | STS | Temporary security credentials |
| Identity | SSO | Single sign-on integration |
| Identity | Organizations | Multi-account management |
| Compute | EC2 | Virtual machines with the instance metadata service |
| Compute | Lambda | Serverless functions with execution roles to abuse |
| Compute | ECS/EKS | Container services |
| Storage | S3 | Object storage, the most common misconfiguration |
| Storage | EBS | Block storage and its snapshots |
| Storage | EFS | File system shares |
| Network | VPC | Virtual private cloud |
| Network | Security groups | Instance firewall rules |
| Network | NACLs | Network access control lists |
Common AWS misconfigurations
| Misconfiguration | What it looks like |
|---|---|
| Overly permissive IAM policies | *:* actions and resources |
| Public S3 buckets | ACLs or bucket policies allowing public access |
| Exposed credentials | Access keys in code or environment variables |
| Weak security groups | Inbound rules from 0.0.0.0/0 |
| Unencrypted resources | S3, EBS or RDS without encryption |
AWS enumeration commands
# List IAM users
aws iam list-users
# Get current identity
aws sts get-caller-identity
# List S3 buckets
aws s3 ls
# List EC2 instances
aws ec2 describe-instances
# Check IAM policies attached to user
aws iam list-attached-user-policies --user-name TARGETTools
| Tool | Purpose |
|---|---|
| Pacu | AWS exploitation framework |
| Prowler | Configuration assessment against AWS best practices |
| ScoutSuite | Multi-cloud security auditing |
| enumerate-iam | Brute-forces which API calls a set of keys can make |
| S3Scanner | S3 bucket enumeration |
Related resources
- Azure AD Attacks: Microsoft cloud
- Container Security: ECS/EKS security
Cloud Security
Cloud security assessment and exploitation techniques for AWS, Azure, and GCP including IAM attacks, storage misconfiguration, and cloud-native vulnerabilities.
AWS IAM Privilege Escalation
AWS IAM privilege escalation techniques including policy exploitation, role assumption, and permission enumeration for cloud penetration testing.