Do you need a penetration test for SOC 2?
SOC 2 never names a penetration test, yet almost every auditor asks for one. Here is why, when to run it, what to scope and how the report is read.
The short answer
SOC 2 does not contain a sentence that says "you must commission a penetration test". It is a criteria-based framework, so the question an auditor asks is not "did you buy a pentest?" but "how do you know your controls over vulnerabilities actually work?". In practice, an independent penetration test is the most common and most convincing answer to that question, which is why nearly every SOC 2 readiness checklist includes one and why many auditors will ask for the report by name. This guide explains where the expectation comes from, how it interacts with Type I and Type II timing, what to put in scope, how an auditor reads the report, and the mistakes that turn a finished test into an exception in the final report.
What SOC 2 actually says
SOC 2 reports are issued by licensed CPA firms against the AICPA Trust Services Criteria (TSC). The criteria are organised into five categories: security, availability, processing integrity, confidentiality and privacy. Security is the only mandatory category and is expressed as the common criteria, numbered CC1 through CC9. Each criterion is a short statement of an outcome, accompanied by points of focus that describe what an organisation might do to meet it. Neither the criteria nor the points of focus are a prescriptive control list, and the points of focus are explicitly not requirements. That design is deliberate: SOC 2 is meant to apply to a two-person SaaS start-up and to a global data-centre operator alike, so it describes outcomes and leaves the controls to you and your auditor.
The criteria most relevant to penetration testing sit in the CC7 series, which covers system operations. CC7.1 expects the organisation to use detection and monitoring procedures to identify configuration changes that introduce new vulnerabilities and susceptibility to newly discovered ones; its points of focus talk about vulnerability scanning and monitoring of infrastructure and software. CC7.2 covers monitoring system components for anomalies that indicate malicious acts or errors. CC7.3 through CC7.5 cover evaluating, responding to and recovering from security incidents. Alongside CC7, CC4.1 expects ongoing or separate evaluations to confirm that controls are present and functioning, and CC3 covers risk assessment, including the identification of threats and vulnerabilities. A penetration test is relevant evidence for all of these, because it is an independent evaluation that demonstrates whether the vulnerability-management process is catching what matters.
Why do auditors expect a penetration test when the criteria do not name one?
Because the alternative evidence is weak. If your only evidence for CC7.1 is a scanner dashboard, the auditor has to take the scanner's coverage and configuration on trust, and a scanner cannot evaluate the things that most often cause breaches in SaaS products: authorisation between tenants, business-logic abuse, broken multi-step workflows and token handling. An auditor who has seen a few breaches at SOC 2-attested companies knows this. Independent testing by a qualified third party, with findings, severities and evidence of remediation, is the kind of evidence an auditor can rely on without re-performing the work. It also appears in the control matrices most audit firms hand to new clients, so by the time you are in a readiness conversation the expectation is usually already set.
The honest position is this: a penetration test is not a legal requirement of SOC 2, but the absence of one will almost always prompt the auditor to ask what you have instead, and "a scanner" is rarely a complete answer for a system that processes customer data.
Vulnerability scanning and penetration testing are complements, not substitutes
Auditors generally want to see both. Scanning is continuous or frequent, automated and broad; it shows that known vulnerabilities in packages and configurations are detected and tracked between tests. Penetration testing is periodic, manual and deep; it shows that a skilled attacker, given the same starting position as a customer or an anonymous visitor, cannot reach data they should not. The scanning evidence supports the "ongoing" part of CC4.1 and the detection language of CC7.1; the penetration test supports the "separate evaluation" part and demonstrates real-world impact. Presenting one as if it were the other is the single most common reason a SOC 2 penetration-test control is written up as deficient, and it is covered in the mistakes section below.
Type I versus Type II, and what that means for timing
A SOC 2 Type I report describes your system and attests that your controls were suitably designed as at a single date. A Type II report attests that the controls were suitably designed and operated effectively over a period, commonly somewhere between three and twelve months. The difference changes when you should test and what the auditor will look for.
| Report type | What it attests | When to run the test | What the auditor looks for |
|---|---|---|---|
| Type I | Control design as at a point in time | Before the as-at date, close enough that the report still describes the current system | A recent report with scope matching the system description, and a plan or policy for remediation and periodic retesting |
| Type II | Control design and operating effectiveness over a period | Within the audit period, early enough that remediation and the retest also fall inside it | The report, evidence that findings were tracked and fixed, and retest evidence showing closure within the period |
| Renewal Type II | Operating effectiveness over the next period | At least once per period, matching the frequency your own policy states | Consistency with the stated frequency and with the previous year's remediation commitments |
The practical consequence for a Type II is that the penetration test should not be the last thing you do. If your period is six months and you test in month five, any critical finding will still be open when the period ends, and the auditor must report the control as it operated during the period, not as it stands after you fixed things. Testing in the first third of the period gives your engineers time to remediate and leaves room for a retest and closure report before fieldwork.
Where does the retest fit?
The retest is what turns a list of findings into evidence that your vulnerability-management process works. An auditor is not troubled by findings; a report with no findings on a non-trivial application is more suspicious than one with a dozen. What they need is a documented path from each finding to its resolution: a ticket, a fix, and independent confirmation that the fix holds. A closure or retest report from the same firm, dated within the audit period, is the cleanest form of that confirmation. ZeroTrace includes one free retest within 30 days of the report for exactly this reason, and the retest produces a separate closure report that can be handed to the auditor alongside the original.
What to put in scope
SOC 2 scope follows the system description: the boundaries you describe in Section 3 of the report are the boundaries the auditor will expect your penetration test to cover. For a typical SaaS company that usually means:
- The web application that customers log in to, tested with at least one account per user role so that role-to-role access control can be checked.
- The API behind it, including endpoints used by integrations and partners, tested with two tenants where the platform is multi-tenant. Cross-tenant data access is the finding that worries SOC 2 auditors and enterprise customers most.
- The cloud account or accounts the system runs in, assessed for identity and access management, storage exposure, network boundaries and secrets. This is where "infrastructure" lives for most SaaS firms, and it is the part most often left out.
- The mobile application, if customers use one, because it is a customer-facing channel to the same data and it introduces device storage and reverse-engineering questions the web test does not cover.
- Supporting services that touch customer data, such as a customer-facing status or billing portal, an SSO integration or a file-processing pipeline, where they are inside the described boundary.
Internal corporate IT, employee laptops and the office network are normally out of scope for a SaaS SOC 2 penetration test unless they are inside the system boundary. If an auditor or a customer asks for them, that is a network engagement and should be scoped separately.
Production or staging?
The system the auditor attests to is production. A staging environment is acceptable only when it is a faithful copy: same code, same configuration, same identity provider, same cloud controls. Where it differs, and it usually does in authentication, rate limiting, WAF rules and third-party integrations, the auditor can reasonably ask how you know the production system behaves the same way. The common compromise is to test the application and API against production with controlled, proportionate exploitation and an agreed window, and to use staging for anything that could disrupt customers. Whichever you choose, the report must say clearly which environment was tested and why that choice is representative.
How an auditor reads a penetration-test report
Auditors do not read a penetration-test report the way a developer does. They are checking that the evidence supports a specific control statement, and they work through a short list of questions:
- Who performed the test, and are they independent? A third-party firm with named tester qualifications satisfies independence. A test by your own engineers may still be useful but is not independent evidence.
- When was it performed? The dates of testing, reporting and retest must fall where your control description says they will, and for a Type II they must fall inside the period.
- What exactly was tested? URLs, API hosts, cloud account identifiers, mobile build versions and the environment. The auditor compares this against the system description.
- How was it tested? A named methodology, such as the OWASP Web Security Testing Guide or the OWASP API Security Top 10, and a statement of the access model (black, grey or white box) and the accounts provided.
- What was found, and how severe is it? Each finding needs a severity on a recognised scale such as CVSS, a description of impact and reproducible evidence.
- What happened next? Remediation status per finding, tickets or change records, and a retest result. Open findings are acceptable if they are risk-accepted in writing by someone with authority to do so.
- Is the executive summary consistent with the detail? Auditors and enterprise customers often read only the summary; if it says "no critical issues" while the body lists two, the report loses credibility.
A report structured around those questions, with an executive summary for the auditor and detailed technical findings for engineers, needs no further explanation. One that forces the auditor to reconstruct scope and dates from screenshots invites follow-up requests and delays the audit.
Common mistakes that turn a test into an exception
Testing only staging
Covered above, but worth repeating because it is the most frequent issue. If staging is the only option, document the differences from production and have the tester confirm which findings were validated against production configuration.
No retest evidence
A report with eleven findings and no evidence of what happened to them demonstrates that you can find problems, not that you fix them. Make sure the retest happens inside the period and that the closure report is filed with the original.
A scanner report presented as a penetration test
Automated scanner output, however long, is a vulnerability assessment. Experienced auditors recognise it immediately: generic finding titles, no exploitation evidence, no business-logic or authorisation findings, and a severity distribution dominated by missing headers and outdated libraries. If the firm you engaged delivered this, you have paid for a scan. A genuine penetration test includes manual findings that a scanner cannot produce, each with a proof of concept.
Scope that does not match the system description
If the system description says the service runs on two cloud accounts and the report covers the web application only, the auditor will ask about the accounts. Agree the scope with the person writing the system description, not just with engineering.
Testing too late
Leaving the test to the end of a Type II period leaves no room to remediate. Treat the test as a milestone in the first third of the period.
Not reading the report before the auditor does
Management should review the findings, decide on remediation or risk acceptance, and record those decisions before fieldwork. An auditor who finds a critical issue that nobody in management has seen will ask broader questions about monitoring.
A practical sequence for a first SOC 2 Type II
- Draft the system description and confirm the boundary with your auditor.
- Scope the penetration test to that boundary: application, API, cloud account, and mobile if customer-facing. Provide test accounts per role and per tenant.
- Run the test early in the period. A web application typically takes 3 to 7 working days of testing and an API 2 to 5; cloud and mobile durations are fixed on the scoping call.
- Triage findings into tickets, fix or formally risk-accept each one, and keep the change records.
- Retest within the period and file the closure report with the original.
- Keep scanning running between tests, and state the penetration-test frequency in your vulnerability-management policy so that next year's renewal is consistent.
One of our SaaS clients followed this path with a 120-plus-endpoint multi-tenant API: 11 findings including cross-tenant data access and mass-assignment role escalation were reported, remediated and verified on retest, and the company went on to achieve SOC 2 Type II and retain its largest enterprise customer. The engagement is described in the SaaS API case study.
Next step
If you are preparing for a Type I or Type II and want a test that is scoped to your system description, read about our SOC 2 penetration testing engagement, or tell us your audit window and you will have a scoped quote in PKR or USD within one business day.