Comparison

Penetration test vs vulnerability scan: what each one finds, and which to choose

A scanner lists the known vulnerabilities across your whole estate; a penetration test shows how far an attacker can get. Here is what each one finds, what it misses, and how to combine them.

Vulnerability scan vs pentest: key points

A vulnerability scanner and a penetration test both produce a list of vulnerabilities, but they do not answer the same question. This comparison draws on the reference texts (NIST SP 800-115, PCI DSS v4.0.1, OWASP) to show what each one finds, what it misses, and which to choose for your situation.

In short

A vulnerability scan is an automated check: the tool identifies systems and compares them with a database of known vulnerabilities (outdated versions, missing patches, common risky configurations). A penetration test (pentest) is carried out by an expert who reproduces a real attack, exploits vulnerabilities to confirm they exist and looks for combinations that give more access than a single vulnerability. A scanner covers a wide area, often and at low cost, but it produces false positives and misses broken access control, business logic and chained attacks. A pentest goes deep on a defined scope, at a given point in time. PCI DSS v4.0.1 requires both, under two separate requirements: scans at least once every three months (11.3), penetration tests at least once every 12 months and after any significant change (11.4). In practice: regular scanning for hygiene, and a pentest every year and after each major change to measure real resilience.

What is a vulnerability scan, and what is a pentest?

A scanner compares what it sees with known signatures; a pentester actually attacks. NIST draws this distinction in its reference guide on security testing, SP 800-115 (September 2008), which gives each one its own section.

Vulnerability scanning

According to section 4.3 of SP 800-115, a scanner identifies hosts and their attributes (operating system, applications, open ports), then matches them against the known vulnerabilities stored in its database. This is how it spots outdated software versions, missing patches and misconfigurations. The most common infrastructure tools are Nessus (Tenable), OpenVAS (Greenbone) and Qualys; there are also scanners dedicated to web applications.

A scan can be run in two ways:

  • from the network, without credentials: the tool infers versions from what services expose;
  • authenticated: the tool has an account on the hosts and reads versions and configuration directly. NIST notes that scanning with an administrator account directly on the host detects vulnerabilities in more detail than scanning from the network.

NIST describes scanning as a “relatively fast and easy” way to measure exposure to “surface vulnerabilities”: weaknesses that exist in isolation, independent of others. This notion is the key to the comparison.

Penetration testing

Section 5.2 defines penetration testing as testing in which assessors mimic real-world attacks to circumvent the security features of an application, system or network. Most penetration tests, NIST adds, look for combinations of vulnerabilities that give more access than a single one. And the difference is summed up as follows: a scanner only checks for the possible existence of a vulnerability, while a pentest exploits it to confirm that it exists.

A pentest also uses scanners, during the discovery phase. At SSHack, they come before manual testing and controlled exploitation, carried out without impact on production (see our penetration testing methodology guide).

What about a “vulnerability assessment”?

The term varies from one provider to another: a plain scan, a scan checked by hand, or a broader cybersecurity audit. Ask what will be delivered: a list produced by a tool, verified vulnerabilities, or exploited vulnerabilities with evidence.

Why does PCI DSS require both, separately?

Because they do not measure the same thing: PCI DSS v4.0.1, published by the PCI SSC in June 2024 and the only version in force since v4.0 was retired on 31 December 2024, gives them two separate requirements.

  • Requirement 11.3, regular identification of internal and external vulnerabilities:
    • 11.3.1: internal scans at least once every three months, critical and high-risk vulnerabilities resolved, rescans to confirm it, tool kept up to date;
    • 11.3.1.2: internal scans performed via authenticated scanning;
    • 11.3.2: external scans at least once every three months, by an ASV (Approved Scanning Vendor, a scanning provider approved by the PCI SSC);
    • 11.3.1.3 and 11.3.2.1: internal and external scans after any significant change.
  • Requirement 11.4, regular internal and external penetration testing:
    • 11.4.1: a documented methodology covering the application layer and the network layer, from inside and outside, and testing segmentation;
    • 11.4.2 and 11.4.3: internal and external penetration tests at least once every 12 months and after any significant infrastructure or application upgrade or change, by a qualified internal resource or a qualified external third party, with organisational independence;
    • 11.4.5: if segmentation isolates the cardholder data environment (CDE), tests of that segmentation at least once every 12 months and after any change to segmentation controls (every six months for service providers, 11.4.6).

In practice, an ASV scan report does not replace a penetration test report, and vice versa. A pentest report provides technical evidence for requirement 11.4; the external scans of requirement 11.3.2 must be done by an ASV. The PCI SSC states that v4.0.1 neither adds nor removes any requirement compared with v4.0.

Vulnerability scan vs penetration test: what are the differences?

A scan answers “which known vulnerabilities are present?”, a pentest answers “how far can an attacker get?”. The table covers the rest.

