Cloud penetration testing checks whether the way you have configured and connected your AWS, Azure or Google Cloud services lets an attacker go further than you intended. It covers your side of the shared responsibility model, where the most serious findings are usually identity problems.
Most modern products run in AWS, Microsoft Azure or Google Cloud, and the cloud has changed what attackers go after. Instead of exploiting a single unpatched server, they look for an identity with slightly too much access, a storage bucket that’s more open than intended, or a CI/CD pipeline that can deploy anything.
What does a cloud penetration test cover?
A cloud penetration test covers the parts of the cloud you configure: identities and permissions, network rules, storage settings, secrets, and the workloads you deploy. Cloud providers work on a shared responsibility model, which splits security duties between provider and customer. The provider secures the physical data centres, the hypervisors and the managed service platforms, and you secure everything you configure on top.
The test stays on your side of that line and doesn’t attack the provider’s infrastructure. It asks whether the way you’ve configured and connected your cloud services lets an attacker go further than you intended.
In practice, most cloud tests combine two approaches:
- A configuration review is a read-only look across your accounts, subscriptions or projects for risky settings: public storage, broad network rules, missing logging, weak identity policies.
- Authenticated attack-path testing starts from a realistic foothold, such as a compromised developer credential or a vulnerable workload. From there, testers try to escalate privileges and reach sensitive data, just as an attacker would.
The review gives breadth, and the attack-path testing shows which issues actually matter and how they chain together.
Do AWS, Azure and Google Cloud allow penetration testing?
Yes. All three major providers let you test your own resources without asking permission first, and each one also publishes rules you must follow. The summaries that follow were accurate at the time of writing. Policies change, so always read the current version before testing.
AWS
AWS says customers can carry out security assessments or penetration tests of their AWS infrastructure without prior approval for a published list of services. That list includes common services such as EC2, RDS, Aurora, Lambda, API Gateway, CloudFront, Elastic Load Balancing, ECS and Fargate.
AWS explicitly prohibits some activities, including:
- Denial-of-service and simulated denial-of-service testing, including port, protocol and request flooding
- DNS zone walking through Route 53 hosted zones, DNS hijacking and DNS pharming
- Subdomain takeover and S3 bucket takeover
Some activities need advance notice through AWS’s simulated events form, including red team exercises, phishing simulations and malware testing. AWS asks for that at least two weeks ahead. DDoS resilience testing has its own separate policy.
Check the current AWS penetration testing policy before you start.
Microsoft Azure
Microsoft stopped requiring pre-approval for Azure penetration testing in 2017. Testing must follow the Microsoft Cloud Unified Penetration Testing Rules of Engagement, which Microsoft treats as the authoritative source.
You can test Azure resources you own, and third parties can test with explicit written authorisation from the owner. Prohibited activities include:
- Denial-of-service testing of any kind, including simulating it
- Accessing or testing tenants, data or storage you don’t own or aren’t authorised to test
- Using credentials or secrets that aren’t your own, including publicly leaked ones
- Network-intensive fuzzing that generates excessive traffic
- Phishing or social engineering against Microsoft employees, or using Microsoft services to phish others
- Going beyond an initial proof of concept if you find a vulnerability in Microsoft’s own services. You must stop and report it to Microsoft instead
Microsoft also notes that its automated abuse detection may flag legitimate testing. Keep your written authorisation handy so you can respond quickly if that happens.
Read Microsoft’s penetration testing rules of engagement and its Azure penetration testing guidance before you start.
Google Cloud
Google says you don’t need to notify it before penetration testing your Google Cloud projects. You must follow the Google Cloud Acceptable Use Policy and Terms of Service, and make sure your tests affect only your own projects and no other customers.
Check Google’s current penetration testing guidance for Google Cloud before you start.
AWS, Azure and Google Cloud testing rules compared
| AWS | Azure | Google Cloud | |
|---|---|---|---|
| Pre-approval to test your own resources | Not needed for listed services | Not needed | Not needed |
| Rules to follow | AWS penetration testing policy | Microsoft Cloud Unified Rules of Engagement | Acceptable Use Policy and Terms of Service |
| Denial-of-service testing | Prohibited (separate DDoS simulation policy) | Prohibited | Tests must only affect your own projects; check the AUP |
| Extra notice needed for | Red team, phishing and malware simulations, among others | Not required | Not required |
Identity and access: where cloud attacks happen
Cloud attackers move between identities, where attackers in on-premises networks move between machines. A role, a service account or a managed identity is often worth more to an attacker than any single server.
That’s why most high-impact cloud findings are about identity and access management (IAM). A permission that looks harmless on its own can, combined with another, become a path to full control, as how small cloud IAM permissions become admin shows in more detail.
Common IAM attack paths
These patterns appear across all three providers, under different names:
- Permission to change permissions. An identity that can edit policies, attach roles or add itself to a group can usually grant itself anything.
- Passing a powerful role to something you control. If an identity can create a function, VM or container and attach a more privileged role to it, it can run code with that role’s access.
- Overly broad role assumption or impersonation, such as trust policies that let too many principals assume an admin role, or service accounts that too many users can impersonate.
- Credentials inside workloads: access keys in environment variables, instance metadata reachable through a server-side request forgery (SSRF) vulnerability, or secrets stored in plain text in configuration.
- CI/CD with deployment rights everywhere. A pipeline identity that can deploy to production is a high-value target, and so is anyone who can change the pipeline. The CI/CD pipeline security guide covers how to narrow that access.
- Cross-account trust, where roles trust another account, partner or third-party tool more broadly than needed.
A tester’s job is to find these chains and prove them, safely. A finding that says “this developer credential can reach the production database in four steps” is far more useful than a list of hundreds of loosely related warnings.
Other areas a cloud test covers
Identity is the centre, but a good cloud test also covers:
- Storage exposure: buckets, blobs and snapshots that are public or shared more widely than intended.
- Network exposure: security groups and firewall rules open to the internet, exposed management ports, and missing segmentation between environments.
- Secrets management: where secrets live, who can read them, and whether they are rotated.
- Logging and monitoring: whether audit logs are enabled, protected from tampering, and actually watched.
- Kubernetes and containers: cluster permissions, exposed dashboards, privileged pods and how workloads get cloud credentials.
- Serverless: function permissions, triggers that accept untrusted input, and environment secrets.
How a cloud penetration test runs
A cloud penetration test runs in five stages, and our tests follow the same pattern across providers.
- Scoping: we agree which accounts, subscriptions or projects are in scope, which starting identities to simulate, and what is off limits.
- Configuration review: using read-only access, we review identity, network, storage, logging and workload settings against good practice and your own requirements.
- Attack-path testing: from the agreed starting points, we try to escalate privileges and reach sensitive assets, avoiding destructive actions.
- Validation: every finding is reproduced manually, and configuration issues that don’t lead anywhere are rated accordingly.
- Reporting and retest: you get a report showing each issue, the attack paths it enables, and how to fix it, followed by a retest once you’ve made changes.
You can read more about our approach on the cloud security testing page and in our methodology.
How to prepare for a cloud penetration test
Good preparation makes the test faster and the results more relevant.
Access
- A read-only role in each in-scope account, subscription or project, for the configuration review. Built-in read-only or security-audit roles are often enough.
- Starting identities for attack-path testing, for example a low-privilege developer account, or a workload identity similar to one an attacker might steal.
- Access that works before kickoff. Test the roles and any single sign-on before the first test day, because access problems are the most common cause of lost time.
Boundaries
- A list of every account, subscription or project in scope, and any explicitly out of scope
- Any production resources where even read-only activity needs extra care
- Third-party services connected to your cloud and how they should be treated
Context
- A short architecture overview or diagram
- Which data and systems matter most to the business
- How identities are managed: single sign-on, federation, break-glass accounts
- Any known issues you’d like confirmed or ruled out
What a cloud penetration test report should include
A useful cloud test report should give you:
- An executive summary that explains your overall exposure in plain language
- Each attack path, step by step, with evidence
- Configuration findings rated by their real impact
- Clear remediation for each issue, specific to your provider
- Retest results showing what’s been fixed
If you’re working towards SOC 2 or ISO 27001, cloud findings and their remediation also make strong evidence of vulnerability management in practice.
Summary
Cloud penetration testing is about the parts of the cloud you control, especially identity. All three major providers let you test your own resources without asking first, but each sets firm rules, and AWS and Azure explicitly prohibit denial-of-service testing. Prepare read-only access, agree realistic starting points, and list your boundaries clearly, and the test can focus on finding the paths an attacker would actually use.
If you’re planning a cloud test, contact us and we’ll help you scope it.
Frequently asked questions
Do we need to tell AWS, Microsoft or Google before a penetration test?
At the time of writing, no. None of the three needs notification before you test your own resources, as long as you follow its published rules. AWS asks for advance notice of some simulated events, such as red team exercises and phishing simulations. Always check each provider's current policy before testing, because these pages change.
Can a cloud penetration test break our environment?
A careful cloud penetration test shouldn't. Configuration review is read-only, and attack-path testing uses agreed starting points and avoids destructive actions. Anything that could change resources is agreed with you in advance, and AWS and Azure explicitly prohibit denial-of-service testing anyway.
What access do cloud penetration testers need?
Usually a read-only role in each account, subscription or project for the configuration review, plus one or more low-privilege identities to start attack-path testing from. We agree the exact permissions during scoping.
Is a cloud security posture tool enough on its own?
Usually not. Posture tools are excellent at flagging individual misconfigurations at scale, but they rarely show how several harmless-looking permissions combine into a path to admin. That chaining is where manual cloud penetration testing adds the most.
Can a cloud penetration test include Kubernetes and serverless?
Yes, where they are in scope. Managed Kubernetes, containers, serverless functions and CI/CD access are common routes into cloud environments and are often included in a cloud penetration test.
