Cloud: penetration test vs red team exercise

Choose a cloud penetration test to find and validate exploitable weaknesses in defined targets. Choose a red team exercise to test whether defenders detect and stop an objective-driven attack.

On this page

Cloud penetration test vs red team: which one to commission first

A penetration test finds and validates exploitable weaknesses across defined cloud targets, while a red team exercise tests whether defenders detect and stop an objective-driven attack. Commission the penetration test first if your cloud estate has not yet been tested for the weaknesses you already suspect, such as overly broad IAM roles, internet-facing APIs, or storage with weak access policies. The scope is a named list of accounts, subscriptions, projects, services and endpoints, written into a rules of engagement document. NIST SP 800-115 treats penetration testing as a target vulnerability validation technique that uses live exploits against production systems and data, so the rules of engagement, the rollback plan and the named contacts matter as much as the findings.

Commission a red team exercise first only when the security operations team has already been tested on those weaknesses. Otherwise, a red team mostly rediscovers gaps a penetration test would have found, and the result says little about detection. CIS Controls Safeguard 18.4 asks that security measures be validated after each test so that detections cover the techniques the testers used, which is a practical check on whether the SOC has closed the loop. Provider rules also set the timing. Under the AWS penetration testing policy, listed services can be tested without prior approval, but red, blue or purple team testing needs a request at least 2 weeks ahead, and any test that includes command and control needs prior approval. Google Cloud asks that tests affect only your own projects and follow its terms, so confirm each provider's current rules before you set a date.

Many mature programs run both, and NIST SP 800-115 notes that organizations often combine techniques to reach an in-depth assessment at an acceptable level of risk. Regulation can settle the question. Under DORA, Article 26 requires threat-led penetration testing at least every 3 years for entities their competent authority identifies, and TIBER-EU expects at least 12 weeks of active testing with mandatory purple teaming and no pass or fail result. If you may fall under either regime, scope the first exercise to meet it, because switching later means new rules of engagement, new notice periods and new authorizations. Before signing, ask the provider to state in writing the accounts and services in scope, whether command and control is included, the notice dates each cloud provider requires, how findings reach detection engineering, and what retest is included.

Cloud penetration test vs red team exercise, factor by factor

This table compares a cloud penetration test with a red team exercise across nine factors buyers usually ask about first. Read each row as a decision question: the penetration test answers which weaknesses are exploitable in agreed targets, while the red team tests whether defenders notice and respond. The main takeaway is that provider rules and authorization differ, so confirm both with the cloud provider and in writing before any test starts.

FactorCloud penetration testCloud red team exercise
Goal and question answeredFind and validate exploitable weaknesses. Question: which cloud paths can an attacker actually use?Test response. Question: can an adversary reach the objective without being stopped or noticed?
Defenders aware?Usually known to the sponsor. Confirm whether the SOC is told before testing starts.Covert by design. A small control group knows, and the SOC usually does not.
ScopeNamed cloud accounts, subscriptions or applications, with agreed targets and techniques.Objective-driven, may span identity, the cloud control plane, workloads and people within agreed limits.
Method at buyer levelScoped manual and tool-assisted testing of named targets, with each finding verified and reproduced.Multi-step attack chain toward an objective, using identity abuse and lateral movement, plus social engineering only where agreed.
Success measureValidated findings with severity, evidence and fix guidance, followed by a retest.Whether the objective was reached, and what defenders detected, when, and how they responded.
Provider rulesAWS lets you test listed services without approval, but C2 needs prior approval. Google needs no notice for your own projects.AWS needs a request at least 2 weeks ahead for simulated red team events. Microsoft bans phishing of its employees.
Typical triggerLaunch of a new cloud service, a compliance test cycle, or a significant configuration change.Leadership or board question about whether detection and response work across the cloud estate.
Best fitHardening a specific cloud application or account before launch, or meeting a scheduled testing requirement.Teams with mature monitoring that want to test detection across identity, control plane and workloads.
Main riskExploits run against production systems and data, which NIST SP 800-115 rates as high risk.Production disruption and scope creep if authorization and stop conditions are loosely written.

What cloud providers allow you to test without asking first

Each cloud provider sets its own rules of engagement, so the buyer has to read them before any test is scheduled. Under the AWS penetration testing policy, customers may run security assessments or penetration tests of their own AWS infrastructure without prior approval for a listed set of services. The list includes EC2, RDS and Aurora, CloudFront, API Gateway, AppSync, Lambda, Lightsail, Elastic Beanstalk, ECS, Fargate, OpenSearch Service, FSx and Transit Gateway. It covers those services only, so any scope that reaches an unlisted service needs a separate check with the provider before work starts. Map every host, function and endpoint in the scope document against that list, including serverless entry points such as Lambda, API Gateway and AppSync, and record which provider page you checked and on what date.

