This chapter covers the most common network attacks you must recognize for the CompTIA Network+ N10-009 exam, including DoS, DDoS, man-in-the-middle, ARP poisoning, DNS poisoning, DNS amplification, rogue DHCP, evil twin, and social engineering. Understanding these attack types is critical because they appear across multiple exam domains, and roughly 15-20% of the exam questions involve identifying or mitigating network attacks. Mastery of these concepts will help you eliminate wrong answers and choose the correct defensive response.
Jump to a section
Imagine a secure office building with multiple layers of defense: a receptionist checking IDs at the front desk, security cameras in the hallways, locked doors to sensitive areas, and an alarm system on the vault. A network attack is like a crew of criminals trying to break in. Some try to trick the receptionist into letting them in by pretending to be an employee (social engineering/phishing). Others stand outside the building and shout commands through an open window, hoping someone inside will repeat them (DoS amplification). A few might sneak a tiny listening device into a conference room during a meeting to record conversations (packet sniffing). One criminal might cut the main power line to the building, causing the lights and alarms to fail (DoS). Another might intercept a delivery person, take their uniform, and walk in carrying a fake package (man-in-the-middle). The most insidious attacker might replace a legitimate security camera with one that records everything and sends it to them, but the feed on the monitor still shows a loop of empty hallways (ARP spoofing). Each attack exploits a different weakness in the building's security posture, just as network attacks exploit vulnerabilities in protocols, configurations, or human behavior. The goal is to understand each method so you can harden each layer of defense.
What Are Network Attacks and Why Do They Matter?
Network attacks are deliberate attempts to compromise the confidentiality, integrity, or availability of network resources. The CompTIA Network+ N10-009 exam expects you to identify common attack types by their characteristics, understand how they work at the protocol level, and know basic mitigation techniques. Attacks are often categorized by the OSI layer they target, the protocol they abuse, or the attacker's goal (e.g., denial of service, data theft, or credential harvesting).
Denial of Service (DoS) and Distributed Denial of Service (DDoS)
A Denial of Service (DoS) attack aims to make a service unavailable by overwhelming it with traffic or exploiting a vulnerability that crashes the target. A Distributed Denial of Service (DDoS) attack uses multiple compromised systems (botnet) to launch the attack, making it harder to block. The exam focuses on common DDoS types: volume-based (e.g., UDP floods), protocol-based (e.g., SYN floods), and application-layer (e.g., HTTP floods).
SYN Flood
A SYN flood exploits the TCP three-way handshake. The attacker sends a flood of TCP SYN packets with spoofed source IP addresses to the target. The target responds with SYN-ACK to each and enters a half-open connection state, waiting for the final ACK. It allocates memory for each half-open connection. The attacker never sends the ACK, so the connections time out after a configurable period (default 60-120 seconds on most systems). The target's connection table fills up, preventing legitimate connections. Mitigation includes SYN cookies, reducing the SYN-RECEIVED timeout, and rate-limiting incoming SYN packets.
UDP Flood
A UDP flood sends a large number of UDP packets to random ports on the target. The target checks for an application listening on each port. If no application is found, it responds with an ICMP Destination Unreachable packet. This consumes bandwidth and processing resources. Attackers often spoof the source IP to hide their location. Mitigation includes rate-limiting ICMP responses and using firewalls to drop malformed UDP packets.
ICMP Flood (Ping Flood)
An ICMP flood sends a high volume of ICMP Echo Request (ping) packets to the target. The target must respond with ICMP Echo Reply, consuming CPU and bandwidth. Mitigation includes rate-limiting ICMP traffic and disabling ICMP responses on critical systems.
HTTP Flood
An HTTP flood sends seemingly legitimate HTTP GET or POST requests to a web server, overwhelming its application layer. These attacks are harder to detect because they mimic normal traffic. Mitigation includes web application firewalls (WAFs), rate limiting per IP, and CAPTCHAs.
Amplification Attacks (DNS, NTP, SNMP)
Amplification attacks exploit services that respond with large replies to small queries. The attacker sends a small request with a spoofed source IP (the victim's IP) to an open resolver. The resolver sends a large response to the victim, amplifying the traffic. For example, a DNS query of 60 bytes can generate a response of up to 4000 bytes (amplification factor ~70). NTP monlist requests can amplify by a factor of 556. Mitigation includes disabling open recursion on DNS servers, filtering spoofed traffic (BCP 38), and using rate limiting.
Man-in-the-Middle (MITM) Attacks
A man-in-the-middle attack occurs when an attacker intercepts communications between two parties without their knowledge. The attacker can eavesdrop, modify, or inject data. Common MITM techniques include ARP spoofing, DNS spoofing, and session hijacking.
ARP Spoofing (ARP Poisoning)
ARP (Address Resolution Protocol) maps IP addresses to MAC addresses on a local network. In ARP spoofing, the attacker sends forged ARP replies to associate their MAC address with the IP address of a legitimate host (e.g., the default gateway). All traffic destined for that IP is then sent to the attacker's machine. The attacker can then forward the traffic to the real gateway (passive sniffing) or modify it before forwarding (active MITM). On a switch, this bypasses the normal MAC learning. Mitigation includes dynamic ARP inspection (DAI) on switches, ARP spoofing detection tools, and using static ARP entries for critical hosts.
DNS Spoofing (DNS Poisoning)
DNS spoofing involves corrupting the DNS cache of a resolver so that it returns an incorrect IP address for a domain name. The attacker can redirect users to malicious websites. This can be done by intercepting DNS queries (MITM) or by exploiting vulnerabilities in DNS software. Mitigation includes DNSSEC (DNS Security Extensions) which digitally signs DNS records, and using trusted recursive resolvers.
DNS Amplification (as a DDoS vector)
As mentioned earlier, DNS amplification is a type of DDoS attack. The attacker sends a small DNS query with a spoofed source IP (the victim) to an open resolver. The resolver sends a large response to the victim. The exam may ask you to differentiate DNS spoofing (data corruption) from DNS amplification (traffic flooding).
Rogue DHCP Server
A rogue DHCP server is an unauthorized DHCP server on a network that hands out incorrect IP configurations. It can assign a different default gateway or DNS server, leading to MITM attacks. For example, the rogue server might give out 192.168.1.100 as the gateway, which is actually the attacker's machine. The attacker can then intercept all traffic. Mitigation includes DHCP snooping on switches, which validates DHCP server messages and blocks unauthorized servers.
Evil Twin
An evil twin is a rogue wireless access point that impersonates a legitimate one. It broadcasts the same SSID as a trusted network. When users connect, the attacker can capture credentials or perform MITM attacks. The evil twin often has a stronger signal to lure clients. Mitigation includes using WPA2-Enterprise with 802.1X (which authenticates the access point as well), verifying certificates, and using wireless intrusion prevention systems (WIPS).
Social Engineering
Social engineering exploits human psychology rather than technical vulnerabilities. Common techniques include phishing (email), vishing (voice), smishing (SMS), tailgating (following someone into a secure area), and pretexting (creating a false scenario). The exam expects you to recognize these as attack vectors and know that security awareness training is the primary defense.
Other Attacks
VLAN Hopping
VLAN hopping is an attack where a host on one VLAN gains access to traffic on another VLAN. Two methods exist: switch spoofing (the attacker pretends to be a switch and negotiates a trunk link) and double tagging (the attacker adds two VLAN tags; the first is stripped by the first switch, and the second remains). Mitigation includes disabling Dynamic Trunking Protocol (DTP) on access ports, setting access ports to non-trunking, and using dedicated VLAN IDs for trunk links.
MAC Flooding
MAC flooding involves sending a large number of Ethernet frames with random source MAC addresses to a switch. This fills the switch's MAC address table, causing it to fail open (flood all traffic to all ports). The attacker can then sniff traffic. Mitigation includes port security (limiting the number of MAC addresses per port) and MAC address table size limits.
Ransomware
Ransomware is malware that encrypts files and demands payment for decryption. It often spreads via phishing emails or exploit kits. The exam focuses on prevention: backups, user education, and endpoint protection.
Mitigation Techniques
Common mitigation strategies include:
Firewalls (stateful, application-layer)
Intrusion detection/prevention systems (IDS/IPS)
Access control lists (ACLs)
Encryption (TLS, IPsec)
Network segmentation (VLANs, DMZ)
Patch management
Security policies and user training
The exam may ask you to select the best mitigation for a given attack scenario.
Key Protocols and Ports
DNS: UDP 53 (queries), TCP 53 (zone transfers)
DHCP: UDP 67 (server), UDP 68 (client)
HTTP: TCP 80
HTTPS: TCP 443
SNMP: UDP 161, 162
NTP: UDP 123
ARP: no port, layer 2 protocol
Understanding these protocols helps in identifying attack vectors.
Exam Relevance
The N10-009 exam objectives for 4.1 include:
Identify common network attacks (DoS, DDoS, MITM, ARP poisoning, DNS poisoning, rogue DHCP, evil twin, social engineering)
Describe mitigation techniques for each
Differentiate between attack types based on description
Questions often present a scenario and ask you to identify the attack or the best response. Be prepared to distinguish between similar attacks, e.g., ARP poisoning vs. DNS poisoning, or DoS vs. DDoS.
SYN Flood Attack Mechanism
The attacker sends a high volume of TCP SYN packets to the target server, each with a spoofed source IP address. The server responds with SYN-ACK to each SYN and allocates resources for a half-open connection. The server waits for the final ACK, which never arrives. The connection table fills up, and new legitimate connections are dropped. The default SYN-RECEIVED timeout on many systems is 60-120 seconds. Mitigation includes SYN cookies, which encode connection state in the SYN-ACK sequence number, eliminating the need for server-side memory allocation until the ACK is received.
DNS Amplification Attack
The attacker sends a small DNS query (e.g., ANY record for a domain with many records) to an open DNS resolver, spoofing the source IP to be the victim's IP. The resolver, which is configured to allow recursive queries from any source, sends a large response (up to 4000 bytes) to the victim. The amplification factor is the response size divided by the query size, often over 70. The victim's bandwidth is consumed by the flood of large responses. Mitigation includes disabling open recursion, using Response Rate Limiting (RRL), and filtering spoofed traffic at the network edge.
ARP Spoofing Attack
The attacker sends forged ARP replies to the target host (victim) and the default gateway, associating the attacker's MAC address with the gateway's IP (to the victim) and the victim's IP (to the gateway). The victim's ARP cache is poisoned, so it sends all outbound traffic to the attacker. The attacker can then forward traffic to the real gateway (passive) or modify packets (active). The attack is local to the same broadcast domain. Mitigation includes Dynamic ARP Inspection (DAI) on switches, which validates ARP packets against a trusted DHCP snooping database.
Rogue DHCP Server Attack
The attacker sets up a rogue DHCP server on the network. When a client broadcasts a DHCP Discover message, the rogue server responds with a DHCP Offer that includes a malicious default gateway (the attacker's IP) and/or rogue DNS server. If the rogue server responds faster than the legitimate server, the client accepts the offer. The client then sends all traffic to the attacker, enabling MITM. Mitigation includes DHCP snooping on switches, which only allows DHCP server messages from trusted ports (e.g., the port connected to the legitimate DHCP server).
Evil Twin Attack
The attacker sets up a wireless access point (AP) with the same SSID as a legitimate network (e.g., a coffee shop's guest Wi-Fi). The evil twin typically has a stronger signal or uses a higher-gain antenna to attract clients. When a client connects to the evil twin, the attacker can capture credentials, perform MITM, or serve malicious content. The client may not notice because the SSID is identical. Mitigation includes using WPA2-Enterprise with 802.1X (which authenticates the AP via server certificate), verifying the AP's certificate, and using a VPN.
Enterprise Scenario 1: DDoS Mitigation at a Financial Institution
A large bank experiences a SYN flood attack targeting its customer-facing web portal. The attack originates from a botnet of thousands of compromised IoT devices. The bank's perimeter firewall begins to drop packets due to high connection table utilization, but legitimate customers also experience timeouts. The network team deploys a dedicated DDoS mitigation appliance that uses SYN cookies and rate limiting. They also work with their ISP to implement BGP Flowspec to drop traffic at the provider edge. After the attack, they implement a cloud-based DDoS protection service (e.g., Cloudflare, Akamai) that scrubs traffic before it reaches the bank's network. The key lesson: on-premises mitigation alone may be insufficient for volumetric attacks; a layered approach is essential.
Enterprise Scenario 2: ARP Spoofing in a Hospital Network
A hospital's internal network is segmented into VLANs for medical devices, administrative systems, and guest Wi-Fi. An attacker gains physical access to a guest Wi-Fi access point and plugs in a laptop, launching an ARP spoofing attack against the medical devices VLAN. The attacker intercepts patient monitoring data, violating HIPAA. The hospital later implements Dynamic ARP Inspection (DAI) on all switches, combined with DHCP snooping to build a trusted database of IP-to-MAC bindings. They also enable port security to limit the number of MAC addresses per port. The incident highlights the need for layer 2 security controls even in segmented networks.
Enterprise Scenario 3: Rogue DHCP Server in a University Dormitory
A university's residential network uses DHCP to assign IP addresses to student devices. A student sets up a rogue DHCP server in their dorm room, offering IP addresses with a malicious DNS server that redirects students to phishing sites. The university's network team detects the attack using DHCP snooping logs that show unauthorized DHCP offers. They configure DHCP snooping on all access switches, designating only the uplink ports to the DHCP server as trusted. They also deploy 802.1X authentication for wired ports to prevent unauthorized devices from connecting. The attack could have been prevented by enabling DHCP snooping from the start.
What N10-009 Tests
Objective 4.1 (Given a scenario, apply common security configuration to mitigate network attacks) requires you to identify attack types and select appropriate mitigations. The exam presents scenario-based questions where you must recognize the attack from a description of symptoms (e.g., "Users report slow network, and the switch logs show many incomplete TCP connections"). You must know the mechanism behind each attack to differentiate them.
Common Wrong Answers
Confusing DoS with DDoS: A question describing a single source is DoS, not DDoS. Many candidates choose DDoS because it's more common in the news.
Picking 'DNS spoofing' when the scenario describes a flood of traffic to a DNS server: DNS spoofing is about corrupting records, not flooding. The correct answer for a flood is DNS amplification (a type of DDoS).
Selecting 'ARP poisoning' for a scenario that involves intercepting traffic across subnets: ARP poisoning only works within the same broadcast domain (subnet). If the attacker is on a different subnet, the attack must be something else, like DNS spoofing or a rogue DHCP server.
Choosing 'evil twin' for a wired network attack: Evil twin is exclusively wireless. For wired, the equivalent attack might be a rogue DHCP server.
Specific Numbers and Terms
SYN flood: half-open connections, SYN cookies, timeout 60-120 seconds
DNS amplification: amplification factor up to 70 (DNS) or 556 (NTP)
DHCP snooping: trusted vs untrusted ports
ARP spoofing: Dynamic ARP Inspection (DAI), DHCP snooping database
Evil twin: WPA2-Enterprise, 802.1X, certificate validation
Edge Cases
The exam may ask about a 'smurf attack' (ICMP amplification) or 'fraggle attack' (UDP amplification). These are older terms but may appear.
VLAN hopping via double tagging: requires the attacker to be on a native VLAN that matches the trunk's native VLAN.
MAC flooding: causes the switch to fail open, flooding traffic to all ports.
How to Eliminate Wrong Answers
Identify the attack's goal: availability (DoS/DDoS), interception (MITM), or credential theft (social engineering).
Determine the layer: layer 2 (ARP, MAC), layer 3 (DNS, ICMP), layer 4 (SYN flood), layer 7 (HTTP flood).
Check if the attack requires proximity: ARP and rogue DHCP require local network access; DNS and DDoS can be remote.
Match the mitigation: if an answer suggests a firewall for ARP spoofing, it's likely wrong; DAI is the correct mitigation.
DoS attacks target availability; DDoS uses multiple sources.
SYN flood exploits TCP handshake; mitigation uses SYN cookies.
DNS amplification uses open resolvers to flood victims with amplified traffic.
ARP spoofing poisons ARP caches within the same subnet; mitigate with DAI.
Rogue DHCP servers assign malicious network configurations; mitigate with DHCP snooping.
Evil twin is a rogue wireless AP; mitigate with WPA2-Enterprise and 802.1X.
Social engineering exploits human psychology; primary defense is security awareness training.
VLAN hopping uses switch spoofing or double tagging; mitigate by disabling DTP and using dedicated native VLANs.
MAC flooding overwhelms switch MAC table; mitigate with port security.
Always identify the attack's layer and goal to choose the correct mitigation.
These come up on the exam all the time. Here's how to tell them apart.
ARP Spoofing
Operates at Layer 2 (Data Link)
Requires local network access (same subnet)
Poisoning target's ARP cache with fake MAC-IP mappings
Mitigation: Dynamic ARP Inspection (DAI)
Effect: Intercepts traffic at the MAC layer
DNS Spoofing
Operates at Layer 3 (Network) and above
Can be performed remotely (e.g., via MITM or cache poisoning)
Corrupts DNS resolver's cache with fake IP-domain mappings
Mitigation: DNSSEC, use trusted resolvers
Effect: Redirects users to malicious websites
Mistake
A DoS attack always involves multiple sources.
Correct
A Denial of Service (DoS) attack originates from a single source. Distributed Denial of Service (DDoS) involves multiple sources (botnet). The exam distinguishes between the two.
Mistake
ARP spoofing can be used to intercept traffic across different subnets.
Correct
ARP spoofing only works within the same broadcast domain (subnet). ARP is a layer 2 protocol and does not cross routers. To intercept traffic across subnets, an attacker would need DNS spoofing or a rogue DHCP server.
Mistake
DNS amplification and DNS spoofing are the same attack.
Correct
DNS amplification is a DDoS attack that floods a victim with large DNS responses. DNS spoofing (poisoning) corrupts the DNS cache to redirect users to malicious sites. They have different goals and mechanisms.
Mistake
An evil twin attack requires the attacker to be physically close to the victim.
Correct
While proximity helps, an evil twin can be set up anywhere within wireless range. The attacker does not need to be in the same room; a high-gain antenna can extend range. The key is that the victim must connect to the rogue AP.
Mistake
Rogue DHCP servers are easily detected because they cause IP conflicts.
Correct
Rogue DHCP servers often assign IP addresses from a different subnet or with different gateway/DNS, which may not cause immediate IP conflicts. Users may experience slow internet or redirection to malicious sites without realizing it.
Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.
A Denial of Service (DoS) attack originates from a single source, while a Distributed Denial of Service (DDoS) attack uses multiple compromised systems (botnet) to launch the attack. The exam expects you to know that DDoS is harder to mitigate because blocking a single IP is ineffective. For example, a SYN flood from one IP is DoS; from thousands of IPs it's DDoS.
ARP spoofing sends forged ARP replies to associate the attacker's MAC address with the IP of a legitimate host (e.g., the gateway). The victim's ARP cache is poisoned, so traffic is sent to the attacker. Prevention includes Dynamic ARP Inspection (DAI) on switches, which validates ARP packets against a DHCP snooping binding database. Also, use static ARP entries for critical devices.
A DNS amplification attack is a DDoS attack where the attacker sends a small DNS query (e.g., ANY record) with a spoofed source IP (the victim) to an open DNS resolver. The resolver sends a large response (up to 4000 bytes) to the victim, amplifying the traffic. The amplification factor can be over 70. Mitigation includes disabling open recursion on DNS servers and using Response Rate Limiting (RRL).
A rogue DHCP server is an unauthorized server that assigns incorrect IP configurations on a wired or wireless network. An evil twin is a rogue wireless access point that mimics a legitimate SSID. Both can be used for MITM attacks, but they operate at different layers: rogue DHCP uses DHCP protocol (layer 3/4), evil twin uses wireless association (layer 2). Mitigation for rogue DHCP is DHCP snooping; for evil twin, use WPA2-Enterprise with 802.1X.
A SYN flood sends a flood of TCP SYN packets with spoofed source IPs to a target. The target responds with SYN-ACK and waits for an ACK that never comes, filling the connection table. The best mitigation is SYN cookies, which encode connection state in the SYN-ACK sequence number, so the server doesn't allocate resources until the ACK is received. Other mitigations include reducing the SYN-RECEIVED timeout and rate-limiting SYN packets.
VLAN hopping is an attack where a host on one VLAN gains access to traffic on another VLAN. Two methods: switch spoofing (attacker pretends to be a switch and negotiates a trunk) and double tagging (attacker adds two VLAN tags; the first is stripped by the first switch, leaving the second). Prevention includes disabling Dynamic Trunking Protocol (DTP) on access ports, setting access ports to non-trunking, and using a dedicated native VLAN that is not used for user traffic.
DNSSEC (DNS Security Extensions) adds digital signatures to DNS records to ensure authenticity and integrity. It prevents DNS spoofing by allowing resolvers to verify that the data came from the authoritative source and was not modified. It does not prevent DDoS attacks like DNS amplification. The exam may ask you to differentiate between DNSSEC (security) and other DNS-related attacks.
You've just covered Common Network Attacks — now see how well it sticks with free N10-009 practice questions. Full explanations included, no account needed.
Done with this chapter?