A penetration tester is attempting to evade an IDS/IPS while performing a port scan. They use the Nmap command: nmap -sS -f --data-length 20 -D RND:10 10.0.0.1. Which techniques are being employed to evade detection?
Trap 1: Idle scan, fragmentation, and MAC address spoofing
This option is incorrect because an Idle scan (-sI) is a specific Nmap technique that leverages a 'zombie' host to bounce packets, which is distinct from general evasion tactics like fragmentation. Furthermore, MAC address spoofing operates at Layer 2 and is typically performed using operating system tools (e.g., `ifconfig` or `macchanger`) rather than being a direct Nmap scan option for evading IDS/IPS at the network layer.
Trap 2: Packet timing manipulation, decoy, and avoiding DNS resolution
This option is incorrect because packet timing manipulation, such as slowing down scans with Nmap's `-T` options, is a specific technique not implied by the general context. Additionally, avoiding DNS resolution (`-n`) primarily prevents Nmap from performing reverse DNS lookups, which reduces network traffic and potential DNS server logs, but it does not alter the packets themselves in a way that directly evades an IDS/IPS's signature or anomaly detection.
Trap 3: Fragmentation, decoy, and source port spoofing
This option is incorrect because while fragmentation and decoy scanning are valid evasion techniques, source port spoofing (`-g` or `--source-port` in Nmap) is a distinct method not indicated. Source port spoofing involves sending packets from a specific or random source port to bypass firewall rules that might block common Nmap source ports or to confuse stateful firewalls, but it is not inherently part of the general evasion strategy implied without specific flags.
- A
Idle scan, fragmentation, and MAC address spoofing
Why wrong: This option is incorrect because an Idle scan (-sI) is a specific Nmap technique that leverages a 'zombie' host to bounce packets, which is distinct from general evasion tactics like fragmentation. Furthermore, MAC address spoofing operates at Layer 2 and is typically performed using operating system tools (e.g., `ifconfig` or `macchanger`) rather than being a direct Nmap scan option for evading IDS/IPS at the network layer.
- B
Packet timing manipulation, decoy, and avoiding DNS resolution
Why wrong: This option is incorrect because packet timing manipulation, such as slowing down scans with Nmap's `-T` options, is a specific technique not implied by the general context. Additionally, avoiding DNS resolution (`-n`) primarily prevents Nmap from performing reverse DNS lookups, which reduces network traffic and potential DNS server logs, but it does not alter the packets themselves in a way that directly evades an IDS/IPS's signature or anomaly detection.
- C
Fragmentation, decoy, and using a random source IP
This option is correct as fragmentation (`-f`) breaks IP packets into smaller pieces, making it harder for some IDS/IPS systems to reassemble and analyze them for malicious signatures. Decoy scanning (`-D RND:N` or specific IPs) sends spoofed packets from multiple fake source IP addresses alongside the real one, obfuscating the true origin of the scan. While the attacker's primary source IP isn't truly 'random' in the sense of being dynamically assigned for each packet, the use of random decoys effectively makes the apparent source of the scan random and distributed from the IDS/IPS's perspective, complicating attribution.
- D
Fragmentation, decoy, and source port spoofing
Why wrong: This option is incorrect because while fragmentation and decoy scanning are valid evasion techniques, source port spoofing (`-g` or `--source-port` in Nmap) is a distinct method not indicated. Source port spoofing involves sending packets from a specific or random source port to bypass firewall rules that might block common Nmap source ports or to confuse stateful firewalls, but it is not inherently part of the general evasion strategy implied without specific flags.