One penetration test a year is enough to satisfy most auditors. It is rarely enough to cover the risk of a system that changes every week. Those are two separate goals, and the yearly test was only ever designed to meet the first.
The habit of testing annually comes from compliance standards that set a minimum frequency. Over time the minimum became the plan. That worked reasonably well when software was released a few times a year. It works less well when a team merges changes every day and the tested version is gone within a month.
This post looks at what the standards actually require, what a yearly test cannot see, and how to decide when you need more.
What the frameworks actually say
The common belief is that "compliance requires an annual pentest". The detail is more varied.
| Framework | What it says about penetration testing | Frequency stated |
|---|---|---|
| PCI DSS (requirement 11.4) | Requires internal and external penetration testing of the card data environment, with exploitable findings fixed and retested | At least once every 12 months, and after any significant infrastructure or application change. Segmentation controls are tested at least every 12 months, and every six months for service providers |
| SOC 2 | Does not name a penetration test as a requirement. The criteria ask that controls be monitored and evaluated, and a test report is common evidence for that | None fixed. Annual has become the convention, in step with the yearly audit cycle |
| ISO 27001 | Does not mandate a penetration test by name. It expects technical vulnerabilities to be managed and security to be tested, in proportion to risk | Set by your own risk assessment |
Two things stand out. First, only PCI DSS in this list sets an explicit schedule, and even there the wording is "at least". Second, PCI DSS already includes a change trigger. A significant change to the environment calls for a new test whatever the date.
So "annual" is a floor. No standard says that once a year is sufficient for your risk. For the detail on each, see our pages on SOC 2, ISO 27001 and PCI DSS testing.
Why once a year used to fit
A penetration test is a statement about a system at a moment in time. How long that statement stays true depends on how fast the system changes.
When the annual convention took hold, a typical business application was released in large versions a few times a year and ran on servers the company owned. A yearly test covered most of what was running most of the time.
Three things have shifted since.
- Release frequency. Many teams deploy daily or more. The code tested in February has been substantially replaced by summer.
- Infrastructure as code. A cloud environment can be reshaped by a single merged change. A storage bucket, a network rule or an identity role can become public in minutes.
- Dependencies. Applications are assembled from hundreds of third-party packages, and new flaws in them are disclosed all year round.
The test did not get worse. The thing it describes simply stopped holding still.
What a yearly test cannot see
Picture a test that ends on the last day of February. The report is good. Then the year carries on.
- In March the team ships a bulk export API.
- In May a new single sign-on integration goes live for a large customer.
- In July an internal admin tool is exposed to the internet so a contractor can reach it.
- In November the permission model is rewritten to support a new customer tier.
Each of these is the kind of change that introduces serious vulnerabilities. None is looked at until the following February. The export API runs for eleven months without anyone trying to pull another customer's data through it.
The arithmetic is simple. If new flaws arrive at a steady rate through the year, the average flaw waits six months for the next test, and some wait nearly twelve. Then add the time to schedule, test, report and fix.
There is a second, quieter cost. A yearly test delivers all its findings at once, to engineers who wrote the affected code months ago and have moved on to other work. The same finding delivered the week the code was written is cheaper to fix, because the author still remembers how it works.
Events that should trigger a test
Whatever your regular schedule, some events justify a test of the affected area straight away.
- A new way to authenticate or authorize. Single sign-on, API keys, a new role or permission model, a change to tenant separation.
- A new externally reachable surface. A public API, a mobile app, a partner integration, a customer-facing file upload.
- A major infrastructure change. Moving cloud provider or region, adopting Kubernetes, redesigning the network, replacing the identity provider.
- Code that touches money or regulated data. Payments, refunds, health records, identity documents.
- An acquisition or merger. You inherit systems nobody on your team has examined.
- A security incident. After the cleanup, test whether the route the attacker used is closed and whether similar routes exist.
- A fix for a serious finding. A retest confirms the fix works and has not opened something new.
If your release process produces events from this list every few weeks, you have already answered the question in the title.
When annual is enough, and what to do when it is not
A yearly test can be adequate. A system that is rarely changed, has a small and stable set of users, and holds little sensitive data does not become much riskier between February and the next February. Internal tools on a fixed platform often fit this description.
For a product under active development, the practical answer is to keep the deep periodic test and add testing that follows change.
- Keep a thorough test at least yearly. It satisfies auditors, and an experienced human looking at the whole system still finds things narrower testing does not.
- Test significant changes when they ship. This can be a small scoped engagement or automated testing wired into the release process.
- Scan in between. Scanners catch newly disclosed flaws in known software quickly and cheaply.
- Retest fixes promptly. A finding is closed when the exploit has been tried again and failed.
How the continuous part works in practice, and how to tell real continuous testing from frequent scanning, is covered in continuous penetration testing vs. the annual pentest. Cloudgrip Hydra is built for that role. Its agents attack your apps, APIs and cloud on every release, report only findings they have exploited and replayed from a clean session, and attack again after a fix is merged to confirm it holds.
Key takeaways
- An annual penetration test is a compliance minimum. No major standard says it is sufficient for your risk.
- PCI DSS requires testing at least every 12 months and after significant changes. SOC 2 and ISO 27001 do not mandate a pentest by name, though auditors commonly expect one.
- A yearly test says nothing about code and infrastructure changed after it ended. With steady change, the average new flaw waits about six months to be tested.
- Certain events, such as new authentication, new public surface or a major infrastructure change, justify a test regardless of the calendar.
- Keep the deep periodic test, and add testing that is triggered by change.