Bitzu

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

Single choice

Which Nmap option mixes decoy source addresses into a scan so the real scanner is harder to pick out in logs?

  1. -D
  2. -g
  3. -f
  4. -O
Show answer

Answer: A. -D

-D adds decoys. -g sets a source port, -f fragments packets and -O detects the OS.

Select all that apply

Which measures reduce what an external scan can reveal?

  1. Close services and ports that are not needed
  2. Filter inbound traffic with a firewall
  3. Remove version details from service banners
  4. Make banners more verbose for support staff
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module