← All articles

Why Point-in-Time Pentests Fail: The Case for Continuous Testing

A penetration test report tells you how your application held up on the days the testers were looking at it. That's useful, and auditors will keep asking for one. The trouble starts when a two-week engagement in March is treated as evidence of how secure the product is in November, after a few hundred deploys, two new subdomains and a migrated auth provider. A point-in-time pentest isn't broken. It answers a narrower question than most people think. This post covers what drifts between tests, how continuous automated testing and periodic engineer-verified pentests fit together, and how that maps to what SOC 2 and ISO 27001 actually ask for.

The cadence mismatch: annual tests, daily deploys

Most compliance-driven pentest programs run on an annual cycle. Delivery cadence moved a long time ago. DORA's research has reported for years that its elite group "routinely deploys on-demand and performs multiple deployments per day". The 2021 Accelerate State of DevOps report normalises that to roughly 1,460 deploys a year (four a day), a figure the authors themselves call conservative.

Even a startup shipping a few times a week makes well over a hundred production changes between annual tests. Each one is a chance to:

  • expose a new route that skips the authorization middleware
  • ship a debug flag or source map to production
  • bake a third-party API key into a JavaScript bundle
  • add a DNS record pointing at a cloud resource someone later deletes

None of these existed when the engagement was scoped. The report describes a system that no longer exists.

What attack surface drift actually looks like

"Attack surface drift" sounds abstract. In practice it falls into a few concrete buckets.

Asset drift

New hosts, subdomains, staging environments and marketing tools. They rarely get the same review as the core app, and they're often missing from pentest scope because nobody knew about them when it was signed.

Dangling DNS is the classic failure here. OWASP's testing guide describes subdomain takeover as a record that points to an external resource that "no longer exists or has been deprovisioned", which an attacker can then claim. The guide's mitigation advice ends with: "Continous monitoring and periodic checks are recommended as best practice" (WSTG v4.2). A record that's safe on test day can become exploitable the day a Heroku app or S3 bucket gets cleaned up.

Code and configuration drift

The app itself changes: new endpoints, refactored permission checks, upgraded frameworks with different defaults, new headers or missing ones. Broken access control is the category most likely to regress quietly. OWASP's Top 10:2021 moved it to the #1 position, and it had the most occurrences in the contributed dataset (over 318,000).

Secrets drift

Front-end bundles get rebuilt on every deploy. A key that was server-side last quarter can land in a client bundle after a refactor. A six-month-old pentest says nothing about this morning's bundle.

An illustrative scenario (hypothetical)

The following is a hypothetical composite built to show the pattern. It is not a real customer, incident or engagement.

Picture a 25-person B2B SaaS company that runs its annual external pentest in February for a SOC 2 Type 2 audit. A handful of medium findings are fixed and retested by March.

Between March and the next test:

  1. April: Marketing launches events.example.com on a hosted landing-page service. In August the event ends and the account is cancelled, but the CNAME stays in DNS.
  2. June: Engineering ships a v2 API for a large customer integration. The v2 router is wired up separately, and one admin listing endpoint is missing the tenant check.
  3. September: A front-end refactor moves a maps lookup to the browser, and the build now includes a key with broader scope than intended.

A competent pentester would have flagged each of these, but none existed in February. Under an annual-only model, nobody looks again until next February: months of exposure, unless a bug bounty hunter or an attacker gets there first.

Now add continuous automated testing. Scheduled recon flags the dangling CNAME soon after the hosted account is cancelled, and a secrets check on the rebuilt JavaScript catches the exposed key in the next scan cycle. The v2 tenant check is the hard one: an unauthenticated scanner probably won't prove a cross-tenant read, which is exactly why the authenticated, engineer-led pentest still matters.

Continuous testing shrinks the window for drift automation is good at catching; the periodic human test covers what it can't.

Continuous testing and pentests are complements, not substitutes

"Scanners vs. pentesters" is the wrong framing. They do different jobs.

Continuous automated testingPeriodic engineer-verified pentest
CadenceScheduled re-scans, ongoingAnnually, or after significant change
StrengthBreadth and recency: new assets, exposed secrets, misconfigurations, known-vulnerable components, regressionsDepth: authorization, multi-role access control, business logic, chained attacks
WeaknessStruggles with context-heavy logic flawsGoes stale as soon as the next deploy lands
Audit evidenceOngoing monitoring and detectionIndependent separate evaluation
OutputFindings stream, ordered by severitySigned report, retest, attestation

OWASP is blunt about automation's limits. Its testing guide says business logic flaws "cannot be detected by a vulnerability scanner" and that "automation of business logic abuse cases is not possible and remains a manual art" (WSTG, Introduction to Business Logic). Agentic tooling pushes on that boundary harder than classic scanners did, but you still want a human reviewing your authorization model and business flows.

The reverse holds too: nobody should pay an engineer to re-enumerate DNS and re-read JavaScript bundles every week.

What SOC 2 and ISO 27001 actually expect

Neither framework says "do an annual pentest and you're done." Both expect ongoing vulnerability management plus periodic independent evaluation.

SOC 2

