AWS penetration testing scope and rules of engagement

AWS penetration testing needs a written scope that matches AWS's permitted service list, avoids prohibited activities, and files Simulated Event requests at least two weeks before any red team, phishing or malware work.

On this page

Why AWS penetration testing scope decides what you can test

If a framework, a customer's security review, a product launch or an insurer requires an AWS penetration test, the boundaries of that test must be defined before you buy it. The scope decides which services can be tested, which activities are off limits and which simulated events need a separate request to AWS. Those decisions shape the effort, the timeline and the value of the findings, so they belong in the written scope rather than in a later discussion with the tester.

The risks a test addresses are usually concentrated in a few places: internet-facing services such as EC2 instances, load balancers and API endpoints, identities and roles that can be misused to reach data, storage that is exposed to the wrong audience, and serverless or API entry points such as Lambda behind API Gateway, where event data and execution roles can open paths to other resources. Server-side request forgery against metadata endpoints is a case where the scope must explicitly cover how the application reaches cloud credentials. A test that does not name these components in its scope will often report on whatever was easy to reach rather than on the paths that matter to your auditor or customer.

AWS's penetration testing policy shapes scope because it defines what a customer may test without prior approval, what needs a request to AWS, and what is prohibited in every case. Denial of service, port and request flooding, DNS manipulation through Route 53 and S3 bucket or subdomain takeover are excluded from customer testing. Services outside the permitted list need to be discussed with AWS Support or your account representative first. Before you sign, confirm with the provider which accounts, regions, services and IP ranges are in scope and whether any simulated event, such as a red team exercise or simulated phishing, requires a request that must be lodged at least two weeks ahead.

DeployOpen tests within AWS's published rules and writes the scope, exclusions and any required AWS requests into the statement of work before testing begins. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies use testing evidence to reach their own conclusions, so ask early which evidence your auditor or customer expects.

Which AWS services and accounts belong in an AWS penetration testing scope

An AWS test is bounded by three things: the services it touches, the accounts and assets it covers, and the configuration each party owns. The cards below cover those decisions in the order a scoping conversation usually reaches them, so the statement of work reflects what AWS permits and what your team controls.

Services that need no prior approval

AWS lets customers assess or penetration test a listed set of services without prior approval. The list includes Amazon EC2 instances, WAF, NAT Gateways, Elastic Load Balancers, Amazon RDS, Amazon Aurora, Amazon CloudFront, Amazon API Gateway, AWS AppSync, AWS Lambda, Amazon ECS, AWS Fargate, Amazon OpenSearch Service and Amazon Bedrock AgentCore. Scope each one by name in the statement of work, and confirm the list against the current AWS policy before signing, since AWS can change it.

AWS testing policy

Services off the permitted list

A service that is not on the permitted list is not automatically excluded, but it cannot be tested on the assumption that the list covers it. The customer must work directly with AWS Support or the account representative before testing starts. Ask your provider to flag every service in the environment that falls outside the list, and plan the engagement timeline around that review.

Account and asset inventory

Define the AWS accounts, regions and resources in scope by account ID, not by team name. Accounts that run shared services, logging or identity functions often carry the most risk and are easy to leave out. Ask the provider to confirm that every in-scope asset belongs to your organization, because testing a resource owned by another tenant or a third party is outside what you can authorize.

Shared responsibility boundary

Under the shared responsibility model, AWS secures the infrastructure that runs its services, while the customer secures what it configures on top, such as data, operating systems, firewall rules and identity settings. Findings that fall in the customer's share are actionable for your team, and findings in AWS's share go to AWS. Agree this split in writing so the report assigns each issue to the party that can fix it.

Shared responsibility model

Ownership and authority to test

Confirm who in your organization has authority to approve testing of each in-scope account, and name that person in the rules of engagement. When a contracted tester runs the work, the customer remains responsible for authorizing the scope and for its own compliance with the AWS Customer Agreement. Keep a written record of the approving individual for each account.

Scope limits from bandwidth and request rates

