AWS Penetration Testing for MSPs

Ready to test a client's AWS accounts without touching independence?
Get a Pentest Quote
AWS Penetration Testing title card with a cloud icon in the MSP Pentesting brand style.

AWS penetration testing does not require you to email Amazon for permission, and MSPs are still filling in forms that stopped applying years ago. AWS publishes a Customer Support Policy for Penetration Testing that lists the services you may test without prior approval, and it's a long list. There are still things that need a request, and a short list that's off the table permanently. MSP Pentesting runs this work channel-only under your brand, which matters more in AWS than anywhere else, because you probably built the account you'd be testing.

Everything below was read off the AWS policy page itself, not off somebody's summary of it. That page moves: AWS revised it twice in August 2026 alone. So take this as a map of how the rules are shaped, then open the page and read the current version before you scope a job. Never quote a client from an article, including this one.

What you may test without asking

AWS says customers are welcome to carry out security assessments or penetration tests of their own AWS infrastructure without prior approval for a defined set of services. At our last reading, the permitted list covered EC2 instances, WAF, NAT Gateways and Elastic Load Balancers, RDS, CloudFront, Aurora, API Gateways, AppSync, Lambda and Lambda@Edge functions, Lightsail resources, Elastic Beanstalk environments, Elastic Container Service, Fargate, OpenSearch Service, FSx, Transit Gateway and Bedrock AgentCore.

You're also allowed to host your testing tooling inside AWS IP space or on another cloud provider. That removes the old argument about where the traffic originates.

Anything outside that list, you work out with AWS Support or your account representative first.

What still needs a request

Three categories, and the first one catches red teams constantly.

Command and control. All security testing that includes C2 requires prior approval. Not just the covert engagements. If your implant beacons, you're in scope for that rule.

Simulated events. Covert adversarial simulations, network stress and volumetric testing, DDoS simulation, iPerf, simulated phishing campaigns and malware testing all go through the Simulated Events form. Volumetric and DDoS work also has its own separate policy pages that you have to read before submitting.

Lead time. Simulated event requests go in at least two weeks before the start date. AWS says to expect a non-automated response within two business days of your initial contact. Two weeks is the constraint that wrecks schedules, so ask the question at scoping, not the week before.

What's prohibited outright

Short list, worth memorizing.

  • DNS zone walking, DNS hijacking and DNS pharming via Route 53
  • Denial of service, distributed denial of service, and simulated versions of either
  • Port flooding, protocol flooding, request flooding including login and API request flooding
  • S3 bucket takeover
  • Subdomain takeover

There's also a short list of services prohibited specifically for outbound penetration testing, which at that reading covered API Gateway and Bedrock AgentCore. Outbound means using the service to launch traffic at something else.

And the one that's absolute: you may not conduct security assessments of AWS infrastructure or the AWS services themselves. Your client's S3 bucket configuration is fair game. The S3 service is not. If you stumble into something in an AWS service during an engagement, you report it to AWS Security rather than proving it out.

One more clause that MSPs skip. Any vulnerability that's a direct result of AWS's own tools or services has to be conveyed to AWS Security within 24 hours of the test finishing. Put that in your process, not in somebody's memory.

The clause that's about you specifically

Buried in the policy is a single sentence: resellers of AWS services are responsible for their customers' security testing activity.

If you're reselling AWS, that's your name on whatever your client's vendor does in that account. It's worth a paragraph in your MSA, and it's worth knowing before somebody your client hired starts flooding an endpoint from an instance you're paying for.

AWS testing, green light or stop first. Left column can be tested freely: EC2, ELB, NAT and WAF, RDS and Aurora, Lambda and Lambda@Edge, ECS, Fargate and Beanstalk, CloudFront and AppSync. Right column means stop and check: anything with C2 traffic, DDoS or any flooding, simulated phishing campaigns, S3 or subdomain takeover, and the AWS services themselves.

The scoping mistake almost everybody makes

Here's the blunt version. An external network penetration test of an AWS environment usually finds very little, and MSPs keep selling exactly that.

The perimeter is a load balancer with three ports open and a managed TLS configuration. The instances are behind it, patched by your RMM, and there's a WAF in front. You'll get a report about a header. Meanwhile the actual risk is sitting in IAM.

Most AWS compromises aren't remote exploitation. They're a credential that shouldn't exist, holding a permission nobody reviewed, in an account nobody's inventoried.

Three testing modes, and the value is in the second two

External. Unauthenticated, from the internet. Cheap, fast, and it's the smallest part. Do it, don't sell it as the whole thing.

Authenticated configuration review. A read-only role, then a systematic walk through IAM policies and trust relationships, S3 and bucket policies, KMS key policies, VPC design and security groups, logging coverage, and the CI/CD path that deploys into the account. This is where the findings are. It overlaps heavily with a broader cloud security assessment, and if the client has more than one cloud, start there instead.

Simulated compromise. Start from a low-privilege principal, assume the phish worked, and see how far the permissions carry. That's the engagement that changes behavior, because the output is a chain rather than a list.

