Cloud Penetration Testing for AWS, Azure and GCP

A cloud penetration test is an authorised attack simulation against your own cloud environment: accounts, subscriptions, projects and identities. It shows which paths to data and admin rights actually work. For AWS, Azure and Google Cloud you generally do not need advance approval. You do have to follow the providers’ rules, and you may only test what you are responsible for. A clean scope determines how meaningful the results are, who bears liability and what the test costs.

What is a cloud penetration test, and how does it differ from a config review and CSPM?

A vulnerability scan finds known flaws automatically. Config reviews and CSPM tools check settings against rules. A penetration test chains individual findings into attack paths and proves the impact.

Here is an example from practice. According to its IAM policy, a developer account may attach a role to a function. The CSPM scan reports only an “overly broad permission”. In the pentest, we use exactly that permission to gain admin rights. A hint becomes a proven route to taking over the environment.

Bugshell offers config audits for cloud IaaS and penetration tests on one platform. They answer different questions. The audit shows where settings deviate. The pentest shows what an attacker makes of it.

For your compliance evidence, the test fits in as follows: ISO/IEC 27001:2022 A.8.8 covers technical vulnerabilities, A.8.29 covers security testing and A.5.35 covers independent review. A pentest report can serve as solid evidence for these controls. You can find more about the scope of services on our page on cloud penetration testing.

Where does my responsibility end in the shared responsibility model?

The basic principle is simple. The provider secures the cloud infrastructure. You secure what you configure, operate and expose within it: identities, data, network rules and applications. How the boundary shifts depending on the service model (IaaS, PaaS, SaaS) is set out in each provider’s documentation. Read it for the services you use.

This boundary defines the scope. You test what you are responsible for. The provider’s own infrastructure is off limits. AWS is explicit about this: customers may not test AWS infrastructure or AWS services themselves. Microsoft prohibits testing other customers’ tenants. Google allows testing only against your own projects.

In practice, this means a test examines your roles, your configuration and your applications. It does not examine whether the provider’s platform is secure.

Do I need approval from AWS, Azure or Google, and what is prohibited?

As a rule, you do not need advance approval for standard tests. Binding rules do apply, though. The table summarises them.

ProviderApprovalProhibitedReporting duties and special casesSource (as of)
AWSTests of Permitted Services without advance approval. The list has 16 entries, including EC2, RDS, Lambda, ECS, FargateDoS/DDoS including simulation, flooding, Route 53 zone walking, S3 bucket and subdomain takeoverC2 tests only with approval. Red/blue/purple team exercises, phishing and malware via the Simulated Events form, at least two weeks before the start. Findings made with AWS tools must be reported to AWS Security within 24 hours of the end of the testAWS Penetration Testing (17 Nov 2026)
AzureNo advance approval since 15 June 2017. Applies only to Azure, not to other Microsoft cloud servicesDoS (DDoS under all circumstances), other parties’ credentials even if publicly leaked, other customers’ tenants, network-intensive fuzzing, post-exploitation against Microsoft assetsIf you accidentally access another party’s data: stop immediately, notify MSRC, delete the data and note it in the reportMicrosoft Learn (24 Jul 2026), Rules of Engagement (3 Dec 2026)
Google CloudNo notification required. The Acceptable Use Policy and Terms of Service applyTests against other parties’ projectsReport vulnerabilities in Google services through the Vulnerability Reward ProgramCloud Security FAQ (3 Dec 2026)

A few points are worth knowing. At AWS, S3 and EKS are not on the Permitted Services list. For services that are not listed, you coordinate with AWS Support. In addition, API Gateway and Bedrock AgentCore are prohibited as a source of outbound testing.

At Azure, testing your own detection, Conditional Access and Intune MAM is explicitly encouraged. Test tenants should preferably include “MSOBB” in their name.

At Google, the Acceptable Use Policy and Terms of Service apply. Read the current versions before you test.

Provider rules change. Check the linked primary sources before the test starts.

If a service provider carries out the test, the following applies. At Azure, the resource owner must authorise the test explicitly in writing, documented in the service contract. Microsoft does not grant authorisation on behalf of customers. At AWS, you are liable for damage caused by testing and must ensure that the third party complies with the policy.

Which misconfigurations does a cloud pentest typically find?

The following table describes typical findings from our pentest experience. It deliberately includes no frequencies.

MisconfigurationImpactTest method
Overly broad IAM roles, privilege escalationA normal account turns into admin rightsAnalyse roles and permissions, reproduce escalation paths in practice
Publicly readable storageOutsiders read backups, exports or customer dataTest access from outside without logging in, review sharing settings
Reachable metadata service (IMDS) via SSRFTemporary credentials of the instance role can be retrievedTest the application for server-side request forgery, assess the role’s permissions
Long-lived access keys or service account keys in codeAnyone who knows the repository gets permanent accessSearch repositories, build configurations and container images
Open security groups or firewall rules on admin portsManagement services can be attacked from the internetCheck external reachability, compare rules against actual need
No separation of test and production accountsA mistake in the test system reaches productionAnalyse cross-account roles and trust relationships

We know two further situations well. In the first, a web application in the cloud is vulnerable to SSRF. Through the reachable metadata service, temporary credentials of the instance role can be retrieved. Whether that becomes a minor finding or full access depends entirely on the permissions of that role.

In the second case, a backup container is publicly readable. A startup had opened it for a data exchange and never closed it again. Findings like this come from pragmatism, not negligence.

Each cloud has its own focus areas. For AWS, we examine IAM policies, S3 and Lambda. For Azure, the focus is on Entra ID and storage keys. For Google Cloud, it is service accounts and their keys. For S3, the note on the Permitted Services list from the previous section applies.

What the test deliberately does not do: no DoS, no takeover of buckets or subdomains, no phishing without approval. This follows from the providers’ rules.

How does a cloud pentest work, and how do you define the scope?

The process has five steps. In scoping, we clarify objectives, environments and test depth. For authorisation, the resource owner confirms the test in writing. In the test itself, we attack the environment within the rules and document every path. The report describes findings with their impact and remediation. In the retest, we check whether your fixes work.

You define the scope by accounts, subscriptions, projects and identities, not by IP addresses. In the cloud, identities and roles are the attack path. An IP list would hide exactly these paths.

Before you commission a test, clarify these points:

  • Which accounts, subscriptions and projects are part of the test?
  • Which regions are included?
  • Which services are affected? At AWS: are they on the Permitted Services list, or is coordination needed?
  • Which test identities and privilege levels apply (black box or grey box)?
  • Do you have written authorisation from the resource owner, including for any third parties involved?
  • What is the test window, and who are the points of contact?
  • How do we handle accidental discoveries of other parties’ data?

Authorisation for third parties is not a formality. At Azure, you document it in the service contract. At AWS, liability stays with you.

Together with the retest, the report is suitable as evidence for ISO/IEC 27001:2022 A.8.29 and A.5.35.

Figure 1: How a cloud penetration test works

What this means for you

Proceed in this order:

  1. Take inventory of your accounts, subscriptions and projects.
  2. Check the provider rules for the services you use.
  3. Define the scope and the test identities.
  4. Clarify the written authorisation.
  5. Request the test through the configurator.

Costs depend mainly on the number of accounts, subscriptions and projects, and on the number of identities and roles. The number and type of services, the test depth (black or grey box) and the retest also play a part. Reporting requirements matter too, depending on whether the report is meant for investors, auditors or insurers. You will get concrete prices in the configurator. The duration depends on the scope and can only be stated reliably after scoping.

As a recommendation, not a requirement, new tests or retests make sense after a major architecture change. The same applies to a migration to a new cloud or region, a new core application, an investor due diligence or an upcoming ISO 27001 audit. On top of that comes a recurring cycle, which you agree with your pentest provider.

The NIS2 Implementation and Cybersecurity Strengthening Act (NIS2UmsuCG) has been in force since 6 December 2025. It requires affected companies to run effective risk management. A pentest can show that your measures work in practice.

Startups ideally test before launch and before due diligence. Mid-sized companies plan cloud workloads together with network tests and their ISO evidence.

The next step: assemble your cloud penetration test in the configurator. You can find details on our approach under more on Bugshell’s cloud penetration testing.

Frequently asked questions

How much does a cloud penetration test cost, and what does it depend on?

There is no fixed price. Costs rise with the number of accounts, identities and services, with the test depth and with the retest. You can work out your price in the configurator.

May I let an external provider test my cloud?

Yes, with explicit written authorisation from the resource owner. At Azure, you document it in the service contract. At AWS, you are liable for damage and must ensure that the third party complies with the policy.

Does the approval also cover services such as S3 or EKS?

At AWS, not automatically. S3 and EKS are not on the Permitted Services list. For services that are not listed, you coordinate with AWS Support. S3 bucket takeover is explicitly prohibited. The Azure approval applies only to Azure, not to other Microsoft cloud services.

How often should I have my cloud environment tested?

We recommend a test after significant changes and, in addition, on a fixed cycle. Typical triggers are an architecture change, a migration or an ISO audit. There is no binding requirement on frequency.

Sources

Similar Posts