AWS states that security testing is limited by the services, network bandwidth, requests per minute and instance type involved. These limits shape how much traffic the tester can generate against each target and how long the work takes. Ask the provider to state the request rates and concurrency it plans to use for each in-scope service, and to hold to them during the engagement.

How to decide whether an AWS test activity needs an AWS request

The decision path starts with the planned activity and checks it against the prohibited list first, since prohibited activities cannot be run under any request. Activities that are not prohibited are then checked for whether they are a simulated event such as red team, phishing, malware or C2 hosting, which requires the Simulated Events form submitted ahead of time. If the activity is neither prohibited nor a simulated event, the last check is whether the target service is on AWS's permitted list, since services outside that list need engagement through AWS Support or the account representative before testing begins.

Decision path for checking a planned AWS test activity against AWS's rules.

What AWS penetration testing looks for in a cloud-hosted application

This table lists the weakness categories a scoped AWS test examines, what each looks like in an AWS target, and why it matters to the buyer. Read each row as a question to ask the tester: is this category in scope, and how will it be tested without prohibited activity? The main takeaway is that most of these categories sit in customer configuration, which is the part of the test the customer controls and must scope.

Weakness categoryWhat it looks like in an AWS targetWhy it matters and what to confirm
Server-side request forgery to instance metadataAn application fetches a URL supplied by a user and can be made to reach the instance metadata endpoint at 169.254.169.254 on EC2 or container hostsThe MCP security best practices warn this can expose cloud credentials. OWASP API7:2023 covers SSRF. Confirm the tester will check metadata access controls such as session-token enforcement without exfiltrating live credentials.
Broken object-level authorization on API Gateway and AppSyncResolvers or REST routes return records by identifier without checking that the caller owns the objectOften the most common API flaw found in cloud-hosted apps. Confirm the test uses two test accounts with the tester's own data, since accessing data the tester does not own is a limit in provider rules.
Over-privileged Lambda execution rolesA function's IAM role allows actions or resources far beyond what its code needs, so a single compromised function reaches other servicesWidens the impact of any injection or SSRF flaw. Confirm the test reviews role policies and permission paths as configuration evidence, not by taking actions against other accounts.
Exposed storage and misconfigured accessS3 buckets or other storage with public read or write, overly broad bucket policies, or disabled encryption and versioningFrequent source of data exposure. Confirm that checks are read-only and that the test excludes S3 bucket takeover, which AWS prohibits in customer testing.
Weak network exposure on EC2, ELB and CloudFrontSecurity groups open to the internet on management ports, unnecessary listeners behind load balancers, or origins reachable without going through CloudFrontDefines the external attack surface. Confirm the scope lists exact IP ranges and hostnames, and that no flooding or denial of service is part of the test.
Logging and monitoring gapsCloudTrail not covering all regions, missing log file validation, or API Gateway and Lambda logs not forwarded to a monitored locationWithout logs, the client cannot detect or prove a test or an attack. Confirm the report shows which findings were visible in logs, so the client can check detection as well as prevention.
Permissions on identities and cross-account trustRoles that trust broad principals, long-lived access keys, or unused permissions left after a project endsTurns a single foothold into wider account access. Confirm the account list in scope, since testing another customer's account or tenant is outside permitted testing.

How the AWS test scope changes for serverless, containers, AI and data services

Lambda, Lambda@Edge, API Gateway and AppSync are on the permitted list, so a serverless test can usually start without prior AWS approval. The scope question is less about the service and more about the event path: what triggers a function, what data arrives in the event, and what the execution role can reach. Write the scope around those paths and the functions behind them, and name each function, API stage and trigger.

  • Permitted entry points: API Gateway, AppSync, Lambda and Lambda@Edge are on the list, and CloudFront in front of them is too. Confirm that every function and API stage named in scope belongs to the client account.
  • Event triggers: Queues, storage notifications and schedules can carry attacker-controlled data into a function. A permitted API does not automatically bring every downstream trigger into scope, so list each one explicitly.
  • Execution roles: Test whether a function's role grants more access than its job needs, including reach into other data stores. Confirm in writing how permission testing is performed in the client account.
  • Metadata and SSRF: Functions that fetch URLs can be steered toward the instance metadata address 169.254.169.254, and OWASP lists Server Side Request Forgery as API7:2023. Ask whether live functions will be tested for this and how any credentials found would be handled.
  • Denial of service limits: Load tests against serverless endpoints must avoid denial of service and request flooding, which AWS prohibits. Agree request ceilings in the rules of engagement.