AWS also sets limits that apply even to listed services. Command and control (C2) testing needs prior approval even when the target service is on the list, so a red team plan that uses C2 must be cleared before the first beacon runs. AWS prohibits DNS zone walking, hijacking or pharming through Route 53, denial of service and DDoS, port, protocol or request flooding, and S3 bucket or subdomain takeover in customer testing. Simulated events such as red, blue or purple team testing, DDoS simulations, simulated phishing and malware testing need a request submitted at least 2 weeks ahead. This is the practical split between the two test types: a penetration test limited to listed services can proceed on standard terms, while a red team that adds C2 or simulated phishing has to start the approval process early enough to meet the 2-week lead time.

Microsoft's cloud penetration testing rules of engagement take a different shape. They prohibit DDoS attacks under all circumstances, phishing or social engineering of Microsoft employees, accessing data or tenants the tester does not own, and network-intensive fuzzing. They also require vulnerabilities found in Microsoft services to be reported to MSRC. Google Cloud's position is that customers do not need to notify Google before penetration testing their own Google Cloud infrastructure, but they must follow the Acceptable Use Policy and Terms of Service and make sure tests affect only their own projects. Confirm the current wording on each provider's page before you sign a statement of work, and check whether your planned phishing, C2 or fuzzing activity needs a request, a notice or a prohibition, then get the provider's position confirmed in writing.

How to choose the test path for a cloud estate

The path starts with the question the test must answer. Listed cloud targets point to a penetration test, while detection and response to an objective points to a red team. Both branches then check provider rules for the services in scope, such as the prior approval AWS requires for command and control testing. Next, check whether a framework or regulator requires annual or threat-led testing, then choose the test or combination. The path ends with a joint review that confirms detections cover the techniques used, as CIS Safeguard 18.4 asks.

Decision path from defining the question to a joint detection review.

What each approach finds in a cloud environment and what it misses

Both approaches test the same cloud estate, but they answer different questions and work under different rules. Each card covers what the test can show, what it cannot show, and what to confirm in writing before work starts. The provider boundary and the configuration baseline limit both, so neither result replaces the other checks.

Penetration test finds

A penetration test proves exploitability inside the services you list. Testers confirm flaws in in-scope workloads and applications, such as exposed storage or weak identity settings, and AWS allows testing of a listed set of services, including Lambda and API Gateway, without prior approval. An illustrative case: a server-side request forgery flaw in a customer web app reaches the 169.254.169.254 metadata endpoint and exposes cloud credentials, a risk the MCP security best practices describe and OWASP lists as API7:2023. Ask for the exploit chain and the retest evidence in the report.

OWASP API Top 10

Penetration test misses

A penetration test is bounded by the accounts, regions and techniques in its written scope, so it seldom covers every cross-account role trust or forgotten test account. Testers also do not measure whether your logging and alerting would notice them unless detection checks are in scope. Confirm the scope covers command and control, which AWS requires prior approval for, and every account that holds production data.

Red team finds

A red team exercise tests whether defenders notice and respond. In a cloud estate, that usually means a chain such as stolen credentials, an over-permissive role and movement across accounts, with the key output being which alerts fired and when. TIBER-EU tests produce no pass or fail result, so judge the exercise by its detection timeline and gaps. AWS requires a request at least 2 weeks ahead for simulated red team events, so build that lead time into the plan.

AWS testing policy

Red team misses

A red team pursues one or more objectives and follows the path that reaches them, so large parts of the estate go untested. Routes the team never tries stay out of the report, and a clean result does not prove the absence of weaknesses. Its findings also depend on the rules of engagement, so a team barred from techniques such as DDoS or network-intensive fuzzing will not test them. Ask what the team will not attempt and which systems sit outside the objective.

Shared responsibility boundary

Under the AWS shared responsibility model, AWS secures the infrastructure that runs its services, while the customer secures what it configures, such as data, operating systems and firewall settings, depending on the services chosen. Provider-side issues fall outside both tests, so neither will produce a finding your team can fix. Within your side, confirm in writing that the test stays inside your own accounts and does not touch other tenants or provider systems.

Shared responsibility model

Configuration baseline gap

Neither a penetration test nor a red team exercise checks every setting against a hardened baseline, because both sample attack paths. CIS publishes benchmarks for AWS (version 7.1.0), Azure (6.0.0) and Google Cloud (5.0.0), and a separate configuration review checks your accounts against those controls. Confirm in scope whether that review is included, since a penetration test or red team exercise will not replace it.

