Skip to content

Lesson 01 — AWS Offensive Security Foundations

By the end of this lesson, you will be able to:

  • Understand AWS offensive security concepts.
  • Explain how attackers target AWS environments.
  • Understand the AWS Shared Responsibility Model from a penetration tester’s perspective.
  • Identify common AWS attack surfaces.
  • Understand the AWS attack lifecycle.
  • Learn the methodology used during enterprise AWS penetration testing engagements.

AWS is the world’s most widely adopted cloud platform and hosts millions of applications ranging from startups to governments and Fortune 500 companies.

Because organizations increasingly rely on AWS, attackers have shifted their focus from traditional data centres to cloud infrastructure.

Unlike traditional penetration testing, AWS penetration testing focuses on:

  • Identity
  • Cloud APIs
  • Misconfigurations
  • Cloud networking
  • Storage
  • Containers
  • Serverless services
  • Infrastructure as Code

As an AWS Cloud Penetration Tester, your objective is to identify security weaknesses before attackers do.


Modern attacks rarely begin with operating system vulnerabilities.

Instead, attackers commonly exploit:

  • Weak IAM permissions
  • Exposed access keys
  • Public Amazon S3 buckets
  • Overly permissive Security Groups
  • Misconfigured VPCs
  • Vulnerable EC2 instances
  • Exposed Lambda functions
  • Weak Kubernetes configurations
  • CI/CD pipeline weaknesses

Understanding these attack vectors is essential for securing AWS environments.


You have joined CloudNova Technologies as a Cloud Penetration Tester.

A global financial organization has requested an AWS security assessment before migrating its production workloads.

Your responsibilities include:

  • Reviewing AWS architecture
  • Enumerating cloud resources
  • Assessing IAM security
  • Identifying attack paths
  • Validating cloud security controls
  • Producing executive security reports

This module follows the same workflow used by enterprise cloud security consultants.


AWS secures the cloud infrastructure, while customers are responsible for securing what they deploy in the cloud.

AWS Responsibilities
Physical Security
Data Centres
Networking Infrastructure
Hypervisor
Managed Services
----------------------------------------
Customer Responsibilities
IAM
Applications
Operating Systems
Cloud Configurations
Security Groups
Amazon S3
Amazon EC2
Amazon EKS
Customer Data

Attackers generally do not attack AWS itself.

Instead, they target customer-controlled resources.

Common targets include:

  • IAM Users
  • IAM Roles
  • Access Keys
  • EC2 Instances
  • Lambda Functions
  • Amazon S3
  • Kubernetes
  • Cloud APIs
  • CI/CD Pipelines

Most successful AWS compromises originate from customer misconfigurations rather than vulnerabilities within AWS.


Internet
CloudFront
Application Load Balancer
Amazon EC2
Amazon EKS
Lambda
IAM
Amazon S3
Amazon RDS
Customer Data

Every layer should be assessed during a penetration test.


Professional AWS penetration testing follows a structured methodology.

Preparation
Reconnaissance
Enumeration
Identity Assessment
Infrastructure Assessment
Storage Assessment
Networking Assessment
Container Assessment
Attack Path Analysis
Reporting
Remediation Validation

Skipping stages often leads to incomplete assessments.


  • AWS IAM
  • IAM Identity Center
  • STS

  • Amazon EC2
  • Auto Scaling
  • AMIs

  • Amazon S3
  • Amazon EBS
  • Amazon EFS

  • Amazon VPC
  • Security Groups
  • Network ACLs
  • Route Tables
  • Internet Gateways
  • VPC Endpoints

  • Amazon EKS
  • Amazon ECS
  • ECR

  • AWS Lambda
  • API Gateway

  • AWS CloudTrail
  • Amazon CloudWatch
  • AWS Config
  • Amazon GuardDuty
  • AWS Security Hub

Reconnaissance
Identity Discovery
IAM Enumeration
Permission Analysis
Privilege Escalation
Storage Discovery
Compute Enumeration
Container Discovery
Data Access
Persistence
Reporting

This workflow reflects how professional attackers and penetration testers evaluate AWS environments.


Examples include:

  • Administrator accounts without MFA
  • Long-lived access keys
  • Wildcard IAM policies
  • Public Amazon S3 buckets
  • EC2 instances with public SSH access
  • IMDSv1 enabled
  • Overly permissive Security Groups
  • Weak VPC segmentation
  • Hardcoded AWS credentials
  • Misconfigured EKS clusters
  • Secrets stored in plaintext
  • CloudTrail disabled

These weaknesses often combine into larger attack paths.


Developer Access Key
IAM User
AssumeRole
Administrator Role
Amazon EC2
Amazon S3
Sensitive Customer Data

A single misconfigured identity can lead to complete AWS account compromise.


Professional testers should always:

  • Obtain written authorization.
  • Stay within the agreed scope.
  • Validate findings without causing disruption.
  • Collect evidence.
  • Document every significant activity.
  • Protect customer data.
  • Report findings responsibly.

Ethical and legal compliance is fundamental.


  • AWS CLI
  • IAM Access Analyzer
  • AWS Config
  • CloudTrail

  • ScoutSuite
  • PMapper
  • Pacu
  • Trivy
  • Checkov
  • kube-bench
  • kube-hunter

  • jq
  • curl
  • Git
  • Terraform
  • Docker
  • kubectl

Kick-off Meeting
Architecture Review
Cloud Enumeration
Security Assessment
Attack Path Analysis
Risk Assessment
Executive Report
Remediation
Retesting

This lifecycle mirrors the process followed by enterprise consulting firms.


  • Review cloud architecture before testing.
  • Focus on IAM before infrastructure.
  • Assess attack paths rather than isolated vulnerabilities.
  • Validate findings with evidence.
  • Prioritize business impact.
  • Follow least privilege principles.
  • Produce clear executive and technical reports.

Avoid:

  • Starting without authorization.
  • Ignoring IAM security.
  • Assessing services in isolation.
  • Focusing only on EC2.
  • Ignoring logging and monitoring.
  • Testing outside the approved scope.
  • Reporting vulnerabilities without remediation guidance.

1. What is the primary objective of AWS offensive security?

Section titled “1. What is the primary objective of AWS offensive security?”

Answer: To identify and validate security weaknesses within customer-controlled AWS resources before they can be exploited by attackers.


2. Who is responsible for securing IAM users and roles?

Section titled “2. Who is responsible for securing IAM users and roles?”

Answer: The customer. Under the AWS Shared Responsibility Model, customers are responsible for securing identities, permissions and cloud configurations.


3. Which AWS service is the most common attack target?

Section titled “3. Which AWS service is the most common attack target?”

Answer: AWS Identity and Access Management (IAM), because identities and permissions control access to cloud resources.


4. Why are attack paths more valuable than isolated findings?

Section titled “4. Why are attack paths more valuable than isolated findings?”

Answer: Attack paths demonstrate how multiple weaknesses can be chained together to compromise high-value assets, providing a clearer picture of business risk.


5. Why should CloudTrail and AWS Config be reviewed during an assessment?

Section titled “5. Why should CloudTrail and AWS Config be reviewed during an assessment?”

Answer: They provide visibility into AWS activity and configuration changes, helping assess monitoring capabilities and supporting incident detection and forensic investigations.


  • AWS offensive security focuses on customer-controlled resources rather than AWS-managed infrastructure.
  • Identity security is the foundation of AWS security and should be assessed first.
  • Professional AWS penetration testing follows a structured methodology from reconnaissance through reporting.
  • Attack-path analysis provides greater business value than isolated vulnerability identification.
  • Understanding AWS architecture, services and shared responsibility is essential before performing hands-on assessments.

In the next lesson, you will dive into AWS IAM Exploitation, learning how attackers abuse IAM users, roles, policies and trust relationships, and how penetration testers identify privilege escalation opportunities during enterprise AWS security assessments.

➡️ Next Lesson: Lesson 02 — IAM Exploitation