What does an Nmap -O probe round look like in the target's firewall and sensor logs, and what does a result expose about an Internet-facing host?
answer
- A short burst of odd packets
- One source, many unusual TCP shapes
- Raw probes, no application session
- Repeats if nothing matches
- Exposes device class, not only a name
basics
~20 sA round is about sixteen crafted TCP, ICMP and UDP probes from one source in a short burst, repeated if nothing matches. It shows in firewall and sensor logs, not application logs, and exposes the device class and OS family.
solid answer
~40 sOne round is roughly sixteen packets from one source address: six SYNs 100 ms apart to an open port, other TCP probes with odd flag and option combinations to an open and a closed port, two ICMP echoes and a UDP datagram to a closed port. Nmap repeats the round, up to five times by default, when there is no perfect match. These are raw probes that start no application session, so they show in firewall and sensor logs, not in the web server's access log. The result exposes a device class and OS family, and with `-v` an uptime guess, so patching and exposure matter, not hiding a name. A log line identifies packets, not the tool.
go deeper
Recall that an OS scan is a burst of unusual packets, seen in firewall logs, and that it reveals the OS family and device type.
List the probe sets and their targets, say why the application log stays empty, and note that the round repeats when nothing matches.
Describe how you would read a burst in the logs, relate it to the scope window, and avoid attributing it to a tool from packet shape alone.
Decide what the organisation expects to see from its own assessors and what it does when the same burst arrives from an unknown source.
## The shape of the traffic OS detection is the noisy part of an Nmap run, and its shape is distinctive. After host discovery and the port scan have found an open and a closed TCP port, Nmap sends a round of probes aimed at those ports: | Probes | Sent to | What a log shows | |---|---|---| | Six SYNs, 100 ms apart, each with a different option and window combination | an open TCP port | a short train of SYNs to one port, from one source, with unusual option sets | | Probes with no flags, an odd flag mix, a bare ACK | an open TCP port | TCP packets that no normal client sends | | Three further TCP probes | a closed TCP port | resets from the target and odd flags | | Two ICMP echo requests, an ECN probe | the host, an open port | a pair of pings and an ECN-setting SYN | | One UDP datagram | a closed UDP port | an ICMP port-unreachable coming back | In total that is about sixteen packets, typically within a few seconds. If no perfect match appears, Nmap sends the round again, up to five times by default when conditions are good, so a defender may see the burst repeated. ## Where it appears and where it does not - **Firewall and network sensor logs.** Denied or allowed lines for TCP packets with invalid or rare flag combinations, a SYN train, and an ICMP error for the UDP probe. Many firewalls and sensors treat such packets as noteworthy in their own right. - **Not the application log.** The probes are raw packets that open no application session, so the web server's access log has no entry for them. A connect-style port scan can leave an application line; the OS probes do not. - **Host operating-system logs.** Usually nothing, unless the stack logs invalid or dropped segments. ## What a result exposes about the host 1. A device class: general purpose, router, firewall, load balancer and so on. 2. An OS family and generation, as a range, plus a CPE name. 3. With `-v`: an uptime guess from the TCP timestamp option, the IP ID generation class and a sequence predictability classification. All three are inferences, and all three come from the stack, not from a banner. Changing a login banner does not change them. ## What a defender does with this - Expect the pattern from the authorised assessor. The scan is raised with the SOC through the engagement's deconfliction process, which is another topic. - When the source is not an assessor, the burst is reconnaissance of an exposed host and a reason to review what the host exposes. - Controls that matter are patching, reducing the open ports and services, and sensors that detect the scan pattern. - Do not claim an attribution from a log line. The same packet shapes can come from other software, and absence from the logs proves nothing about fingerprinting you did not see. ## A worked case A firewall log shows, within a couple of seconds, six TCP SYNs from 198.51.100.77 to port 443 of a documentation-range web host, then several TCP packets with no flags or odd flag mixes to 443 and to a closed port, two ICMP echo requests and one UDP datagram to a high port that came back as an ICMP port-unreachable. Seconds later the same shape appears again. That reads as an OS-detection round that did not find a perfect match and retried. The next question is not "which tool", but "is 198.51.100.77 the assessor's scanner, in this window, against this scope?" ## Hardening view - Patch and retire what the fingerprint would reveal as old; the exposure is the age of the stack, not its name. - Keep the internet-facing surface to the services that must be there. - Make sure sensors and firewalls log the odd-flag and ICMP-error traffic so the burst can be found afterwards. ## Questions to ask of the logs 1. Which source address sent the burst, and is it in the written scope and window? 2. Which ports were open and which closed, and did the firewall answer or drop? 3. Was the round repeated, and what did the target's own stack log? 4. Which hosts did the same source touch?
- Does seeing these packets prove someone ran Nmap -O?No. It proves those packets arrived. Other software can send the same shapes, and the logs do not carry a tool name. Attribution needs the source address, the time against the authorised scan window and any scope record the SOC holds.
- Why do the OS probes leave nothing in the application log?They are raw packets that target the TCP and ICMP layers and never complete an application request. The probes reach the stack, not the service, so only the firewall, the sensor or the host's network logging can record them.
- OS detection is one packet, so one log line would show it.
- The web server's access log is where an OS scan shows up.
- An -O scan that finds nothing leaves no trace on the network.
- Changing the service banner hides the operating system from -O.
- A fingerprint exposes only the operating system's name.