Three crenellated towers on a plinth beneath three panels reading Black box, Gray box and white box; padlocks on the outer panels, a diamond with a keyhole on the central one, whose tower opens onto a blue light

By 

Pentesting for ISO 27001 and SOC 2: what auditors really expect

The question usually comes in this form: “our certification audit is in September, do we need a pentest?” The short answer: neither framework says “penetration test required”, and yet most auditors expect to see one. The useful answer takes longer, because the auditor cares less about the report than about what you did with it afterwards.

Our page on pentesting and compliance for NIS2, ISO 27001 and SOC 2 gives the overview. This article goes into the detail: the exact controls, the evidence requested, how often to test, and the mistakes that end up as nonconformities.

Contents

  1. Is a pentest mandatory for ISO 27001?
  2. What about SOC 2?
  3. A certificate on one side, an attestation on the other
  4. What does the auditor accept as evidence?
  5. How often should you run a pentest?
  6. The most common mistakes
  7. Where does NIS2 fit in?
  8. What I do, and what I don’t

Is a pentest mandatory for ISO 27001?

Not in so many words. ISO/IEC 27001:2022 never uses the phrase “penetration test”. Two Annex A controls come very close:

  • management of technical vulnerabilities: obtain information about vulnerabilities in the systems you run, evaluate your exposure, and take appropriate measures;
  • security testing in development and acceptance: define and implement security testing processes in the development life cycle.

It’s the implementation guidance, ISO/IEC 27002:2022, that mentions penetration testing for both controls: among the ways to identify vulnerabilities, and to check the code and design of in-house applications. You can’t be certified against 27002, but auditors know it well and read your controls through it.

And the technical vulnerabilities control is very hard to leave out. Every Annex A control goes through the Statement of Applicability, where each exclusion has to be justified. A company with servers, email and a website can’t seriously argue that technical vulnerabilities don’t apply to it. Once that control is in, you have to show how you find those vulnerabilities. A regular scanner covers part of it. A pentest covers what the scanner can’t see, such as broken access control in an application.

One more control tends to be overlooked: protection of information systems during audit testing. Tests on live systems must be planned and agreed with the relevant management. The rules of engagement you sign before a pentest (scope, dates, testing hours, emergency contacts) are direct evidence for it. Keep them with the report.

For the record, the transition period is over: certificates against the 2013 edition stopped being valid on 31 October 2025. The controls above are from the 2022 edition, the only one audited now.

What about SOC 2?

Same situation, with a twist. SOC 2 is built on the AICPA Trust Services Criteria (2017 edition, points of focus revised in 2022). The criteria themselves don’t mention pentesting. The points of focus, which illustrate how a criterion can be met, do.

  • Monitoring of controls: the entity performs ongoing or separate evaluations to check that its controls are present and working. The related point of focus names penetration testing among those evaluations.
  • Vulnerability detection: the entity uses detection and monitoring procedures to identify configuration changes that introduce vulnerabilities, and its susceptibility to newly discovered ones. The point of focus refers to vulnerability scans, run periodically and after any significant change, with deficiencies remediated in a timely way.

Points of focus aren’t mandatory one by one, so an auditor can accept something other than a pentest for monitoring of controls: internal audit or an ISO certification, both named in that same point of focus. In practice, if you expose an application to customers, an annual pentest is what the auditor expects, and your customers even more so. Mike DeKock’s piece, republished by the Cloud Security Alliance in February 2024, puts it well: no explicit requirement, but strongly advisable, and it can support other criteria too, around risk assessment, monitoring and detection.

A certificate on one side, an attestation on the other

This changes how you plan the pentest, and it’s often misunderstood outside the US.

ISO 27001 is a certification, issued by an accredited body. The cycle runs three years, with a surveillance audit each year between recertifications. The auditor checks that your management system works and that you do what your policies say.

SOC 2 is an attestation: a report signed by a US CPA firm, not a certificate. A Type 1 report describes your controls at a point in time. A Type 2, the one your customers will ask for, checks that they operated over an observation period, usually three to twelve months. In practice, a pentest that falls outside that period doesn’t count for that report. Put it inside the window, and early enough for fixes and the retest to fit in as well.

What does the auditor accept as evidence?

The report, yes. But a 60-page report on the table proves only one thing: someone tested something. The auditor looks for the rest.

Scope

