Penetration Testing for SOC 2 and ISO 27001: What Auditors Expect
ComplianceHetz Team

Penetration Testing for SOC 2 and ISO 27001: What Auditors Expect

Does SOC 2 or ISO 27001 require a penetration test? What auditors and customers look for, the ISO Annex A controls involved and how to prepare the evidence.

Founders preparing for SOC 2 or ISO 27001 often ask the same question early: do we need a penetration test? The short answer is that neither framework says "run a pentest" in plain words, but in practice a test is one of the strongest pieces of evidence you can bring to an audit. Enterprise customers ask for it too, often before they sign.

This guide explains what the frameworks actually require, how auditors read penetration test results, the ISO Annex A controls that a test supports, and how to prepare the records. It is a practical overview, not legal or audit advice. For the basics of testing, read what is penetration testing. For budgeting, see penetration testing cost.

What SOC 2 Requires

SOC 2 is an attestation report issued by an independent CPA firm, based on the Trust Services Criteria set by the AICPA. You can read about the framework on the AICPA website. The criteria cover security and, optionally, availability, processing integrity, confidentiality and privacy. Most companies start with security.

The criteria describe outcomes rather than tools. Under the common criteria, an organization must identify and manage risk, monitor for vulnerabilities, and respond to them. A penetration test is not named as a requirement, which is why some companies pass without one. Those companies still need a documented way to find and fix vulnerabilities, and the auditor will test whether that process works.

In practice, a penetration test is a strong way to show it. It gives the auditor an independent view of the system, a list of findings with severity, and a record of how each was handled. Many enterprise customers treat a recent test report as a condition of doing business, which makes the test valuable even when the framework would not force it.

What ISO 27001 Requires

ISO/IEC 27001:2022 is an international standard for an information security management system. You can find the standard on the ISO website. It has clauses that every organization must meet, and a list of Annex A controls that you select and justify in a statement of applicability.

Two Annex A controls are the usual reasons to test:

  • Control 8.8, Management of technical vulnerabilities. You must obtain information about technical vulnerabilities in your systems, evaluate your exposure and take appropriate measures. Penetration tests are a common way to meet this, alongside vulnerability scanning and patch management.
  • Control 8.29, Security testing in development and acceptance. Security testing processes must be defined and implemented during development and before acceptance of new systems. A test before a major release is direct evidence for this control.

The standard leaves the method to you. What matters is that the method is defined, applied and recorded, and that the results lead to action.

How Auditors Read a Penetration Test

An auditor reviews a test the way a reader checks a claim. They want to know what was tested, how, by whom and what happened next. A report that looks impressive but cannot answer these questions is weak evidence.

What the auditor checksWhat good evidence looks like
ScopeThe domains, applications, APIs and accounts in scope, with clear exclusions
Dates and timingWhen the test ran, and why it was scheduled then
MethodBlack, grey or white box, the approach used and the standard followed
QualificationsWho ran the test and their experience, or the tool and its configuration
FindingsEach with severity, evidence and affected component
RemediationTickets or changes showing each finding was fixed or accepted with a reason
RetestProof that the fix works, dated after the change

The last two rows are where many programs fall short. A list of findings with no fixes shows a problem, not a process.

Building the Evidence Trail

Compliance evidence is easier to produce when it is collected as you go. Keep the following in one place:

  1. The test scope and approval. A short document that names the targets, the test accounts and the rules of engagement, signed by the owner.
  2. The test report. The complete report, not a summary, with the evidence for each finding.
  3. The remediation records. Links from each finding to the change that fixed it, with dates.
  4. The retest results. Confirmation that each fix works, with the same request or method that found the issue.
  5. Accepted risks. Any finding not fixed, with the reason, the owner and a review date.
  6. The schedule. The planned frequency of tests and the events that trigger extra tests, such as a major release or a new integration.

This trail supports ISO control 8.8 and the SOC 2 vulnerability and change criteria at the same time. It also answers the questions a customer's security team will ask.

Store the trail where the people who need it can find it without a search. A shared folder with dated files, or a tracker where each finding links to its fix and its retest, is enough for most teams. What matters is that the record exists when the audit starts, and that it was written at the time of the events rather than reconstructed afterwards.

How Often to Test

Neither framework sets a fixed interval. Many organizations test at least once a year, and after significant changes such as a new payment flow, a new API or a move to a new hosting setup. Teams that ship often add lighter testing between full tests. Your schedule should follow your own risk assessment, and your auditor will expect the reasoning to be documented. Our guide to how often to run a penetration test covers the trade-offs.

Choosing a Tester for an Audit

Auditors and customers care less about the brand of a tester and more about the quality of the work. Ask for a sample report, check that the method is described, and confirm that retesting is included. Read our guide to how to read a penetration test report before you buy, so you know what a useful report contains.

For a web product, the test should cover the live application, the API and the access rules between users, because those are the areas customers ask about most. Hetz tests the live domain on a verified basis, with evidence for each finding, a fix and a retest. Compare the options on penetration testing and pricing, and check the security page for how the platform protects test data. Whichever provider you choose, ask how the tester handles the risk of disrupting production, and make sure the rules of the test are written down before it starts.

Working With Your Auditor Early

Agree the approach with your auditor before the test starts, not after the report arrives. A short conversation can settle the questions that otherwise cause delays: which systems are in scope for the audit period, whether a test on a staging copy is acceptable, how long the evidence must be kept and what the auditor expects in the remediation records. Auditors appreciate a clear plan, and a plan agreed in advance rarely needs rework.

Ask the auditor which period the test must fall in. For SOC 2, the evidence has to cover the period the report describes, so a test run just outside that window may not help. For ISO 27001, the certification body will check that the test happened under the schedule in your own program. Knowing this early lets you time the test to the audit rather than the other way round.

Where Testing Fits in a Wider Program

A penetration test is one control among several. It sits beside vulnerability scanning, secure development practices, access reviews, incident response and vendor management. Each one answers a different question. The test answers whether an attacker can actually use the product, while the scanner answers whether known problems exist in the components you run.

Connecting these pieces makes the audit easier. A finding from a test can trigger a change in the development process, such as a new code review rule or a test that runs before each release. Recording that link shows the auditor that the program learns, which is what the frameworks are really asking you to demonstrate.

Mistakes That Weaken the Evidence

Several patterns make a test less useful for compliance:

  • Testing a staging copy that differs from production, with no explanation.
  • A report with no retest, so no one can show the fix worked.
  • Findings closed in a tracker without a link to the change.
  • A scope that quietly excludes the API or the admin area.
  • A test that ran once, two years ago, for a product that changed completely since.

Each of these is easy to avoid if the test is planned with the audit in mind from the start.

Next steps

If you are preparing for SOC 2 or ISO 27001, schedule a test that covers the live product, keep the evidence trail from the start and agree the scope with your auditor before the test begins. To see what a full test includes and what it costs, read our guide to penetration testing cost, or compare options on pricing. When you are ready, start a scan.

FAQ

Frequently asked questions

Keep reading