ISO 27001 Penetration Testing Requirements Explained
ISO 27001 doesn't require penetration testing by name. The words "penetration testing" don't appear in the clauses of ISO/IEC 27001:2022 or in its Annex A control list. But ISO 27001 penetration testing is still the standard way to evidence two Annex A controls, 8.8 Management of technical vulnerabilities and 8.29 Security testing in development and acceptance, and the supporting guidance in ISO/IEC 27002:2022 names penetration tests explicitly under both. Whether you need one, how often and on what scope follows from your risk assessment and your Statement of Applicability. If you've included 8.8 and 8.29 and you build software, certification auditors will usually expect to see test results.
This post walks through the specific controls, what the guidance says, how auditors test them, and a scoping plan that holds up in a Stage 2 audit.
How ISO 27001 decides which controls apply
ISO 27001 doesn't work like a checklist. Under clause 6.1.3, you pick the controls needed to treat your identified risks, compare them against Annex A so nothing necessary is missed, and record the result in a Statement of Applicability (SoA), with a justification for any Annex A control you exclude (ISMS.online on Annex A 8.29).
Annex A of the 2022 revision has 93 controls in four themes: organizational (37), people (8), physical (14) and technological (34) (3fold Training). The 2013 version is gone for certification purposes. The transition deadline to ISO 27001:2022 was 31 October 2025 (Databrackets), so any guide still citing "A.12.6.1" is talking about the old numbering. That control is now 8.8.
So the honest framing is: penetration testing is not mandatory, but excluding the controls it evidences is very hard to justify for a company running internet-facing software.
The Annex A controls that involve penetration testing
| Control | What the control says (summarized) | Where pentesting fits |
|---|---|---|
| 8.8 Management of technical vulnerabilities | Obtain information about technical vulnerabilities, evaluate your exposure, take appropriate measures | ISO 27002 guidance lists "planned, documented and repeatable penetration tests or vulnerability assessments" |
| 8.29 Security testing in development and acceptance | Define and implement security testing processes in the development life cycle | ISO 27002 guidance lists code review, vulnerability scanning and penetration testing |
| 8.34 Protection of information systems during audit testing | Plan and agree tests on operational systems with management | Governs how you run a pentest on production safely |
| 8.25 Secure development life cycle | Rules for secure development of software and systems | ISO 27002 guidance includes system and security testing such as regression testing, code scans and penetration tests (summary) |
Annex A 8.8: management of technical vulnerabilities
The control requires that information about technical vulnerabilities of systems in use is obtained, the organization's exposure is evaluated, and appropriate measures are taken. The ISO/IEC 27002:2022 guidance for 8.8 suggests "planned, documented and repeatable penetration tests or vulnerability assessments by competent and authorized persons," and warns that such testing can itself compromise a system's security (ISMS.online summary).
Three words in that guidance are the ones auditors check:
- Planned: there's a schedule or trigger (annual, after major releases), not ad hoc.
- Documented: scope, method and results are written down.
- Repeatable: the next test can be compared with this one.
8.8 also expects an accurate asset inventory as a prerequisite. In practice, the pentest scope should trace back to your inventory, which is why mapping your external assets first pays off. See how to map your external attack surface.
Annex A 8.29: security testing in development and acceptance
8.29 requires security testing processes to be defined and run during development. ISO 27002's guidance for in-house development lists three things to consider: code review for security flaws, vulnerability scanning to find insecure configurations, and penetration testing to identify insecure code and design (ISMS.online).
"Insecure design" is the important phrase. Design flaws are things like missing authorization checks, tenant isolation that depends on the client, or password reset flows that can be replayed. Scanners rarely find these. Authenticated testing does, which is why authenticated penetration testing is usually the right fit for 8.29 evidence on a SaaS product.
Annex A 8.34: protecting systems while you test them
8.34 is the control people forget. Audit tests and other assurance activities on operational systems should be planned and agreed between the tester and management. The guidance covers agreeing scope, limiting tests to read-only access where possible, running availability-affecting tests outside business hours, and logging all test access (ISMS.online on 8.34).
Practically, keep these records for every engagement:
- A signed authorization or rules-of-engagement document listing in-scope hosts and test windows.
- Named contacts on both sides and an escalation path if something breaks.
- Confirmation of the source IPs or accounts the testers used, so your logs can tell testing apart from real attacks.
SecurityInfinity's Startup Pentest confirms scope and authorization by email or a 15-minute call before any testing, and automated scans only run against domains you've verified you own (DNS TXT record or matching work email) and are read-only. Both line up with how 8.34 expects testing on live systems to be controlled.
ISO 27001 penetration testing evidence auditors ask to see
During Stage 2 and surveillance audits, expect requests like:
- The SoA entry for 8.8 and 8.29 and how each is implemented.
- The vulnerability management procedure: scanning cadence, pentest cadence, severity ratings, remediation timelines.
- The most recent pentest report: scope, dates, methodology, findings with severity.
- Treatment records: tickets or risk register entries showing each finding was fixed, accepted or transferred, with an owner.
- Retest or verification evidence that fixes worked.
- Scan history proving the "periodic" part of 8.8 runs between pentests.
A useful self-check before the audit: pick one high finding from the last report and trace it end to end, from report to ticket to code change to retest. If you can't do that in five minutes, neither can the auditor.
Scoping ISO 27001 penetration testing for a SaaS company
Here's a scope that maps cleanly to the controls above for a typical cloud-hosted B2B product:
| Asset | Test type | Control evidenced | Frequency |
|---|---|---|---|
| Customer-facing web app, all roles | Authenticated pentest | 8.8, 8.29 | Annually + after major auth/authorization changes |
| Public and partner APIs | Authenticated API testing | 8.8, 8.29 | Same as app |
| Subdomains, DNS, TLS | External scan | 8.8 | Weekly/continuous |
| Cloud storage, public cloud resources | Cloud exposure checks | 8.8 | Continuous |
| CI/CD and code | SAST, secrets scanning | 8.25, 8.29 | Every merge |
For the cloud row, the cloud misconfigs scanner audits AWS, Azure and GCP for public resources, and the S3 bucket inspector checks for publicly accessible storage. For the code row, see security testing in your CI/CD pipeline.
If you only have budget for one engagement this year, put it on the authenticated application and API test and cover the rest with continuous scanning. That's where design flaws live, and design flaws are what 8.29's guidance points at.
ISO 27001 vs SOC 2: one pentest, two audits
If you're pursuing both, you don't need two pentests. SOC 2's CC4.1 point of focus lists penetration testing as an example of a separate evaluation, and CC7.1 covers vulnerability scanning (AICPA red-lined TSC), and the same evidence package serves ISO 8.8 and 8.29. Schedule the test so it falls inside your SOC 2 Type 2 window and before your ISO surveillance audit. Details on the SOC 2 side are in does SOC 2 require penetration testing.
Where SecurityInfinity fits
- For the ISO 27001 penetration testing itself: the Startup Pentest authenticated tier (from $999 per application) covers every user role, access control, IDOR, business logic, API and privilege-escalation testing, is mapped to SOC 2 and ISO 27001, and includes a free retest within 30 days, which gives you the verification evidence auditors ask for. Report and signed attestation letter arrive in 3 business days.
- For continuous 8.8 evidence: the Pro plan ($9/month) runs recon, web, network and secrets agents with continuous re-scans, compliance mapping (SOC 2, ISO, OWASP) and Jira export for treatment records.
Start with a free scan on one verified domain to see what the auditor will see from the outside.
Frequently asked questions
Is penetration testing mandatory for ISO 27001 certification?
No. ISO 27001 doesn't use the words "penetration testing" in its requirements. But ISO 27002 guidance for controls 8.8 and 8.29 lists penetration tests, so if those controls are in your Statement of Applicability, auditors generally expect testing evidence that matches your documented procedure.
Which ISO 27001 Annex A control covers penetration testing?
Mainly 8.8 (management of technical vulnerabilities) and 8.29 (security testing in development and acceptance). Control 8.34 governs how tests on operational systems are planned and agreed, and 8.25's guidance mentions penetration tests as part of secure development.
How often should you do a penetration test for ISO 27001?
The standard sets no frequency. Annual testing plus testing after significant changes is the common baseline. Whatever you choose, write it into your vulnerability management procedure and follow it, because auditors check what you documented.
What was A.12.6.1 in ISO 27001:2013?
A.12.6.1, "Management of technical vulnerabilities," was the 2013 control most often associated with penetration testing. In ISO 27001:2022 it maps to Annex A 8.8, and the 2013 version is no longer used for certification.
Can an automated scan satisfy ISO 27001 control 8.8?
Automated scanning is valid 8.8 evidence, and the ISO 27002 guidance lists vulnerability scanning tools directly. For 8.29's design-level testing, and to meet typical auditor and customer expectations, pair scanning with a periodic penetration test.