Check that the written scope names each function, API and trigger, and states whether execution roles will be tested for reachable resources.

How an AWS penetration test runs from scoping to retest

This sequence turns a commissioned AWS test into a bounded engagement: permitted services are confirmed, any simulated events are filed with AWS in time, testing runs inside agreed limits, and the findings are retested to show what was fixed. Each step ends with a document or check that the buyer can review before work moves on.

  1. Agree scope and rules of engagement in writing

    The buyer and the testing provider define the AWS accounts, regions, services, applications and IP ranges in scope, along with the activities that are excluded. The provider confirms it has authority to test those accounts and that the contract names who is responsible for each account. The step is done when a signed scope document lists the account IDs, assets, permitted activities, prohibited activities and contacts for both sides.

  2. Check each service against AWS's permitted list

    Every in-scope service is compared with the AWS penetration testing policy list of services that can be tested without prior approval, including EC2, RDS, Aurora, CloudFront, API Gateway, AppSync, Lambda, ECS, Fargate and OpenSearch Service. Any service not on that list is raised with AWS Support or the account representative before testing starts. The output is a service map that marks each asset as permitted, needs AWS engagement, or is excluded.

  3. Confirm prohibited activities are removed from the plan

    The test plan is checked against AWS's prohibited activities, including DNS zone walking, DNS hijacking and pharming through Route 53, S3 bucket and subdomain takeover, and denial of service or flooding in any form. Testers confirm in writing that no step in the plan uses these techniques. The check is complete when the plan carries a signed statement that the prohibited list has been reviewed against each test phase.

  4. File a Simulated Events request for any covered activity

    If the plan includes red, blue or purple team work, covert adversarial simulation, hosting command and control, simulated phishing or malware testing, the buyer submits a Simulated Events request to AWS. AWS expects the request at least two weeks before the start date and needs dates, account IDs, assets involved, contact details and a description of the planned events. The step closes when the submission is acknowledged and the approval status is recorded in the engagement file.

  5. Track AWS's first reply and any follow-up questions

    AWS expects to send a first reply that is not automated within two business days of a Simulated Events submission. The provider and buyer log that reply, answer any follow-up questions, and hold testing until the approval position is clear. Testing does not start on a simulated activity until the buyer has written confirmation that AWS has accepted the request. The output is a dated record of the exchange in the engagement file.

  6. Run testing within AWS's stated limits

    Testers work inside the limits AWS sets for security testing, which depend on the services involved, network bandwidth, requests per minute and instance types, and they stay within the AWS Customer Agreement. The provider follows the agreed method, based on public guidance such as NIST SP 800-115, and records the rate, tools and timing of each activity. The step is complete when the activity log matches the approved plan and no out-of-scope asset was touched.

  7. Report validated findings with evidence and fixes

    The provider writes up each validated finding with the affected asset, the weakness category, the evidence that confirms it, the risk to the business and a practical remediation. Findings that depend on the shared responsibility model are labeled so the buyer knows whether the fix sits with the customer's configuration or with AWS. The output is a written report reviewed with the buyer before it is treated as final.

  8. Retest fixes and close the engagement

    After the client makes changes, the provider retests the findings that were reported and records whether each is resolved, partly resolved or still open. Any new issues found during retest are scoped and reported separately. The engagement closes when the retest report is issued and the scope document, approval records, activity log and final report are archived together for the buyer's auditor or customer.

What drives the cost and duration of an AWS penetration test

This table lists each cost component of an AWS penetration test, who is paid for it, whether it is one-time or recurring, and what drives it up or down. Use it to check that a quote states the accounts, services, simulated events and AWS engagement it depends on. The main takeaway is that AWS's permitted-service list and its two-week Simulated Event lead time shape both the schedule and the effort more than the testing itself.