CIS AWS benchmarks

What you receive from each test

This table compares what each approach hands you at the end of the engagement, row by row, so you can check the outputs before you sign. Read the penetration test column for issue-level detail and the red team column for the attack path and defender response. Confirm each row in the written scope, since deliverables, retest and any purple review are set per engagement.

DeliverablePenetration testRed team exercise
Scope and rules of engagementNamed accounts, services, test windows and exclusions. AWS needs prior approval for any command and control testing.Objective, threat scenario, permitted techniques and exclusions. AWS asks for at least 2 weeks' notice of red team simulations.
Findings report with validated issuesManually confirmed issues with affected assets and reproduction steps. PCI SSC guidance says an automated scan alone does not count as a penetration test.Fewer findings, chained toward the objective. Individual issues may be listed less exhaustively than in a penetration test.
Evidence of exploitationProof of exploitation for each validated finding, such as captured output or screenshots, within the agreed scope.Evidence that the objective was reached, such as access paths and systems touched, under the agreed rules.
Attack narrative and timelineMostly per-finding write-ups. Ask whether a consolidated attack path and timeline are included.Timestamped attack path from first foothold to objective. This is the core output for defenders reviewing detection.
Detection and response reviewLimited unless logging and alerting checks are added to the scope.Records which steps defenders detected, alerted on or escalated, and when, if the rules allow that to be measured.
Remediation guidance and retestFix guidance per finding. Confirm in the written scope whether a retest is included and how it is run.Fix guidance for technical and detection gaps. Confirm whether a retest is included in the written scope.
Joint purple reviewNot a standard output. Ask whether a walkthrough with defenders is included in the scope.Central to TIBER-EU, which requires purple teaming. For other exercises, confirm a joint review is in scope.
Attestation or pass/fail resultConfirm with the provider whether any pass or fail output is produced. DeployOpen does not issue audit reports, attestations or certifications.The ECB states TIBER-EU tests produce no pass or fail result. Attestations come from independent auditors and certification bodies.

What drives cost and duration in a cloud penetration test vs red team exercise

Cost and duration in cloud testing follow the scope agreed in writing before work starts. DeployOpen publishes no price list, so a quote follows that written scope. The six drivers below show who is paid for what, which work is one-time, and which work recurs each year.

Cloud scope and asset count

Accounts, subscriptions, projects, regions and services drive the largest share of effort in both formats. Each added environment needs its own enumeration, access setup and findings, so scope growth raises cost. Under the shared responsibility model, the provider secures the underlying cloud while your team owns configuration, so name the customer-configured services in writing and list which environments are production. Confirm that the scope includes staging and shared services, since identity providers and logging accounts often sit outside the application account.

Shared responsibility model

Provider notice and approval

Provider rules set the calendar before any tester touches the environment. AWS lets you test listed services such as EC2, Lambda, API Gateway and ECS without prior approval, but simulated events such as red, blue or purple team testing need a request at least 2 weeks ahead, and any test that includes command and control needs prior approval. Google Cloud does not require notice for your own infrastructure, though tests must affect only your own projects. Microsoft prohibits DDoS under all circumstances, which removes flooding from any red team plan.

AWS testing policy

Red team objectives and target complexity

A red team is shaped by its objective and paths and the paths the team must test to reach it, such as a data store, a privileged role or a deployment pipeline. Each added objective, social engineering vector or physical access attempt adds planning, deconfliction and reporting work. Define the success criteria, allowed techniques and stop conditions in the rules of engagement, and ask whether the quote covers one objective or several.

Detection validation and purple teaming

CIS Safeguard 18.4 asks that security measures be validated after each test so detections cover the techniques the testers used. In a red team, that means checking whether the security operations team alerted, how fast, and on which log source. A purple teaming session replays selected techniques with defenders, which adds workshop time after the report is delivered. Confirm whether detection validation sits in the written scope or is priced as a separate phase.

CIS Control 18 spec

Retests and remediation support

A retest confirms that each fixed finding no longer reproduces, and it is typically scoped as a separate, bounded step. Remediation support, such as help with IAM policies, network rules or storage settings, adds engineering time that many quotes list apart from the test itself. Ask how many retest rounds are included, how findings are re-verified and who owns each fix, since your team may need to change production settings the tester cannot access.

Recurring cadence and quote requests

