COMP-222 · Lesson 8 of 12 · 20 min

Validating findings and false positives

▶ Video coming soon A video version of this lesson is on the way.

Tobias's validation list for Prairiefold's internal network had sixty-two items by October 27, 2026: every high and critical finding based on a banner, every finding the client was likely to dispute, and every result that looked too good or too bad to be true. Dario added a sixty-third item at the bottom in red: the things we did not find. A report with no false positives, he said, could still be badly wrong if the scan had missed half the network.

Objective 3.2 asks you to validate scan results by identifying false positives, false negatives and true positives, to assess scan completeness, to troubleshoot scan configurations, to select public exploits, and to use scripting to validate results. This lesson covers all of them. Validation is where a penetration tester earns trust: every finding in the report should be one the tester can defend with evidence.

True and false, positive and negative

Every scanner decision falls into one of four cells. A true positive is a reported vulnerability that really exists. A false positive is a reported vulnerability that does not exist. A true negative is a correctly unreported non-issue. A false negative is a real vulnerability the scanner did not report.

A two-by-two grid. Columns: vulnerability really present, vulnerability not present. Rows: scanner reports it, scanner does not report it. Top left: true positive, report it with evidence. Top right: false positive, remove it and record why. Bottom left: false negative, missed, find through completeness checks and manual testing. Bottom right: true negative.
The four outcomes of a scanner decision and what the tester does with each.

False positives waste the client's time and erode trust in the whole report. A system administrator who spends a day chasing a vulnerability that turns out not to exist will read the next ten findings skeptically. False negatives are more dangerous because they are invisible: a clean section of the report tells the client a system is safe when nobody actually checked it properly. A good tester works on both, removing false positives through validation and hunting false negatives through completeness checks and manual testing.

Common causes of false positives

Typical causes of false positives and how testers check them.
CauseExampleHow to check
Version inferred from a bannerA Linux server reports an upstream version that has a vendor backportCheck the installed package against the distribution's advisory
Compensating configurationA vulnerable module is installed but disabledRead the configuration or test the specific feature
Generic responsesA web application returns status 200 with a friendly page for every path, so the scanner thinks sensitive files existRequest the path manually and compare with a known nonexistent path
Intermediary devicesA load balancer or web application firewall answers instead of the serverIdentify what actually responded; test from another position
Stale dataThe host was patched after the scanCheck patch dates and rescan
Wrong assetA shared address or reused name points to a different system than expectedConfirm identity by certificate, hostname or management data

At Prairiefold, the largest group of false positives came from the first cause. Nine Linux servers ran an enterprise distribution that backports fixes, and the unauthenticated scan had reported several high-severity SSH and web server vulnerabilities based on version banners. Once the credentialed rescan worked, the package-level checks showed the fixes were installed. Tobias marked each as a false positive with a note citing the installed package version and the distribution advisory, so that anyone reading the tracker later could see why.

A second group came from the generic-response cause. Prairiefold's intranet returned a friendly page with HTTP status 200 for every request, including for paths that did not exist. A web scanner had concluded that dozens of sensitive files, such as backup archives and administrative scripts, were present. Tobias requested a made-up path and received the same page, which proved the scanner was being fooled. These are sometimes called soft 404 responses, and the remediation advice was to return a proper not-found status, which also makes the client's own monitoring more accurate.

Common causes of false negatives

False negatives usually come from limits on what the scanner could see or do.

  • Authentication failures. As lesson 3 showed, a failed credentialed scan silently drops most local checks.
  • Filtering and blocking. Firewalls, host firewalls and intrusion prevention systems may block or shun the scanner partway through, after which every port looks filtered.
  • Exclusions and policy. Hosts, ports or check families excluded by the scan policy are not tested, by design.
  • Out-of-date checks. A scanner whose feed has not updated cannot detect recently disclosed vulnerabilities.
  • Unsupported technology. Custom applications, unusual protocols and niche devices may have no checks at all.
  • Coverage gaps in applications. Crawlers miss pages behind complex workflows or client-side code.
  • Logic flaws. Authorization problems, such as one member seeing another's statements, are almost never detected by scanners and need manual testing.

Assessing scan completeness

Scan completeness asks whether the scans covered what they were supposed to cover. It is the main defense against false negatives, and it should be measured, not assumed. Dario's completeness checklist for Prairiefold had five questions.

Scan completeness checks for the Prairiefold internal network.
QuestionMeasurePrairiefold result after fixes
Did we reach every in-scope host?Live hosts found compared with the client's asset inventory468 of 471; three powered-off branch workstations
Did credentialed checks succeed?Hosts with successful authentication and privileged checks58 of 60 servers; 402 of 410 workstations
Did we scan the agreed ports?Port ranges in the policy compared with the planAll TCP; top 100 UDP
Were the checks current?Feed or plugin update date compared with scan dateUpdated the morning of each scan
Did anything block us?Unexpected filtered results, dropped connections, alerts from the intrusion prevention systemOne branch firewall shunned the scanner; rescanned after an exception