The AICPA's Trust Services Criteria (2017, with revised points of focus in 2022) name penetration testing once, in a CC4.1 point of focus. According to Stingrai's analysis of the criteria text, it says evaluations "may include … vulnerability scans, security assessment, penetration testing, and third-party assessments." The same analysis notes that the CC7.1 point of focus calls for vulnerability scans "on a periodic basis and after significant changes are made to the environment."

In practice:

  • CC4.1 (monitoring activities): a periodic third-party pentest is the most common evidence of a separate evaluation, and auditors and enterprise customers routinely expect it.
  • CC7.1 (system operations): ongoing detection of new vulnerabilities and configuration changes. Continuous scanning is the natural evidence here.
  • CC4.2: deficiencies communicated and remediated in a timely way. Severity-ordered findings with remediation steps, tickets and retests cover this.

A Type 2 report covers the whole observation period, so one test in month one is a weaker story than a test plus continuous monitoring throughout.

ISO 27001:2022

Annex A control 8.8, management of technical vulnerabilities, requires that "information about technical vulnerabilities of information systems in use shall be obtained, the organization's exposure to such vulnerabilities shall be evaluated and appropriate measures shall be taken" (control text as quoted by ISEO Blue). "Systems in use" matters. If your scanning or testing doesn't cover the subdomain marketing launched in April, you have a coverage gap against the control, not just a security gap.

PCI DSS, for comparison

If you handle card data, PCI DSS v4.0.1 Requirement 11.4 is more prescriptive. It calls for internal and external penetration testing at least once every 12 months and after any significant infrastructure or application upgrade or change (summary via Canary Trap). The "after significant change" clause is the standard openly acknowledging the drift problem.

A practical operating model

What we'd recommend to a SaaS team heading into SOC 2 or ISO 27001:

  1. Inventory continuously. Run recon against your verified domains on a schedule so new subdomains, hosts and exposed services show up without waiting for a human to notice. Our subdomain takeover scanner targets the dangling-DNS case specifically.
  2. Scan what changes most. Front-end bundles and public endpoints change with every deploy. Check them for exposed keys and tokens (JS secrets scanner) and for misconfigurations (quick web scan).
  3. Re-test after significant changes. New auth provider, new API version, new tenant model: these are the triggers for a deeper look, not the calendar.
  4. Commission an engineer-verified pentest at least annually and scope it to include authenticated, multi-role testing if you have more than one user role. Access control and business logic are where human testers earn their fee.
  5. Close the loop. Every finding gets an owner, a ticket and a retest. That record is your CC4.2 evidence.

SecurityInfinity is built around this model. Autonomous agents run read-only recon, web, network and secrets checks against domains you've verified you own (DNS TXT record or matching work email), pivoting into deeper checks when one surfaces a signal. Every finding comes with evidence and exact remediation, ordered by severity. Architecture details are in how we built the agentic scanner.

On Pro ($9/month), you get continuous monitoring and re-scans, compliance mapping to SOC 2, ISO and OWASP, and exports to PDF, attestation and Jira. For the periodic deep test, our engineer-delivered pentests come in two tiers. External (unauthenticated) is $499 one-time with engineer-verified findings and a free retest. Authenticated is $999 and adds multi-role testing, access-control and business-logic review, SOC 2 and ISO 27001 mapping, and a signed attestation letter.

The takeaway

A pentest report is a photograph; your application is a video. Keep taking the photograph, but next Tuesday's security depends on what happens between them. Continuous testing covers the drift, periodic human testing covers the depth.

If you want to see what has drifted on your own perimeter since your last test, run a free scan. The Starter plan includes 100 credits and one verified domain, and no card is required.

Frequently asked questions

Is an annual penetration test enough for SOC 2?

An annual third-party pentest is the most common evidence auditors accept for CC4.1's separate-evaluation expectation, but the criteria also expect ongoing detection of new vulnerabilities under CC7.1. For a Type 2 report, which covers operating effectiveness across the whole observation period, pairing the annual test with continuous scanning and documented remediation gives you a much stronger evidence trail.

What is attack surface drift?

Attack surface drift is the gradual change in what an attacker can reach between security assessments: new subdomains and hosts, new endpoints, changed configurations, secrets landing in front-end bundles, and newly disclosed vulnerabilities in components you already run. It's the main reason a pentest report goes stale quickly on a frequently deployed application.

Can continuous automated scanning replace a manual pentest?

No. Automated and agent-driven testing is strong at breadth and recency, catching new assets, exposed secrets, misconfigurations and regressions soon after they appear. OWASP's testing guide states that business logic flaws can't be detected by a vulnerability scanner, and authorization testing across multiple roles still benefits from a human engineer. Use automation for coverage and humans for depth.

How often should we pentest if we deploy daily?

Run a full engineer-led pentest at least annually, plus a targeted test after significant changes like a new authentication system, a major API version, or a change in tenant isolation. PCI DSS formalises this with its "every 12 months and after any significant change" rule. Between those tests, continuous automated scanning should cover the day-to-day drift.

Does ISO 27001 require penetration testing?

ISO 27001:2022 doesn't name penetration testing as mandatory. Annex A 8.8 does require you to obtain information about technical vulnerabilities in systems in use, evaluate your exposure, and take appropriate measures. Most certification programs meet that with a mix of continuous vulnerability scanning and periodic pentests, scoped by the ISMS risk assessment.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.