CIS Safeguards 18.2 and 18.5 ask for external and internal penetration tests at least annually, so a single red team exercise rarely covers the full yearly cycle. Retainers cover ongoing testing and upgrades, which turns one engagement into a recurring line item with its own scope. Before you sign, request a quote that names the scope, rules of engagement, notice dates, tester qualifications and success criteria, so each price line traces to a written decision.

When compliance frameworks call for each test

Several frameworks set a recurring penetration testing cadence. CIS Controls v8.1 Safeguards 18.2 and 18.5 ask for external and internal penetration tests at least annually, and Safeguard 18.4 asks you to validate security measures after each test so that detections cover the techniques the testers used. A scheduled cloud penetration test therefore meets the annual cadence only if it covers both the internet-facing edge and the internal side of your cloud accounts. For payment environments, the PCI SSC penetration testing guidance describes the work as essentially a manual process and states that running an automated tool alone does not satisfy the requirement. Ask your assessor whether a cloud configuration scan, a red team exercise, or a manual penetration test will be accepted as evidence for each control.

NIST and European rules ask for different depths. NIST SP 800-53 Rev. 5 control CA-8, Penetration Testing, includes enhancements for an independent team and for red team exercises. SP 800-53B selects CA-8 and CA-8(1) only in the high baseline, so teams outside that baseline should confirm whether the enhancements apply to their systems. DORA Article 25(1) lists test types that financial entities are expected to include in their testing programs, such as vulnerability assessments, scenario-based tests and penetration testing. Article 26 adds threat-led penetration testing at least every 3 years for entities their competent authority identifies. The January 2025 TIBER-EU framework requires at least 12 weeks of active testing and mandatory purple teaming, and it produces no pass or fail result.

Where no framework applies, the choice is yours. A penetration test gives a bounded, report-driven view of the findings in its scope, while a red team exercise tests whether your defenders notice and respond to an objective-driven attack. The frameworks above do not pick one test for every organization, so the test you buy should answer the question your assessor or board is asking. Before signing a statement of work, confirm with your assessor which test type they accept for each requirement and write that into the scope. Check the cloud provider's rules too: AWS requires a request at least 2 weeks ahead for simulated red, blue or purple team testing, while Google Cloud does not require notice before a penetration test of your own infrastructure.

Questions buyers ask before commissioning a cloud test

How much does a cloud penetration test or red team exercise cost?

Cost depends on what is in scope and how much work the provider does for each part, so there is no standard price to compare. The main components are the provider's planning, testing and reporting time, any retest after fixes, and your team's time for access, approvals and review. A red team adds objective setting, a longer active window, coordination with the cloud provider's rules and a joint review of what defenders saw, so it generally costs more than a penetration test covering the same accounts. Cost rises with the number of cloud accounts and regions, the number of services and identity roles, the use of production systems and whether social engineering is included. The engagement itself is one-time, while retests and continuous testing recur. Ask for a quote itemized by phase, with stated assumptions about access, the retest and the report format. DeployOpen does not publish a price list. Its engagements are fixed-scope, and a quote follows from the written scope.

How long does a cloud red team exercise take to run?

There is no fixed duration, because the length depends on the objective, the number of accounts and the notice rules each cloud provider sets. Confirm the timing against each provider's notice rules, then against the written scope. AWS requires a request at least 2 weeks ahead for simulated events such as red, blue or purple team testing, so the calendar starts before testing does. Microsoft and Google set different rules, so check each cloud the scope covers. AWS penetration testing policy lists its rules in full. Plan the schedule in phases: preparation and rules of engagement, active testing, close-out with a joint review, and reporting with any retest. Ask the provider to put the phase dates and the window in which testers may act into the written scope, along with the contacts who will be on call during that window.

What must our team prepare before a cloud test begins?

Expect to supply access, named people and decisions before testing starts. The list usually includes:

  • Accounts and roles: test identities with the access level the scope defines, in each cloud account or subscription in scope.
  • Named contacts: an engineering lead, a security contact and an escalation path, including who can halt testing.
  • Rules of engagement: signed limits on techniques, hours, targets, data handling and stop conditions.
  • Logging access: read access to cloud audit and detection logs, so defenders and testers can compare what was seen and what was done.
  • A staging copy: if production is sensitive, a copy with a similar configuration for exploit-heavy work.

Confirm each item in the written scope before work starts, and assign an owner to each one so that approvals do not delay the start date.

Can our own engineers run a cloud penetration test without a provider?

