Scanner claims and how to validate them safely
Unit 3 of 5 in Testing networks and hosts.
You will be able to read a scanner report as a list of claims, sort each one into confirmed, false positive or cannot tell, and say which checks do not exploit anything.
Lesson
What a vulnerability scanner does
NIST describes vulnerability scanning as identifying hosts and their attributes and also trying to identify vulnerabilities, by working out the operating systems and main applications running and matching them against a database of known vulnerabilities. It can help find outdated software versions, missing patches and misconfigurations. A scanner can run from the network, with or without credentials on the hosts, or locally on the host; NIST says local scanning sees more detail because it has host access.
NIST calls a vulnerability scanner a relatively fast and easy way to quantify exposure to surface vulnerabilities, meaning weaknesses that exist in isolation. It also says scanners rely on signatures, so the assessor should update the scanner's database before running it.
What it gets wrong
NIST lists real limits. Vulnerability scanners can have a high false positive rate, reporting vulnerabilities when none exist, and also high false negative rates. Scanners cannot see vulnerabilities that only matter in combination: several low-risk findings may add up to a higher risk, and a tool that rates each one low can leave the assessor falsely confident. The guide says penetration testing is a more reliable way to judge risk in aggregate.
Scanners also use their own risk scales, which makes findings hard to compare between tools, and their levels may not reflect real risk. NIST's example is an FTP server that a scanner marks as moderate risk because it sends passwords in clear text, when the organization only uses it as an anonymous public server with no passwords, so the actual risk may be much lower. NIST concludes that assessors should set the risk level for each vulnerability and not simply accept the scanner's.
Safe checks and intrusive checks
The Nmap scripting engine groups its scripts into categories, and two of them matter for your rules of engagement. Scripts in the safe category were not designed to crash services, use large amounts of bandwidth or other resources, or exploit security holes, though the guide says it cannot guarantee they never cause adverse reactions. Scripts in the intrusive category are ones whose risk is too high to call safe: they might crash the target, use up significant resources, or be perceived as malicious by the administrators. Its examples include a script that tries to guess an SNMP community string.
NIST says some scanners include network tests for denial of service that can badly affect hosts in the hands of an inexperienced assessor, and that scanners usually let you suppress all of them. Put together, the rule for your plan is to choose categories on purpose, write them into the rules of engagement, and leave out anything that could exploit or crash a service. The confirm-or-refute lab runs only the safe vulnerability checks and explains which scripts it leaves out and why.
Validate each claim without exploiting
NIST's analysis goals are to identify false positives, categorize vulnerabilities and determine their causes. It says findings often need validation, which can be done by manually examining the system or by using a second automated tool and comparing. It warns that a second tool can easily repeat the same false positives, and that manual examination usually gives more accurate results but takes longer.
A useful way to organise that work is to ask whether each claim is about a version or about behaviour. A version claim can be checked by reading the real version on the machine you own. A behaviour claim, such as whether a service accepts anonymous access, can be checked by one benign request on your own system. Neither needs an exploit. Some claims you cannot settle either way with safe checks, and cannot tell is a legitimate status that goes in the report with the reason. NIST's root-cause list (patching, threat management, security baselines, and security in development) is where each confirmed finding should point.
Key points
- A scanner matches what it finds against a database: it produces claims, with false positives and false negatives.
- Scanners rate risk their own way; the assessor sets the risk level.
- Choose script and check categories on purpose; leave out anything that could crash or exploit a service.
- Validate each claim by reading the machine or one benign request; 'cannot tell' is a valid status.
Sources
- NIST SP 800-115: Technical Guide to Information Security Testing and Assessment (full text)
- Nmap Reference Guide: Using the Nmap Scripting Engine (script categories)
Practice in the labs
Run only safe checks, read the output like an analyst, validate each claim by hand and merge several scanners into one honest list.
- Vulnerability scanning with the Nmap Scripting Engine (NSE): You run the default and the vulnerability script categories on your own box and learn to read the output as a lead, not a verdict.
- Read an Nmap scan like an analyst: ports, services, OS, and where to look next: You read a scan the way an analyst does: state, service and version columns, the OS guess, and what the scan does not tell you.
- Confirm or refute scanner findings by hand, without exploiting anything: You run only the safe checks and sort each claim into confirmed, false positive or cannot tell, with one line of evidence each and no exploitation.
- Consolidate and de-duplicate scanner findings into one report: You merge exports from several scanners into one list, define what a duplicate is and reconcile conflicting severities.
Knowledge check
- A scanner rates an FTP server as moderate risk because it sends passwords in clear text. The server is an anonymous public server with no passwords. What does NIST suggest? Answer: The assessor should set the risk level; the actual risk may be considerably lower than the scanner's. NIST uses this example to show that scanner risk levels may not reflect actual risk and that assessors should determine the appropriate level.
- What is the risk of validating a finding by running a second automated scanner? Answer: It can repeat the same false positives. NIST says comparison tools can produce similar results, including the same false positives, and that manual examination is usually more accurate.
- How does Nmap describe scripts in its intrusive category? Answer: They carry too high a risk of crashing the target, using many resources or being seen as malicious. The script category guide says scripts that cannot be called safe because of those risks are classed as intrusive.
- You cannot confirm or refute a claim with safe checks. What should the findings table say? Answer: Cannot tell, with the reason. An honest status with a reason is better than a guess; exploiting to find out would break the rules of the engagement.
Back to the syllabus or see all classes.
Related
- Testing networks and hosts
- Vulnerability scanning with the Nmap Scripting Engine (NSE)
- Read an Nmap scan like an analyst: ports, services, OS, and where to look next
- Confirm or refute scanner findings by hand, without exploiting anything
- Consolidate and de-duplicate scanner findings into one report
- All classes
- Free cyber labs