The short answer
Not by name. SOC 2 never says you must get a pentest, but most auditors expect one, and the criteria list it as one way to prove your controls work.
What SOC 2 actually says
SOC 2 is a report from an auditor about how you protect your customers' data. The auditor checks you against a set of rules called the Trust Services Criteria.
Those criteria say what to achieve, not how. They never say "you must get a penetration test." But one of them, CC4.1, asks you to check that your controls are in place and working, and the notes under it name penetration testing as one way to do that.
Another, CC7.1, asks you to find new weak spots in your systems. Regular vulnerability scans are the usual answer there.
Why most auditors expect one anyway
Auditors want proof, not promises. A pentest is a test by someone outside your company who tries to break in the way a real attacker would. It shows your controls work in a way a policy document cannot.
- Your customers ask for it. Big buyers often want to see a pentest report or letter before they sign.
- Your compliance tool asks for it. Vanta, Drata and Secureframe all list it as a task.
- It covers several criteria at once: checking your controls, finding weak spots, and fixing them.
Type I or Type II: when to test
A Type I report looks at your controls on one day. A Type II report looks at how they worked over a stretch of time, often six to twelve months.
- For Type I, test before your audit date, with enough time to fix what is found.
- For Type II, test during the audit period, so the report and the fixes fall inside it.
- Either way, leave time for a retest. Auditors like to see that problems were fixed, not just found.
What the pentest should cover
Test whatever holds or touches your customers' data. For most SaaS companies, that means:
- Your web application, logged in as each kind of user
- The API behind it
- Your cloud setup, like AWS, Azure or Google Cloud
If many customers share your app, make sure the test checks that one customer can never see another's data. It is one of the first things an auditor and a big customer will care about.
Will an automated pentest pass?
Some auditors accept one. Many prefer a test done by people, and big customers often ask who did the testing. Automated tools are good at finding known problems. They miss the ones that take a person to spot, like a user who can approve their own invoice.
Before you buy, ask your auditor what they expect.