Cost componentWho is paid, and for whatOne-time or recurringWhat drives it, and what to ask for in a quote
Accounts and regionsTester, for scoping, access setup and testing each in-scope account and regionOne-time per test roundNumber of AWS accounts and regions in scope. Ask the provider to list each account ID and region named in the written scope.
Permitted versus non-permitted servicesTester, for extra analysis; AWS Support or the account representative for any service outside the permitted listOne-time, may add lead timeServices not on the permitted list need AWS engagement before testing. Ask whether the quote assumes only permitted services and who handles AWS requests.
Simulated Event requests (red team, phishing, malware)Tester, for form preparation and coordination; the client, for internal approvals and noticesOne-time per eventAWS requires a Simulated Events request at least two weeks before the start date, listing dates, account IDs, assets and contacts. Ask who prepares and submits the form.
AWS review waitNo fee; it adds calendar time to the engagementOne-time per requestAWS expects a non-automated first reply within 2 business days of a request (AWS penetration testing policy). Ask the provider to plan that wait into the start date.
Environments and test depthTester, for effort per environment, such as production versus stagingOne-time per test roundProduction testing needs tighter rate and bandwidth limits, since AWS limits testing by services, bandwidth, requests per minute and instance type. Ask how each environment is tested and what limits apply.
Identity and role testingTester, for reviewing roles, policies and privilege paths across accountsOne-time per test roundThe number of roles, trust relationships and federated identities drives effort. Ask whether identity testing is included or priced separately.
Retest roundsTester, for verifying fixes and updating the reportRecurring per round, usually agreed upfrontEach retest repeats work on the findings. Ask how many retest rounds are included, the time window for them and whether they are fixed or charged per round.
Retainers and continuous testingTester, for scheduled testing, upgrades and support beyond a single engagementRecurring under a retainerRetainers spread work across periods and may reduce per-test setup. Ask what is covered between tests and how AWS engagement for future events is handled.

Which compliance frameworks expect AWS testing and what they look for

Several frameworks and customer reviews ask whether AWS environments are tested, but they ask different questions. Some want scheduled access reviews and scanning, some want a configuration benchmark checked, and some want evidence for a buyer's security review. Knowing which one applies tells you how far the test scope must reach and which evidence you will need to hand over.

DORA access reviews and scanning

Delegated Regulation (EU) 2024/1774 sets ICT risk management expectations for financial entities. Article 21 requires access rights to systems supporting critical or important functions to be reviewed at least every 6 months, and Article 10 requires automated vulnerability scanning of those assets at least weekly. For AWS scope, list the accounts, roles and workloads that support those functions so the review and scanning cover them. Scanning is not a penetration test. A scan finds known weaknesses on a schedule, while a penetration test checks whether those weaknesses chain into real access, so commission both and keep the test scope in writing.

Regulation text

CIS AWS Foundations Benchmark

The CIS Amazon Web Services Foundations Benchmark at version 7.1.0 is a widely used configuration reference covering identity, logging, monitoring, networking and storage settings. It is not a test method on its own. Use it to define the configuration checks inside the assessment, and confirm which benchmark version and control set your auditor or customer expects. Penetration testing scope must still stay within AWS's permitted services and prohibited activities, so configuration checks and attack-path testing should be written as separate items in the statement of work.

CIS AWS benchmarks

Customer security reviews

Enterprise customers often ask a software provider for evidence that its AWS-hosted product was tested before they sign. They may ask which accounts and services were in scope, whether AWS approval was obtained for simulated events, and who performed the work. Write the scope so the customer can match it to the systems that hold their data. Keep the rules of engagement, excluded tests and dates in the record, because customers and their reviewers will compare them against the architecture they were shown.

Independent auditor reports

