What AWS penetration testing allows without prior approval
If a compliance framework, a customer security review, a product launch or an insurer requires an AWS penetration test, you can start a test of your own AWS infrastructure without asking AWS first, provided it covers the services AWS lists as permitted and stays within its rules. Those permitted services include EC2, RDS and Aurora, CloudFront, API Gateway, AppSync, Lambda, Lightsail, Elastic Beanstalk, ECS, Fargate, OpenSearch Service, FSx and Transit Gateway. Any testing that includes command and control (C2) needs prior approval, and so do the simulated events listed in the policy. Before you schedule anything, confirm the current list on the AWS penetration testing policy page, because the permitted services are the boundary of what you can run on your own.
The policy exists so that customer testing does not disrupt AWS, other customers or AWS services themselves. It governs your own resources, not AWS's infrastructure, which you may not assess. Within that boundary, an AWS test addresses the weaknesses that most often expose cloud workloads: misconfigured security groups and public endpoints, storage that is readable by unintended parties, services reachable from the internet that should be internal, and roles or keys with more access than the workload needs. A test that touches these areas tells you whether the configuration you intended is the one that is actually running, which is what an auditor or customer reviewer will want to see evidence of.
Read the permitted list as a scoping decision, not a formality. Map each in-scope system to its AWS service, identify any component outside the list, and record which tests are prohibited, including denial of service, port or request flooding, DNS zone walking and S3 bucket or subdomain takeover testing. Anything outside the permitted list or in a prohibited category needs a written decision before work starts. You remain responsible for every activity your tester performs, including the damage a tester causes to AWS or other AWS customers, so the contract and the rules of engagement should name the services, the accounts and the activities in writing.
Which AWS services you can test without prior approval
AWS publishes a list of services customers may assess or penetration test without prior approval. The cards below group those services by the role they play in a typical environment, so you can see which parts of your estate fall inside that list and which need a closer read before work is scoped.
Compute services
EC2, Lightsail and Elastic Beanstalk are the virtual machine and platform services on the permitted list. Testing them covers the instances, the operating systems you configure, and the network paths into them. Confirm which of your workloads run on these services, since a server you manage through another service may fall outside the list, and check that AWS still lists each one as permitted on its policy page before you scope the work.
AWS policy pageServerless entry points
Lambda, Lambda@Edge, API Gateway and AppSync are the common serverless entry points on the list. These services accept requests from outside, so they are where injection through event data, weak authentication and server-side request forgery toward metadata services usually surface. Testing them is permitted without approval, but the function's execution role and secrets are part of what you are assessing, so the scope should name them explicitly.
Container services
ECS and Fargate run containers on AWS, with ECS managing the orchestration and Fargate removing the underlying hosts from your control. Both appear on the permitted list. Because Fargate hides the host, your test focuses on the task definitions, container images, task roles and network exposure rather than the host itself. Ask the tester to state which of these two models your workloads use, since the testable surface differs.
Data and search services
RDS, Aurora, OpenSearch Service and FSx hold the data most likely to matter to a regulator or customer. The permitted list covers these services, so you can test access paths, authentication, network exposure and misconfiguration. Confirm with your tester whether the test will attempt data access or only check configuration and reachability, since that choice affects how sensitive records are handled during the work.
Content delivery and networking
CloudFront and Transit Gateway sit in front of applications and between networks. CloudFront handles content delivery and edge behavior, and Transit Gateway routes traffic between VPCs and on-premises networks. Both are on the permitted list. Review routing and origin configuration in your scope, because exposure often comes from how traffic is allowed to reach a back-end rather than from the service itself.
How to decide whether a test step needs AWS approval
Start at the top with the question of what the step targets. If the target is AWS infrastructure or an AWS service itself, the step cannot be tested and any issue found must go to AWS Security. If the target is your own permitted service, check whether the step includes command and control (C2), which needs prior approval, then whether it is a simulated event such as red team, phishing, malware or DDoS simulation, which needs a request at least 2 weeks ahead. Finally, check the prohibited list, including DDoS, flooding and subdomain takeover. This diagram is a planning aid, not a substitute for the text of AWS's penetration testing policy, which governs.
Decision path for classifying a planned AWS test step under AWS's policy.
What AWS prohibits in customer testing and why it matters
This table lists the activities AWS prohibits in customer security testing, the risk each rule protects against, and what a buyer should do instead. Read it before drafting a test plan, since a prohibited item in a contracted tester's plan is the customer's responsibility under AWS's policy.
| Prohibited activity | Risk the rule protects against | What to do instead |
|---|---|---|
| DNS zone walking via Route 53 | Exposure of DNS records and internal naming that a zone should not reveal in bulk | Confirm hostnames that must be public against an approved inventory, and review Route 53 access policies and query logging settings instead |
| DNS hijacking or pharming via Route 53 | Redirection of traffic for domains the customer or other customers do not control | Review who can change Route 53 records and whether changes are logged and alerted; test those controls with the provider's permitted approach |
| Denial of service and DDoS | Availability of shared AWS infrastructure and of other customers' workloads | Assess resilience through architecture review, autoscaling and rate-limit configuration, and load settings agreed with the provider |
| Port, protocol or request flooding | Degradation of services for the customer and for neighbouring tenants | Check that security group, network ACL and WAF rules limit exposure; test rate limits with small, bounded request volumes in the written plan |
| S3 bucket or subdomain takeover | Claiming resources that other parties depend on, and data exposure through hijacked names | Inventory dangling DNS records and unused bucket references, then remove or re-point them; report the findings rather than claiming any resource |
How an AWS penetration test runs from request to retest
An AWS penetration test follows a fixed sequence, from written scope against AWS's permitted list through authorized testing, reporting and retest. The AWS policy governs every step, and the public method NIST SP 800-115 gives the testing work its structure. The result is a documented record showing that the work stayed inside the rules and that fixed issues were verified.
Agree accounts, services and boundaries in writing
The customer and the tester write down which AWS accounts, resources and services are in scope and which are excluded. Each service is checked against the AWS penetration testing policy list of services customers may test without prior approval, which includes EC2, RDS and Aurora, Lambda, API Gateway, ECS and Fargate, among others. Prohibited activities are recorded alongside the scope, including denial of service, port or request flooding, DNS zone walking and S3 bucket or subdomain takeover. Done when the signed scope names every account and service and lists what the tester must not do.
Request approval for simulated events and C2
Simulated events, including red, blue or purple team testing, DDoS simulations, simulated phishing and malware testing, need a request to AWS at least 2 weeks ahead of the activity. Any testing that includes command and control needs prior approval before it starts. Tools may be hosted within the AWS IP space or another cloud provider, so the request should state where the testing tooling runs. The output is an approved request, or a documented decision to remove the activity from the plan.
Authorize testers and name the abuse contact
The customer remains responsible for making sure contracted third-party testers follow the policy, so each tester receives the written scope and rules before any access is granted. AWS forwards abuse reports about testing to the customer, so the customer names a point of contact and prepares approved language describing the use case. Done when every tester has accepted the rules, access is limited to in-scope accounts, and a named person can answer an AWS abuse report.
Run authorized testing inside agreed boundaries
The tester runs the agreed methods against in-scope services, such as configuration checks and application tests on permitted resources, and stops at the boundaries set in the first step. Every testing action is logged so the customer can match it to a planned test. If something outside the scope is affected, or a problem appears in an AWS service itself, the work pauses and the issue is reported to AWS Security. Done when the test log matches the approved plan.
Validate findings and record evidence
The tester reproduces each candidate finding under controlled conditions and checks it against the configuration it came from, so false positives are removed before reporting. Evidence such as configuration exports, request records and screenshots is kept with each finding. Severity is assigned using the customer's own rating criteria. Done when every finding has been reproduced, has evidence attached, and has been marked confirmed or dropped with a stated reason.
Report findings and support remediation
The tester delivers a report covering each confirmed finding, the affected AWS resource, the evidence, the risk and the recommended fix, then walks the customer's engineers through the results. The method follows NIST SP 800-115, a public guide to technical security testing, and the report structure can mirror it. The customer owns remediation, because under the shared responsibility model the customer configures its own data, operating systems and firewall settings. Done when each finding has a named owner and a recorded fix plan.
Retest fixed findings and close out
After the customer reports a fix, the tester retests each finding against the same resource and the same evidence to confirm it is closed. Findings that remain open or were only partly fixed are recorded with the reason. The closing record lists the approvals obtained, the testing performed, the retest results and any AWS reports, so the customer can provide it to its auditor or customer on request.
What drives the cost of an AWS penetration test
This table compares the cost and duration drivers that come from AWS's testing rules, with who is paid for each piece of work and what to ask for in a quote. Read each row as a question to put to a provider, since the largest effort usually comes from scope decisions made before testing starts. No public rate exists for a manual third-party AWS test, and AWS Security Agent is a separate automated product, so no figures are quoted here.
| Driver | Why it changes cost or effort | What to ask for in a quote |
|---|---|---|
| Number of accounts and regions | Each account and region in scope adds asset discovery, configuration checks and reporting. Tests are scoped to the customer's own infrastructure, so every account must be listed. | A named list of accounts, regions and resource types, with a statement of what is excluded. |
| Mix of permitted services | Services on AWS's list of those testable without prior approval, such as EC2, RDS and Aurora, Lambda and API Gateway, are straightforward to schedule. Services outside that list or with extra conditions need more planning. | Confirmation of each service against the current AWS policy page, and who checks it before testing starts. |
| Simulated events and C2 requests | Red, blue or purple team exercises, simulated phishing, malware testing and DDoS simulations need a request to AWS at least 2 weeks ahead (AWS penetration testing policy). Any testing that includes command and control needs prior approval, which adds lead time and coordination. | Whether the quote includes preparing and submitting the AWS request, the lead time assumed, and who holds the approval record. |
| Test depth: configuration review versus active testing | A configuration review reads settings and logs against benchmarks and needs less tester time than active testing of exposed endpoints and identities. Active testing also needs more written rules of engagement. | Which activities are configuration review, which are active testing, and a list of prohibited activities the tester will follow. |
| Serverless functions and entry points | Each Lambda function, API Gateway route and AppSync API is a separate entry point with its own triggers and execution role to review. Counts grow quickly in event-driven designs. | A count of functions, routes and triggers in scope, and how the tester will sample them if the count is large. |
| Prohibited and excluded tests | Items such as DNS zone walking, denial of service, port or request flooding, and S3 bucket or subdomain takeover are excluded in customer testing. Clear exclusions reduce rework and disputes during testing. | A written exclusion list that matches AWS's rules, and how a tester handles a finding that touches an excluded area. |
| Third-party tester responsibilities | The customer must ensure that contracted testers follow the policy and is responsible for damages caused by testing (AWS penetration testing policy). This adds contract, authorization and monitoring work. | Whether the contract assigns policy compliance to the tester, how the tester reports activity, and who responds to any AWS abuse report. |
| Retest scope | A retest of fixed findings needs tester time proportional to the number of findings and the systems involved. Retests are usually quoted separately from the first test. | The number of findings covered by the retest, the window in which it can be performed, and whether it is included or priced separately. |
Who stays responsible when a contracted tester runs the work
Responsibility for a test stays with the customer, even when a contracted tester does the work. Under the AWS shared responsibility model, AWS is responsible for security of the cloud, meaning the infrastructure that runs AWS services. Customers are responsible for security in the cloud, and what that covers depends on the services they chose. For an EC2 instance, a Lambda function or an ECS service, that typically includes data, operating system settings, and firewall and security group configuration. A tester who finds a weakness in those settings is testing the customer's responsibility, so the customer owns the remediation decision and the consequences of how the test was run.
The AWS policy places several duties directly on the customer. The customer must ensure that any contracted third-party tester follows the policy, so the statement of work should restate the permitted services, the prohibited activities (including DNS zone walking, denial of service, port or request flooding, and S3 bucket or subdomain takeover) and the two-week lead time for simulated events such as red team, phishing or malware testing. The customer is also responsible for damages to AWS or to other AWS customers caused by testing. If AWS forwards an abuse report about testing activity, the customer replies, using approved language that describes the use case and names a point of contact. Confirm who in your organization holds that contact role before the test starts, not after the first report arrives.
Two further points apply to resellers and to findings. If your organization buys AWS services through a reseller, the reseller is responsible for its customers' security testing activity, so ask in writing how that responsibility is split. Separately, a security issue found in an AWS service itself, as opposed to the customer's configuration, is not something to fix in the customer environment. The policy requires it to be reported to AWS Security. Your tester's contract should say who reports such a finding, how quickly, and who keeps the evidence.
How the AWS testing rules differ for servers, serverless and containers
EC2, RDS and Aurora, and Lightsail are on the list of services customers may test without prior approval under the AWS penetration testing policy. A test here treats the instance or database as a host: what is reachable from where, how it is administered, and what it trusts. Under the shared responsibility model, the customer manages the operating system, firewall rules and data settings, so most findings sit in customer configuration.
- Exposed management paths: Remote administration ports, management consoles and database listeners reachable from the internet or from wider networks than intended.
- Instance role reach: Whether an EC2 instance profile or application credential grants more access to other services than the workload needs.
- Stored secrets: Credentials in user data, configuration files or database tables, and whether they are rotated.
- Patch and engine state: Unpatched operating system packages and outdated database engine versions, confirmed in context rather than from a version banner alone.
- SSRF to metadata: Server-side request forgery that reaches 169.254.169.254 and returns instance credentials, a risk category listed as API7:2023 in the OWASP API Security Top 10 when a server fetches URLs supplied by callers.
Before agreeing scope, confirm that the quote names each instance, database and Lightsail resource, and that flooding, denial of service and DNS zone walking are excluded in writing.
Lambda, Lambda@Edge, API Gateway and AppSync are on the permitted list, which covers the common serverless entry points. Testing starts from the trigger, because the event data, the execution role and the API in front of a function define what an attacker can reach. There is no operating system to scan, so the work centers on inputs, permissions and secrets rather than on host patching.
- Injection through event data: Untrusted fields from API requests, queue messages or storage events passed into queries, commands or templates without validation.
- Over-privileged execution roles: Function roles with wildcard actions or access to buckets, tables and keys that the function never uses.
- Object-level authorization: Missing per-record checks in API Gateway or AppSync resolvers, so one caller reads another caller's data.
- Secrets handling: Keys in environment variables, source code or logs, and secrets a function can read but does not need.
- SSRF to metadata services: Functions that fetch user-supplied URLs and can reach the metadata endpoint or internal services.
Before agreeing scope, ask the provider to list each function, API and resolver by name and to explain how inputs will be sent without causing load that the prohibited list excludes. For method depth, see the serverless security testing topic.
ECS, Fargate, Elastic Beanstalk and OpenSearch Service are on the permitted list, so a tester may assess their configuration and exposed interfaces without prior approval. These platforms add a layer between the application image and the host. The shared responsibility split still applies: AWS runs the underlying platform, while the customer sets task definitions, network access, images and the identities attached to them. Kubernetes cluster work is covered in a separate topic.
- Task and image settings: Privileged containers, host network or host path mounts, and images pulled from registries the team does not control in ECS task definitions.
- Task role scope: Task and execution roles that grant more than the container needs, which an attacker reaches after compromising one application.
- Exposed search and dashboards: OpenSearch Service domains or dashboards reachable under an access policy or authentication setting broader than the customer intended.
- Beanstalk environment settings: Environment properties and configuration files holding credentials, and load balancer listeners open wider than the application requires.
- Fargate boundaries: Fargate does not give the customer access to the underlying host, so the review shifts to task definitions, networking and secrets injected at runtime.
Check that the quote lists each cluster, service and domain by name, and that any work at the container host or runtime level is stated as in or out of scope.
What to check in a provider before you sign an AWS test
The AWS policy sets the outer limits of any test, but the provider you hire decides how those limits are applied day to day. The questions below help you check how a provider handles permitted services, prohibited activities, contracted testers, reporting and retests before you sign.
Permitted services and approval requests
Ask the provider to show, in writing, how it maps each target to the services AWS lists as testable without prior approval, and what it does when a target falls outside that list. Ask who files any request to AWS, what the request covers, and how long before the test it is sent. A provider that cannot describe this process clearly is not ready to run an AWS test. Confirm the current list against the AWS penetration testing policy before you agree scope.
AWS testing policyHandling of prohibited activities
Ask how the provider keeps prohibited activities out of the work, including denial of service, flooding, DNS zone walking and S3 bucket or subdomain takeover. Request its written test plan and its controls for stopping traffic that goes beyond agreed limits. Also ask how it treats any test that includes command and control, since that always needs prior approval.
Command and control and simulated events
Ask whether the provider has run red, blue or purple team exercises, simulated phishing, malware testing or DDoS simulations on AWS before, and how it tracks the lead time those events need. Confirm who keeps the AWS request on file and who handles any abuse report that AWS forwards to you about the testing activity.
Management of contracted testers
Because you remain responsible for third-party testers, ask how the provider briefs its staff and subcontractors on the policy, how it checks their tooling, and whether it keeps a record of who ran which test from which source IP space. Ask for a clause in the contract that binds every tester to the same rules you agreed with AWS.
Reporting and AWS-facing issues
Ask how findings will be written up, including evidence, affected resources and a fix owner for each. Ask what the provider does if it finds a weakness in an AWS service itself, since AWS must be told through its security channel rather than handled as a customer finding. Request a sample report and confirm who receives it.
Written account scope and retesting
Ask the provider to name the AWS accounts, regions and resources in the scope document, and to state what is excluded. Confirm whether a retest of fixed findings is included in the quote or priced separately, and whether it is run within the same permissions and policy rules. Agree these terms in writing before work starts.
Questions buyers ask before commissioning an AWS penetration test
Can we penetration test our AWS environment without asking AWS first?
Yes, for many services. AWS lets customers run security assessments or penetration tests of their own AWS infrastructure without prior approval for a listed set of services, including EC2, RDS and Aurora, CloudFront, API Gateway, AppSync, Lambda, Lightsail, Elastic Beanstalk, ECS, Fargate, OpenSearch Service, FSx and Transit Gateway. The answer depends on your scope. Any testing that includes command and control (C2) needs prior approval, and the policy prohibits DNS zone walking, hijacking or pharming through Route 53, denial of service and DDoS, port, protocol or request flooding, and S3 bucket or subdomain takeover. Confirm each service and activity in your planned scope against the AWS penetration testing policy before work starts, because the permitted list is what determines whether you need a request at all.
Which AWS simulated security events need a request, and how far ahead?
Simulated events need a request at least 2 weeks ahead. AWS requires this notice for red, blue or purple team testing, DDoS simulations, simulated phishing and malware testing. Build the lead time into the project plan from the start, because a red team exercise or phishing simulation that is scheduled without the request will not proceed on the planned date. Ask your provider which of these events the scope includes, who will submit the request, and what contact details and use case description AWS will need. Keep a copy of the approved language and the request record with the engagement file so your team can answer any abuse report that AWS forwards about testing activity.
Does a contracted penetration tester need AWS approval to test our account?
The tester does not need a separate AWS approval for the permitted services, but you remain responsible for making sure they follow the policy. AWS places that duty on the customer, including for contracted third-party testers, and the customer is also responsible for damages to AWS or other AWS customers caused by testing. In practice, this means your contract should require the tester to stay within the permitted services, avoid prohibited activities, obtain any C2 or simulated event approval through you, and stop when a test threatens other tenants. Written scope, named testing source addresses and a clear escalation path make that duty manageable.
What do we need to provide before an AWS penetration test starts?
Before testing begins, you need to supply a written scope and the access that lets the tester work without guessing. Typical inputs are:
- The AWS accounts, organizational units and regions in scope, with account IDs confirmed in writing
- Roles or read-only access for review, and test identities with permissions your team has agreed
- A list of permitted services and any excluded resources, such as production databases or third-party endpoints
- Named contacts for technical decisions, change windows and incident escalation
- Logging and alerting details so your security operations team knows when testing is underway
Ask the provider to confirm how the test identities will be created, removed and reviewed at the end of the engagement.
What drives the cost and duration of an AWS penetration test?
The main cost drivers are the number of accounts and services in scope, whether the test includes simulated events that need an AWS request, and whether it includes manual work on each service or only checks that run automatically. Scope tends to grow with serverless entry points, because each API Gateway, AppSync or Lambda path adds test cases. The AWS notice period for simulated events also affects the calendar, even when the testing effort is modest. No public rate exists for a manual AWS test by a third party, so ask each provider to price a written scope and to state which services, accounts, regions, simulated events and retest rounds the quote covers. Ask for the assumptions behind the effort estimate and for the change process if scope moves during the engagement.
Can our own team run an AWS penetration test internally?
Your team can test internally, as long as the work follows the same permitted services, prohibited activities and simulated event rules that apply to a contracted tester. The policy covers customers testing their own infrastructure, so an internal team is inside the same boundaries. Internal testing requires skills in AWS identity, network and service configuration, plus a method for recording findings, verifying fixes and retesting. Where a regulator, auditor or customer needs independent assurance, an outside tester or a second review may still be expected, so confirm the evidence requirement before deciding who runs the work. DeployOpen runs security testing as fixed-scope engagements agreed in writing, and can also support configuration review and retesting as part of a broader cloud plan.
What happens if a penetration test finds a problem in an AWS service itself?
A security issue in an AWS service is reported to AWS Security, not treated as a finding to exploit further. The policy also prohibits assessing AWS infrastructure or the AWS services themselves, so the test should be scoped to your own configurations, code and data inside the account. Your report should describe what you observed, the affected resource and the steps your team took to stop further activity. Confirm with your provider how that report is handled, who at your organization is notified, and how a finding in your own configuration is distinguished from a suspected platform issue.
How DeployOpen scopes, tests, reports and retests AWS environments
DeployOpen approaches AWS penetration testing policy as a fixed-scope engagement: the permitted services, prohibited activities and any simulated events are agreed in writing before any testing starts. Testing runs inside the client's own AWS accounts, and the findings come with fixes and a retest.
How we scope
- We confirm which AWS services in your accounts fall on the permitted list before agreeing any test activity.
- We map prohibited activities, such as denial of service and Route 53 DNS manipulation, into the written scope and rules of engagement.
- We flag any command and control, red team or phishing element early so AWS approval requests can be raised ahead of time.
How we build
- We confirm account boundaries, owners and the contact point AWS would use if an abuse report about testing arrives.
- We set up test tooling and testing sources to stay within the approved scope and the AWS rules on where tools may run.
- We keep a test log of activities, timings and affected resources so the work can be reconciled with your change and monitoring records.
How we hand over
- We deliver a findings report that states each issue, affected AWS resource, evidence and a practical fix.
- We separate issues in AWS services from issues in your configuration, so any issue in an AWS service can be reported to AWS Security.
- We walk your security, cloud and compliance teams through the results and the evidence they will need for internal or external review.
How we support
- We retest agreed findings after fixes are applied and record which items are closed, open or accepted as risk.
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial fixed-scope engagement.
- Your organization stays responsible for the environment, so we help you confirm fixes, owners and follow-up dates in writing.

