A vulnerability scan and a penetration test are both ways to look for security problems, and they are often bought as if they were the same thing. They are not. A scan tells you what might be wrong. A penetration test tells you what an attacker can actually do. The difference decides whether your developers spend their week on real risks or on a list of maybes.
This guide explains what each one does, where each one fails, what a useful report looks like, and how to combine them. If you want the broader picture first, read what penetration testing is.
What a Vulnerability Scan Does
A vulnerability scanner sends requests to your systems and compares what it sees against a database of known weaknesses. It checks things like:
- Software versions that have published vulnerabilities.
- Missing security headers and weak TLS settings.
- Default credentials and exposed admin panels.
- Open ports and services that should not be reachable from the internet.
- Known misconfigurations in common frameworks and servers.
The output is usually a long list, sorted by severity, with the rule that matched each item. Scans are fast, often finishing in minutes to hours, and they are cheap enough to run every day. That is their strength. They are an excellent way to catch the easy problems before an attacker does.
What a Penetration Test Does
A penetration test starts where the scan stops. A tester, or an automated system acting like one, takes the map of your product, looks for weaknesses and then tries to use them. If a parameter looks like it controls access, the tester changes it and checks what happens. If a password reset flow seems weak, the tester tries to take over an account. If two small issues can be chained, the tester combines them into a real path.
Every finding that survives this process has evidence. The report shows the request that was sent, the response that came back and why that response is a problem. A finding that cannot be reproduced is dropped or marked as unproven, rather than reported as a threat.
The NIST SP 800-115 guide to technical security testing describes this kind of work as planned, controlled testing that goes beyond identifying vulnerabilities and confirms their impact.
The Side-by-Side Difference
| Vulnerability scan | Penetration test | |
|---|---|---|
| Main question | What might be vulnerable? | What can an attacker actually do? |
| Method | Pattern matching against known weaknesses | Exploitation, chaining and verification |
| Typical output | List of possible issues with rule matches | List of proven issues with evidence |
| False positives | Common, especially for libraries and headers | Rare, because unproven findings are dropped |
| Access control and business logic | Mostly missed | The main focus |
| Chained attacks | Not found | Found where the path is real |
| Time to results | Minutes to hours | Hours (automated) to weeks (manual) |
| Frequency | Weekly, daily or on every deployment | Yearly, before launches, or on every release with automation |
| Fix guidance | Generic, often a version upgrade | Specific to the code path that was exploited |
The table makes the trade-off clear. Scans cover breadth and speed. Penetration tests cover depth and proof.
Why Scans Miss the Serious Bugs
Think about the bug that most often leads to a data breach in a web product: broken access control. A user changes an invoice ID in a URL and sees another customer's invoice. Nothing in that request looks wrong to a pattern matcher. The URL is valid, the response is a normal 200, and the headers are fine. The only way to know the request should have been refused is to understand what the product is supposed to allow.
The OWASP Top 10 entry on broken access control lists this as the most common category of serious weakness in web applications. Our guide to IDOR and broken access control shows how these bugs look in practice. A scanner may report a generic warning about the endpoint. A penetration test logs in as two users and checks whether the second one can read the first one's data.
The same applies to business logic. A coupon that can be applied twice, a trial that never expires, or a negative quantity that produces a refund will not appear in any scanner's database. They appear when someone tests the product's rules.
Why Scans Create So Much Noise
Scanners often report a library as vulnerable because its version number is in the vulnerable range. They do not check whether your application ever calls the vulnerable function. They flag a missing header on a page that handles no sensitive data. The result is a report full of findings that look serious and take hours to rule out.
This is one of the hidden costs of scans. Developers spend time proving that a finding is not real, and the security team loses trust in the tool. A penetration test removes most of that work because every finding has to be exploited before it is reported. A finding that cannot be used does not reach the report.
What a Good Report Looks Like
Compare the two report types on the same issue to see the difference. A scan might say:
Possible SQL injection in parameter id on endpoint /api/orders. Matched rule 942100.
A penetration test should say something closer to this:
- Finding: A user can read orders that belong to other customers.
- Proof: Logged in as user A, a GET request to
/api/orders/1842returned the order of user B, with the customer's name, address and payment last four digits. - Impact: Any logged-in customer can enumerate order numbers and read other customers' personal data.
- Fix: Scope the query to the authenticated customer's ID on the server, and add an automated test that fails if another user's order is returned.
- Retest: The same request now returns a refusal, and the finding is closed.
The second version tells your developers exactly what to change and how to confirm it. The guide to reading a penetration test report goes through this in detail.
When You Need Each One
Use a vulnerability scan for:
- Routine hygiene across servers, domains and cloud resources.
- Catching outdated components and exposed services quickly.
- Checking that a new deployment did not introduce an obvious misconfiguration.
Use a penetration test for:
- Proving whether an attacker can reach customer data or admin functions.
- Testing logged-in flows, multiple roles and your API.
- Preparing for a customer security review or an audit.
- Checking fixes after a serious incident.
Most teams need both, on different schedules. The scan runs often and catches what is known. The penetration test runs at a meaningful interval and checks what is actually reachable. Automated penetration testing narrows the gap by testing on every release, which is the model described in continuous penetration testing.
Using Scan Results Inside a Penetration Test
Scans are not wasted when you also run a penetration test. A good tester starts with the same inventory a scanner builds: domains, open services, software versions and headers. That inventory tells the tester where to look first. The difference is what happens next. The scan stops at a match. The penetration test asks whether the match is reachable, whether a logged-in user can trigger it and what an attacker gains.
The reverse also holds. A penetration test finds bugs in your own code that no scanner will ever know about, and those findings are worth adding to your regular scan rules so they are caught again if they return. Used together, the two tools make each other more useful.
How to Tell Which One You Are Buying
Many products sold as penetration tests are scans with a better report template. Ask these questions before you pay:
- Does any finding come with a request and response that prove it?
- Is anything exploited, or is it all matched rules and versions?
- Does the test log in with several roles, or only scan the public site?
- What happens to findings that cannot be proven?
- Is a retest included after fixes?
If the answers are vague, you are buying a scan. There is nothing wrong with a scan when it is priced and described as one. The problem starts when a scan is sold to a customer, an auditor or your own board as proof that the product is secure.
How Hetz Fits In
Hetz is an autonomous penetration testing tool. Agents test your live product end to end, signed in as test users, and only proven findings reach the report, each with the exact request and response. Every finding ships with a full fix: the patch for your stack, a test that reproduces the issue and a ready prompt for your coding agent. A one-click retest closes the finding once the fix is in. Before any scan, you prove domain ownership with a DNS record and sign an authorization, and a network firewall keeps the scan inside the scope you agreed to.
Hetz is not a replacement for basic hygiene, and a scan is still useful alongside it. The point is that the findings you act on should be the ones an attacker could actually use. Read more about the approach on the security page and see the penetration testing landing page for the full scope.
Next Steps
Start by listing what you already run: a scanner, a manual test, or neither. If you only have a scanner, add a test that exploits findings, starting with your login flow and your API. Compare the options on pricing, and when you want proof rather than a list of possibilities, start a scan.
FAQ