SOC 2 penetration testing: what auditors actually expect
The SOC 2 criteria never require a penetration test by name, yet most first audits end up with one in the evidence folder. Here’s what the criteria say, what auditors look for and how to buy only what you need.
If you’re going through your first SOC 2, someone will bring up a penetration test early: your auditor, your compliance platform, or the security reviewer at the customer who asked for the SOC 2 in the first place. The confusing part is that the criteria you’re audited against never ask for one by name.
Not required, usually expected
Mike DeKock, a CPA whose firm issues SOC reports, puts the rule plainly1:
The short version of the answer is “no” - there are no explicit requirements for penetration testing (or any controls) within a SOC 2 report.
That’s the rule on paper. In practice, the compliance platforms that prepare startups for audit describe a different normal. Secureframe writes that “almost all SOC 2 reports include them and many auditors require one.”2 Vanta goes further: because SOC 2 asks you to identify vulnerabilities, “most auditors will require you to do a penetration test as part of the SOC 2 process.”3
Both are true because of how SOC 2 works. The AICPA sets criteria, you choose the controls that meet them, and your auditor decides whether the evidence is enough. That’s how a pentest ends up in the evidence folder even though no criterion makes it mandatory.
Where pentesting appears in the criteria
Two criteria point toward testing. The first is CC4.1, the monitoring criterion. Its 2022 points of focus list the kinds of evaluations management can use4:
Depending on the entity’s objectives, such risk and control evaluations may include first- and second-line monitoring and control testing, internal audit assessments, compliance assessments, resilience assessments, vulnerability scans, security assessment, penetration testing, and third-party assessments.
The second is CC7.1, which covers finding new vulnerabilities. Its point of focus on scanning describes scans “on a periodic basis and after significant changes are made to the environment,” with problems fixed “in a timely manner.”4
Points of focus are examples, not a checklist. Nothing fails because you skipped one. But a pentest report is the most direct thing an auditor can read for CC4.1, and a scan or test schedule is what they look for under CC7.1. The full mapping is in which trust services criteria a pentest covers.
What auditors look for in the evidence
With no written requirement, expectations come from practice. The same five things come up across auditors and platforms:
- Timing. Vanta says most auditors or customers want a third-party test “at least once a year, if not twice a year,” and for SOC 2 the test “must be completed before the end of your SOC 2 observation period” to count.3
- An independent tester. Secureframe’s rule of thumb is a third-party test “with a reputable vendor at least annually,” with critical and high-risk findings resolved.2
- Scope. Software Secured says auditors generally expect the test to cover in-scope systems that handle customer data, including internet-facing applications, APIs, cloud infrastructure, authentication systems and admin interfaces.5
- Agreement up front. Alex Lauerman of the pentest firm TrustFoundry advises working “with your auditor to figure out the scope and make sure your approach is acceptable.”6
- Remediation. A report full of open critical findings invites questions. Keep the tickets that show what you fixed and the retest that shows it worked.
Customers often ask before the auditor does
Even when an auditor would accept scans alone, customers might not. DeKock says penetration testing “is the most common requirement we hear as the last component to close a deal with an enterprise customer (along with having a SOC 2 report).”1 A commenter on Indie Hackers made the same point from the founder’s side: “buyers often want pen-test evidence even before the SOC 2 report exists.”7
And if a customer contract names a pentest, the question is settled. As DeKock puts it, if you have customer contracts requiring one, “then it’s required.”1
A sensible plan for a first SOC 2
- Ask your auditor on the first call what they expect: a manual test, an automated one, or scans plus remediation. Get the answer in writing.
- Clean up your external attack surface first: exposed files, open database ports, weak TLS, forgotten subdomains. These are cheap to find and cheap to fix.
- Get a test done inside the audit window, fix critical and high findings, and retest.
- If your auditor or a customer needs testing behind your login or of your business logic, buy a manual pentest for that part.
- Store the report, the tickets and the retest together. That bundle is the evidence.
See your own grade
Scan your domain and see what an attacker sees.
Pentrail covers step 2 and the external half of step 3. For $20 per domain it runs a non-destructive external test (50 common ports on your own addresses, 80 sensitive paths such as .git and .env, open redirects, weak TLS ciphers, subdomain takeover, DNS zone transfer) and delivers a PDF with CVSS scores, the real request and response for each finding, and a SOC 2 control map, plus a letter of attestation. It doesn’t test behind your login, your business logic or your internal network. If your auditor requires that, a manual tester still has to do it, and the report gives them a list of where to start.
SOC 2 doesn’t require a pentest by name, but CC4.1 lists penetration testing and CC7.1 expects regular scans. Most auditors and many customers expect a test inside your audit window, with critical and high findings fixed and retested. Ask your auditor what they’ll accept before you buy anything.
Questions
Does SOC 2 require a penetration test?
How often do you need a pentest for SOC 2?
What scope do SOC 2 auditors expect for a pentest?
Will my auditor accept an automated pentest?
Sources
- Mike DeKock, CPA (MJD Advisors), published by the Cloud Security Alliance, SOC 2 Reports and Penetration Tests:
The short version of the answer is “no” - there are no explicit requirements for penetration testing (or any controls) within a SOC 2 report. … Do you have any customer contracts requiring a penetration test? If yes, then it’s required. … Penetration testing is the most common requirement we hear as the last component to close a deal with an enterprise customer (along with having a SOC 2 report).
- Secureframe, Penetration Testing 101: A Guide to Testing Types, Processes, and Costs:
Generally speaking, you will meet SOC 2 and ISO 27001 audit requirements for sufficient evidence if you perform a third-party pen test with a reputable vendor at least annually, and you make sure to identify and resolve any critical and high-risk vulnerabilities that are identified. … While a pen test is not an explicit requirement for SOC 2 compliance, almost all SOC 2 reports include them and many auditors require one.
- Vanta, Penetration testing 101:
Most auditors or customers will require that you conduct a third-party penetration test at least once a year, if not twice a year. … If your penetration test is for SOC 2 compliance, the penetration test must be completed before the end of your SOC 2 observation period in order to be included in your control matrix. … That said, SOC 2 does require you to identify vulnerabilities in your systems so most auditors will require you to do a penetration test as part of the SOC 2 process.
- AICPA 2017 Trust Services Criteria with revised points of focus (2022), as transcribed in the open-source CISO Assistant library, SOC 2 2017 TSC (rev. 2022), points of focus CC4.1 and CC7.1:
Considers Different Types of Ongoing and Separate Evaluations — Management uses a variety of ongoing and separate risk and control evaluations to determine whether internal controls are present and functioning. Depending on the entity’s objectives, such risk and control evaluations may include first- and second-line monitoring and control testing, internal audit assessments, compliance assessments, resilience assessments, vulnerability scans, security assessment, penetration testing, and third-party assessments. … Conducts Vulnerability Scans — The entity conducts infrastructure and software vulnerability scans designed to identify potential vulnerabilities or misconfigurations on a periodic basis and after significant changes are made to the environment. Action is taken to remediate identified deficiencies in a timely manner to support the achievement of the entity’s objectives.
- Software Secured (penetration testing firm), SOC 2 Penetration Testing Services:
SOC 2 auditors generally expect penetration testing to cover all in-scope systems that store, process, or transmit customer data, including internet-facing applications, APIs, supporting cloud infrastructure, authentication systems, administrative interfaces, and any internal networks that could affect the security of the system boundary.
- Alex Lauerman (TrustFoundry), interviewed by Secureframe, Frequently Asked Questions about Pen Testing:
If you’re required to do a penetration test as part of a compliance framework like SOC 2, it’s always best to work with your auditor to figure out the scope and make sure your approach is acceptable.
- Indie Hackers commenter on “SOC2 as a solo founder”, SOC2 as a solo founder:
buyers often want pen-test evidence even before the SOC 2 report exists