Skip to content

%

ISO 27001 penetration testing: what Annex A requires

Does ISO 27001 require penetration testing? What Annex A 8.8 and 8.29 actually say, what auditors look for, and how to plan your pentest.

Axrok Team8 min read

If your company is working toward ISO/IEC 27001:2022 certification, someone has probably told you that you need a penetration test. It is a reasonable assumption, but it is not quite what the standard says (the same is true of SOC 2).

This guide explains where penetration testing fits in ISO 27001, what Annex A controls 8.8 and 8.29 actually ask for, and what a certification auditor is likely to look for. It is written for founders and CTOs who want to plan the work without overbuying or underdelivering.

Key takeaways

  • ISO/IEC 27001:2022 does not name penetration testing as a mandatory requirement, and none of its 93 Annex A control titles is "penetration testing".
  • Annex A 8.8 (management of technical vulnerabilities) and 8.29 (security testing in development and acceptance) are the controls a pentest most often supports.
  • The ISO/IEC 27002 guidance for those controls mentions penetration testing as a technique to use or consider, but guidance is not a requirement.
  • Your risk assessment and Statement of Applicability decide whether you test, how often and how deeply.
  • If your own policy says you run a pentest, the auditor can hold you to it.

Does ISO 27001 require penetration testing?

Not by name. ISO describes ISO/IEC 27001 as the standard that defines the requirements an information security management system (ISMS) must meet. It is a management system standard, so it tells you how to identify and treat risk rather than which technical tests to run.

Cyber Veda puts it plainly: ISO/IEC 27001:2022 does not list penetration testing as a mandatory requirement. Zero Hunt's analysis adds that none of the 93 Annex A control titles is "penetration testing".

How the standard is structured

Zero Hunt describes two layers:

  • Clauses 4 to 10 are the management system requirements. Excluding any of them is not acceptable if you claim conformity. They cover context, leadership, risk assessment and treatment, support, operation, performance evaluation and improvement.
  • Annex A is a reference set of 93 controls. You select the controls you need through risk treatment, compare them with Annex A so nothing is missed (clause 6.1.3 c), and record which apply and why in your Statement of Applicability (clause 6.1.3 d).

So a pentest becomes part of your ISMS when your risk assessment and chosen controls call for it.

Annex A 8.8: management of technical vulnerabilities

Control 8.8 asks you to gather information about technical vulnerabilities in the systems you use, assess how exposed you are and take suitable action. That summary comes from The Art of Service's statement of the ISO/IEC 27002:2022 text, which notes it is a paraphrase rather than the verbatim standard.

The ISO/IEC 27002 guidance for 8.8, as summarized there, covers an accurate asset inventory, scanning with suitable tools, and "penetration testing or vulnerability assessment" that is planned, documented and repeatable and done by competent, authorized testers. It also covers acting on findings through patching or other measures within a defined timeline.

Note the "or". The guidance offers a pentest as one way to identify technical vulnerabilities, alongside other methods. Cyber Veda's view is that scanning is the baseline for 8.8 but struggles on its own to show that custom applications, access control and business logic are secure. Our post on penetration testing vs vulnerability scanning covers that difference.

Annex A 8.29: security testing in development and acceptance

The control text for 8.29, as reproduced by Manzill, reads: "Security testing processes should be defined and implemented in the development life cycle." Its stated purpose is to validate whether information security requirements are met when applications or code are deployed to production.

What the 8.29 guidance says about pentesting

The ISO/IEC 27002 guidance for 8.29 says testing should cover security functions such as user authentication, access restriction and cryptography, secure coding, and secure configurations. It adds that the extent of testing should be in proportion to the importance and nature of the system and the potential impact of the change.

For in-house development, the guidance says the development team should test first, followed by independent acceptance testing. It then lists three things that "should be considered":

  1. Code review for security flaws, including unanticipated inputs and conditions.
  2. Vulnerability scanning to identify insecure configurations and system vulnerabilities.
  3. "Performing penetration testing to identify insecure code and design."

The wording is "should be considered", not "shall". For a SaaS company shipping code every week, though, a pentest before a major release or after a significant architecture change is a natural way to show that 8.29 is working. The guidance also says the organization should verify the remediation of security related defects, which is where a retest comes in.

Other controls a pentest touches