The comparison with the asset inventory caught something interesting. Prairiefold's inventory listed 471 hosts; the scans found 468 of them plus 6 that were not in the inventory at all. Three of the missing hosts were workstations switched off for the week. The six extras included a network-attached storage device in a branch manager's office, bought locally and never registered with IT. Discovering unknown assets is a finding in its own right, because unmanaged devices are rarely patched or monitored.

Troubleshooting scan configurations

When completeness checks show a gap, the tester troubleshoots the scan configuration. The causes are usually mundane, and a methodical approach finds them quickly.

Troubleshooting common scan configuration problems.
SymptomLikely causesWhat to try
Hosts appear downHost discovery relies on ping and ICMP is blockedTreat all hosts as up, or discover with TCP probes to common ports
All ports filtered partway throughIntrusion prevention system shunned the scanner; rate limit reachedCheck client alerts; slow the scan; request a scanner exception
Credentialed checks failWrong account rights, firewall blocking management ports, services disabledTest a login manually from the scanner; read per-host authentication output
Scan never finishesTimeouts too long; huge port ranges on slow links; tarpitting devicesReduce concurrency per link, shorten timeouts, split targets
Web scan finds littleScanner not logged in or logged itself out; crawl blocked by client-side codeRecord a login sequence, exclude logout, seed the crawler with proxy history
Unexpectedly few findingsCheck families disabled in the policy; feed out of dateCompare policy with the plan; update feeds

Tobias met the second symptom on the branch scans. At one branch, every port on every host became filtered about four minutes into the scan. The branch firewall's intrusion prevention feature had identified the scan and blocked the scanner's address for an hour. That was good news about the firewall and bad news for the scan. Dario asked Felix Aberdeen for a temporary exception for the scanner address at that branch, documented the change in the engagement log, rescanned, and asked Felix to remove the exception the next morning. The report credited the firewall's detection as a strength.

Validation techniques

Once a finding is on the validation list, testers confirm it with the least intrusive method that gives reliable evidence.

  • Corroborate with another source. Check the same issue with a second tool, a credentialed check, or the client's own management data.
  • Read the configuration or code. A configuration file or code path often proves or disproves a finding outright.
  • Perform a safe functional test. Request the specific resource, check the specific setting, or attempt the specific benign action that shows the weakness exists, without causing harm. For example, confirming that an SMB share allows anonymous listing by listing it, without opening files.
  • Ask the owner. System owners can often confirm a version, a compensating control or a planned change faster than any tool.
  • Exploit under the rules of engagement. Where the rules allow and the risk is acceptable, demonstrating exploitation is the strongest proof, and it belongs to the attack phase covered in PenTest+: Attacks and Exploits.

The level of proof should match the claim and the risk. A missing security header needs only a captured response. A claimed remote code execution flaw on a server holding member records needs much stronger evidence before it goes in a report, and any attempt to demonstrate it needs explicit agreement with the client about timing, method and fallback.

Selecting public exploits

The objective asks testers to select public exploits, and the selection process is mostly about judgment and safety. Public exploit code is collected in sources such as Exploit-DB, searchable offline with the searchsploit utility, in the module library of the Metasploit Framework, in vendor and researcher write-ups, and in code-hosting sites. Testers consider several questions before any exploit goes near a client system.

Questions for selecting a public exploit.
QuestionWhy it matters
Does it match the exact product, version, platform and configuration?Exploits are often specific; a mismatch may fail or crash the target
Is the source trustworthy?Fake proof-of-concept code that installs malware on the tester's machine has been published repeatedly
Has the code been read and understood?The tester must know exactly what it will do, including side effects
How reliable is it?Metasploit ranks modules from excellent to manual; low-ranked exploits may crash services
What does it change on the target?Some exploits write files, create accounts or leave services unstable
Can it be tested on a replica first?A lab copy of the target reveals problems without risk to production
Is it permitted?The rules of engagement may restrict exploitation of specific systems or classes of exploit

Metasploit's ranking system is worth knowing. Modules are ranked excellent, great, good, normal, average, low or manual, according to how reliable they are and how likely they are to crash the target. An excellent module should never crash the service; a low-ranked module is nearly impossible to use reliably. Many modules also include a check function that tests whether a target appears vulnerable without attempting exploitation, which can serve as a further validation step where the rules allow it.

At Prairiefold, Dario selected no exploits for production systems during the validation phase. For one externally reported vulnerability in a remote access appliance, he found a public exploit, read it, and judged that it would restart the appliance's web service even when it succeeded. He proposed testing it during a maintenance window with Felix's team present, and Gwendolyn Tran instead chose to accept the evidence from a version check, which the team had reported by phone on October 8, the day they found it. Prairiefold patched the appliance on October 10, and a rescan confirmed the fix on October 12. The report recorded the finding as critical, validated by version check and remediated during testing.

