logo svg
logo

November 29, 2026

Updated: November 29, 2026

Cloud Penetration Testing: Scope, Provider Rules, and How Testing Differs on AWS, Azure, and GCP

What the provider secures and what you test, the rules of the three large providers, the five test areas, and the scoping inputs.

Mohammed Khalil

Mohammed Khalil

Featured Image

Cloud penetration testing is a manual attack simulation against the parts of a cloud environment that you configure: identities, storage, networks, virtual machines, containers and serverless code. The provider's own infrastructure is not yours to test.

That split decides the scope, and each provider publishes rules for it. This page covers the split, the rules of the three large providers, the five areas a test covers and what to prepare.

What the Provider Secures and What You Test

AWS describes the split in its shared responsibility model. AWS is responsible for "protecting the infrastructure that runs all of the services offered in the AWS Cloud", and the customer's share "will be determined by the AWS Cloud services that a customer selects." The same idea applies on Azure and Google Cloud: the provider secures the platform, and you secure what you configure on it.

LayerWho secures itIn your penetration test?
Data centers, hardware, hypervisorProviderNo
Internals of managed servicesProviderNo
Identity and access configurationYouYes
Network configuration and exposureYouYes
Operating systems on your virtual machinesYouYes
Storage settings and the data in themYouYes
Containers, clusters and serverless code you deployYouYes
Your applicationsYouYes, usually as a separate application test

The more a service is managed for you, the less there is to test below the configuration. With a managed database, the test is about who can reach it and with what rights, not about the database server.

Provider Rules: AWS, Azure and Google Cloud

All three providers let you test your own resources without asking first. The limits differ.

ProviderApproval needed?Limits stated in the policy
AWSNo, for the services on its permitted listNo testing of AWS infrastructure or the services themselves. Denial-of-service activity falls under a separate DDoS simulation testing policy. Testing that includes command and control needs prior approval
Microsoft AzureNoFollow the Microsoft Cloud penetration testing rules of engagement. No access to other customers' data or systems
Google CloudNoFollow the Acceptable Use Policy and Terms of Service. Tests must affect only your own projects
What AWS, Azure and Google Cloud allow in a penetration test without prior approval, and the main limit each one sets.

The wording is worth reading in the source. The AWS penetration testing policy says: "Customers are not permitted to conduct any security assessments of AWS infrastructure or the AWS services themselves." Microsoft's Azure penetration testing page states: "As of June 15, 2017, Microsoft no longer requires pre-approval to conduct a penetration test against Azure resources." Google's security FAQ says you are "not required to contact us", and that tests must "only affect your projects".

Provider approval is one thing. Written authorization from the owner of the accounts is another, and it is always needed. Resilience tests such as load or denial-of-service simulation have their own provider rules and should be agreed separately.

The Five Areas of a Cloud Penetration Test

Five areas of a cloud penetration test: identity and access, storage, network exposure, compute and metadata, containers and serverless.

A sixth question runs through all five: what did your logging see? Ask the testers for a timeline of their main actions so you can compare it with your alerts.

How Testing Differs by Cloud

The five areas are the same on every provider. The names, the defaults and the escalation paths are not, and that is where provider-specific skill matters. Each platform has its own guide:

If you run more than one cloud, scope each one on its own and then test the connections between them: shared identities, peered networks and pipelines that deploy to both.

Scoping Inputs to Prepare

InputWhy the tester needs it
Accounts, subscriptions or projects in scopeSets the boundary and confirms ownership
The organization structure above themPermissions are often granted at a higher level
Starting identity for the testNone, a low-privilege user, or a read-only reviewer role
Services in useDecides which provider rules and which skills apply
Connections to on-premises networks and other cloudsDecides whether those paths are tested
Production or a copySets how careful the test has to be
Third parties with accessManaged service providers may need to agree
Test window and an emergency contactKeeps production safe

For the scope document itself, see our guide to penetration testing scope.

Cloud Penetration Test vs Configuration Review

A configuration review, or a CSPM tool, compares settings with a benchmark and lists what is weak. A penetration test starts from an identity or an exposed service and shows how far it gets by joining weak settings together. The review is wide and repeatable. The test is narrower and shows consequences. Most teams need both, and the review is the cheaper one to run often. For the tooling used in testing, see cloud penetration testing tools.

FAQs

Do I need the cloud provider's permission for a penetration test?

Not for your own resources on AWS, Azure or Google Cloud, within the limits each policy sets. You do need written authorization from the account owner.

Can a penetration test target managed services?

It can test how you have configured them: who can reach them and with what rights. It cannot attack the service itself, which belongs to the provider.

How is a cloud penetration test different from a network penetration test?

A network test follows packets between hosts. A cloud test follows permissions between identities. Both look at exposure, but in the cloud a single over-wide permission can matter more than an open port.

How often should a cloud environment be tested?

On a regular cycle and after major changes, such as a new account structure, a migration or a new way for workloads to get credentials. For how test evidence is used in audits, see cloud compliance requirements.

Planning a Cloud Penetration Test

Write down the accounts in scope, the structure above them and the identity the testers start from. Those three lines settle most of the effort. DeepStrike provides manual cloud penetration testing across AWS, Azure and Google Cloud. If you are comparing providers, see our list of cloud penetration testing companies.

About The Author

Mohammed Khalil is a Cybersecurity Architect at DeepStrike, specializing in advanced penetration testing and offensive security operations. With certifications including CISSP, OSCP, and OSWE, he has led numerous red team engagements, focusing on cloud security, application vulnerabilities, and adversary emulation. His work involves dissecting complex attack chains and developing resilient defense strategies for clients in the finance, healthcare, and technology sectors.

Sources and References

background
Let's hack you before real hackers do

Stay secure with DeepStrike penetration testing services. Reach out for a quote or customized technical proposal today

Contact Us