| S.N | Name | URL |
|---|---|---|
| 1 | PayloadsAllTheThings - AWS Pentest Guide | GitHub |
| 2 | AWS Pentesting | https://cloud.hacktricks.xyz/pentesting-cloud/aws-security |
AWS Security Checklist
Information Gathering
-
Asset Discovery
- Use AWS CLI to list AWS resources:
aws ec2 describe-instancesaws rds describe-db-instances
- Use AWS CLI to list AWS resources:
-
DNS Enumeration
- Use
digornslookupto enumerate DNS records:dig example.comnslookup example.com
- Use
Cloud Service Assessment
-
Identity and Access Management (IAM)
- Review IAM policies and roles using AWS Management Console or AWS CLI:
aws iam list-policiesaws iam list-roles
- Review IAM policies and roles using AWS Management Console or AWS CLI:
-
Virtual Private Cloud (VPC)
- Assess VPC configurations and subnets:
aws ec2 describe-vpcsaws ec2 describe-subnets
- Assess VPC configurations and subnets:
-
S3 Bucket Security
- Review S3 bucket permissions:
aws s3 lsaws s3api get-bucket-acl --bucket BUCKET_NAME
- Review S3 bucket permissions:
-
EC2 Instance Security
- Assess EC2 instance configurations and security groups:
aws ec2 describe-instancesaws ec2 describe-security-groups
- Assess EC2 instance configurations and security groups:
AWS OFFENSIVE SECURITY CHECKLIST
Information Gathering
-
Asset Discovery
- Identify and enumerate AWS resources.
- Tools: AWS Management Console, AWS CLI, AWS Asset Inventory
-
DNS Enumeration
- Enumerate DNS records for AWS-related domains.
- Tools:
dig,nslookup
Cloud Service Assessment
-
Identity and Access Management (IAM)
- Review IAM policies and roles.
- Check for over-permissive permissions.
- Tools: AWS Management Console, AWS CLI, IAM Access Analyzer
-
Virtual Private Cloud (VPC)
- Assess VPC configurations, subnets, and security groups.
- Check for exposed external IPs and unprotected services.
- Tools: AWS Management Console, AWS CLI, VPC Flow Logs
-
S3 Bucket Security
- Review S3 bucket permissions and access policies.
- Identify publicly accessible buckets.
- Test for data leakage vulnerabilities.
- Tools: AWS Management Console, AWS CLI, S3 Bucket Scanner
-
EC2 Instance Security
- Assess EC2 instance configurations and security groups.
- Identify exposed ports and insecure instances.
- Check for unpatched software.
- Tools: AWS Management Console, AWS CLI,
nmap(if applicable)
Vulnerability Assessment
-
Automated Scanning
- Use AWS Inspector or third-party tools for vulnerability scanning.
- Identify AWS-specific vulnerabilities.
- Tools: AWS Inspector, Third-party Scanners
-
Manual Vulnerability Testing
- Conduct manual testing for complex vulnerabilities.
- Test for authentication bypass, API vulnerabilities, and misconfigurations.
- Tools: Manual Testing Frameworks, Burp Suite (if applicable)
Exploitation and Post-Exploitation
-
Exploitation
- Attempt to exploit identified vulnerabilities.
- Exercise caution and perform exploitation with proper authorization.
- Tools: Exploitation Tools, Metasploit (if applicable)
-
Privilege Escalation
- Test for privilege escalation within AWS environments.
- Check for overprivileged IAM roles or EC2 instances.
- Tools: AWS CLI, Manual Techniques
-
Data Exfiltration
- Attempt data exfiltration from AWS resources.
- Identify sensitive data exposure risks.
- Test for data transfer controls.
- Tools: Custom Scripts, AWS CLI, AWS DataSync