Scanner Output Triage and False Positives
A vulnerability scanner run against fifty hosts easily produces several hundred findings. Some are real and serious, many are real but trivial, and a significant share are false positives: the scanner believes a weakness exists because a banner or a response looked like one. A report that passes them on teaches the client to ignore the report. Triage is the human step that sorts the output into confirmed, false positive, needs-validation and informational, records why, and keeps the evidence. This lesson shows the common causes of false positives and triages a scanner export, including the most frequent one: backported fixes.
Vulnerability scanners themselves (Greenbone/OpenVAS, Nessus, Qualys and their operation) are covered from the operator's side in Network Security.
Why scanners are wrong
| Cause | Example | How triage resolves it |
|---|---|---|
| Backported fix | "OpenSSH < 9.8p1 is vulnerable" on Ubuntu's patched 8.9p1-3ubuntu0.10 |
compare the package version with the distribution's fixed version |
| Banner only | version taken from a greeting that a proxy, a fake or a custom build presents | confirm the version another way (package query with credentials, behaviour) |
| Configuration-dependent CVE | a module or feature the CVE needs is disabled | read the configuration, or test the precondition safely |
| Generic response match | a WAF or a catch-all page returns 200 for every path, so "backup file found" fires everywhere |
request a nonsense path; if it also gets 200, the check is meaningless |
| Unauthenticated guess | "Windows patch missing" inferred from SMB behaviour | an authenticated scan reads installed updates |
| Duplicate | the same issue reported per port, per plugin or per host name | group by root cause |
The opposite error, the false negative (a real weakness the scanner misses), is invisible in the output. That is why tests don't end with the scan.
Triage with package versions
On Debian and Ubuntu, dpkg --compare-versions implements the exact comparison rules of distribution versions, including epochs (1:) and revision suffixes (-3ubuntu0.10), which plain string or number comparisons get wrong. The session below takes a scanner export and the package versions read during an authenticated check, and compares each with the fixed version from the distribution's security notice. The hosts and installed versions are lab examples; the fixed versions in tracker.csv are the ones Ubuntu publishes for 22.04 (the CVE tracker and the notices USN-6859-1 and USN-7132-1), which is what a tester copies from the distribution's tracker on the day.
cat > scanner.csv <<'EOF'
host,plugin,cve,claim
www,openssh-regresshion,CVE-2024-6387,OpenSSH 8.9p1 < 9.8p1
web03,openssh-regresshion,CVE-2024-6387,OpenSSH 8.9p1 < 9.8p1
www,nginx-old,CVE-2021-23017,nginx 1.18.0 < 1.21.0
db01,postgresql-old,CVE-2024-10979,PostgreSQL 14 < 14.14
EOF
cat > installed.csv <<'EOF'
host,package,version
www,openssh-server,1:8.9p1-3ubuntu0.10
web03,openssh-server,1:8.9p1-3ubuntu0.6
www,nginx,1.18.0-6ubuntu14.4
db01,postgresql-14,14.13-0ubuntu0.22.04.1
EOF
cat > tracker.csv <<'EOF'
cve,package,fixed_in
CVE-2024-6387,openssh-server,1:8.9p1-3ubuntu0.10
CVE-2021-23017,nginx,1.18.0-6ubuntu9
CVE-2024-10979,postgresql-14,14.15-0ubuntu0.22.04.1
EOF
tail -n +2 scanner.csv | while IFS=, read -r host plugin cve claim; do
fixed_line=$(grep "^$cve," tracker.csv)
pkg=$(cut -d, -f2 <<< "$fixed_line"); fixed=$(cut -d, -f3 <<< "$fixed_line")
have=$(grep "^$host,$pkg," installed.csv | cut -d, -f3)
if dpkg --compare-versions "$have" lt "$fixed"; then
verdict="CONFIRMED installed $have < fixed $fixed"
else
verdict="FALSE POS installed $have >= fixed $fixed (backport)"
fi
printf '%-6s %-15s %s\n' "$host" "$cve" "$verdict"
done
echo "== why plain comparison fails"
python3 -c "print('8.9p1-3ubuntu0.10' < '8.9p1-3ubuntu0.6', '(string compare says .10 is older than .6)')"
dpkg --compare-versions 1:8.9p1-3ubuntu0.10 gt 1:8.9p1-3ubuntu0.6 && echo "dpkg: 0.10 is newer than 0.6"www CVE-2024-6387 FALSE POS installed 1:8.9p1-3ubuntu0.10 >= fixed 1:8.9p1-3ubuntu0.10 (backport)
web03 CVE-2024-6387 CONFIRMED installed 1:8.9p1-3ubuntu0.6 < fixed 1:8.9p1-3ubuntu0.10
www CVE-2021-23017 FALSE POS installed 1.18.0-6ubuntu14.4 >= fixed 1.18.0-6ubuntu9 (backport)
db01 CVE-2024-10979 CONFIRMED installed 14.13-0ubuntu0.22.04.1 < fixed 14.15-0ubuntu0.22.04.1
== why plain comparison fails
True (string compare says .10 is older than .6)
dpkg: 0.10 is newer than 0.6
The same scanner plugin fired on www and on web03; only web03 is really vulnerable, because its package is an older revision. The nginx finding is a false positive on www (the distribution patched 1.18.0), and the PostgreSQL finding is confirmed: 14.13 is older than Ubuntu's fixed package 14.15 (upstream fixed the CVE in 14.14; Ubuntu's notice shipped the follow-up release 14.15). The last two lines show the trap that catches home-made scripts: as strings, …0.10 sorts before …0.6.
The triage record
Each scanner finding ends with a status and a reason that someone else can check:
ID Host Source/plugin Status Reason / evidence
S-014 www openssh-regresshion false positive pkg 1:8.9p1-3ubuntu0.10 = USN fixed version (2026-12-03, authenticated)
S-015 web03 openssh-regresshion confirmed pkg 1:8.9p1-3ubuntu0.6 < fixed; -> report finding F-09
S-016 www nginx-old false positive pkg 1.18.0-6ubuntu14.4 >= fixed 1.18.0-6ubuntu9 (Ubuntu CVE tracker)
S-017 db01 postgresql-old confirmed pkg 14.13 < fixed 14.15 (USN-7132-1); -> report finding F-10
S-018 * http-backup-files false positive catch-all 200 page: /zz-not-real-9137 also returns 200The client receives the confirmed findings in the report and the triage list as an appendix, so that their own scanner's output can be reconciled with the test.
How false positives are prevented (on both sides)
- Run authenticated scans where the RoE allows: package and patch data replace banner guesses.
- Use scanners' distribution-aware checks (they read package versions and vendor advisories rather than upstream version ranges).
- Keep an exceptions list with reasons and expiry dates ("backported, verified 2026-12-03, recheck at next scan"), so the same false positive isn't triaged every month.
- Test the catch-all behaviour of web servers before trusting path checks.
Pitfalls
- Marking false positive without evidence. "We think it's patched" is not a reason; the package version and the notice are.
- Triage by severity only. Low findings on the same host often explain the high ones (an old banner, an exposed admin page).
- Assuming that confirmed means exploitable. A confirmed vulnerable version still needs the preconditions; that is the job of safe validation.
- Deleting findings from the export. Keep everything with a status; auditors and the retest need the full trail.
Practice
- Add
web03with package1:8.9p1-3ubuntu0.13toinstalled.csvinstead of0.6. What does the loop print, and why? - A web scanner reports "phpMyAdmin found at /phpmyadmin/" on a host that runs no PHP. Which test from the table do you run first?
Answers
FALSE POS ... (backport): 0.13 is a later revision than the fixed 0.10, anddpkg --compare-versionsorders revisions numerically.- The catch-all check: request a nonsense path. If it returns the same
200page, the finding is a generic response match. If not, request/phpmyadmin/and look at what actually answers.
Test yourself
A scanner flags OpenSSH 8.9p1 as vulnerable to a CVE fixed upstream in 9.8p1. The host runs the distribution's patched package. What is it?
- Confirmed critical
- A false positive caused by a backported fix, once the package version matches the distribution's fixed version
- A false negative
- Out of scope
Why does comparing '8.9p1-3ubuntu0.10' and '8.9p1-3ubuntu0.6' as strings fail?
- It doesn't fail
- String order compares character by character, so '1' < '6' makes 0.10 look older than 0.6
- Strings can't hold versions
- Epochs are ignored
A web server answers 200 for every path, including nonsense ones. What does that do to path-based scanner findings?
- Confirms them all
- Makes them meaningless until checked individually: the scanner matches the catch-all page
- Nothing
- Makes them critical
What reduces banner-based false positives most?
- Faster scans
- Authenticated scans that read installed packages and patches
- Turning off version detection
- Scanning at night