Skip to content

How often should you do a penetration test?

How often to run a penetration test: what PCI DSS, SOC 2, ISO 27001 and the UK NCSC say, plus the changes that should trigger a new test before the year is up.

Axrok Team8 min read

"How often should we do a penetration test?" sounds like it should have a one-line answer. It does not, but it does have a short one: at least once a year, and again after any significant change to what you are testing. The rest of this post explains where that rule comes from, which frameworks actually write it down, and how to decide whether your situation needs more than the minimum.

Key takeaways

  • Annual testing is the common baseline. PCI DSS makes it explicit. SOC 2 and ISO 27001 leave the interval to you, but auditors and customers usually expect something close to it.
  • A test is a snapshot. The UK National Cyber Security Centre (NCSC) says a penetration test can only validate that your systems are not vulnerable to known issues on the day of the test.
  • Significant change is a second trigger, separate from the calendar. A major release, a new integration, or a cloud migration can make last year's report out of date.
  • Testing more often only helps if you fix what is found. Retests and remediation time matter more than a shorter interval.
  • If you want assurance between tests, add scanning and secure development checks rather than shortening the gap on manual testing alone.

What a penetration test can and cannot tell you

The NCSC's guidance on penetration testing defines it as a method for gaining assurance in the security of an IT system by attempting to breach some or all of it, using the same tools and techniques as an adversary might. It also says a penetration test should be seen as assurance in your own vulnerability assessment and management processes, not as the main way to find vulnerabilities. It compares it to a financial audit: your finance team tracks income and spending every day, and an outside audit checks that those processes are sound.

That framing matters for frequency. If a test is an audit of your processes, then how often you need one depends on how fast your systems change and how much you rely on your own day-to-day checks in between.

The same page makes a second point that people often miss. A penetration test can only validate that your systems are not vulnerable to known issues on the day of the test, and it is not unusual for a year or more to pass between tests. In that gap, new vulnerabilities and new code can arrive without anyone looking at them. A yearly test is a floor, not a guarantee of safety.

What the frameworks actually say

PCI DSS: the clearest rule

PCI DSS v4.0.1 is the one major framework that puts a number on it. Requirement 11.4.2 covers internal penetration testing and 11.4.3 covers external testing. Both require testing:

  • Per the entity's defined methodology
  • At least once every 12 months
  • After any significant infrastructure or application upgrade or change
  • By a qualified internal resource or qualified external third party
  • With organizational independence of the tester, though a QSA or ASV is not required

The text for external testing is in 11.4.3. Notice the two triggers sitting side by side: the calendar and the change. A team that tests every December but ships a new payment flow in March has met one trigger and missed the other.

SOC 2: left to you, but expected

SOC 2 does not set an interval. The trust services criteria leave the frequency of testing to the organization. Baker Tilly recommends testing SOC 2 environments at least annually and after any significant change, and reports that auditors may flag a missing test as a gap, or ask for alternative controls. If your system description says you run an annual third-party test, that becomes a control your auditor will check. See our post on SOC 2 penetration testing requirements and the guide to what to include in scope for a SOC 2 Type 2 audit.

ISO 27001: your risk assessment decides

ISO/IEC 27001 does not name penetration testing or set a frequency. Cyber Veda describes common practice as at least once a year and after significant change, which fits the standard's expectation that you reassess risk when things change. Our explainer on whether ISO 27001 requires a penetration test covers the Annex A controls involved.

What this adds up to

Across these sources the pattern is the same: a yearly test, plus a new one after something significant changes. That is the minimum most buyers, auditors and assessors will recognise.

Changes that should trigger a new test

PCI DSS uses the phrase "significant change" without giving a complete list, and your own methodology has to define it. As a practical starting point, consider a fresh test, or at least a focused one, when any of these happen:

  • A major release that changes authentication, authorization, payments, or how customer data is stored
  • A new public API, or a new version of an existing one that exposes different objects or roles
  • A move to a new cloud provider, region, or architecture
  • A merger, acquisition, or new customer type that brings new systems or data into scope
  • A serious incident, or a finding in a customer review that suggests a weakness you have not examined
  • A change in your audit boundary, such as adding a product to SOC 2 scope

