AWS penetration testing methodology: why buyers commission it and what it covers
An AWS penetration test is structured around three references: NIST SP 800-115, which covers how to plan and conduct technical security tests, analyze findings and develop mitigations; the OWASP Web Security Testing Guide, which supplies the method for the web application layer; and AWS's own customer testing policy, which sets the rules on what may be tested and how. NIST SP 800-115 was published in September 2008 by Karen Scarfone and Murugiah Souppaya, and it gives the planning and reporting structure that most buyers' auditors and customers recognize. Organizations commission these tests because a compliance framework, a customer's security review, a product launch or an insurer asks for evidence that the environment was tested by someone other than its builders.
The shared responsibility model decides what the test targets. AWS is responsible for security of the cloud, meaning the infrastructure that runs its services, while the customer is responsible for security in the cloud. That second part depends on the services chosen and covers configuration such as data, operating systems, identity settings and firewall rules. A useful test therefore concentrates on the customer's accounts, workloads, identity policies, storage exposure and network paths, and does not attempt to test AWS's underlying facilities. Before scoping, confirm with the provider which services are in the customer's responsibility for each workload, since a managed service shifts some controls to AWS and leaves others with the customer.
Before work starts, the buyer should confirm three things in writing: which accounts, regions and services are in scope, whether any planned activity needs prior AWS approval under the AWS penetration testing policy, and which tools the tester will use and how denial-of-service capability is disabled and validated. The policy does not restrict the choice of commercial, open-source or custom tools for an assessment of the customer's own assets, but it forbids any tool used to perform or simulate denial of service. Confirming these points early prevents a test from stalling or breaching the rules after it has started.
What an AWS penetration test can include and where the boundaries sit
An AWS test is scoped as a set of parallel decisions: which accounts and regions are in, which services are tested, which applications and APIs sit behind them, which identities the tester may use, and what stays out. AWS's customer policy sets the outer limits for each decision, so the written scope should name every item before work starts.
Accounts and regions
Scope starts with the named AWS accounts and the regions inside them, listed by account ID in the statement of work. Shared services, logging accounts and security tooling accounts often sit in the same organization, so the contract should say whether each is tested, only observed, or excluded. Confirm that every account listed is owned or administered by the client, because the tester may only test assets the client controls.
Services on the permitted list
AWS allows customers to run security assessments or penetration tests of listed services without prior approval, including EC2, RDS and Aurora, CloudFront, API Gateway, AppSync, Lambda, Lightsail, Elastic Beanstalk, ECS, Fargate, OpenSearch Service, FSx and Transit Gateway. Any service outside that list should be confirmed against AWS's current policy before it goes into scope. Map each in-scope service to a named workload so the tester and the client agree on what counts as covered.
AWS testing policyApplications and APIs
Many findings sit in the code running on these services rather than in the cloud configuration itself, so the scope should list the web applications and APIs behind each entry point. Test them against the OWASP Web Security Testing Guide and the OWASP API Security Top 10 categories, including server-side request forgery toward metadata endpoints. Record which hostnames, paths and authentication methods are in scope.
Identities and roles
The scope should state which IAM roles, users and federated identities the tester receives, and whether the test starts unauthenticated, with a low-privilege role, or with an assumed-breach role. Each choice changes what the test can prove about privilege escalation. Agree in writing who issues the credentials, how long they live, and who revokes them when the test ends.
Command and control and out-of-scope items
Testing that includes command and control (C2) needs prior AWS approval, so it should appear as a separate scope item with its own request. The out-of-scope list should name prohibited activities such as denial of service, DNS zone walking, S3 bucket or subdomain takeover, and flooding, along with third-party systems, SaaS providers and any account the client does not own.
How an AWS penetration test runs, phase by phase
The sequence turns an agreed scope into validated, risk-rated findings that the client can fix and retest, with every phase traceable to a written boundary.
Agree scope and rules of engagement
The client and the tester write down the AWS accounts, the services in scope, the applications and endpoints to test, and the activities that are excluded. The tester checks each in-scope service against AWS's published list of services that may be tested without prior approval. Any command and control testing needs prior AWS approval. Any simulated event, such as red team testing, simulated phishing, malware testing or a DDoS simulation, requires a request to AWS at least 2 weeks ahead. The step closes when the client signs a scope document that names the accounts, services, exclusions and any AWS requests, and who is responsible for each.
Map assets and attack surface within scope
The tester inventories the in-scope resources: internet-facing endpoints, API gateways, serverless functions and their triggers, container services, storage, and the identity roles that connect them. This follows the planning phase of NIST SP 800-115, which asks organizations to define what they test and why before they test it. Discovery stays inside the written boundary and uses only the tools and techniques the scope permits. The step closes with an asset register that the client has reviewed, so every later test maps to a known target and no shared or out-of-scope resource is touched.
Test in-scope services and applications
The tester runs the agreed tests against the services and applications in scope. Web application and API components follow the OWASP Web Security Testing Guide, which covers areas such as authentication, authorization, input handling and server-side request forgery. Configuration weaknesses, such as over-privileged roles, exposed storage and weak network rules, are checked against the agreed control set. AWS does not restrict the commercial or open-source tools a tester uses, but any tool with denial-of-service capability must have that capability disabled and validated before use. The step closes with a test log that records what was tested, when, from where and with which tools.
Validate and rate findings
The tester confirms each suspected weakness with evidence, separates confirmed issues from false positives, and assigns a severity that reflects the affected service, the data involved and the conditions an attacker would need. Where a finding depends on a shared-responsibility boundary, the report states whether the fix sits with the client's configuration or with AWS's infrastructure. The step closes when every finding has evidence, a rating and an owner, and the tester has removed any test artifacts or test accounts that were created during the work.
Deliver the report and brief the team
The tester writes a report for two audiences: an executive summary for leaders and a technical section for engineers and auditors. Each finding describes the weakness category, the affected resource, the evidence, the risk and the recommended fix, without step-by-step exploitation instructions. The tester walks the client's engineering and security leads through the results so that priorities are agreed. The step closes with a delivered report and a recorded readout. The client should confirm with the provider what the report contains and whether it will support their auditor or customer review.
Support remediation and retest
The client's teams fix the findings, and the tester supports them with clarifying guidance on the recommended changes. The tester then retests the fixed items against the original evidence to confirm that each issue is closed or to record what remains open. Retest scope, timing and any cost should be written into the original scope document, because the retest is usually a separate piece of agreed work. The step closes with a retest report that lists each finding as closed, partly closed or open, so the client has a current record for governance and external review.
Where AWS rules gate each phase of the test
The diagram starts at scope agreement, where the tester checks each planned service against AWS's list of services that can be tested without prior approval. Anything involving command and control goes to AWS for approval first, and simulated events such as red team exercises or phishing need a request at least 2 weeks ahead. Testing then runs under the tool rules, with prohibited activities such as denial of service or flooding removed from the plan. Findings are validated before they reach the report, and remediation is followed by a retest. This is a representative flow, not a fixed timeline.
A representative flow of gates an AWS test passes through, not a fixed timeline.
Which AWS tool rules every test method must respect
AWS does not limit which tools a customer uses to assess its own AWS assets. Public, private, commercial and open-source tools are all permitted for port scanning, vulnerability scanning, exploitation, web application scanning, injection, forgery and fuzzing. The limits are not about the tool category. They are about what the tool does on the wire. Any tool used to perform or simulate denial of service is forbidden, and so are protocol flooding and resource request flooding. A tool with DoS capability must have that capability disabled, and you must validate that it is disabled before testing starts. Ask the tester to show you the configuration and how it was checked, and record that agreement in the statement of work.
Some activities look risky but stay within the policy. A tool that only banner-grabs to compare a service version against a list of DoS-vulnerable versions does not breach the AWS policy. Neither does a tool that crashes a single process as needed to prove exploitation. The same is not true of sustained floods, so the distinction should be written down. Also prohibited in customer testing are DNS zone walking, hijacking or pharming via Route 53, and S3 bucket or subdomain takeover. Simulated events such as phishing or malware testing need a separate request at least 2 weeks ahead, so a tool plan that includes them must be cleared before scheduling.
Confirm tool settings with the tester in writing before any traffic is sent. Ask which tools and versions will run, which modules or checks are switched off, how DoS-capable features were disabled and who verified it, and which scanner rate limits apply to each target. Check the plan against the current wording of the AWS penetration testing policy, since the policy is the governing text. Your tester should also explain how the method follows NIST SP 800-115 and the OWASP Web Security Testing Guide, which describe planning and conducting technical tests in general terms rather than setting AWS-specific tool rules.
Weakness categories an AWS penetration test targets and why they matter
This table compares the weakness categories an AWS penetration test usually probes, what each looks like in an AWS environment, and why it matters to the buyer. Read each row as a question to put to the tester: which of these categories does the scope cover, and what evidence will the report give for each one.
| Weakness category | What it looks like in an AWS environment | Why it matters to the buyer |
|---|---|---|
| Exposed services and network paths | Internet-facing EC2, Load Balancer, API Gateway or CloudFront endpoints reachable on ports or paths that were meant to stay private, often through overly broad security group or network ACL rules | Exposure is the entry point for most external attacks, and it is the first thing a scoped test confirms against the permitted service list |
| Identity and access misuse | IAM roles or users with wildcard permissions, unused access keys, trust policies that allow unintended principals, or privilege escalation paths across roles | A compromised identity often reaches more than a single service, so over-broad access can turn a small flaw into an account-wide incident |
| Server-side request forgery to cloud metadata endpoints | An application that fetches a user-supplied URL and can be made to request the instance metadata service at 169.254.169.254, which may expose temporary role credentials (OWASP API7:2023) | Stolen instance credentials can reach data stores and other services, so testers check whether metadata access is restricted and whether instances use the session-based metadata controls |
| Injection and broken authorization in APIs | Functions behind API Gateway or AppSync that trust event data, accept unvalidated input, or return objects a caller should not reach because object-level checks are missing | These flaws often sit in business logic that passes automated scans, and they affect customer data directly, which makes them a common audit and regulator finding |
| Insecure storage exposure | S3 buckets or related storage with public or cross-account read and write grants, weak bucket policies, or sensitive files left in buckets that a service can reach | Data exposure is usually the finding that carries the most regulatory and reputational weight, so the report should show exactly which objects and principals were affected |
| Weak logging that hides attacks | CloudTrail not enabled in every region, logs not retained or centralized, or no alerting on changes to IAM, network or storage settings | A test that succeeds without leaving a trace tells the buyer that detection would have failed, so logging gaps belong in the findings alongside technical flaws |
Which public standard defines each part of an AWS test
NIST SP 800-115, Technical Guide to Information Security Testing and Assessment, was published in September 2008 by Karen Scarfone and Murugiah Souppaya. It governs how a team plans and conducts technical security tests, analyzes the results and develops mitigation strategies. It sets the overall structure of an AWS test: planning and rules of engagement, discovery, testing, analysis and reporting. It does not provide AWS-specific test steps, list permitted services or replace AWS's own rules, so those must be layered on top.
- Planning: Records objectives, authorization, in-scope accounts and services, and the approval path for any activity that needs AWS review.
- Execution: Defines how each test is run, what is logged and how the tester avoids disrupting production.
- Analysis: Explains how raw results are validated, deduplicated and rated before they become findings.
- Reporting: Sets the expectation that findings are traceable to the method used and to the assets tested.
- Citation: Cite the guide in the methodology section of the report and state which phases were applied to the AWS scope.
Ask the provider to show how each NIST phase maps to the AWS scope, the tools used and the evidence kept for each finding.
The OWASP Web Security Testing Guide is a testing resource for web application developers and security professionals, and it is an OWASP Flagship Project. In an AWS test it governs the application layer: the web front end, APIs and their authentication, authorization, input handling and session logic, including workloads exposed through API Gateway, CloudFront, AppSync or load balancers. It does not cover the AWS control plane, IAM configuration or the cloud account settings, which need a separate configuration review.
- Test categories: Organizes application tests into areas such as information gathering, authentication, authorization, input validation and business logic.
- Scope fit: Applies to customer-built web and API layers, not to AWS-managed infrastructure.
- Tool neutrality: Describes test objectives, so it works with any tooling the AWS policy permits.
- Citation: Reference the guide's test IDs in findings so a reader can trace each issue to its test category.
- Limits: Testing that could cause denial of service stays off limits under AWS's rules, whatever the guide describes.
Check that the provider maps each finding to a WSTG category and confirms which application endpoints were in scope.
The CIS Amazon Web Services Foundations Benchmark, at version 7.1.0, is a configuration benchmark. It defines recommended settings for identity, logging, monitoring, networking and storage in an AWS account. Checking an account against it is a configuration review, not a penetration test, so a benchmark pass does not show that an attacker cannot reach the environment. It governs what a configured account should look like; it does not describe how to attack it or which services AWS permits testing.
- Benchmark use: Compare account settings such as root account protection, logging and encryption against the recommendations for the version in scope.
- Result labeling: Report benchmark checks as configuration findings, separate from exploitable penetration test results.
- Access: CIS Benchmarks are freely available in PDF for non-commercial use. Commercial work may require a license from CIS, so confirm the terms with the provider.
- Version control: Record the benchmark version in the report, since controls change between versions.
- Citation: Cite the version, the control ID and the account evaluated for each check.
Ask whether the provider uses the benchmark as a checklist, what version it applies and how it handles checks that AWS services do not expose.
The AWS shared responsibility model divides security duties. AWS is responsible for security of the cloud, meaning the infrastructure that runs AWS services. The customer is responsible for security in the cloud, and that share depends on which services are chosen. It covers configuration such as data, operating systems where the customer manages them, and firewall settings. This model decides what a customer test can meaningfully find and who must fix it.
- AWS-owned layers: Physical facilities, the hypervisor and the managed service infrastructure fall to AWS, so customer tests cannot assess them.
- Customer-owned layers: Data, identity configuration, workload settings and network rules are the customer's to test and fix.
- Service-dependent split: A managed service leaves less to the customer than a self-managed instance, so the scope changes with the service mix.
- Report use: Mark each finding with the responsible party so remediation goes to the right team.
- Citation: Reference the model in the scope section and state which services were in the customer's share.
Confirm that the scope document lists each service and assigns its layers before testing starts.
What drives the cost and duration of an AWS penetration test
This table compares the main drivers that move the price and duration of an AWS penetration test, explains why each one matters under AWS's testing rules, and lists what to ask for in a quote. Use it to check that a proposal states its scope, approvals and lead times, since no public rate exists for a manual AWS test by a third party and DeployOpen quotes from the written scope.
| Cost driver | Why it moves price or duration | What to ask for in a quote |
|---|---|---|
| Accounts and regions | Each AWS account is a separate boundary to scope, inventory and test. More accounts and regions add discovery, access setup and reporting work. | A list of account IDs, regions and which accounts are excluded, with the reason for each exclusion |
| Services in scope | AWS allows testing without prior approval for a listed set of services, including EC2, RDS and Aurora, Lambda, API Gateway and ECS. Services outside that list need review before testing, which adds lead time. | A service-by-service table showing which services are on the no-approval list and which need AWS review |
| Services needing AWS approval | Any testing that includes command and control (C2) needs prior approval from AWS, so this work cannot start on the usual schedule. | Confirmation that no C2 activity is included, or a separate plan and approval timeline if it is |
| Applications and APIs in scope | Web applications and APIs add test cases drawn from the OWASP Web Security Testing Guide and OWASP API Security Top 10, such as injection, authorization and server-side request forgery testing. Each application adds effort. | The number of applications and endpoints, authentication methods, and whether test accounts are provided |
| Identity and role complexity | Many IAM roles, cross-account trust paths and federated identities take longer to map and test for privilege escalation, which is a core part of an AWS assessment. | The number of roles, users and trust relationships in scope, and whether an IAM review is included |
| Test depth and manual versus automated work | Automated scanning can run quickly, but manual testing of logic flaws, chained misconfigurations and application behavior takes skilled time. A deeper test adds analysis effort at every phase. | A clear split between automated and manual work, the methodology used, and the phases included |
| Simulated events needing an AWS request | Red, blue or purple team exercises, DDoS simulations, simulated phishing and malware testing require a request to AWS at least 2 weeks ahead, so they set the earliest start date. | The planned start date, the date the AWS request is submitted, and who submits it and holds the approval |
| Retest rounds | Each retest repeats verification of fixed findings and may need new test access. The number of rounds should be fixed in writing so the total effort is clear. | The number of retest rounds included, the time window for them, and whether retests are priced separately |
| Remediation support | Help with fix design, configuration changes and working sessions with engineering teams adds effort beyond the test itself. It is usually optional and can be scoped separately. | Whether remediation guidance is included, the format (report notes or working sessions), and any limits on support hours |
What you receive and whether it satisfies your auditor or customer
An AWS test produces a set of deliverables that answer different readers: executives, engineers, and the auditor or customer who asked for evidence. Each one has a specific job, and none of them is an audit report or certification.
Executive summary
A short document for the board, risk committee or customer contact that states what was tested, the overall exposure in plain terms, and the findings that need management decisions. It should name the AWS accounts and in-scope services covered, the testing window and the testers' approach, so a reader can see whether the test matched the request. Check that it states what was excluded, including any service or activity that needed AWS approval and did not receive it.
Technical findings with defensive context
Each finding should describe the weakness category, the affected configuration, the evidence that it exists, and the conditions under which it matters. Reproduction context should be written at a defensive level, enough for your engineers to confirm the issue and verify the fix, without step-by-step exploitation instructions. Ask the tester how each finding was validated, and whether any finding was confirmed by a configuration review rather than only by an automated scanner.
Severity ratings and affected AWS resources
Each finding should name the exact account, region, resource and IAM principal it touches. Severity ratings should show the method used, such as a published scoring system adjusted for your environment, and the tester should explain any adjustment. A finding without a resource identifier cannot be tracked to closure, so ask for a register that your team can import into its own ticketing system.
Remediation mapped to in-scope services
Remediation guidance should be written for the AWS services you actually run, such as IAM policies, security groups, S3 bucket settings, Lambda execution roles or API Gateway authorization. Where the CIS AWS Foundations Benchmark or AWS Foundational Security Best Practices control covers the same gap, the report should cross-reference it so your compliance team can map the fix to existing control evidence. Confirm that the guidance reflects the shared responsibility split, so fixes owned by AWS are routed to AWS rather than assigned to your team.
Shared responsibility modelRetest results and letter of testing scope
A retest confirms which findings were closed, which remain open and which were accepted as risk, with dated evidence for each change. The letter of testing scope is a separate document that states the tested accounts, services, dates and rules followed, and it is what a customer or auditor often asks for when they want proof that testing happened. Ask which standards and scope statements they need written into that letter before testing starts, because the letter cannot be changed afterward to add them.
AWS penetration testing methodology questions buyers ask before hiring
How long does an AWS penetration test take?
The duration depends on the scope, the approvals needed and the lead times that apply, so no fixed figure applies to every engagement. The services in scope set most of the effort, since a test of a few EC2 instances and an API Gateway endpoint is far smaller than a test across serverless, container and data services. Any test that includes command and control needs prior approval from AWS, and simulated events such as red team, phishing or malware testing require a request at least 2 weeks ahead under the AWS penetration testing policy. Ask the provider to show how it counts the approval and lead time separately from the hands-on testing and reporting days, and to state those as assumptions in the written scope.
What does the client need to provide for an AWS test?
The client provides the work that only it can authorize: the AWS accounts and resource identifiers in scope, test credentials or a defined access model, a named technical contact and an escalation contact, and the change windows when testing may run. The client also owns the written approvals, including any AWS request for simulated events or C2 testing, and must confirm which environments are production. Ask the provider to list these inputs in the statement of work with owners and dates, so a delay in one of them is visible before the testing window opens.
Can our own team run an AWS penetration test?
Yes, a customer can run security assessments or penetration tests of its own AWS infrastructure. AWS permits testing 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. AWS does not limit which public, private, commercial or open-source tools you use, but it forbids denial-of-service, DDoS, port, protocol or request flooding, DNS zone walking, Route 53 hijacking and S3 bucket or subdomain takeover in customer testing. Whether your team or a contracted firm runs the work, the customer remains responsible for its own environment, so the rules and the written scope apply equally.
Do we have to notify AWS before a standard penetration test?
For testing that stays within the listed services and avoids prohibited activities, the AWS policy does not require prior approval. Notice does become necessary for specific cases: testing that includes command and control needs prior approval, and simulated events such as red, blue or purple team testing, DDoS simulations, simulated phishing and malware testing require a request at least 2 weeks ahead. Services outside the listed set, or activities the policy does not cover, should be checked against the current AWS penetration testing policy before work begins. Confirm the exact service list and rules on the AWS page at the time you scope the test, since the policy can change.
Does an AWS penetration test cover AWS's own infrastructure?
No. Under the AWS shared responsibility model, AWS is responsible for the security of the cloud, which covers the infrastructure that runs AWS services, while the customer is responsible for security in the cloud. The customer's test therefore covers the configurations, workloads, data, operating systems, identities and network settings the customer controls, depending on which services it uses. Testing AWS's own facilities or underlying platform is outside what a customer test can cover, so findings in those layers should be handled through AWS's own reporting channels. Make the boundary explicit in the scope document so that the test does not assume responsibilities that belong to AWS.
What is the difference between an AWS penetration test and a configuration review?
A configuration review checks the settings of an environment against a benchmark or a set of expected controls, such as the CIS Amazon Web Services Foundations Benchmark at version 7.1.0, to find gaps in identity, network, storage and logging. A penetration test goes further by trying to chain weaknesses into an attack path that reaches a defined objective, within the permitted services and rules of the AWS policy. The two overlap, and a configuration finding often becomes the first step in a penetration test path. Most buyers benefit from both, and should ask the provider whether the quote covers configuration checks, attacker-path testing or both, and how each is reported.
How DeployOpen scopes, tests, reports and retests AWS environments
DeployOpen runs security testing for self-hosted and cloud-hosted environments, including AWS penetration testing methodology and the standards behind it. We agree scope in writing before work starts, then test within the AWS testing policy and the shared responsibility model, and document findings so your team and auditors can follow them.
How we scope
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before any testing starts.
- We confirm which AWS accounts, regions and services are in scope and check each against AWS's list of services testable without prior approval.
- We flag any command and control, DDoS-style, phishing or other simulated activity that needs a prior AWS request, and agree who files it.
How we build
- We structure the test around NIST SP 800-115 planning, testing and analysis, with the OWASP Web Security Testing Guide for the web application layer.
- We separate configuration review from attacker-path testing so findings map to the responsibilities the customer owns under the shared responsibility model.
- We confirm that any tool with denial-of-service capability has that capability disabled and validated before testing begins.
How we hand over
- Each finding is documented with affected resource, severity, evidence, business impact and a specific remediation step your engineers can act on.
- Reports are written so your security team, compliance lead and external auditor can trace each finding to the scope and method agreed.
- We walk through results with your engineers and agree which findings are fixed, accepted or deferred before the report is closed.
How we support
- After fixes are applied, we retest the affected findings and document whether each one is resolved.
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial engagement.
- Ask us to confirm retest scope, timing and any AWS notice requirements in the written engagement before work begins.