What we actually go looking for

IAM privilege escalation

The escalation paths in AWS are well documented and mostly boil down to a principal that can grant itself something. Passing a role to a compute service it controls. Creating a new version of a policy it can edit. Updating the code of a function that already carries a role. Chaining assume-role relationships across accounts. None of this is exotic, and static policy review misses it because each individual permission looks reasonable.

The instance metadata service

An application that fetches a URL an attacker controls, running on an instance where the metadata service still answers version one requests, hands over the instance role credentials. It's the oldest cloud finding there is and it's still there, usually on the one legacy instance that wasn't rebuilt. Enforce IMDSv2 and the whole class goes away.

Cross-account trust

MSPs create this exposure themselves during onboarding. A role in the client account trusting your account, with a wildcard principal or no external ID, is a confused deputy problem waiting for anybody who can guess an account number. Go audit the roles your own onboarding automation creates. We find them in our own clients' estates regularly.

Storage and keys

Public buckets are rarer than they used to be, because new buckets get Block Public Access on and ACLs disabled by default. What replaced that finding is bucket policies with over-broad principals, and KMS key policies that let a role decrypt things it has no business decrypting.

Kubernetes on EKS

Kubernetes penetration testing on EKS sits in an awkward split, and it's worth explaining to a client before you quote it. The control plane is managed by AWS, so it's AWS infrastructure and you don't test it. The nodes are EC2, so they're permitted.

What you actually assess is the boundary between Kubernetes and IAM. RBAC bindings that are broader than anyone believes. The mapping from service accounts to IAM roles, and whether a compromised pod inherits more than its workload needs. Whether pods can still reach the node metadata service and borrow the node instance profile, which is the single most common EKS escalation. Namespace isolation, admission control, and what a container escape would reach. Fargate removes the node from the equation. It does not remove the task role.

Five step diagram for scoping an AWS penetration test: inventory the accounts, get written authorization, run a read-only IAM review, escalate from a low privilege role, then report with the fix.

Paperwork, because AWS's policy isn't your authorization

This trips up good testers. AWS's permitted services list means AWS won't treat your traffic as abuse. It says nothing about whether you're legally authorized to test that account.

You still need written authorization from the account owner, naming accounts, regions and dates. If the environment touches a third-party SaaS platform or another tenant, that's a separate conversation with a separate signature. If your client is a subtenant of somebody else's AWS organization, the org owner has an interest too.

And tell the client's security team you're coming, or agree explicitly that you won't. GuardDuty raises findings when it sees API calls carrying user-agent strings from common penetration testing Linux distributions, so somebody is going to get an alert. That alert is either a planned detection test or a fire drill, depending on one email.

The independence problem, stated plainly

You built the landing zone. You wrote the IAM policies. You run the pipeline that deploys into it.

So you're the wrong party to certify that it's sound, and every framework that asks for testing says some version of that. Insurers ask. SOC 2 auditors ask. Clients are starting to ask.

Subcontracting the test keeps the independence and keeps the client relationship, which is the entire point of white-labeled pentesting. You keep the remediation work, which is the profitable half anyway.

What partners ask before an AWS engagement

Do we have to notify AWS before testing?

Not for the permitted services, as long as you stay away from the prohibited activities and there's no command and control involved. If your engagement includes C2, simulated phishing, malware testing, stress testing or DDoS simulation, you submit the Simulated Events form at least two weeks ahead.

Can we test a service that isn't on the permitted list?

You work it out with AWS Support or your account representative first. Don't assume silence is approval, and don't assume a service is covered because a similar one is.

What if AWS gets an abuse report about our test?

AWS forwards it to you. You respond with approved language describing the use case and a point of contact they can share with the reporter. Have that language written before the engagement starts, not during it.

Does a pentest cover the client's Kubernetes cluster?

Only if you scope it in, and it needs its own hours. EKS assessment is RBAC, the service account to IAM role mapping, pod access to metadata, and workload isolation. It is not the same work as testing the instances underneath, and quoting it as a rounding error on a network test is how you end up doing it for free.

Will AWS shut down our instances mid-test?

Not if you're inside the policy. The risks are the ones you create yourself, which is why the tool configuration clause matters: AWS requires that any tool with denial of service capability can have that capability disabled, and puts responsibility on you to validate it before pointing anything at an AWS asset.

Count the accounts, then count who can reach them

Pick your three largest AWS clients and answer two questions. How many accounts are actually in each organization, and who can assume a role into them from outside.

Most MSPs undercount both. That's the scope conversation, and it's a better opening than a perimeter scan that finds a missing header.

With the account list in hand, get a pentest quote. We'll read the policy on the day and tell you which of those services need a request before anybody starts.

Author

Sunil Kande

Pentest Expert

Sunil is a pentester focused on web and mobile security, specializing in finding deep vulnerabilities beyond surface-level testing. His approach combines manual analysis, reverse engineering, and creative problem-solving to uncover impactful security issues.

Join our MSP Partner Program

Want reseller pricing, sample reports, and partner resources?
Book a call with our team to get access.