Strobesstrobes
Platform
Solutions
Resources
Customers
Company
Pricing
Book a Demo
Strobesstrobes

Strobes connects every exposure signal to autonomous action, so security teams fix what matters, prove what works, and stop chasing noise.

Book a DemoTalk to an expert
ISO 27001SOC 2CREST
  • Platform
  • Platform Overview
  • Agentic Exposure Management
  • AI Agents
  • Integrations
  • API & Developers
  • Workflows & Automation
  • Analytics & Reporting
  • Solutions
  • Exposure Assessment (EAP)
  • Attack Surface Management
  • Application Security Posture
  • Risk-Based Vulnerability Management
  • Adversarial Exposure Validation (AEV)
  • AI Pentesting
  • Pentesting as a Service
  • CTEM Framework
  • By Industry
  • Financial Institutions
  • Technology
  • Retail
  • Healthcare
  • Manufacturing
  • By Roles
  • CISOs
  • Security Directors
  • Cloud Security Leaders
  • App Sec Leaders
  • Resources
  • Blog
  • Customer Stories
  • eBooks
  • Datasheets
  • Videos & Demos
  • Exposure Management Academy
  • CTEM Maturity Assessment
  • Pentest Health Check
  • Security Tool ROI Calculator
  • Company
  • About Strobes
  • Meet the Team
  • Trust & Security
  • Contact Us
  • Careers
  • Become a Partner
  • Technology Partner
  • Partner Deal Registration
  • Press Release

Weekly insight for security leaders

CTEM research, agentic AI trends, and what's actually moving the needle.

© 2026 Strobes Security Inc. All rights reserved.

Privacy PolicyTerms of ServiceCookie PolicyAccessibilitySitemap
Back to Blog
AWS Penetration Testing: Rules, Scope, and Methodology
Cloud pentestingCloud Security

AWS Penetration Testing: Rules, Scope, and Methodology

Likhil ChekuriJune 24, 20257 min read

Table of Contents

  • What does AWS allow you to penetration test?
  • What is prohibited or still requires AWS approval?
  • How does SSRF to the instance metadata service work?
  • Where do S3 and IAM misconfigurations lead?
  • What tools and methodology should you use?
  • Frequently asked questions
  • Sources and references

Authors

L
Likhil Chekuri

Share

Table of Contents

  • What does AWS allow you to penetration test?
  • What is prohibited or still requires AWS approval?
  • How does SSRF to the instance metadata service work?
  • Where do S3 and IAM misconfigurations lead?
  • What tools and methodology should you use?
  • Frequently asked questions
  • Sources and references

Authors

L
Likhil Chekuri

Share

TL;DR
  • ✓AWS allows customer-side penetration testing of eight service categories without prior approval, but stress, DDoS, and simulated-event testing still require a request via the AWS Simulated Events form.
  • ✓The two highest-value AWS attack paths are SSRF to the instance metadata endpoint (169.254.169.254) to steal role credentials and IAM misconfigurations that allow privilege escalation.
  • ✓IMDSv2 blocks most SSRF-to-metadata theft because it requires a PUT to obtain a session token, so confirm whether targets enforce it.
  • ✓Prowler and ScoutSuite handle posture and misconfiguration discovery; Pacu is the exploitation framework; pmapper and enumerate-iam map IAM blast radius.
  • ✓You test the customer's configuration and data plane, never the AWS hypervisor, hardware, or other tenants.

AWS lets you penetration test your own resources across eight service categories with no advance notice to AWS, a policy in place since 2019. That changed cloud pentesting from a paperwork exercise into something you can start the same day, as long as you stay inside the shared-responsibility line and avoid the still-restricted tests like DDoS and stress simulations.

This guide covers what AWS permits and prohibits, the metadata and IAM attack paths that produce the most findings, and the toolchain (Prowler, ScoutSuite, Pacu, pmapper) that experienced testers actually use. It assumes you have written authorization from the account owner.

What does AWS allow you to penetration test?

AWS permits customer-initiated penetration testing of eight service categories without requesting approval: EC2 instances, NAT gateways, and Elastic Load Balancers; RDS; CloudFront; Aurora; API Gateway; Lambda and Lambda Edge functions; Lightsail resources; and Elastic Beanstalk environments. You test the resources you own and the configurations you control, not the underlying AWS infrastructure.

