Every SaaS founder going through SOC 2 for the first time asks the same question: does SOC 2 require penetration testing, or is it one of those things a compliance platform tells you to buy? The honest answer has two parts. On paper, no. In practice, almost every auditor and every enterprise customer reading your report will expect to see one.
This guide explains what the Trust Services Criteria actually say, why auditors treat a pentest as near-mandatory, what makes a pentest hold up as audit evidence, and how to plan the timing so it helps your audit instead of delaying it.
SOC 2 is built on the AICPA Trust Services Criteria (the 2017 criteria with revised points of focus issued in 2022). The criteria describe outcomes your controls must achieve. They are not a checklist of specific tools or tests, and no criterion says "perform an annual penetration test."
Penetration testing shows up in the points of focus, the guidance that sits under each criterion. The most important one is under CC4.1, which requires the organization to select, develop, and perform ongoing and separate evaluations to confirm its internal controls are present and functioning. One of the CC4.1 points of focus lists penetration testing as an example of a separate evaluation management can use. Vulnerability scanning appears in a similar way under CC7.1, which covers detecting new vulnerabilities and configuration changes.
Points of focus are illustrative, not mandatory. In theory, you could satisfy CC4.1 and CC7.1 with other controls. In reality, very few SaaS companies can show equivalent independent assurance any other way, which is why the practical answer is different from the technical one.
CC4.1 asks you to prove your controls actually work, not just that they exist. Access reviews, code review policies, and MFA enforcement are all controls on paper. A penetration test is one of the few activities that checks whether those controls hold up when someone tries to get around them. Without it, you are asking an auditor to accept that your access controls work because your policy says they do.
A SOC 2 report is written for your customers' security teams. When an enterprise buyer reads a report with no penetration test referenced anywhere, the next step is usually a questionnaire asking for one. Many companies end up buying the pentest anyway, just later and under deal pressure. Building it into the control set from the start avoids that.
Audit firms that specialize in SaaS have watched companies pass a SOC 2 without testing, then suffer a breach through an access control flaw that any competent pentest would have caught. Many firms now treat the absence of a pentest as a gap worth noting, even where the criteria technically allow other controls.
A well-scoped pentest produces evidence for several criteria at once:
CriterionWhat it coversHow the pentest supports itCC4.1Ongoing and separate evaluationsThe pentest is an independent, separate evaluation of control effectivenessCC4.2Communicating deficienciesFindings are reported, assigned to owners, and tracked to closureCC6.1Logical access securityTests whether authentication and authorization actually resist bypassCC6.6Protection against external threatsExternal and application testing validates boundary controlsCC7.1Detecting vulnerabilitiesConfirms your scanning and patching process catches real issuesCC7.2Monitoring for anomaliesShows whether your monitoring noticed the test activityCC8.1Change managementTesting after significant change shows new releases are evaluated
Redfox Cybersecurity's SOC 2 penetration testing maps findings to the Security criteria, mainly CC4.1 and CC7.1, so your auditor does not have to translate a generic report into SOC 2 language.
Buying a pentest is not enough. The report has to hold up as evidence. Auditors look for six things.
Your SOC 2 report includes a system description that defines the boundary of the audit: the product, the infrastructure it runs on, and the supporting systems. The pentest scope should cover what is inside that boundary. A test of your marketing website does not provide evidence about the production application your customers' data lives in.
A simple way to keep the two aligned is to map each system description component to a test target:
# soc2-pentest-scope-map.yaml
audit_period: 2026-01-01 to 2026-12-31
system_description_version: 2026.1
components:
- name: Customer web application
in_boundary: true
pentest_target: https://app.acme.io
test_type: authenticated web app (all roles, 2 tenants)
- name: Public REST API
in_boundary: true
pentest_target: https://api.acme.io/v2
test_type: authenticated API
- name: AWS production account
in_boundary: true
pentest_target: aws:111122223333
test_type: cloud configuration and IAM review
- name: Internet-facing infrastructure
in_boundary: true
pentest_target: 203.0.113.0/27
test_type: external network
- name: Marketing website
in_boundary: false
pentest_target: none
[cta]
Hand this file to your testing provider and your auditor. It answers the first question both of them will ask. If you want help building it, Redfox Cybersecurity offers a free 30-minute scope review that scopes the test to your SOC 2 boundary and returns a fixed quote within one business day.
Timing depends on which report you are getting:
For Type 2, a pentest dated two months before the period starts may not count. Testing, remediation, and retesting should all show up within the observation window.
The criteria do not name a required certification, but auditors expect the tester to be independent of the people who built and run the system, and competent enough that the results mean something. An internal engineer testing their own code does not meet that bar for most auditors.
The report should state the methodology followed. OWASP WSTG, the OWASP API Security Top 10, PTES, and NIST SP 800-115 are the references auditors recognize. A report that is a scanner export with a cover page usually draws questions.
CC4.2 is about communicating deficiencies and acting on them. Auditors want to see each finding assigned to an owner, prioritized by risk, and remediated within the timeframe your vulnerability management policy sets. That means your ticketing system is part of the evidence.
If your findings live in Jira, you can export the trail an auditor will ask for:
# Export every pentest finding ticket with created and resolved dates
curl -s -u "$JIRA_USER:$JIRA_TOKEN" -G \
"https://acme.atlassian.net/rest/api/2/search" \
--data-urlencode 'jql=labels = pentest-2026 ORDER BY priority DESC' \
--data-urlencode 'fields=key,summary,priority,status,created,resolutiondate,assignee' \
--data-urlencode 'maxResults=200' \
| jq -r '.issues[] | [.key, .fields.priority.name, .fields.status.name,
.fields.created[0:10], (.fields.resolutiondate // "open")[0:10],
(.fields.assignee.displayName // "unassigned")] | @csv' \
> pentest_findings_evidence.csv
[cta]
Then check that remediation met your own policy, because auditors will compare the two:
# sla_check.py: compare remediation time against the vulnerability management policy
import csv
from datetime import date
SLA_DAYS = {"Highest": 7, "High": 30, "Medium": 90, "Low": 180}
with open("pentest_findings_evidence.csv") as f:
for key, prio, status, created, resolved, owner in csv.reader(f):
if resolved == "open":
print(f"{key}: still open ({prio}), owner {owner}")
continue
days = (date.fromisoformat(resolved) - date.fromisoformat(created)).days
if days > SLA_DAYS.get(prio, 180):
print(f"{key}: {days} days, exceeds {prio} SLA of {SLA_DAYS[prio]}")
[cta]
Any breach of your own SLA needs a documented exception or risk acceptance. Auditors are generally fine with a late fix that was consciously accepted. They are not fine with one nobody noticed.
A finding marked "resolved" in Jira is a claim. A retest report from the tester is evidence. Redfox Cybersecurity includes a free retest in every engagement, plus a retest report and a signed attestation letter summarizing scope, dates, and remediation status, which you can give your auditor without sharing the full technical report.
Auditors test the control you write, so write one you can meet every time. A realistic penetration testing control for a SaaS company looks like this:
# control: SEC-14 Independent penetration testing
id: SEC-14
criteria: [CC4.1, CC4.2, CC7.1]
owner: Head of Security
statement: >
An independent third party performs a penetration test of the in-scope
production application, API, and cloud environment at least annually and
after significant changes. Findings are logged in the ticketing system,
remediated according to the Vulnerability Management Policy SLAs, and
retested by the third party.
frequency: annual, plus change-driven
evidence:
- signed engagement letter and scope
- final penetration test report
- ticket export with remediation dates
- retest report and attestation letter
[cta]
Avoid writing "quarterly" if you only budget for annual testing. A control you do not meet is a finding in your SOC 2 report.
The pentest is your separate evaluation under CC4.1. Ongoing evaluation and CC7.1 vulnerability detection need continuous evidence too. Scheduled scans that keep their results as artifacts give auditors a dated trail:
# .github/workflows/soc2-scan-evidence.yml
name: soc2-vulnerability-evidence
on:
schedule:
- cron: "0 6 * * 1" # weekly
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Container image scan
run: |
docker run --rm -v "$PWD:/out" aquasec/trivy:latest image \
--severity HIGH,CRITICAL --format json \
-o /out/trivy-$(date +%F).json ghcr.io/acme/api:latest
- name: Keep results as audit evidence
uses: actions/upload-artifact@v4
with:
name: vuln-scan-evidence
path: trivy-*.json
retention-days: 400
[cta]
Set retention longer than your audit period so the evidence is still there when the auditor asks for a sample from eight months ago.
One of the most useful and least used outputs of a pentest is the answer to a simple question: did anyone notice? Ask your provider for their source IP addresses and testing windows, then search your own logs. If your WAF and alerting saw nothing during a week of active testing, that is a CC7.2 gap worth fixing before your auditor asks about it.
# Search AWS WAF logs for requests from the tester's published source IP
QUERY_ID=$(aws logs start-query \
--log-group-name aws-waf-logs-prod \
--start-time $(date -d '2026-10-05' +%s) \
--end-time $(date -d '2026-10-16' +%s) \
--query-string 'fields @timestamp, action, httpRequest.uri
| filter httpRequest.clientIp = "198.51.100.24"
| stats count(*) by action' \
--query 'queryId' --output text)
sleep 10 && aws logs get-query-results --query-id "$QUERY_ID"
[cta]
A healthy result shows blocked requests and alerts that reached a human. A result showing thousands of allowed requests and zero alerts tells you where to invest next. This kind of detection review is part of how Redfox Cybersecurity's continuous testing programs help teams prove more than just "we were tested."
For most SaaS companies, the in-boundary systems break down into four test types:
Internal network testing matters more if you run corporate infrastructure inside the boundary, such as office networks or self-hosted directory services. Many cloud-native SaaS companies scope it out, and that is fine as long as the system description agrees.
The same problems come up repeatedly:
Usually, yes, if you plan for it. Most SaaS companies pursuing SOC 2 are also answering security questionnaires from prospects, and many add ISO 27001 or HIPAA later. A single well-scoped test can serve all of them, as long as the scope covers every framework's boundary and the report is structured for reuse.
That means three deliverables rather than one: a full technical report for your engineers and auditor, a customer-safe summary covering scope, dates, and remediation status without exploitable detail, and a signed attestation letter you can attach to questionnaire responses. Sending the full technical report to every prospect who asks is a common mistake. It hands detailed information about your weaknesses to people outside your company, sometimes before the fixes have shipped.
Plan the test date so it falls inside the SOC 2 observation window and within the twelve months most questionnaires ask about. One engagement then covers your audit and your sales cycle for the year.
With Redfox Cybersecurity, SOC 2 web application and API testing starts from $4,000, external network testing from $1,600, and a single cloud account review from $2,400. Teams that want all in-scope systems covered in one auditor-ready report can scope the custom audit bundle. Final pricing is fixed after scoping.
Most web and API tests take 5 to 10 business days, and the report is delivered within 10 business days of testing starting. Work backwards from your audit date:
Booking at least six weeks ahead leaves room for testing, fixes, and the retest. Compressing it into the last two weeks before fieldwork is how teams end up with open critical findings in their evidence. You can see exactly what the deliverables look like in Redfox Cybersecurity's sample penetration test report.
Does SOC 2 require penetration testing? Not in the letter of the Trust Services Criteria. Penetration testing appears as an example in the points of focus, not as a mandatory control. But auditors use it as their main evidence that your controls work under pressure, and enterprise customers will ask for it whether your auditor does or not.
The practical approach: write a control you can meet, scope the test to your system description, run it inside your audit period, track every finding to closure in your ticketing system, and get a retest report and attestation letter you can hand straight to your auditor. If your audit date is on the calendar, book a free 30-minute scope review with Redfox Cybersecurity at least six weeks out and get a fixed quote within one business day.