They compare the scope of the test with the scope of the certification (or the system description in the SOC 2 report). If your certificate covers the SaaS platform and the pentest only covered the marketing site, the evidence is thin. The first page of the report should say plainly what was tested, what wasn’t, and with which access.

Date and tester

A report from two years ago doesn’t show that your controls work this year. The auditor also looks at who tested: an external provider, or an internal person independent of the team that built the system. Neither ISO nor the AICPA requires an outside firm, but a developer testing their own code won’t convince many people.

Remediation tracking

This is where it’s won or lost. Your vulnerability management policy sets fix deadlines by severity, say a few days for a critical finding and a few weeks for a medium one. The auditor takes the findings from the report and checks, ticket by ticket, that those deadlines were met. Finding vulnerabilities is normal. What earns a nonconformity is the gap between what you wrote and what you did.

A finding you can’t fix right away isn’t a problem if it’s handled as a risk: an acceptance decision signed by someone with the authority to sign it, a workaround, a review date. A critical finding left open for ten months with no trace of any of that usually ends up as a nonconformity.

The retest

The retest proves the fixes work. The pentester replays the tests on the reported findings and issues a remediation letter. Without it, you have the word of the team that fixed things. With it, you have confirmation from the person who found them. Auditors see the difference; customers reading your summary see it even more.

How often should you run a pentest?

Neither framework sets a frequency. Common practice is one pentest a year on the certified scope, plus a targeted test after each major change: a new application, reworked authentication, a cloud migration, an API opened to partners.

The trap is your own policy. If it says “quarterly penetration tests” because that looked good on the day it was written, that promise is what you’ll be audited against. Write a frequency you’ll keep, backed by your risk assessment, and add more frequent automated scans, which meet both frameworks’ vulnerability detection requirements between pentests.

For ISO 27001, a yearly pentest fits neatly: it feeds every surveillance audit. For a SOC 2 Type 2, what matters is that it falls within the observation period.

The most common mistakes

A scan passed off as a pentest. A scanner export saved as PDF is not a penetration test, and an experienced auditor spots it by page two. Typically, no exploitation, no business logic flaws, no access control testing. It belongs in the file, under the right label.

A pentest ordered three weeks before the audit. The report lands, the findings are there, and there’s no time to fix them or to retest. You end up presenting a list of open problems. Six to eight weeks of margin is the reasonable minimum; three months is comfortable.

A scope picked to come out green. Testing only what you know is solid to get a clean report shows, and it protects you from very little. The auditor checks it against the asset inventory.

The full report sent to customers. The technical detail of a flaw, even a fixed one, has no business in a buyer’s inbox. Share the summary and the retest letter. The detailed report stays internal.

A pentest bought to tick the box. The most expensive mistake. You pay for a test, you get a document, and your real risk hasn’t moved. If the budget is being spent anyway, it may as well find the flaws an attacker would use against you.

Where does NIS2 fit in?

The NIS2 directive lists among its minimum measures security in the acquisition, development and maintenance of systems, including vulnerability handling and disclosure (Article 21(2)(e)), and policies and procedures to assess the effectiveness of cybersecurity risk-management measures (Article 21(2)(f)). For digital providers (cloud, data centres, managed service and managed security service providers, online marketplaces, among others), Implementing Regulation (EU) 2024/2690 goes further: point 6.5 of its annex requires a security testing policy that sets the need, scope, frequency and type of tests based on the risk assessment, with documented results.

In France, the transposition law (the “Résilience” bill, passed by the Senate on 12 March 2025) is still before the National Assembly as I write; you can follow it on vie-publique.fr. If you’re already working towards ISO 27001, the pentest and its follow-up will serve for NIS2 as well. The compliance page covers this in more detail.

What I do, and what I don’t

I handle the technical testing: web application and API pentests, external pentests, Active Directory pentests and Azure and Microsoft 365 security audits. The report states the scope, dates and access used, includes a shareable summary, and the retest (half a day, optional) is free from two testing days; below that, it’s an optional paid extra. The report can be delivered in French and English, which saves you translating a technical report when the SOC 2 auditor or the customer works in English.

I don’t build the management system (policies, risk assessment, Statement of Applicability): an ISO 27001 consultant will do that better, and I can work alongside them. I’m not PASSI qualified either. It’s rarely required in this context, and the compliance page explains when it is.

If your audit is coming up, the quote form lets you give your deadline and target framework. For how an engagement runs, from rules of engagement to retest, see the methodology.

Related articles