AI pentesting guides / Compliance

SOC 2 evidence

SOC 2 penetration testing: what the criteria say and what auditors expect

SOC 2 does not explicitly require a penetration test, but most auditors expect to see one, because a recent pentest is the most common way to evidence the monitoring and vulnerability-management criteria CC4.1 and CC7.1. The AICPA's Trust Services Criteria list penetration testing as one example of a separate evaluation under CC4.1, and vulnerability scanning as a point of focus under CC7.1.

That distinction matters when you plan a SOC 2 programme. You are not ticking a box with a fixed format; you are showing an auditor that your controls are tested and that you act on what the tests find. A pentest that is scoped to the systems in your SOC 2 boundary, repeated on a sensible cadence, and followed by tracked remediation is far more persuasive than a one-off report that nobody acted on.

Where pentesting fits in the Trust Services Criteria

SOC 2 reports are built on the 2017 Trust Services Criteria (with points of focus revised in 2022). Points of focus are illustrative, not mandatory, so the auditor judges whether your evidence is sufficient. In practice pentest evidence is usually mapped to:

  • CC4.1 — the entity selects and performs ongoing and/or separate evaluations; penetration testing is named as one type of separate evaluation.
  • CC7.1 — the entity uses detection and monitoring procedures to identify new vulnerabilities; vulnerability scanning is a point of focus.
  • CC7.2 to CC7.4 — how anomalies and findings are evaluated, escalated and remediated.
  • CC8.1 — change management, where testing after significant changes is relevant.

How often, and what scope

There is no SOC 2 frequency rule. Annual testing is the norm most auditors and customers accept, with additional testing after significant architectural changes. For a Type II report the auditor looks at the whole observation period, so a test that lands inside the window, plus evidence that findings were triaged and fixed, carries more weight than a test performed a year earlier. Scope should follow your system description: the customer-facing application, its APIs, authentication, and the cloud infrastructure that hosts customer data.

What a useful SOC 2 pentest report contains

  • A clear scope statement that matches the system boundary in your SOC 2 description.
  • Methodology and dates, so the auditor can place the test in the observation period.
  • Each finding with evidence, severity and a reproducible description.
  • Remediation status and a retest result for anything high or critical.
  • Who performed the test and how independent they are from the team that built the system.

Continuous testing between annual tests

Many SaaS teams ship weekly, so an annual snapshot ages quickly. Running automated testing against staging or production APIs between formal tests gives you a stream of evidence for CC7.1 and catches regressions before the next audit. It does not replace the independent test your auditor or customers may ask for, but it reduces the chance that the annual report is full of surprises.

With Pentest-Swarm

How Pentest-Swarm fits a SOC 2 programme

Pentest-Swarm is an open-source autonomous pentester for web applications and APIs. Teams use it to test the application layer of their SOC 2 system continuously and to produce evidence-backed findings between formal engagements.

  • Self-host the open-source engine (AGPL-3.0) and run the API security or OWASP Top 10 playbooks against staging or production you are authorised to test.
  • Findings carry evidence, severity and CVSS; non-LLM verification oracles help separate proven issues from guesses.
  • Scope is enforced in code and fail-closed, and every run leaves an audit trail you can retain as evidence.
  • Armur's managed service adds scheduled pentests, human-reviewed reports, compliance-ready reporting for SOC 2, and retests after fixes.

Where it falls short

Automated testing is a complement, not a guaranteed substitute. Your auditor decides what evidence is sufficient, and some enterprise customers contractually require an annual test by an independent third-party firm. Pentest-Swarm is alpha software focused on web apps and APIs; it does not cover social engineering, physical security or a full cloud configuration review. A managed Armur report helps you evidence testing, but no report on its own makes you SOC 2 compliant.

Questions

Is a penetration test required for SOC 2?

Not explicitly. The Trust Services Criteria do not mandate one, but penetration testing is listed as an example of a separate evaluation under CC4.1, and most auditors and enterprise customers expect an annual test as evidence.

How often should a SOC 2 company run a pentest?

At least annually, and after significant changes to the system in scope. For a Type II report, testing inside the observation period with tracked remediation is the strongest evidence.

Can an automated or AI pentest satisfy a SOC 2 auditor?

It can provide evidence, especially for continuous vulnerability identification under CC7.1. Whether it is sufficient on its own is the auditor's call, and many organisations pair continuous automated testing with an annual independent test.

Sources

  1. AICPA: 2017 Trust Services Criteria (revised points of focus, 2022)