The short answer
Run the penetration test early enough that you can fix what it finds and retest before your auditor looks. For a Type I report, finish testing, fixes and the retest before the date the report covers. For a Type II report, run the test inside the observation period, ideally early in it. Many companies also test during readiness, before the period starts, so serious issues are fixed before anyone is watching.
Whether you need a test at all is a separate question. Our guide does SOC 2 require a penetration test? covers what the criteria say. This guide is about timing and planning.
Key facts
- Type II observation period
- Commonly 3 to 12 months
- Web application test
- Typically 1 to 2 weeks; an API about 1 week
- Retest
- Within 48 hours of you telling us fixes are ready
Why timing matters
- Auditors test evidence from the period the report covers. A test finished months before a Type II period starts may not count as evidence for that period.
- Findings take time to fix. A test run in the last weeks of a period can leave serious issues open when the period ends.
- Customers ask when your last test was. A test dated close to your report makes both documents easier to rely on.
- Testers and audit firms both book up. Late planning can push your test, and then your report, back.
Timing for a Type I report
A Type I report covers whether your controls are suitably designed and in place on a single date. For the penetration test, that means:
- Test once the system in scope is stable, after the big readiness changes are done.
- Fix the critical and high findings, and decide how to treat the rest under your vulnerability management policy.
- Retest the fixes.
- Agree the report date with your auditor after the retest, so the evidence shows issues found and resolved.
If a customer deadline forces an early Type I date, it is better to test sooner with a narrower scope than to skip the test and explain the gap later.
Timing for a Type II report
A Type II report covers how your controls operated over an observation period, commonly between 3 and 12 months. Running the test inside that period gives the auditor evidence that your security is evaluated and that findings are handled.
- Early in the period: the usual choice. You have time to fix, retest and close findings inside the period, which shows your vulnerability management process working.
- In the middle: workable, as long as remediation timeframes in your policy can still be met before the period ends.
- Late in the period: risky. Findings may still be open at the end, and the auditor will ask how they are being handled.
A common pattern for a first Type II is two tests: a readiness test before the period to find the big issues, and a test early in the period as the evidence. After that, one annual test, timed inside each report period, is the usual rhythm. Our guide to SOC 2 Type I and Type II explains the periods in more detail.
A sample plan
- Scope the SOC 2 project: the system, the criteria and the report type.
- Run the gap assessment and agree a remediation plan.
- Book the penetration test once the scope is clear, so the dates are held for you.
- Complete the main remediation work: access control, logging, change management and vulnerability management.
- Optionally, run a readiness test and fix what it finds.
- Start the observation period, or set the Type I date.
- Run the evidence test early in the period.
- Fix findings within the timeframes in your own policy, and retest.
- Keep the report, tickets, fix records and retest results together for fieldwork.
If you are planning SOC 2 for the first time, SOC 2 for startups shows the whole project end to end.
Remediation and retest
Auditors usually test your controls against what your own policies say. If your vulnerability management policy says critical issues are fixed within a set number of days, the evidence needs to show that happened. So set timeframes you can meet, then meet them.
- Create a ticket for each finding, with an owner and a due date based on severity.
- Record the fix: the change, who approved it and when it was deployed.
- Ask the tester to retest, and keep the retest report or letter.
- If you decide not to fix a finding, record the risk acceptance, who approved it and why.
Match the scope to your system description
A SOC 2 report includes a description of the system it covers: the infrastructure, software, people, procedures and data. The penetration test should cover the same system, or the auditor and your customers will ask why it does not.
- Test the product and APIs your customers use, not just your marketing website.
- Include the cloud environment the product runs in, if it is part of the system description.
- Test as each user role, and check that one customer cannot reach another customer’s data.
- If you test a staging environment, make sure it matches production and say so in the report.
- If something in scope is left out of the test, write down why.
If the test finds something serious
It happens, and it is what the test is for. Fix it under your normal process, and check whether it was exploited before the test, using your logs. If there is evidence it was, treat it as a security incident under your incident response procedure. Expect your auditor to ask for the test report and your remediation records, so keep them complete rather than tidy.
Year two and beyond
Once you have a 12-month report cycle, set the annual test at the same point in each period, so there is never a period without one. Add focused tests after significant changes, such as a new product, a new sign-in method or a move to a new cloud account. Our guide to how often to run a penetration test has a sample calendar.
How Veraha helps
Veraha runs SOC 2 readiness and penetration testing as one team, so the test is scoped to your system description, booked into your project plan and retested within 48 hours of your fixes being ready. Your SOC 2 report itself is issued by an independent CPA firm, which we help you choose and work with. A penetration test is evidence for your audit; it does not make you compliant on its own.
Terms used on this page
Sources
Need help with soc 2 readiness?
Book a short call. You will come away with your scope, the gaps to close and a realistic timeline.