CriterionVulnerability scanPenetration test
MethodAutomated: identifies hosts and services, compares them with a signature databaseManual and tool-assisted: reconnaissance, analysis, controlled exploitation, pivoting
ScopeWide: every reachable asset, in one passSet during scoping: one application, one Active Directory domain, one network
FrequencyAt least quarterly for PCI DSS; often monthly or continuousAt least annually for PCI DSS, and after any significant change
DurationA few hours depending on the size of the estate; can be scheduled and rerun at willSeveral days: at SSHack, 3 to 10 days for a web application, 5 to 10 days for Active Directory
What it findsOutdated versions, missing patches, default configurations, published vulnerabilitiesExploitable vulnerabilities, including those no signature describes
False positivesPotentially high rate according to NIST: an expert must interpret the resultsVulnerabilities verified manually and, where it can be done safely, demonstrated
Logic vulnerabilitiesNot detected (OWASP)One of the main targets of the test
ChainingNo: each vulnerability is rated in isolationYes: most penetration tests look for these combinations, according to NIST
Risk levelGeneric score assigned by the toolSeverity assessed in your context
DeliverableTool export: list sorted by score, generic recommendationsReport: executive summary, attack scenarios, evidence, prioritised recommendations; SSHack also holds a debrief meeting

What does a vulnerability scanner miss?

A scanner only sees what matches a signature, and it judges each vulnerability in isolation. NIST says so itself: scanners cannot detect vulnerabilities that only show up through potentially unlimited combinations of attacks, and may give each one a low risk rating, leaving the assessor with a false sense of security.

Vulnerability classScannerPentest
Missing patch, published vulnerable versionYes, across the whole estate (its strength)Yes, within the tested scope
Default configuration, service exposed by mistakeYes, for common casesYes
Broken access control, IDORRarely: the tool does not know who is allowed to see whatYes, with one account per role
Business logicNoYes
Chaining of medium vulnerabilitiesNoYes
Active Directory control pathsPartly, one item at a time, with dedicated toolsYes, end to end
Context-dependent riskGeneric scoreAssessed in your context

Broken access control and IDOR

Broken access control ranks first in the OWASP Top 10 2025 (A01:2025). An example given by OWASP: viewing or editing another user's account by supplying its identifier, known as an IDOR (insecure direct object reference). To a scanner, an invoice shown to a customer who does not own it is a valid page: it does not know the rule “customers only see their own invoices”. The tester logs in with two accounts that have different roles and compares.

Business logic

The OWASP testing guide (WSTG v4.2) is explicit: this type of vulnerability cannot be detected by a scanner, and finding it relies on the tester's skills and creativity. The example given: getting loyalty points credited, then cancelling the transaction. An application with no known vulnerability at all can still let someone bypass a validation step.

Chaining medium vulnerabilities

NIST points out that several low-risk vulnerabilities can present a higher risk once combined. A typical example: a world-readable network share holds a script containing a service account's password; that account is a local administrator on several servers; on one of them, a domain administrator has an open session. Taken one by one, these findings are “medium” or not reported at all. Chained together, they lead to control of the domain.

Active Directory control paths

