What we test · Cloud

Cloud penetration testing

In one paragraph

Cloud penetration testing examines the part of AWS, Microsoft Azure or Google Cloud that you configure, and proves whether a mistake there lets an attacker reach data or take over resources. Most serious cloud issues are not software bugs but configuration: an identity with too many permissions, a storage bucket readable by anyone, or a network rule that exposes an internal service. The test follows each provider's published penetration testing rules and stays within your own accounts.

What the test covers

  • Identity and access management

    Users, roles, service accounts and their policies, looking for paths where a low-privilege identity can grant itself more. This is the cloud form of privilege escalation.

  • Storage exposure

    Buckets, blobs and file shares that are public, shared with too many principals, or reachable through signed links that never expire.

  • Network exposure

    Security groups, firewall rules and load balancers that put databases, admin consoles or internal APIs on the internet.

  • Compute and workload metadata

    Whether a compromised server, container or function can read cloud credentials from its environment and use them to move further.

  • Secrets handling

    Keys in environment variables, infrastructure code, container images or logs, and whether secret stores are locked down to the workloads that need them.

  • Logging and detection

    Whether audit logging is enabled in every region and account, and whether the test's actions show up where your team would look.

  • Cross-account and tenant trust

    Trust relationships with vendors, other accounts and CI/CD systems that could let one compromise spill into another environment.

What does the shared responsibility model mean for testing?

Every major cloud provider describes security as shared. AWS frames it as the provider being responsible for security of the cloud and the customer for security in the cloud. In practice: the provider secures the data centers, hardware and core services; you secure how you configure them, who can access them, and what you put inside them.

A cloud penetration test focuses on your side of that line. It does not try to break the provider's own infrastructure, which every provider forbids and which is not your risk to manage. It asks whether the way your team set things up gives an attacker a way in.

Who typically secures what in infrastructure-as-a-service
LayerProviderYouIn scope for a cloud test?
Physical data centers and hardwareYesNoNo
Core service software and hypervisorYesNoNo
Identities, roles and policiesProvides the toolsYesYes, central
Network rules and exposureProvides the toolsYesYes
Storage permissions and encryption settingsProvides the toolsYesYes
Operating systems, containers and your codeNo (for IaaS)YesYes

The split shifts with the service type. With managed databases or serverless functions the provider takes on more, but identity and data permissions always stay with you.

Do cloud providers allow penetration testing?

Yes, within published rules, and none of the three largest providers currently require approval for standard testing of your own resources:

  • AWS publishes a list of services customers may test without prior approval. It prohibits activities such as denial-of-service, flooding, DNS zone walking against Route 53 and subdomain or bucket takeover, and asks for advance notice of certain simulated events like red team exercises.
  • Microsoft Azure has not required pre-approval since 2017, but testers must follow the Microsoft Cloud Unified Penetration Testing Rules of Engagement, which ban denial-of-service and testing tenants you do not own.
  • Google Cloud states customers do not need to contact Google before testing their own projects, provided they follow its Acceptable Use Policy and Terms of Service and affect only their own projects.

These policies change, so the test plan cites the current version at the time of scoping.

How is a cloud test scoped, and what access is needed?

Cloud tests are usually a mix of two angles. An outside-in pass looks at what is exposed to the internet. An assumed-breach pass starts from a set of limited credentials (for example, the permissions a single developer or a single compromised workload would have) and tries to escalate. The second angle is where most impactful cloud findings come from, because it reveals how far one leaked key would go.

  1. List the accounts, subscriptions or projects in scope, and which are production.
  2. Provide a read-only auditing role so configuration can be reviewed across all regions.
  3. Provide one or more low-privilege starting identities for the assumed-breach pass.
  4. Agree what must not be changed or deleted, and which actions need a call first.

How are cloud findings proven and fixed?

Configuration tools list hundreds of warnings; most teams cannot tell which ten matter. A cloud penetration test turns that list into attack paths: this role can update that function, which runs as an identity that can read the customer database. In Brexa's Prove stage an operator walks the path and records each step. Fixes then target the link that breaks the chain most cheaply, often a single overly broad policy following the principle of least privilege. Verify replays the path afterwards to confirm it no longer works.

Two ways to engage

Test this surface once with a one-time vulnerability assessment, or keep it under continuous testing with autonomous agents. Either way every finding is reproduced by a person before it reaches you, and closes only after a retest shows the original attack fails.

Frequently asked questions

Is a cloud security posture tool the same as a cloud pentest?

No. Posture tools continuously check configuration against rules and are valuable for coverage. A pentest proves which of those issues combine into a real path to your data, which helps decide what to fix first.

Can you test Kubernetes running in the cloud?

Yes, managed Kubernetes clusters are commonly included. The focus is on cluster permissions, exposed dashboards and APIs, and whether a compromised pod can reach cloud credentials.

Does a cloud test cover our SaaS tools like email and file sharing?

Not by default. SaaS tenants are usually covered under identity testing, since their main risks are around sign-in, sharing and admin roles.

References

  1. AWS Penetration Testing policy
  2. AWS Shared Responsibility Model
  3. Microsoft Learn: Penetration testing in Azure
  4. Google Cloud: Penetration testing FAQ

Book a cloud assessment.

Book a short scoping call. Nothing is tested until scope and rules of engagement are signed, and every finding comes with proof.