Vulnerability Scan vs Penetration Test: Which Do You Need?

A vulnerability scan automatically checks for known weaknesses and returns a list. A penetration test exploits weaknesses manually and shows what an attacker can achieve with them. As a rule, you need both, at different rhythms. The scan runs often and costs little. The pentest happens less often and is targeted.

What is the difference between a vulnerability scan and a penetration test?

A scanner compares systems against databases of known vulnerabilities. It is fast, repeatable and finds what has already been documented. A pentest is manual work. The tester exploits weaknesses, combines findings and builds attack paths from them. The result is proof, not speculation.

CriterionVulnerability scanPenetration test
GoalFind known weaknessesProve attack paths
MethodAutomatedManual, supported by tools
ResultList of findingsProof and prioritisation by exploitability
False positivesPossible, review requiredFindings are verified for exploitability
Effort and costLowHigher, depending on scope
TimingOngoing, at short intervalsAnnually or event-driven

False positives arise because a scanner often reads nothing more than a version number. It cannot see whether the vendor already fixed the flaw in an older version. Three typical situations show the difference. They are written as illustrations and are not customer findings.

Scan findingPentest finding
Outdated software version reported on the web serverFlaw not exploitable, because the vendor backported the patch. A typical false positive.
API with no anomaliesOne endpoint returns other customers’ data as soon as the tester changes an ID in the request. An access control flaw in the business logic.
Staging subdomain outside the scan scopeDefault credentials open a path into the internal network, all the way to Active Directory.

Scanners rarely detect the second case. The flaw sits in the application’s logic, not in a known software version. For the basics of how a test works, see the article What is a penetration test?.

Does a pentest replace the scan, and where does attack surface management fit in?

No. They answer different questions. The scan covers the time between two pentests. The pentest assesses what the scan cannot judge.

A pentest on its own is a snapshot. A new weakness can be open right after the next release. A scan on its own remains an unweighted list. Which finding really matters stays unclear.

Attack surface management, or ASM, is the third layer. We understand it as the continuous discovery of all externally reachable systems. This is a Bugshell definition, not a standardised term. ASM finds what is missing from your inventory: forgotten subdomains, test systems, open services.

The layers work together like this:

LayerQuestionResult
ASMWhat is reachable from the outside?Inventory
ScanWhich known weaknesses does the inventory have?List
PentestWhat can an attacker achieve with them?Proof and prioritisation

The forgotten staging subdomain from the example shows the value. ASM finds it, the scan may report little, and the pentest shows the path into the internal network. For the external side, we offer the External Perimeter & Network service. At Bugshell, the layers come together on one platform and are repeatable.

How often should you scan and how often should you test?

The following grid is our practical recommendation. It is not a standard.

MeasureRhythm
ASMContinuous
Vulnerability scanMonthly, more often for a critical attack surface, for example after releases
Penetration testAnnually or event-driven
RetestAfter the findings are fixed

Event-driven means: a new web app or API before launch, a major architecture change, a migration to the cloud or a new customer requirement. In these cases, you do not wait for the annual date.

In its practical guide to IS penetration tests, the German Federal Office for Information Security (BSI) recommends repeat tests every two to three years. The guide dates from 2014. We see this figure as a minimum interval from a public-sector context. For web apps with frequent releases, it is too long.

The retest specifically checks the fixed findings. It shows whether the fix works and whether it introduced a new weakness.

What do NIS2 and DORA actually require in terms of testing?

A blanket pentest obligation cannot be derived from § 30 (1) of the BSI Act (BSIG). The provision obliges essential and important entities to take appropriate, proportionate and effective technical and organisational risk management measures. The NIS2UmsuCG (the German act implementing NIS2) has been in force since 6 December 2025. Which tests are appropriate follows from your risk analysis. Document that reasoning.

In Chapter IV, on digital operational resilience testing, DORA names vulnerability assessments and scans as a type of test. Threat-led penetration tests apply only to certain financial entities.

Three controls are relevant for ISO/IEC 27001:2022: A.8.8 (technical vulnerabilities), A.8.29 (security testing) and A.5.35 (independent review). In an audit, you need evidence for them.

TriggerSuitable methodCycle
NIS2 entityScan and pentest, derived from the risk analysisBased on risk analysis, documented
DORA financial entityScans under Chapter IV, pentests depending on classificationAs set by the supervisory authority and classification
ISO 27001 certificationScan (A.8.8), pentest (A.8.29, A.5.35)Annually (Bugshell practical recommendation)
Customer requirement or investor due diligencePentest with report and retestBefore the deadline, then event-driven
Launch of a web appWeb app and API pentestBefore launch, then for major releases

Bugshell reports are prepared as evidence for audits. This does not replace a certification, and we do not promise one.

What do you need to clarify before commissioning a pentest?

The following checklist follows the BSI guide:

  • Scope: Which systems, domains, applications and APIs are included?
  • Whitebox or blackbox: The BSI generally recommends whitebox tests. The tester then knows the architecture and receives access.
  • Test team: At least two people, in line with the four-eyes principle.
  • Rules of engagement: Time window, production systems yes or no, emergency contact, abort criteria.
  • Report: Management summary, evidence for each finding, prioritisation, remediation advice.
  • Retest: When and to what extent should the fixes be verified?

Before an IS penetration test, the BSI also recommends an IS short revision (IS-Kurzrevision). This is a sample-based check of baseline protection under IT-Grundschutz. The BSI implementation concept describes a methodology in five phases. It works well as a guide for the process.

For web applications and web services, the OWASP Web Security Testing Guide serves as the testing basis. The stable version is v4.2, and version 5.0 is in development. Our services for this: web application pentest and API pentest.

Figure 1: Three kinds of test, three questions

What this means for you

Proceed in this order:

  1. Map your external attack surface.
  2. Set a scan rhythm.
  3. Clarify the trigger: NIS2, DORA, ISO 27001, customer or investor.
  4. Define the pentest scope.
  5. Plan the retest from the start.

As a startup, you test your web app and API before launch. After that, you repeat the test for major releases. This also helps in investor due diligence, because you can present a solid report.

If you run a mid-sized company, start with the external perimeter. The internal network follows. An Active Directory audit is a sensible addition, because the directory controls accounts and permissions across the whole internal network.

Duration depends on the number of endpoints, the roles and the complexity. Cost drivers are scope, whitebox access, the number of roles and tenants, test depth, the retest and reporting requirements.

Your next step: build your pentest scope in the configurator. For background on our approach, see the page Bugshell penetration testing services.

Frequently asked questions

How many false positives does a scan produce?

There is no reliable figure, so we do not give one. Causes include version detection via banners, backported patches and systems behind filters. A pentest verifies findings for exploitability and separates real risks from noise.

Is a vulnerability scan enough for NIS2 or DORA?

There is no blanket answer. § 30 BSIG requires appropriate, proportionate and effective measures. DORA Chapter IV names scans as a type of test. Certain financial entities are also subject to threat-led pentests. Derive your test strategy from your risk analysis and document it.

What determines the cost of a penetration test?

The key factors are scope, test depth, access (whitebox), the number of roles, the retest and the report format. A reliable figure is only possible once the scope is clear.

Do I need a retest after the fix?

Yes, if the fix needs to be demonstrable, for example for an audit, customer or investor. The retest specifically checks the fixed findings. It takes less effort than the initial test.

Sources

Similar Posts