Chapter 5 · Reading 2 of 5
Vulnerability Scanning
Security+ SY0-801 · Objectives 4.3
Two scan reports name the same maintenance portal server. One, run from outside the campus network, sees only a web service on port 443 and reports nothing urgent. The other, run with administrator credentials, lists forty outdated packages installed inside the operating system. Is one of them wrong? Both may be accurate. Each tool had a particular vantage point and a particular set of permissions.
What a vulnerability scanner does
A vulnerability scanner discovers hosts and services, identifies software versions and configurations and compares them with a database of known weaknesses. It reports possible vulnerabilities. It does not usually exploit them. That is the job of a penetration test. Scanners differ along a few dimensions, and each affects what they can see.
Credentialed and non-credentialed scans
- A non-credentialed scan connects without logging in, as an outside attacker would. It shows which services are reachable from the scanner’s network position and what they reveal, such as version banners. It is quick to run but cannot see installed software that is not exposed, local configuration or missing patches inside the host.
- A credentialed scan logs in with an account so it can read installed packages, patch levels and security settings. It finds far more and produces fewer false positives, because it reads real versions rather than guessing from banners. Its scanning account must be protected carefully, granted only the rights it needs and monitored, because it is a valuable credential.
Read the opening case again. The external scan correctly reports what an internet attacker can reach. The credentialed scan correctly reports outdated packages that an attacker who gets inside could use. Both belong in the assessment.
- Sees: one web service on port 443 and its version banner
- Cannot see: installed packages, local settings, missing patches
- Answers: what can an internet attacker reach?
- Sees: 40 outdated packages inside the operating system
- Reads real versions, so fewer false positives
- Answers: what could an attacker who gets inside use?
Other choices that shape the result
- Agent-based or agentless. An agent installed on each host reports continuously, even from laptops off the campus network. Agentless scanning needs no installation but only sees hosts it can reach when it runs.
- Active or passive. Active scanning sends probes, which can occasionally disrupt fragile devices such as building controllers. Passive scanning watches existing network traffic and infers versions without touching hosts.
- Internal or external. The scanner’s position decides which firewalls sit between it and the target.
- Scope and schedule. A scan covers only the address ranges and times it is given. Short-lived cloud instances can appear and disappear between scans.
The languages scanners share
The Security Content Automation Protocol (SCAP), maintained by NIST, standardizes how security tools describe and check vulnerabilities and configurations, so that results from different products can be compared. Its components include:
- CVE (Common Vulnerabilities and Exposures) for naming vulnerabilities.
- CPE (Common Platform Enumeration) for naming products and versions.
- CCE (Common Configuration Enumeration) for naming configuration settings.
- CVSS (Common Vulnerability Scoring System) for rating severity.
- XCCDF (Extensible Configuration Checklist Description Format) for writing checklists, such as a hardening benchmark.
- OVAL (Open Vulnerability and Assessment Language) for describing the technical test that checks a system’s state.
- CVE
- Which vulnerability?
- CPE
- Which product and version?
- CCE
- Which configuration setting?
- CVSS
- How severe?
- XCCDF
- Which checklist, such as a hardening benchmark?
- OVAL
- What technical test checks the system’s state?
Configuration scans often compare hosts with a published benchmark, such as those from the Center for Internet Security (CIS), and report every setting that differs from the hardened baseline.
Testing the applications themselves
Network scanners check known software. Custom applications, such as a portal the college wrote, need their own testing.
| Aspect | Static testing (SAST) | Dynamic testing (DAST) |
|---|---|---|
| Method | Examines source code without running it | Sends requests to the running application |
| Timing | During development, before release | After the application is running in a test environment |
| Finds | Unsafe code patterns and hardcoded secrets | Behavior visible from outside, such as injection responses |
| Blind spots | Runtime configuration and deployment issues | Code paths the test never reaches |
| Example tools | SonarQube, Semgrep | OWASP ZAP, Burp Suite |
Explain a blank result
Last month’s report showed thirty hosts with successful credentialed checks. This month’s shows twenty, and none of the missing ten have findings. Before announcing that ten machines are clean, check the credential success log and the asset list. An expired scanning password, a retired host and a new firewall rule all remove observations, for different reasons. Report “not assessed” separately from “assessed, no findings.” Return to the two reports on the portal server: together they show what is exposed and what is outdated, and the owner needs both. The next reading, Understanding CVSS and CVEs, explains how to read the identifiers and scores in those findings.
Inspect the three records, then use the evidence to answer the question.
1. External view
Tests what the network position can reach.
Inventory contains 40 managed hosts
2. Credentialed view
Reads authorized host details.
Twenty returned authenticated scan results
3. Reconciliation
Compare permissions, scope, and evidence.
Ten others returned only a network banner
Apply the reading
An external scan looks clean but a host inventory reports outdated software. How can both results be accurate?
Compare your reasoning
The service may be unreachable from the scanner while the package remains installed. Record vantage point, authentication status, and software evidence.