For a penetration test of listed AWS services, your team can often start without prior approval. AWS allows customers to assess listed services, including EC2, RDS, Lambda, API Gateway and ECS, without prior approval. Two limits apply. Any testing that includes command and control needs prior approval, and some activity, such as denial of service and S3 bucket or subdomain takeover, is prohibited. A red team is a different job. It needs a defined objective, clear rules and a joint review of detections, and an internal team can run one only if it designs those parts deliberately. If you hire a provider, ask whether the firm is CREST accredited and whether the individuals doing the work hold CREST certifications. CREST accredits member companies and certifies individuals in disciplines including security testing and red teaming, so ask for the names and certificates in writing.

Do we need a penetration test and a red team exercise, or just one?

The two answer different questions, so the choice depends on what you need to prove. NIST SP 800-115 notes that organizations often combine techniques to reach an in-depth assessment at an acceptable level of risk. It also suggests regularly scheduled network and vulnerability scanning interspersed with periodic penetration testing, so scanning covers the gaps between tests. Use a penetration test when you need a broad, reproducible list of exploitable weaknesses across cloud configuration, identity and applications. Use a red team exercise when the question is whether defenders detect and respond to a covert attack aimed at an objective. If you can choose only one now, a penetration test usually produces the broader fix list, while a red team tests detection and response. Add the second once the first has produced fixes that you can verify.

Will a cloud penetration test satisfy an audit requirement?

It depends on the framework, the control wording and the assessor, so confirm all three before you buy. A penetration test can serve as evidence for controls that call for periodic testing. CIS Safeguards 18.2 and 18.5 ask for external and internal penetration tests at least annually, and NIST SP 800-53 control CA-8 covers penetration testing, with CA-8 and CA-8(1) selected only in the high baseline in Release 5.2.0. PCI SSC guidance states that simply running an automated tool does not satisfy its penetration testing requirement, so the method matters. Ask the assessor, in writing, whether they accept the scope, method, tester qualifications and report format. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations.

Is it safe to run a penetration test against production systems?

It can be run safely only with a written risk plan. A penetration test uses real exploits against production systems and data, and NIST SP 800-115 classes that as high risk. Passive review techniques, such as configuration reviews, pose minimal risk by comparison. Write down the test window, the stop conditions and who can halt testing, the backup and restore status of each target, and how test data and any credentials found during testing are handled. Name the systems that are out of bounds, including shared services owned by third parties. Tell the monitoring team when testing starts so alerts are not mistaken for a live incident. A staging copy helps with exploit-heavy work, but it reflects production only as closely as its configuration, data and logging match. Confirm the risk plan with the provider and your change owner before the test begins.

Which cloud attack paths should a test cover at minimum?

Ask the provider to cover the paths that matter most for cloud estates, then confirm each one in the written scope. Four are worth checking:

  • Server-side request forgery against the cloud metadata endpoint at 169.254.169.254, which can expose cloud credentials. The OWASP API Security Top 10 lists this as API7:2023.
  • Identity and permission paths, including over-broad roles and reachable administrative settings.
  • Serverless and API entry points such as Lambda, API Gateway and AppSync, which AWS lists among services customers may test without prior approval.
  • Kubernetes workloads, measured against the CIS Kubernetes Benchmark and the Kubernetes Pod Security Standards, which define privileged, baseline and restricted policies.

Ask for the test cases mapped to these paths and for the evidence that each one was checked. A test that only lists open ports will not exercise these paths.

How DeployOpen scopes, delivers and supports cloud security testing

DeployOpen runs cloud security testing inside your own cloud accounts, so the test type and provider rules are agreed before any testing starts. Each engagement is fixed-scope, with targets, rules of engagement and deliverables agreed in writing first. Ongoing testing after the first engagement is available as a retainer.

How we scope

  • The written scope names cloud accounts, services and environments in bounds for the test.
  • Scope records each provider's testing policy, since AWS requires prior approval for command and control.
  • A red team scope also plans for AWS's request at least 2 weeks ahead for simulated red or purple team work.

How we build

  • Testers work inside your own cloud accounts, with logging and rules of engagement configured before testing starts.
  • AWS services on its listed set, such as Lambda and API Gateway, need no prior approval.
  • Denial of service, Route 53 DNS hijacking and S3 takeover tests are excluded, as AWS prohibits them.

How we hand over

  • Findings report, with evidence for each exploited path and the cloud configuration that enabled it.
  • Red team handover can map attacker steps to MITRE ATT&CK techniques, so defenders can check detections.
  • Retests of fixed findings are a scope item, so confirm whether yours is included.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the first engagement.
  • Cloud configurations change, so ask whether a retainer would re-run the test after major deployments.
  • Ask for the retainer scope in writing, including who runs retests and how cloud account access is removed afterward.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.