Cyber Veda and Zero Hunt both point to related controls:

  • 8.34, protection of information systems during audit testing: plan and agree testing of operational systems so it does not disrupt them. In practice, that means agreed scope, timing and rules of engagement.
  • 5.35, independent review of information security: an independent tester's results are useful input, though they do not replace a review of the ISMS itself.
  • 8.25 to 8.28, secure development: a pentest shows whether those practices actually produced a secure application.

Guidance vs requirement: why the wording matters

ISO/IEC 27002 is guidance on the Annex A controls, while certification is against ISO/IEC 27001, as The Art of Service notes. Cyber Veda adds that while the guidance is not a set of requirements, auditors know it well and it shapes what they expect to see.

That leads to the practical risk. According to Cyber Veda, an auditor cannot raise a nonconformity for a missing pentest by itself, because the standard does not require one. An auditor can raise one if your own risk assessment, Statement of Applicability or policy says you test and you have not, or if you cannot show any effective way of finding exploitable weaknesses.

What ISO 27001 auditors look for

Zero Hunt lists the kinds of questions to expect on 8.8 and 8.29:

  • Statement of Applicability: are 8.8 and 8.29 included, and if not, what is the justification?
  • Risk treatment: where do technical vulnerabilities appear in your risk assessment?
  • Procedure: how do you learn about vulnerabilities, scan, prioritize and patch?
  • Records: scan results, pentest reports if your plan says you run them, remediation tickets and retest results.
  • Changes: what security testing happened before the last significant release went live?
  • Follow-through: do findings reach internal audit, management review and corrective action?

Zero Hunt also notes that the accreditation rules for the 2022 transition (IAF MD 26) told auditors that transition audits "shall not only rely on the document review", especially for the technological controls. A policy that says "we test" needs evidence behind it.

How often to test, and who should do it

The standard sets no frequency. Cyber Veda describes common practice as at least once a year and after significant change, such as a major release, new infrastructure or a cloud migration. That lines up with the clause 8.2 requirement to reassess risk when significant changes happen.

On who tests, Zero Hunt notes that nothing in the standard requires an external tester or a particular tester certification. What it suggests is recording who ran the test, their qualifications and why they are not reviewing their own work.

Timing around the certification audit

Cyber Veda recommends running the test early enough before the Stage 2 audit to fix serious findings and retest. In its words, a report with untreated critical findings a week before the audit is weak evidence. The auditor wants to see the whole loop: test, findings assessed as risks, treatment and confirmation that fixes worked.

A practical ISO 27001 pentest plan for SaaS teams

  1. Write it into your risk treatment. Link testing to the risks it treats and to 8.8, 8.29 and 8.34 in your Statement of Applicability.
  2. Scope by risk. Start with the systems your risk assessment ranks highest. For many SaaS teams, that may mean the production web app, its API and the cloud environment behind them.
  3. Agree rules of engagement. Record scope, windows and approvals to satisfy 8.34.
  4. Test before Stage 2. Leave time to fix and retest.
  5. Close the loop. Give every finding an owner, a date and a retest, and feed results into management review.

If you are building the wider ISMS at the same time, our GRC and compliance team can help connect the pentest to your risk register and Statement of Applicability.

FAQ

Does ISO 27001 require a penetration test?

Not by name. ISO/IEC 27001:2022 does not list it as mandatory. The ISO/IEC 27002 guidance for controls 8.8 and 8.29 mentions penetration testing as a technique, and your risk assessment decides whether you use it.

Can we fail an audit for not having a pentest?

Not for the missing test alone, according to Cyber Veda. You can receive a nonconformity if your own documents say you test and you have not, or if you cannot show an effective way to find exploitable weaknesses.

How often should we pentest for ISO 27001?

The standard sets no interval. Common practice, per Cyber Veda, is at least annually and after significant changes such as a major release or cloud migration.

Is a vulnerability scan enough for ISO 27001?

Scanning is the baseline for control 8.8. Cyber Veda notes that on its own it struggles to show that custom applications, access control and business logic are secure.

Does the tester have to be external?

No. Zero Hunt notes the standard does not require an external tester. It does help to show the tester is competent and independent of the team that built the system.

Talk it through

If you are working out where a pentest fits in your ISO 27001 plan, we are happy to talk it through. Book a free 15-minute call through our contact page or email zayan@axrok.com, and we can help you see whether a penetration test fits your situation right now.

Sources

  • penetration testing
  • ISO 27001
  • compliance

Want this looked at in your environment?

Tell us what you need protected. A founder reads every enquiry and replies personally.