A misconfigured delegation, an overly permissive ACL or a service account exposed to Kerberoasting are not published vulnerabilities: they are valid configurations that a standard network scanner does not report, or reports without saying where they lead. ANSSI (France's national cybersecurity agency) calls them control paths: the ways an attacker can reach their targets. Dedicated audit tools list some of these items; an Active Directory penetration test starts from a standard user workstation and shows whether the path really leads to domain admin rights. For a first check, see our Active Directory security checklist.

Configurations whose risk depends on context

NIST cites an FTP server rated “moderate risk” because it sends passwords in cleartext, although it is only used for public anonymous access: the real risk is much lower. The reverse also happens: an “informational” finding can be the piece an attacker was missing. Finally, a scanner does not test your employees' credentials already circulating online; the reconnaissance phase of an SSHack pentest relies in particular on Stealint to find them (see OSINT reconnaissance).

What does a scanner do better than a pentest?

It covers the whole estate, often, and quickly spots what is already known. For these uses, a scanner is the right tool, not a cut-price pentest.

  • Coverage: a pentest lasting a few days does not check the patch level of every server and every workstation; an authenticated scan does.
  • Frequency: new vulnerabilities are published continuously. With an up-to-date signature database (NIST recommends updating it before each scan), regular scanning catches the vulnerability published last week on a server judged clean at the last pentest.
  • Detecting known vulnerabilities and missing patches: this is its primary function, and it does it exhaustively and reproducibly.
  • Cost and autonomy: the tool can be run in-house and rerun at will, for instance after a round of patching. Open-source options exist, such as OpenVAS.
  • Traceability: scan history shows how exposure changes over time and serves as evidence for regular-scanning requirements.

NIST considers it essential for addressing vulnerabilities before an adversary exploits them, while pointing out that its results require human interpretation.

How do you combine vulnerability scans and pentests?

Regular scanning maintains hygiene, a pentest measures real resilience, and each makes the other more useful.

  1. Scan the whole estate regularly, internally and externally, with authenticated scans where possible: at least every quarter, monthly if you can. Deal with critical and high vulnerabilities first.
  2. Act on scan results before the pentest. Test days spent listing missing patches are days not spent looking for what the scanner cannot see. During scoping, flag the vulnerabilities you already know about and those being fixed.
  3. Run an annual pentest on critical scopes: exposed applications, Active Directory, remote access.
  4. Add a pentest after every major change: migration, application overhaul, new internet exposure. This is the rule PCI DSS sets (11.4.2 and 11.4.3).
  5. Feed the report back into monitoring: findings that can be automated (a service that should not be exposed, a vulnerable version) can be added to the scanning policy. For access control, OWASP recommends including functional tests in developers' unit and integration tests.

Vulnerability scan or pentest: which should you choose for your situation?

Start from your situation, not from the tool. Answer the questions in order.

  1. Do you have an up-to-date inventory of what is exposed, and a patching process? No: start with an authenticated scan, internal and external, which gives you a first map and the obvious patches. Yes: go to question 2.
  2. Is a customer, a prime contractor or a standard asking you for a specific deliverable? Yes: read the exact wording (“ASV scan”, “penetration test”, “audit”) and get the expected scope clarified (external, internal, application). A scan report does not meet a request for a penetration test. Our penetration test RFP template helps you scope the request. No: go to question 3.
  3. Do you have an application that handles sensitive data, payments or role-based permissions? Yes: an authenticated web application penetration test, with one account per role, because that is where IDORs and business logic issues sit. A web scanner is still useful as a complement between two tests. No: go to question 4.
  4. Does your internal network rely on Active Directory? Yes: an Active Directory pentest from a standard user workstation; a scan does not measure control paths. No: go to question 5.
  5. Have you just been through a migration or a major change (move to the cloud, domain merger, application overhaul, change of hosting provider)? Yes: scan the new scope immediately to check exposure, then run a targeted pentest on what has changed. No: go to question 6.
  6. Do you already scan regularly and run a pentest every year? Yes: the next step is to measure your detection capability against a full attack scenario, with a Red Team engagement. No: put that foundation in place first (regular scans, annual pentest).

How can you tell a “pentest” that is only a scan?

Look at the report, not the name of the offer. Several signs should raise a flag:

  • findings repeat a scanner's titles word for word, with no proof of exploitation;
  • no attack scenario or chaining is described;
  • the methodology mentions no authenticated testing with several roles on an application that has several;
  • risk levels are the tool's, not adjusted to your context;
  • there was no scoping, no rules of engagement and no debrief meeting;
  • the announced duration bears no relation to the size of the scope.

Our guide How to read a penetration test report details what a report should contain.

Test what your scanners cannot see

SSHack penetration testing

Our penetration tests are carried out by our team of three experts from the French Ministry of the Armed Forces (Ministère des Armées), including a Red Team expert certified OSCP and OSEP. Every engagement follows the same phases: scoping of the perimeter and rules of engagement, reconnaissance, manual testing and controlled exploitation without impact on production, a technical report with an executive summary and recommendations prioritised by severity, and a debrief meeting. Any critical vulnerability found during the engagement is reported to you immediately.

Frequently asked questions

Is a vulnerability scan enough for PCI DSS?

No. PCI DSS v4.0.1 covers scans in requirement 11.3 (internal and external, at least once every three months, external scans by an ASV) and penetration tests in requirement 11.4 (internal and external, at least once every 12 months and after any significant change). A scan report does not replace a penetration test report, and vice versa.

Can an annual pentest replace scans?

No. A pentest measures a defined scope at a given point in time. New vulnerabilities are published all the time: only regular scanning checks, between two pentests, that patches are applied everywhere.

What is an authenticated scan?

It is a scan run with an account on the systems being analysed. The tool then reads installed versions and configuration directly, instead of inferring them from the network, which gives a more detailed result. PCI DSS v4.0.1 requires it for internal scans (requirement 11.3.1.2).

Is a “vulnerability assessment” a scan or a pentest?

It depends on the provider: the term can mean an automated scan, a scan whose results are checked by hand, or a broader audit. Ask what will be delivered: a list produced by a tool, manually verified vulnerabilities, or exploited vulnerabilities with evidence.

How often should you run a pentest if you already scan?

At least once a year on critical scopes, and after every major change (migration, application overhaul, new internet exposure). That is the frequency PCI DSS sets.

Further reading

Sources

Contact

A question about this topic?

Describe your context (scope, objectives, regulatory constraints). We will get back to you with a proposal and a detailed quote, usually within one business day.

From the French Ministry of the Armed Forces

A Red Team expert certified OSCP and OSEP, an OSINT / CTI specialist and a DevSecOps engineer.

Confidentiality

NDA, encrypted data, secure destruction of all traces at the end of the engagement.

Across France

Paris, Marseille, Nice, Bordeaux: on site or remotely.

Not ready for a quote yet? Receive a sample anonymised report by email: executive summary, documented vulnerabilities with their evidence, recommendations prioritised by severity. Work email addresses only.

Get a sample report
Approximate scope, deadlines, requirements (GDPR, NIS2, DORA, ISO 27001…).