Cloud penetration testing is different from testing a traditional network. There is still infrastructure to test, but the real perimeter is identity: who can call which API with which permissions. A single over-privileged role or leaked access key can expose more than any open port. This guide covers what a cloud pentest looks at on AWS, Azure and Google Cloud, what the providers allow you to test, how to scope an engagement and the findings that come up most often.
What the providers allow
AWS, Microsoft Azure and Google Cloud all allow customers to penetration test their own resources without asking permission first, within published rules. Those rules prohibit testing the providers' own infrastructure, denial of service and attacks on other customers, and some services have extra conditions. Read the current policy for each provider before testing, and make sure the testing firm follows it. Testing SaaS applications built by others, such as Microsoft 365 or Salesforce, is a different matter and usually limited to your own configuration.
The three layers of a cloud pentest
A complete cloud test covers three layers, and most real compromises chain them together.
- Configuration review: identity and access policies, storage permissions, network rules, logging and encryption, checked against benchmarks such as CIS and against how the environment is actually used.
- External testing: the applications, APIs and services your cloud exposes to the internet, tested as an outside attacker would.
- Assumed-breach testing: starting from a low-privilege foothold, such as a compromised container, a developer's access key or a web application flaw, and seeing how far the tester can get.
Scoping a cloud pentest
Give the testers a list of accounts, subscriptions or projects in scope, with read-only access for the configuration review and a defined starting point for the assumed-breach phase. Name the crown jewels, such as the customer database, the payment service or the production deployment pipeline, so testing focuses on paths to them. Agree testing windows for production, an escalation contact, and what happens if the tester finds evidence of a real compromise. Include infrastructure-as-code repositories where possible, because the same mistakes are cheaper to fix in a template than in a running system.
Findings that come up again and again
Across AWS, Azure and Google Cloud engagements, the same issues recur.
- Long-lived access keys in code repositories, CI variables or developer laptops, often with admin rights.
- Roles and service accounts with wildcard permissions that allow privilege escalation, for example by creating a new access key or attaching a policy.
- Storage buckets or blobs readable by anyone with the link, holding backups, exports or logs.
- Instance metadata that a web application flaw can reach to steal credentials, where IMDSv2 on AWS or equivalent protections are not enforced.
- Databases, Kubernetes dashboards or admin ports exposed to the internet.
- Logging disabled in some regions or easily turned off by a compromised admin.
- Cross-account trust that lets a test or partner account reach production.
Differences between AWS, Azure and Google Cloud
The principles are the same, but each platform has its own weak spots. On AWS, testers look hard at IAM policies, role trust relationships, S3 bucket policies and Lambda functions with broad roles. On Azure, much of the risk sits in Entra ID: app registrations with powerful permissions, guest accounts and role assignments at subscription or management group level. On Google Cloud, service account keys, the default compute service account and project-level IAM bindings are common paths. A tester who knows all three adjusts the approach to the platform rather than running one generic checklist.
How the cloud changes the attack path
In a traditional network, a tester moves from machine to machine. In the cloud, they move from identity to identity. A typical chain starts with a server-side request forgery flaw in a web application, uses it to read instance credentials, finds that the role can read a storage bucket of deployment scripts, extracts a key from those scripts and uses it to reach the production database. No single step looks critical in a scanner, which is why the assumed-breach phase matters.
Getting the most from the report
A good cloud pentest report shows each attack path end to end, not just a list of misconfigurations, so you can see which single fix breaks the most chains. Fix identity issues first: remove long-lived keys, narrow wildcard permissions and enforce MFA for every human. Then close public storage and exposed services, and make sure logging cannot be disabled by one compromised account. A retest confirms the paths are closed.
Our VAPT services include cloud configuration review and assumed-breach testing on AWS, Azure and Google Cloud, with the retest included. For ongoing hardening between tests, see our cloud services and our guide to cloud security posture for small teams.
Frequently asked questions
Do we need AWS, Azure or Google's permission to pentest?
How is a cloud pentest different from a network pentest?
Isn't a CSPM tool enough?
How long does a cloud pentest take?
See which cloud attack paths are open
We test your AWS, Azure or Google Cloud setup from the outside and from an assumed foothold, show each path end to end and retest after you fix.

