
Cloud Security
Cloud security assessment and exploitation techniques for AWS, Azure, and GCP including IAM attacks, storage misconfiguration, and cloud-native vulnerabilities.
Overview
Most organizations now run a large part of their infrastructure in the cloud, and each provider has its own identity model, storage services and metadata endpoints to get wrong. These notes cover the provider-specific weaknesses and how I assess them.
Cloud providers
Amazon Web Services (AWS)
AWS-specific security assessment and exploitation techniques:
- AWS Security Assessment Methodology: end-to-end AWS testing approach
- S3 Bucket Enumeration: finding misconfigured buckets
- IAM Privilege Escalation: escalating permissions in AWS
Microsoft Azure
Azure and Entra ID (Azure AD) security:
- Azure AD Attacks: Entra ID (Azure AD) attack techniques
Google Cloud Platform (GCP)
GCP enumeration and IAM:
- GCP Security Assessment and Enumeration: enumeration methodology for GCP projects
- GCP IAM Privilege Escalation: escalating permissions in GCP
Across providers
- Cloud Storage Misconfigurations: public buckets and blobs on AWS, Azure and GCP
Common cloud attack vectors
Identity and access management
- Overly permissive IAM policies
- Credential exposure in code/configs
- Service account abuse
- Cross-account access exploitation
Storage misconfigurations
- Public S3 buckets
- Exposed blob storage
- Unencrypted data at rest
- Missing access logging
Network security
- Overly permissive security groups
- Public-facing services
- VPC misconfiguration
- Missing network segmentation
Compute exploitation
- Instance metadata service (IMDS) attacks
- Container escape to host
- Serverless function injection
- Vulnerable AMIs/images
Cloud assessment methodology
1. Reconnaissance
# Enumerate cloud services
# Check DNS for cloud provider patterns
# Analyze error messages and headers
# Search code repositories for credentials2. Authentication
- Test credential validity
- Check for IAM misconfigurations
- Enumerate accessible resources
- Test cross-account access
3. Privilege escalation
- Analyze IAM policies
- Look for escalation paths
- Test service role assumptions
- Check for passrole vulnerabilities
4. Data access
- Enumerate storage resources
- Check encryption status
- Test access controls
- Look for sensitive data exposure
5. Lateral movement
- Cross-service access
- VPC peering exploitation
- Service account pivoting
- Trust relationship abuse
Tools
| Tool | Purpose |
|---|---|
| Pacu | AWS exploitation framework |
| ScoutSuite | Multi-cloud security auditing |
| Prowler | AWS security assessment |
| CloudSploit | Cloud misconfiguration detection |
| ROADtools | Azure AD enumeration |
Related resources
- Container Security: container-specific attacks
- Network Attacks: cloud network attacks
Assessing AI Security
How I approach AI security assessments on penetration tests and red team engagements, layer by layer, with the main attack classes (prompt injection, jailbreaks, poisoning, data extraction).
AWS Security
AWS security assessment techniques including IAM exploitation, S3 enumeration, privilege escalation, and AWS-specific attack vectors for penetration testing.