312-50 ยท Scanning networks
Scan evasion and defence
Fragmentation, decoys, source port manipulation, spoofing, proxies; detecting scans; closing ports, filtering, and reducing banner exposure.
Key points
- Evasion tries to slip past simple filters and IDS rules: fragmenting packets (-f), mixing in decoy sources (-D), using a trusted source port (-g), spoofing addresses (-S, which means replies go elsewhere) or relaying through proxies.
- Defenders respond by detecting patterns (many SYNs, no completed handshakes), closing unused ports, filtering with a stateful firewall and trimming banners.
Source: https://linux.die.net/man/1/nmap
Practice questions
Which Nmap option mixes decoy source addresses into a scan so the real scanner is harder to pick out in logs?
- -D
- -g
- -f
- -O
Show answer
Answer: A. -D
-D adds decoys. -g sets a source port, -f fragments packets and -O detects the OS.
Which measures reduce what an external scan can reveal?
- Close services and ports that are not needed
- Filter inbound traffic with a firewall
- Remove version details from service banners
- Make banners more verbose for support staff
- Turn off firewall logging
Show answer
Answer: A. Close services and ports that are not needed, B. Filter inbound traffic with a firewall, C. Remove version details from service banners
Closing unused ports, filtering traffic and trimming banners all shrink the attack surface. Verbose banners and disabled logging help the attacker.
If you spoof the source address of your scan probes, the target's replies come back to you so you can read the results.
Show answer
Answer: False
False. Replies go to the spoofed address, so a plain spoofed scan cannot read its own results; idle scanning needs a different mechanism.
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.
