Vulnerability scanning
| Type | Security testing method |
|---|---|
| Examines | Servers, the services on their network ports, and web applications |
| Finds | Outdated software, missing patches and misconfigurations with a known signature |
| Standard reference | NIST SP 800-115, section 4.3 |
| Example tools | Nuclei, ZAP |
| Related methods | DAST, SCA, SAST, Penetration testing |
Vulnerability scanning is the automated search of computer systems for known vulnerabilities. A scanner finds the hosts on a network, the operating systems and applications they run and the ports they leave open, then compares what it found with a database of known weaknesses and reports the matches. Most of what turns up is outdated software, missing patches and misconfiguration, and the results give a penetration test its first targets.1
How a scanner works
There are two methods. In signature-based scanning, the scanner sends test requests and compares the system's responses and behaviour with the signatures of known vulnerabilities, reporting each match. Some scanners also imitate the probing that attackers do during reconnaissance and report a vulnerability when the probe succeeds.1
A signature in Nuclei, an open-source scanner, is a template: a YAML file that says which requests to send and how to judge the response.2 The template below, from the Nuclei documentation, checks whether a site serves its Git configuration file:3
id: git-config
info:
name: Git Config File
author: Ice3man
severity: medium
description: Searches for the pattern /.git/config on passed URLs.
http:
- method: GET
path:
- "{{BaseURL}}/.git/config"
matchers:
- type: word
words:
- "[core]"The scanner replaces {{BaseURL}} with each target address, requests /.git/config, and reports a finding of medium severity when the response contains the text [core]. The community template collection holds 3,587 templates tagged cve, for vulnerabilities with a CVE identifier, and 454 that cover entries in CISA's Known Exploited Vulnerabilities catalog.4 Since a scanner reports only what its database describes, the latest signature updates go in before every run.1
Types of scan
A network-based scan without credentials sees a host as an outsider does: it finds the hosts, their open ports and the vulnerabilities related to them. It can run from outside the network or from inside. The inside view usually finds more, because firewalls at the edge limit an external scan to the ports they let through; a full assessment runs both.1
A credentialed scan uses administrator credentials on each host to extract vulnerability information from it. A local scan runs the scanner on the host itself with an administrator account, and detects vulnerabilities in more detail than a network scan, including those that can only be exploited locally.1
Web application vulnerability scanners test a site from outside for flaws such as cross-site scripting, SQL injection, Command injection and Path traversal, and go by the name DAST tools.5 Their scans are passive or active. ZAP's baseline scan crawls a site for one minute by default and reads the responses without sending attacks, which its documentation calls suitable "even against production sites".6 ZAP's full scan adds an active scan that "does perform actual 'attacks'" and can run for a long time.7 The baseline scan is started from the ZAP Docker image with the target address:
zap-baseline.py -t https://www.example.comChecking an application's libraries is software composition analysis; reading its source code is static analysis.
Reading results
Scanners grade the risk of each finding on their own scales: one uses low, medium and high, another adds informational and critical, so results from two tools cannot be compared directly. The grade also ignores context. An FTP server flagged as moderate risk for sending passwords in clear text matters little when it is an anonymous public server with no passwords, which is why the assessor sets the risk level of each finding.1 Public measures of a CVE add context: its CVSS score, its EPSS probability and its presence in the KEV catalog (see Severity levels).
Scanners make errors in both directions. A false positive reports a vulnerability that does not exist, so a person with networking and operating-system knowledge has to check the results. A false negative is a vulnerability the signatures miss; running several scanners, or other kinds of testing, catches some of these.1
Limits
A network scan finds vulnerabilities only on systems that are switched on and reached by the scan. It sees surface vulnerabilities, and weighs each one on its own. Several low-risk weaknesses can combine into a serious one, which a scanner cannot test, so it may rate each part as low and leave the assessor overconfident; a penetration test judges that combined risk more reliably.1
Scans generate more traffic than a plain port scan and can slow the hosts and networks they cross. Many scanners include denial-of-service tests that can disrupt the target, often with a switch to leave them out. Thoroughness is a setting too, and a quicker, lighter scan finds only well-known vulnerabilities.1
Notable incident
On 8 March 2017, the US-CERT alert for CVE-2017-5638, a vulnerability in Apache Struts, reached Equifax. Before July 2017 the company ran manually configured scans of its internal and external networks once a month. After the alert, its team ran a commercial scanner and a second commercial product to look for vulnerable copies of Struts, and found none.8 The US Senate Permanent Subcommittee on Investigations reported that the tool had not searched "at the appropriate network levels", partly because Equifax had no complete inventory of its systems to point the scanner at. Equifax's deputy chief information security officer told the subcommittee that the scanner did not crawl through the subdirectory and so missed the vulnerability, and that a scan with no finding was taken to mean no vulnerability existed.8 Attackers entered through the company's online dispute portal and reached the personal information of at least 145.5 million people; Equifax found the intrusion in July 2017.9
In SecFlash
SecFlash reports services with published vulnerabilities on a scanned host as SF-SEC-303 on the Security page, and a matching Nuclei template as SF-SEC-307. When a test for a vulnerability in the KEV catalog gets the response a vulnerable system gives, it reports SF-SEC-682. JavaScript libraries loaded by the site in a version with published vulnerabilities appear as SF-SEC-403, or as SF-SEC-404 when the vulnerability is in the KEV catalog.
See also
- Dynamic application security testing
- Penetration testing
- Software composition analysis
- Common Vulnerabilities and Exposures
- National Vulnerability Database
- Attack surface
- Vulnerable dependencies
- Category: Testing and standards
References
- a b c d e f g h i Scarfone, Karen; Souppaya, Murugiah; Cody, Amanda; Orebaugh, Angela (September 2008). "Technical Guide to Information Security Testing and Assessment", SP 800-115, section 4.3. NIST.
- back ProjectDiscovery. "Introduction to Nuclei Templates". ProjectDiscovery Documentation.
- back ProjectDiscovery. "Basic HTTP Protocol". ProjectDiscovery Documentation.
- back ProjectDiscovery. "Nuclei Templates" (README, read 22 November 2026). GitHub.
- back "Vulnerability Scanning Tools". OWASP Community. OWASP Foundation.
- back "ZAP - Baseline Scan". ZAP Docker documentation.
- back "ZAP - Full Scan". ZAP Docker documentation.
- a b US Senate Permanent Subcommittee on Investigations (2019). "How Equifax Neglected Cybersecurity and Suffered a Devastating Data Breach". Staff report. govinfo.
- back US Government Accountability Office (30 August 2018). "Data Protection: Actions Taken by Equifax and Federal Agencies in Response to the 2017 Breach", GAO-18-559.
External links
- Nuclei templates, ProjectDiscovery documentation
- ZAP Baseline Scan, ZAP documentation