Which Nmap discovery run sends each address an ICMP echo, a TCP SYN to 443, a TCP ACK to 80 and an ICMP timestamp request, and what can a firewall admin conclude from it?
answer
- The default, with no -P options
- Four probes per address
- Says what, not who
- ARP never crosses the firewall
- Compare source and time to scope
basics
~20 sA privileged Nmap run with no discovery option, or -sn, equal to -PE -PS443 -PA80 -PP. The admin can conclude a host-discovery sweep came from that source, not who ran it, whether it was authorised or what follows.
solid answer
~40 sThat four-probe set is what Nmap sends when no discovery option is given (`-PE -PS443 -PA80 -PP`), and `-sn` sends the same set. In a log it shows as one source sending those four packets to many destination addresses close together in time. From it the admin can conclude that a raw-packet discovery sweep crossed the firewall; it says nothing about the operator or their authorisation, so she compares the source address and time with the signed scope before treating it as expected. ARP stays on the local segment, so a routed firewall does not see it. An unprivileged run looks different, with SYNs to ports 80 and 443 only, and a port scan of the hosts that replied normally follows unless `-sn` was used.
go deeper
Recall that the default sweep is four probes, ICMP and TCP, and that a firewall log shows them as a pattern from one source.
Give the four probes with their ports and the variants: IPv6, local ARP, and an unprivileged run.
Say what the pattern supports and what it does not, and how you would verify it against the signed scope before escalating or dismissing it.
Decide how scheduled authorised scanners are registered so their default sweeps are recognised and unexplained ones stand out.
## Recognising the default set Each of the four packets exists to draw one kind of answer, and together they form a pattern that is easy to recognise in a firewall log: | Packet seen at the firewall | Option it matches | Why Nmap sends it | |---|---|---| | ICMP echo request | `-PE` | the standard ping query | | TCP SYN to destination port 443 | `-PS443` | draws a SYN/ACK or a reset | | TCP ACK to destination port 80 | `-PA80` | an ACK with no connection draws a reset | | ICMP timestamp request | `-PP` | catches hosts that block echo but forget other ICMP queries | The same set is sent by `-sn` when no probe option is named, and a run that names `-PE -PS443 -PA80 -PP` explicitly produces it too. ## Variants of the signature - **IPv6 targets:** the timestamp request is absent, because ICMPv6 has none. - **Local segment:** targets are found with ARP or Neighbor Discovery, which stay on the segment and so are not seen by a routed firewall. - **Unprivileged user:** `connect()` SYNs to ports 80 and 443 only, with no ICMP at all. Where a port is open the connection completes normally, so the service itself may log it. - **Explicit probe options:** a run that names its own list sends exactly that list, so a different pattern does not rule out a sweep. ## What the admin can and cannot conclude - **Can:** a host-discovery sweep from that source address reached these destinations, in this time window, and it is consistent with Nmap's documented defaults. - **Cannot:** that the sender is hostile, that it is authorised, that it used Nmap rather than something sending the same packets, or that no sweep occurred when this pattern is absent. - **Cannot yet:** what follows. By default Nmap goes on to port-scan the hosts that replied, so a second phase from the same source is the next thing to watch for. ## Fields worth capturing | Field | Why it matters | |---|---| | source address | matched against the scanner addresses the scope names | | first and last packet time | matched against the engagement or change window | | destination range and count | shows the extent of the sweep and whether it stayed inside the scope | | probe types and destination ports | confirms the default set, or shows a custom one | | any follow-on traffic from the same source | shows whether a port scan followed the discovery | ## Responding 1. Record the source address, the first and last packet times and the range hit. 2. Compare them with the signed scope, the engagement window and the change calendar. 3. If they match, note the sweep against the engagement. If they do not, raise it through the incident process like any unexplained scan. 4. Count distinct destinations per source over a window if you want to alert on it; how that rule is written belongs to the firewall and sensor owners, not the pattern. The default sweep is easy to recognise. Its value to an auditor is the same as its value to an administrator: a repeatable, documented pattern to match against the written scope.
- The same four probes arrive from a source with no ticket; can you say it is Nmap?Not with certainty. It is Nmap's documented default set, but other tools or custom options can send the same packets. Treat it as a strong sign of a discovery sweep, then confirm from the source host's own records before attributing it.
- What would an unprivileged Nmap user's sweep look like instead?No ICMP, no standalone ACK: just SYNs to ports 80 and 443 per target, because the connect system call is the only option. Where a port is open the handshake completes and the service may log the connection; where it is closed the host answers with a reset.
- The default sweep is only ICMP echo requests
- The pattern proves the sender is hostile
- No four-probe pattern means no discovery took place
- A routed firewall also logs the ARP part of a sweep
- The pattern identifies who ran the scan
Assumes Nmap 7.991's documented default discovery set; the IPv6 variant omits the timestamp request.