Skip to Content
Asterrr's Handbook
3 · Infrastructure security

Penetration Testing on AWS

Which services you may pen test without approval, what is banned, and when to file a simulated events request.

The decision: may you test this service without approval, or does it need a simulated events request?

Customers may run security assessments against their own AWS resources, within the shared responsibility model. AWS keeps a permitted services list that needs no prior approval, a prohibited activities list, and a form for larger simulated events.

Permitted without approval

GroupServices
ComputeEC2 instances, ECS, Fargate, Lambda and Lambda@Edge, Lightsail, Elastic Beanstalk
Network and edgeNAT Gateways, Elastic Load Balancers, CloudFront, WAF, Transit Gateway, Global Accelerator
Data and APIsRDS, Aurora, API Gateway, AppSync, OpenSearch Service, FSx
AIBedrock AgentCore

Anything not on the list needs a conversation with AWS Support or your account team.

Prohibited

  • DNS zone walking, DNS hijacking and DNS pharming against Route 53
  • DoS and DDoS, including simulated versions
  • Port flooding, protocol flooding and request flooding such as login or API flooding
  • S3 bucket takeover and subdomain takeover
  • Outbound penetration testing of API Gateway and Bedrock AgentCore

Tools with DoS features must have them turned off.

Simulated events

Red, blue and purple team exercises, command and control hosting, covert simulations, simulated phishing, malware tests and iPerf-style events need the Simulated Events form. Load and stress tests follow the separate stress test policy. DDoS simulation follows its own DDoS Simulation Testing policy. An approved DDoS test partner can run a simulation that meets the policy without prior AWS approval. Anyone else, or any test outside the policy limits, must submit the DDoS Simulation Testing form at least 14 days before the test.

Form content for the Simulated Events form. Dates, account IDs, assets, contacts and a detailed plan. Submit at least two weeks before the start date. AWS confirms receipt within two business days.

Exam signal

"Scan an EC2 instance or test a Lambda function for vulnerabilities": no approval needed. "Send a flood of requests to test DDoS resilience": not allowed as a normal customer test.

Exam trap

Older study guides say a request reply can take 7 days. The current Simulated Events form asks for two weeks of notice. The older note that APN partners can run DDoS tests is still broadly right, because approved DDoS test partners need no prior approval, but their tests must follow the DDoS Simulation Testing policy. Damage you cause to others remains your responsibility.

Further reading

On this page