An Nmap 7.991 -O run prints 'No exact OS matches' with no candidate list; what does that mean, and what does --osscan-guess add?
answer
- No perfect fingerprint match
- Near-matches scored by points
- An 85% floor
- Guess list is opt-in, mostly
- Percentage is similarity, not odds
basics
~20 s'No exact OS matches' means no reference fingerprint fitted every measured test. --osscan-guess (alias --fuzzy) makes Nmap list near-matches as 'Aggressive OS guesses', each with a percentage that is a similarity score, not a probability.
solid answer
~40 s`OS details` means one to eight reference entries matched every test; more than eight prints `Too many fingerprints match this host to give specific OS details`. `No exact OS matches for host` means nothing matched perfectly, so Nmap prints the fingerprint it observed for submission. With `--osscan-guess` (alias `--fuzzy`) it also prints `Aggressive OS guesses: ... (NN%)`, listing up to ten entries within ten points of the best one; Nmap prints the same list unasked when the test conditions were non-ideal. The percentage is the weighted share of test points that matched, entries under 85% are never considered, and the list is a set of candidates to verify.
code
bash · 3 lines# Authorised inventory run against one documented address.
# --osscan-guess (alias --fuzzy) lists near-matches with a percentage.
sudo nmap -O --osscan-guess 198.51.100.20go deeper
Recall that a perfect match prints OS details, that 'No exact OS matches' means nothing fitted every test, and that guesses carry a percentage.
Explain the verdicts, the weighted points behind the percentage, the 85% floor, and that --osscan-guess changes the printed list rather than the probes.
Read the non-ideal conditions as statements about the measurement and say how you would store candidates, ties and device class in an inventory.
Define how guessed values are allowed to flow into downstream tooling, and which decisions must wait for a verified value.
## The outcomes of an -O run Nmap 7.991 prints one of a small set of verdicts. Reading which one you have is the first step; the percentage comes second. | Output | What it means | How to record it | |---|---|---| | `OS details: ...` | one to eight reference entries matched every test (a perfect match) | the names listed, with the device class, as an observation | | `Too many fingerprints match this host to give specific OS details` | more than eight perfect matches, so the tests do not separate them | the device type only | | `Aggressive OS guesses: ... (NN%)` followed by `No exact OS matches for host` | no perfect match; near-matches are listed | candidates with their scores, unverified | | `No exact OS matches for host` alone | no perfect match and no list was requested | no OS; keep the printed fingerprint if you will submit it | | `No OS matches for host` | nothing reached the 85% floor | nothing | When the line `Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port` is present, treat every row above with extra suspicion. ## Where the percentage comes from Each test in a fingerprint is worth points, set by the `MatchPoints` element at the head of `nmap-os-db`. Nmap compares the observed fingerprint with every entry and the accuracy is the points that matched divided by the points that were compared. The printed figure is that share rounded down. - The source states that entries below 85% are not considered at all, with or without a guess option. - The list shows entries within ten points of the best one, at most ten. - A high percentage means the measurements resemble the entry; it does not say how often Nmap is right in that situation, and it cannot see a middlebox that answered. The same number can come from a long list of weak agreements or a few strong ones, so look at the list as well as the top score. ## What --osscan-guess and --fuzzy change The reference guide says either option makes Nmap guess more aggressively and still prints the confidence of each guess. In the 7.991 source the two options (aliases) change what is printed: the near-match list under `Aggressive OS guesses`, and a `Running (JUST GUESSING)` line carrying the families behind them. They do not send more probes. The guess list also appears without the option when the fingerprint cannot be submitted anyway. In 7.991 the conditions treated as non-ideal include: 1. a scan delay above 500 ms, or timing template 5; 2. no open TCP port, or no closed TCP port, found; 3. a host more than five network hops away; 4. probe send times that drifted from plan; 5. no UDP response when no UDP scan was run; 6. probes that failed to send. Each is a statement about the measurement; when one applies and no perfect match exists, the output ends with `No exact OS matches for host (test conditions non-ideal)`. ## Reading it in an inventory - Two candidates one or two points apart from different families are a tie. Record both, or record the device class they share, and mark the field unverified. - The `Class` data gives vendor, family, generation and device type; a firewall or load-balancer class on a host you expect to be a server is a signal to look at the network path. - Version detection results are separate and can disagree with the OS family; that disagreement is information, not a bug. - Submit a fingerprint to the project only if you know for sure what the system is, as the reference guide says. ## A worked reading Suppose the output reads `Aggressive OS guesses: Vendor A OS 5.X (96%), Vendor A OS 6.X (95%), Vendor B appliance (92%)`, followed by `No exact OS matches for host (test conditions non-ideal)`. The first two entries are one family and adjacent generations, so the honest record is the family with a range of generations and the device class. The third is within ten points of the best but belongs to another vendor; keep it as a weaker candidate. The closing line says the measurement was made under non-ideal conditions, so none of the three scores should be trusted at face value. Record the whole block, then verify. ## Common traps - Reading the top percentage as a probability. - Treating the 85% floor as a confidence threshold for your own decisions. - Believing the guess option makes the scan more thorough. - Averaging or rounding scores across candidates.
- Two unrelated families score 95% and 94%; how do you record the entry?Record both as unverified candidates with their percentages, the device class and the Nmap version and date. Do not promote the higher score to the OS field, and do not average them. Resolve it with an authoritative source: configuration management, the vendor console or an authenticated check by the owner.
- Why is the percentage not a probability of being right?It is the weighted share of test points that matched an entry. It is never calibrated against how often the entry is correct, and a device that answers on the target's behalf can produce a high-scoring fingerprint of the wrong system.
- The percentage is the probability that the guess is correct.
- 'No exact OS matches' means the host did not answer any probe.
- --osscan-guess sends extra probes to raise confidence.
- Any entry above 85% is safe to record as the OS.
- Several guesses a point apart can simply be averaged.
Assumes Nmap 7.991: the output strings, the 85% floor and the non-ideal conditions are those of the 7.991 source and reference guide.