The line follows the shared responsibility model. You own security in the cloud (your IAM policies, security groups, S3 ACLs, application code); AWS owns security of the cloud (hypervisor, physical hosts, the service control plane). Anything that probes AWS's own infrastructure or another tenant is out of bounds. Cloud testing differs from a traditional engagement in important ways, which we cover in what to expect from a cloud penetration test.

Strobes insight
The fastest path to account takeover in AWS is rarely a CVE. It's an SSRF that reaches 169.254.169.254 on an instance still allowing IMDSv1. Confirm IMDSv2 enforcement before you assume the metadata path is closed.

What is prohibited or still requires AWS approval?

Even with the open policy, several activities are flat-out prohibited or require a separate request. DNS zone walking of Route 53 hosted zones, port flooding, protocol flooding, and request flooding (login or API request floods) are prohibited. Any high-volume test that resembles a denial-of-service attack falls here.

Simulated events that mimic real attacks, including DDoS simulations, stress testing, and red team exercises against AWS-managed control planes, require prior authorization through the AWS Simulated Events form. Pinging or scanning AWS-owned IP space outside your assets is also off limits. When in doubt, request approval; the form turnaround is usually a few business days.

AWS Testing: In Scope vs Out of Scope
In scope (no approval)Requires approval / prohibited
Your EC2, RDS, Lambda, CloudFront configAWS hypervisor, hardware, control plane
S3 bucket policy and ACL testingDDoS / DoS simulation (form required)
IAM policy and privilege-escalation reviewPort, protocol, or request flooding
API Gateway and Lightsail probingRoute 53 DNS zone walking
Application-layer attacks on your appsScanning AWS-owned IPs or other tenants

How does SSRF to the instance metadata service work?

Server-side request forgery against the EC2 metadata endpoint at 169.254.169.254 is the single most impactful AWS attack path. If an application on an instance can be coerced into fetching an attacker-controlled URL, you point it at http://169.254.169.254/latest/meta-data/iam/security-credentials/<role> and receive temporary IAM credentials for the instance role. From there you assume that role and pivot into the account.

IMDSv2 mitigates this. It requires a PUT request to /latest/api/token to obtain a session token, which is then sent in the X-aws-ec2-metadata-token header on every metadata call. Most SSRF primitives only issue GET requests, so IMDSv2 enforcement (via HttpTokens: required) breaks the attack. Always check whether the instance enforces v2 or still allows v1. The SSRF mechanics carry over from web testing, covered in our SSRF testing guide.

Where do S3 and IAM misconfigurations lead?

S3 and IAM are where most AWS findings live. On S3, look for public bucket policies and ACLs, buckets with ListBucket open to AllUsers or AuthenticatedUsers, predictable bucket names you can enumerate, and write access that lets you tamper with hosted assets. Block Public Access settings at the account level override permissive bucket policies, so confirm whether they're on.

IAM privilege escalation is subtler. Permissions like iam:CreatePolicyVersion, iam:PassRole combined with a service that assumes roles, iam:AttachUserPolicy, lambda:CreateFunction plus iam:PassRole, and sts:AssumeRole on over-permissive trust policies each form a known escalation chain. There are roughly two dozen documented paths; map them rather than guessing.

  • Enumerate effective permissions with enumerate-iam against found keys.
  • Model the privilege graph and escalation edges with pmapper.
  • Confirm exploitation with Pacu's IAM privilege escalation modules.

What tools and methodology should you use?

Run posture and misconfiguration discovery first, then targeted exploitation. Prowler runs hundreds of checks mapped to CIS, NIST, and PCI and is the fastest way to surface public buckets, disabled logging, and weak IAM. ScoutSuite gives a multi-service HTML report of the same surface. CloudSploit covers similar ground if you want a second opinion.

For active work, Pacu is the AWS exploitation framework: enumeration, persistence, privilege escalation, and data exfiltration modules. Cartography ingests your AWS assets into a Neo4j graph so you can query relationships across accounts. Methodology-wise, follow recon (enumerate keys, regions, services), assess (posture scan), exploit (metadata SSRF, IAM escalation, S3 access), and pivot (cross-account role assumption). Running this on a schedule instead of once a year is the argument for agentic, continuous pentesting. For broader hygiene, pair findings with our cloud security posture checklist.

Frequently asked questions

Do I need AWS permission to penetration test my own account?
For the eight permitted service categories (EC2, RDS, CloudFront, Aurora, API Gateway, Lambda, Lightsail, Elastic Beanstalk), you do not need to notify AWS in advance. You still need written authorization from the account owner, and any DDoS, stress, or simulated-event testing requires a separate request through the AWS Simulated Events form.
What is the IMDSv2 SSRF protection in AWS?
IMDSv2 requires a PUT request to obtain a session token before any metadata call, and that token must be sent in a custom header. Because most SSRF vulnerabilities can only issue simple GET requests, enforcing IMDSv2 (HttpTokens set to required) blocks the classic SSRF-to-credential-theft attack against 169.254.169.254.
Which tools are best for AWS penetration testing?
Prowler and ScoutSuite cover posture and misconfiguration discovery, Pacu is the main exploitation framework, pmapper and enumerate-iam map IAM privilege-escalation paths, and Cartography graphs your asset relationships. CloudSploit is a useful second-opinion scanner.
How do attackers escalate IAM privileges in AWS?
Common escalation paths use permissions like iam:CreatePolicyVersion, iam:PassRole combined with a service that assumes roles, iam:AttachUserPolicy, and lambda:CreateFunction with iam:PassRole. Each lets a low-privilege identity grant itself broader access. Tools like pmapper enumerate these edges automatically across an account.
Is S3 bucket misconfiguration still a common finding?
Yes. Public bucket policies, permissive ACLs granting AllUsers or AuthenticatedUsers, and predictable bucket names remain frequent findings. Account-level Block Public Access can override permissive bucket settings, so part of the test is confirming whether that control is enabled.
How often should you run an AWS penetration test?
At minimum annually and after major architecture changes, but cloud environments drift constantly as teams deploy new resources. Continuous or scheduled posture scanning with Prowler or ScoutSuite, supplemented by deeper manual testing periodically, catches misconfigurations far faster than a single yearly engagement.

Sources and references

  • AWS Penetration Testing Policy
  • AWS EC2 Instance Metadata Service (IMDSv2)
  • Prowler
  • Pacu AWS Exploitation Framework
L
Likhil Chekuri
Application Security Engineer, Strobes
Likhil Chekuri is an AppSec engineer at Strobes who has run hundreds of web, mobile, and cloud penetration tests for regulated industries.
Tags
Cloud PentestingAWSCloud Security

Stop chasing vulnerabilities Start reducing exposure

See how Strobes AI agents validate and fix your most critical exposures automatically.

Book a Demo
Continue Reading

Related Posts

Beyond the Basics Developing a Risk Driven AI Driven Cloud Native Security Strategy.
Cloud Security

Beyond the Basics Developing a Risk Driven AI Driven Cloud Native Security Strategy.

The use of clouds has taken a significant step forward beyond workloads and virtual machines. Containers, Kubernetes, microservices, APIs, and serverless functions can be relied upon by modern enterprises to provide a cloud-native architecture. Such environments not only speed up the delivery of sof

Oct 22, 202512 min
Beyond the Basics Developing a Risk Driven AI Driven Cloud Native Security Strategy
Cloud Security

Beyond the Basics Developing a Risk Driven AI Driven Cloud Native Security Strategy

Cloud-native architectures bring speed and scalability but also create new risks beyond traditional workloads. Misconfigured APIs, vulnerable containers, and over-permissive access expose enterprises to advanced threats. This blog explains why legacy security tools fall short, how AI-driven strategi

Sep 30, 202512 min
Rethinking Cloud Security in Healthcare: Balancing Compliance Risk and ROI
Cloud Security

Rethinking Cloud Security in Healthcare: Balancing Compliance Risk and ROI

Cloud technology is transforming healthcare by powering EHRs, telemedicine, and scalable patient services. But with benefits come risks, misconfigurations, shadow IT, and third-party exposures drive multimillion-dollar breaches. With the healthcare cloud market set to triple by 2032, balancing compl

Sep 10, 202511 min