When a framework requires an attestation or certification, an independent auditor or certification body issues the report, not the tester. DeployOpen prepares systems, controls and evidence for those assessments, including test scope documents, findings, fixes and retest results, but it does not issue audit reports, attestations or certifications. Ask your auditor early which test evidence they accept, the period it must cover, and whether they need the AWS Simulated Event approvals referenced in the scope document.

Questions buyers ask before commissioning an AWS penetration test

Does an AWS penetration test need AWS approval before it starts?

It depends on the services in scope. AWS lets customers run security assessments or penetration tests of their own AWS infrastructure without prior approval for a permitted list of services, including Amazon EC2 instances, Amazon RDS, Amazon Aurora, Amazon CloudFront, Amazon API Gateway, AWS AppSync, AWS Lambda, Amazon ECS, AWS Fargate and Amazon OpenSearch Service. Services that are not on that list need a route through AWS Support or your account representative first. Any test that includes command and control (C2) needs prior approval. Confirm the current list and the exact conditions in the AWS penetration testing policy and with AWS for your account before you fix the scope in writing.

Which simulated events need a request to AWS two weeks ahead?

Simulated events need a Simulated Events request submitted to AWS for review. These include red, blue and purple team tests, covert adversarial simulations, hosting C2, simulated phishing, malware testing and iPerf testing. AWS asks for the request at least two weeks before the start date, with dates, account IDs, the assets involved, contact details and a description of the planned events. AWS expects a first, non-automated reply within 2 business days. DDoS simulations also fall under this route, but DDoS and flooding are prohibited in customer testing, so they should not be planned at all.

Can we run an AWS penetration test ourselves on permitted services?

Yes, for permitted services, an internal team can test its own AWS resources without prior approval, provided it follows the policy's prohibited activities. The responsibility question is separate from the approval question. Under the AWS shared responsibility model, AWS secures the infrastructure that runs its services, while your organization secures what it configures, including data, operating systems and firewall settings. When a contracted tester does the work, your organization still owns the authorization, the account scope and the remediation. Put the tester's authority, the account IDs and the permitted services into the contract so responsibility for each step is clear.

What drives the cost and duration of an AWS penetration test?

The main drivers are the number of accounts and regions, the number of services in scope, and whether any service needs AWS review before testing can start. Other factors include whether simulated events are included, since those add a request step and lead time, and the depth of the work, such as configuration review alongside manual testing. AWS states that security testing is limited by the services, network bandwidth, requests per minute and instance type involved, so the testing plan should state those limits. Ask any provider for a quote that lists accounts, services, excluded activities, approval steps and the reporting and retest terms. DeployOpen does not publish a price list, and a quote follows from the written scope.

What do we need to prepare before an AWS penetration test begins?

Prepare the scoping inputs that the AWS policy and your provider will ask for:

  • The AWS account IDs, regions and resources in scope, and any accounts that are excluded
  • An inventory of the services in use, mapped against the permitted list, with a note on anything that needs AWS Support or account representative review
  • Written authorization from the account owner, and named contacts for the test team and for incident handling
  • The planned test window, any simulated events and the date the Simulated Events request must reach AWS
  • Agreed limits on bandwidth, request rates and instance types, and a confirmed list of prohibited activities
  • Current configuration baselines, logging and monitoring settings so findings can be checked against them
Can an AWS penetration test include phishing or red team work?

It can, but not as a standard penetration test. Phishing, red team exercises and malware testing are simulated events. They need a Simulated Events request to AWS at least two weeks before the start date, and AWS reviews the request before testing begins. Confirm the scope, timing and contacts with AWS and with your own legal and HR teams first, because simulated phishing affects real staff. Adversary simulation of this kind is a separate engagement type from a configuration-focused cloud test, so agree its objectives, rules of engagement and stop conditions in writing before the request is submitted.

Which AWS testing activities are prohibited regardless of approval?

The AWS policy prohibits several activities in customer testing. These include DNS zone walking, DNS hijacking and DNS pharming via Route 53, S3 bucket takeover, subdomain takeover, and denial of service and distributed denial of service, whether real or simulated. Port flooding, protocol flooding and request flooding are also prohibited. Any scope document should list these as excluded, and the test plan should describe how the team detects and avoids them. Confirm the complete list in the current AWS policy before you sign the statement of work.

What an AWS penetration test report should contain and how retesting works

A useful AWS penetration test report shows what was tested under which rules, what was found, and whether fixes worked. The cards below cover the components a CISO, auditor or customer will look for, and how each one links back to the scope agreed before testing began.

Scope and rules of engagement as tested

The report should restate the agreed boundaries: account IDs, the AWS services tested, the test types run, and any Simulated Events approved through AWS. Compare this section with the signed scope. If a service was tested that is not on the permitted list, the report should show the AWS approval reference. Anything excluded, such as denial of service or subdomain takeover, should be listed as excluded so a reader can see what was not examined.

AWS testing policy

Findings with severity and affected assets

Each finding should name the affected AWS resource, such as a specific Lambda function, API Gateway stage or S3 bucket, along with its account and region. Severity should follow a stated method, and the report should explain how that rating was reached. Ask for a plain statement of the weakness category, the business impact, and the conditions needed for exploitation. Vague findings without asset names cannot be assigned to an owner.

Evidence without reproducible exploit steps

Evidence should prove a finding exists without giving a working attack recipe. Good reports use redacted screenshots, configuration excerpts, timestamps and the observed response type. Exploit code, payloads and commands belong in a restricted annex or in a live walkthrough with the client's security team. Confirm with the provider how sensitive material, such as credentials discovered during testing, is handled, stored and destroyed after the engagement.

Remediation tied to AWS configuration

Remediation guidance should name the AWS setting to change, such as an IAM policy condition, a security group rule, an API Gateway authorizer or a Lambda execution role, and the owner who makes the change. Where a finding maps to a control in the CIS AWS Foundations Benchmark or AWS Foundational Security Best Practices, the report should cite that control by ID so engineering can track it. Ask for fixes that account for the shared responsibility split, since customers own configuration in the cloud.

Shared responsibility model

Retest results with status per finding

A retest confirms whether each fix works. Each finding should carry a status such as open, fixed, partially fixed, accepted risk or not reproduced, with the date of the retest and the evidence used. Agree the retest window and whether it is included in the original fee before testing starts. Unresolved findings should keep their original severity so the record stays honest about what remains open.

Attestation-style letter for auditors

A letter for a customer or auditor should state what was tested, the period, the scope boundaries and the method at a high level, and the number of findings by status. It should not describe the environment as certified or compliant, and it should not claim an audit opinion. Auditors and certification bodies decide whether this evidence satisfies a framework such as a customer questionnaire, a regulator's expectation or an audit requirement. Confirm with your auditor which format they will accept before the test starts.

How DeployOpen scopes, tests, reports and retests AWS environments

DeployOpen agrees the boundaries of an AWS penetration test in writing before any testing starts, then runs the work inside those boundaries and documents what was tested. Engagements are fixed-scope, and the written scope sets the services, activities, accounts and timelines for the work.

How we scope

  • We confirm which AWS accounts, services and assets are in the written scope before any testing begins.
  • We check each service against AWS's permitted list and flag anything that needs AWS review first.
  • We record prohibited activities, including denial of service and DNS or subdomain takeover, directly in the agreed rules of engagement.

How we build

  • We plan the test around the agreed services, request limits and test windows so the work stays inside the boundaries.
  • We confirm which simulated events, such as phishing or red team exercises, need an AWS Simulated Events request and who submits it.
  • We record the account IDs, contacts and assets each test touches so the scope can be audited afterward.

How we hand over

  • We deliver a written report that maps each finding to the affected AWS service, account and configuration.
  • We document the scope actually tested, the activities performed and any boundaries that limited coverage.
  • We walk your security and compliance teams through the findings and the fixes they need to prioritize.

How we support

  • We retest agreed findings after fixes are applied and report which issues are closed and which remain open.
  • Ongoing support, upgrades and continuous testing are available as a retainer after the initial engagement ends.
  • Ask us to confirm in the quote which retest rounds, support hours and reporting formats are included in the fixed scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.