This list is our own working guidance, not a quotation from a standard. Write your version into your security policy so that the trigger is a decision your team made in advance, not a debate in the week before an audit.

When once a year is not enough

Some organizations have good reasons to test more than the minimum. Consider a shorter cycle if:

  • You release often and change authentication or data access logic regularly. A focused test on each major release is cheaper and easier to act on than one large test a year later.
  • You hold sensitive data, or your customers do, and a breach would be costly in a way that a yearly snapshot does not reflect.
  • Your customer contracts or regulators ask for specific intervals. Read the exact wording.
  • You are a young product that is changing quickly. A first test followed by a retest after fixes, and another test after a major rebuild, may be more useful than waiting for a calendar date.

If you test more often, tell the testers what was fixed since last time. They can then spend their time on new functionality and on the areas you changed, not on rediscovering known issues. Our checklist on how to prepare for a penetration test covers what to hand over.

Fill the gaps between tests

The NCSC's point about the day of the test is a good reason to add cheaper checks between manual engagements:

  • Run vulnerability scans on a regular schedule. They do not replace a test, as we explain in penetration test vs vulnerability scan, but they catch known issues quickly.
  • Add security checks to your build pipeline, such as dependency and secret scanning. For one example of what goes wrong without them, see our post on CI/CD security testing.
  • Keep an asset list, so a new internet-facing system does not appear without anyone testing it.
  • Review access and permissions after team changes.

None of these tell you what a skilled attacker could chain together, which is why the manual test stays on the calendar. They keep the gap between tests from becoming a blind spot.

Do not forget the retest

A shorter interval does not help if findings sit unfixed. PCI DSS expects corrections and verification of the issues found, so a test late in the year can leave no time to close them. Book the retest when you book the test, and place the test early enough that fixes and verification fall inside your audit period. Our guide to reading your penetration test results explains how to turn the report into a fix list.

A simple way to set your schedule

  1. Check what you are required to do: contracts, PCI DSS if you handle card data, and your auditor's expectations.
  2. Set the baseline to once every 12 months for the whole scope.
  3. Write down what counts as a significant change for your product.
  4. Add a focused test for any change that touches authentication, access control, payments, or sensitive data.
  5. Fill the gaps with scanning and pipeline checks.
  6. Reserve time and budget for the retest every time.

FAQ

Is a penetration test required every year?

Only some frameworks say so. PCI DSS v4.0.1 requires internal and external penetration testing at least once every 12 months and after significant changes. SOC 2 and ISO 27001 do not set an interval, but annual testing is the common expectation.

Does a new release mean a new penetration test?

Not always a full one. A small release may not need any testing. A release that changes authentication, authorization, payments, or the way data is stored is a good candidate for a focused test, and PCI DSS expects testing after significant changes.

Can a vulnerability scan replace a yearly pentest?

No. Scans find known weaknesses on a schedule. A penetration test adds manual testing that shows what an attacker could actually do. Baker Tilly makes the same point for SOC compliance. Use both.

What happens if we skip a year?

It depends on your obligations. For PCI DSS you would not meet the 12-month requirement. For SOC 2, Baker Tilly notes that auditors may record a gap or ask for alternative controls. Even with no formal requirement, a long gap means changes made since the last test have never been examined.

Should we change testers every year?

There is no rule that says so. Some teams like a fresh view, and others like a tester who already knows the product. Whichever you choose, PCI DSS expects the tester to be qualified and independent of the systems under test.

Talk it through

If you are setting a testing schedule and want a second view on timing, scope, or what counts as a significant change, 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
  • Security strategy
  • Compliance

Want this looked at in your environment?

Book a free 15-minute call. A founder reads every enquiry and replies personally.