CPSA ยท Mapping, fingerprinting and host auditing
Network mapping and sweeps
Traceroute analysis, ping and TCP/UDP sweeps, prioritising targets and false negatives.
Key points
- Mapping builds a picture of live hosts and the routes to them.
- Traceroute raises the TTL one step at a time and records the router that answers with ICMP time exceeded at each hop.
- A sweep probes a whole range with ICMP echo, TCP SYN/ACK or UDP probes.
- Filtering can hide live hosts, so a silent host is a false negative candidate, not proof of absence.
Source: https://nmap.org/book/host-discovery-techniques.html
Practice questions
How does traceroute discover each router on the path to a target?
- It sends probes with an increasing TTL and reads the ICMP time exceeded replies
- It asks each router for its routing table over SNMP
- It sends one large packet and counts the fragments
- It reads the ARP cache of every host on the route
Show answer
Answer: A. It sends probes with an increasing TTL and reads the ICMP time exceeded replies
Each router that decrements the TTL to zero returns ICMP time exceeded, revealing its address. The other options describe things traceroute does not do.
Which situations can make a live host look down in a ping sweep?
- A firewall drops ICMP echo requests
- A stateful firewall drops an unsolicited TCP ACK probe
- The sweep uses only one probe type that the filter blocks
- The host answers a TCP SYN probe with a RST
- The host answers an ARP request on the local segment
Show answer
Answer: A. A firewall drops ICMP echo requests, B. A stateful firewall drops an unsolicited TCP ACK probe, C. The sweep uses only one probe type that the filter blocks
Filtered ICMP, stateful firewalls dropping unsolicited ACKs and a probe type the host's filter blocks all cause false negatives. A RST reply to a SYN probe actually proves the host is up, and an ARP reply on the local segment is a reliable sign of life.
A host that does not answer a ping sweep can safely be treated as offline.
Show answer
Answer: False
False. Filtering of ICMP or of a specific probe type is common, so silence is a false negative candidate and should be retested with other probes or a scan that skips host discovery.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