Using scripting to validate results

When a finding affects many hosts, checking each one by hand is slow and error-prone. Testers use short scripts to repeat a validation step across a list of targets and record the evidence consistently. The script does nothing a tester could not do by hand; it just does it the same way every time and writes down the result. The pseudocode below shows the shape of a typical validation script for a TLS finding.

Pseudocode for repeating one validation check across a list of hosts and logging evidence.
FOR EACH host IN validation_list
    response = request TLS handshake with host on port 443 offering only TLS 1.0
    IF handshake succeeds THEN
        record host, "TLS 1.0 accepted", timestamp, negotiated cipher
    ELSE
        record host, "TLS 1.0 refused", timestamp
    END IF
END FOR
save records to evidence log with hash of the file

In practice, testers write such scripts in Bash, PowerShell or Python, or use existing tools: Nmap scripts can test one specific condition across many hosts, and many scanners allow a single check to be rerun on a target list. PenTest+: Reconnaissance and Enumeration covers modifying scripts in more depth. The habits that matter for validation are to log the exact command or request, the time, the target and the raw response, and to protect the resulting evidence file as part of the engagement record.

Detection and defense

Validation activity is quieter than scanning but still visible to a client with good logging. Functional tests appear in application and authentication logs. Exploit checks may trigger endpoint or intrusion alerts. Prairiefold's MSSP flagged one of Tobias's anonymous share listings on a file server, which was exactly the kind of detection the report wanted to credit. For defenders, the lessons of this topic translate into a vulnerability management practice: track and suppress confirmed false positives with documented reasons, measure coverage and authentication success, and periodically commission manual testing to find what scanners miss.

Worked problem

Classifying results

Classify each Prairiefold result: (a) a scanner reports a vulnerable SSH version; the package check shows the backported fix; (b) the scanner reports nothing on a file server whose credentialed check failed; manual review finds a share writable by all staff; (c) a scanner reports TLS 1.0 enabled; a handshake test confirms it; (d) a scanner reports no SQL injection on the portal; manual testing finds none and the code uses parameter binding throughout.

Show solution
  1. (a) False positive: the fix is installed despite the banner.
  2. (b) False negative: a real weakness the scan missed because authentication failed.
  3. (c) True positive: confirmed by a functional test.
  4. (d) True negative: no issue reported and none present, supported by code review.

Answer: False positive, false negative, true positive, true negative.

Common mistakes

  • MistakeAssuming no findings means no vulnerabilities.

    InsteadCheck completeness: coverage, authentication, ports, feed dates and blocking.

  • MistakeDeleting false positives without a note.

    InsteadRecord the evidence and reason so others can trust the decision.

  • MistakeRunning a public exploit straight from a code-hosting site.

    InsteadVerify the source, read the code, test on a replica and get permission.

  • MistakeFighting an intrusion prevention system by scanning faster.

    InsteadReport the detection, then request a documented, temporary exception.

  • MistakeValidating many hosts by hand without consistent records.

    InsteadScript the check and log commands, times and raw responses as evidence.

Summary and key terms

  • Scanner results are true positives, false positives, true negatives or false negatives.
  • False positives often come from banners, backports, generic responses, intermediaries and stale data.
  • False negatives often come from failed authentication, blocking, exclusions, outdated checks and logic flaws.
  • Scan completeness compares coverage with the inventory and checks authentication, ports, feeds and blocking.
  • Troubleshooting scan configurations means matching symptoms to causes and documenting every change.
  • Selecting public exploits requires matching versions, trusted sources, code review, reliability, replica testing and permission.
  • Scripts repeat validation steps consistently across many hosts and produce evidence.
True positive
A reported vulnerability that really exists.
False positive
A reported vulnerability that does not exist.
False negative
A real vulnerability that was not reported.
Scan completeness
The degree to which scans covered the intended hosts, ports and checks with working credentials.
Soft 404
A response with a success status for a resource that does not exist.
Shunning
Automatic blocking of a source address by an intrusion prevention system.
Exploit ranking
Metasploit's rating of how reliable and safe a module is to run.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. A scan of a branch shows every port filtered after five minutes. What is the likely cause and response?

    Show answer

    An intrusion prevention system shunned the scanner; record the detection, request a temporary exception and rescan.

  2. Why are false negatives more dangerous than false positives?

    Show answer

    They are invisible and lead the client to believe a system is safe when it was not properly checked.

  3. Name three checks before using a public exploit.

    Show answer

    Any three of: exact version match, trusted source, code reviewed, reliability, side effects, replica test, permission.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz