AWS penetration testing involves assessing resources hosted on Amazon Web Services (AWS) to identify vulnerabilities and security gaps. AWS allows testing on 16 approved services without prior permission. However, activities such as denial-of-service (DoS) attacks are prohibited, while red team exercises and phishing simulations require prior approval through the appropriate form. Testing must also remain limited to customer-owned resources, as AWS infrastructure is out of scope.
Although most organisations understand the need for cloud security testing, many overlook AWS’s testing policies. Violating these rules can trigger policy violation reports, while a limited assessment may leave critical vulnerabilities undetected. Understanding the permitted scope and restrictions is therefore essential before starting an AWS pentest.
Think of renting an apartment: you can test your own locks and security systems but cannot assess shared building infrastructure or other apartments. AWS penetration testing follows the same principle.
What Is AWS Penetration Testing?
AWS penetration testing checks whether an attacker could break into, or misuse, the systems a company builds and runs on AWS. A skilled tester attacks those cloud resources with the owner’s permission. The targets include apps, application programming interfaces (APIs), virtual servers, and databases. Above all, they include the identity and access settings that control who can do what.
Cloud testing also differs from testing an office network. In an office network, the main question is which servers an attacker can reach. On AWS, by contrast, the key question is often which permissions an attacker can gain. A single over-permissive role or a leaked access key can expose far more than one open port. That is why identity testing sits at the centre of most cloud tests.
The Shared Responsibility Model: Where Your Scope Ends
The shared responsibility model is how AWS splits security duties with its customers. As AWS puts it, AWS is responsible for security “of” the cloud, while the customer is responsible for security “in” the cloud.
| AWS secures | You secure |
| Data centres, hardware, and physical security | Your data and who can access it |
| The global network and its infrastructure | Identity and Access Management (IAM) users, roles, and policies |
| The software that runs AWS services | Operating systems and patches on your virtual servers |
| Isolation between customers | Security groups, network settings, and encryption choices. |
This split therefore defines the scope of AWS penetration testing. In flat terms, AWS is the landlord: it maintains the building, while the tenant looks after everything inside the flat. As a result, everything on the “you secure” side can be tested. In contrast, AWS forbids customers from testing its infrastructure or its services. That puts the left column out of scope.
The split also explains why misconfiguration matters so much. For example, AWS cannot fix a storage bucket a customer made public, or a role with too many permissions. Those choices sit firmly on your side of the model.
AWS Penetration Testing Rules
AWS sets out its rules on its official testing policy page. Because AWS updates the policy from time to time, older guides often list fewer services or miss newer rules. The sections below reflect the policy as of November 2026.
Services You Can Test Without Approval
Testing without prior approval is allowed on 16 services. Grouped by type, they are:
| Type | Permitted services |
| Compute and networking | EC2, WAF, NAT Gateways, Load Balancers, Transit Gateway, Global Accelerator |
| Content delivery and APIs | CloudFront, API Gateway, and AppSync |
| Databases and storage | RDS, Aurora, OpenSearch Service, and FSx |
| Serverless and containers | Lambda and Lambda@Edge functions, Elastic Container Service (ECS), and Fargate |
| Simple hosting | Lightsail resources and Elastic Beanstalk environments |
| AI agents | Bedrock AgentCore |
However, to test any other service, you must first work directly with AWS Support or your account team.
Prohibited Activities
Even on permitted services, AWS restricts some activities. The policy prohibits:
- DNS zone walking, DNS hijacking, and DNS pharming through Amazon Route 53 hosted zones
- Denial-of-service (DoS) and distributed denial-of-service (DDoS) attacks, real or simulated
- Port flooding, protocol flooding, and request flooding, including login and API request flooding
- S3 bucket takeover
- Subdomain takeover
The DoS rule is strict. AWS also forbids any tool use that creates or shows a denial-of-service condition. However, the policy does allow a tool that only crashes a single process as part of an exploit. Even so, it must not flood the target.
Testing From AWS: Outbound Rules
Testers may host their tools inside AWS, or in another cloud. From there, they can test on-premises systems, AWS resources, or third-party systems they are hired to test. Any testing that uses command and control (C2), however, needs prior approval from AWS. In addition, testers cannot use 2 services to launch outbound penetration tests: Amazon API Gateway and Amazon Bedrock AgentCore.
Simulated Events That Need a Form
Some security exercises go beyond a standard penetration test. For these, you must first send AWS a Simulated Events form for review:
| Activity | What AWS requires |
| Red, blue, or purple team exercises | A Simulated Events form, especially for covert tests or hosting C2 |
| Simulated phishing campaigns | A Simulated Events form |
| Malware testing | A Simulated Events form |
| iPerf network performance testing | A Simulated Events form |
| Network stress or load testing | AWS’s separate stress test policy |
| DDoS simulation | AWS’s separate DDoS simulation testing policy |
In addition, submit the form at least 2 weeks before the start date. AWS aims to reply within 2 business days. Include the dates, account IDs, assets, contacts, and a full description of what you plan to do.
Your Responsibilities During Testing
The policy also places duties on the customer and on any tester the customer hires:
- Stay within limits: testing must respect the agreed services, network bandwidth, requests per minute, and instance types.
- Report AWS issues: if testing finds a flaw in AWS’s own tools or services, the customer must tell AWS Security within 24 hours of finishing.
- Own the contractors: the customer must make sure any third-party tester follows the policy.
- Accept liability: the customer is responsible for any damage the testing causes to AWS or other AWS customers.
How to Scope an AWS Penetration Test
A clear scope keeps AWS penetration testing inside the rules and focused on what matters. For that reason, agree these points with your tester before work starts:
| Scope item | What to define |
| Accounts and regions | Every AWS account and region in scope, including development and staging |
| Services | Which permitted services you use, and any non-permitted services that need AWS approval |
| Identities | The IAM roles, users, and access keys the tester will start from |
| Internet-facing assets | Domains, load balancers, API endpoints, and public storage |
| Data stores | Storage buckets, databases, and backups that hold sensitive data |
| Pipelines and secrets | Continuous integration and delivery (CI/CD) systems, and where keys and secrets live |
| Third-party integrations | External services with access to your accounts |
| Exclusions and windows | Anything out of scope, plus testing hours and emergency contacts |
| Approvals | Any Simulated Events forms, submitted at least 2 weeks ahead |
Grey box testing usually gives the best value on AWS. For example, you can give a tester read-only access to your account settings. As a result, they find risky settings far faster than by guessing from outside.
Join our weekly newsletter and stay updated
AWS Penetration Testing Methodology
A thorough AWS penetration testing methodology moves from the outside in, and from configuration to exploitation:
- External reconnaissance. First, the tester maps your internet-facing assets: domains, endpoints, public storage, and exposed services.
- Identity and access review. Next, the tester examines IAM users, roles, and policies, looking for paths that let a low-privilege identity gain higher privileges.
- Configuration review. Then the tester checks storage permissions, security groups, encryption, and logging against good practice, such as the CIS AWS Foundations Benchmark.
- Workload testing. After that, the tester attacks the apps, APIs, containers, and serverless functions running in the account.
- Lateral movement. Starting from any foothold, the tester tries to move between services, accounts, or environments, the way a real attacker would.
- Reporting and retest. Finally, the customer receives a report with each finding, its proof, and a clear fix, followed by a retest of each fix.
In practice, testers combine AWS’s own tools with open-source ones. Prowler and ScoutSuite, for example, review account settings, while Pacu is an open-source framework built for testing AWS environments. Tools speed up the work. However, chaining small permission flaws into a real attack path still needs a skilled tester. Kratikal’s cloud penetration testing covers all 6 phases.
Common AWS Misconfigurations Testers Find
AWS misconfiguration is, in practice, one of the most common ways into a cloud account, because each setting is the customer’s job. These are the findings AWS penetration testing turns up most often:
- Public storage buckets: S3 buckets that anyone on the internet can read or write
- Over-permissive IAM: roles and users with far more access than their job needs, including wildcard permissions
- Exposed access keys: long-lived keys in code repositories, laptops, or build logs
- Open security groups: management ports such as SSH or RDP open to the whole internet
- Missing logging: AWS CloudTrail switched off, or logs that nobody reviews
- Unencrypted data: databases, volumes, or backups stored without encryption
- Instance metadata exposure: older instance metadata settings that let a server-side request forgery (SSRF) flaw steal credentials
- Forgotten resources: old test servers, unused regions, and orphaned snapshots
For a closer look at how these flaws lead to breaches, see this guide to AWS misconfiguration risks.
AWS Security Assessment vs AWS Penetration Testing
An AWS security assessment and an AWS penetration test overlap, but they answer different questions. A security assessment reviews the account settings against a standard, such as the CIS AWS Foundations Benchmark, and lists gaps. A penetration test, however, goes further: the tester exploits those gaps to prove what an attacker could actually reach.
In practice, many companies run both. The assessment gives broad coverage of settings across every account, while the penetration test gives depth on the paths that matter most. For a fuller comparison, see this guide to cloud security assessment and penetration testing.
Can AWS Security Agent Replace a Penetration Test?
AWS Security Agent is AWS’s own AI-driven testing service. Its on-demand penetration testing became generally available on 31 March 2026. It can also test apps on AWS, other clouds, and on-premises systems. The service uses autonomous AI agents to find, confirm, and report flaws in web apps and APIs.
However, AWS is clear about its limits. Its own user guide states that AWS Security Agent is not a professional penetration testing service. Its best-practice guide also says it is not a replacement for one. Instead, AWS positions it as a way to test more often while teams build code, between deeper tests. For that reason, AWS penetration testing by skilled testers remains the deeper layer.
That fits how most teams already work. Automated and AI-driven testing gives frequent, broad coverage, while skilled testers give the depth, context, and judgement that auditors and customers expect. Likewise, a tool focused on apps and APIs does not replace a review of your IAM permissions and account settings. After all, many AWS attack paths begin there.
How Often to Test Your AWS Environment
Cloud accounts change constantly, because teams can create resources and permissions in minutes. As a rule, plan AWS penetration testing for your critical accounts at least once a year. Then test again after major changes, such as a new account structure, a migration, or a new internet-facing service.
Between manual tests, however, automated settings checks catch new misconfigurations as they appear. Penetration testing as a service (PTaaS) joins the 2 layers in one engagement, with manual tests on demand. For how that model works, see this explainer on penetration testing as-a-service.
Book Your Free Cybersecurity Consultation Today!
Planning Your AWS Penetration Test
Picture a team that tests its web app every year and passes each time. But nobody reviews the IAM role behind the app, and that role can read every storage bucket in the account. In other words, AWS penetration testing that follows the rules and scopes the whole account, not just the app, closes that gap.
First, use the shared responsibility model to define your side. Then check the current AWS policy for permitted services and required forms. To plan a test that covers your applications, identities, and configuration, contact Kratikal’s penetration testing services team.
FAQs
Penetration testing is allowed in AWS on your own resources. AWS permits testing without prior approval on 16 services, including EC2, RDS, Lambda, API Gateway, and ECS. It prohibits denial-of-service attacks, flooding, DNS zone walking, and bucket or subdomain takeover. Red team exercises, phishing simulations, and malware testing need a Simulated Events form submitted at least 2 weeks ahead.
The AWS shared responsibility model splits security duties between AWS and its customers. On one side, AWS secures the cloud itself: data centres, hardware, networking, and the software that runs its services. Customers secure what they put in the cloud: their data, identities and permissions, operating systems, network settings, and applications. For penetration testing, it means you can test your side only.
Amazon Inspector and Amazon GuardDuty do different jobs. Inspector is a vulnerability scanner that checks EC2 instances, container images, and Lambda functions for known software flaws and unintended network exposure. GuardDuty is a threat detection service that analyses activity logs to spot suspicious behaviour, such as compromised credentials. Neither one is a penetration test.
AWS security testing tools include AWS’s own services, such as Amazon Inspector, AWS Security Hub, and IAM Access Analyzer, plus open-source tools. Prowler and ScoutSuite review account settings, and Pacu is an open-source framework for testing AWS environments. Tools find known issues quickly, but chaining flaws into real attack paths still needs a skilled tester.
AWS Security Agent cannot fully replace a penetration test, according to AWS itself. Its documentation states that it is not a professional penetration testing service. It runs AI-driven tests of web apps and APIs on demand, which suits frequent testing during development. Deeper human-led tests remain necessary for full coverage, including IAM and account settings.