Identifying Common Network Attacks
How ARP poisoning, MAC flooding, DNS poisoning, and smurf attacks work, and what each one lets an attacker do.
1A few network basics
Network attacks make sense once you know the addresses a network uses:
| Term | Plain meaning |
|---|---|
| IP address | A device's address on a network, like 192.168.1.20. It can change when a device moves to another network. |
| MAC address | A hardware ID built into a device's network adapter, like 3C:22:FB:10:4A:01. Used to deliver data on the local network. |
| Switch | The box that connects devices on a local network (LAN) and sends each message only to the port where its destination is plugged in. |
| Default gateway | The router that connects the local network to other networks, including the internet. |
| ARP (Address Resolution Protocol) | How a network finds which MAC address goes with an IP address. The answers are stored in an ARP table. |
| DNS (Domain Name System) | The internet's phone book: it turns names like mybank.com into IP addresses. |
| ICMP | A protocol for network status messages, such as the “echo request” used by the ping command. |
2ARP poisoning
The default gateway uses ARP to build a table that pairs IP addresses with MAC addresses, so it knows which device should receive traffic for each IP. In an ARP poisoning attack, the adversary sends falsified ARP messages to the gateway, claiming that the target's IP address belongs to the adversary's MAC address. The gateway updates its table, and traffic meant for the target goes to the adversary instead. Faking a MAC address like this is called MAC spoofing.
ARP poisoning is an example of an on-path attack (also called a man-in-the-middle attack): the adversary interrupts the data stream between two parties, captures both sides' data, and copies or alters it before passing it on. Both parties think they are talking directly to each other.
3MAC flooding
A switch keeps a table of which MAC address is on which port, so it can send each frame (a chunk of data on the local network) only to the right port. In a MAC flooding attack, the adversary sends the switch a huge number of frames, each with a different fake MAC address. The table overflows, and the switch can fall back to broadcast mode: sending every frame out of every port. Now the adversary receives frames meant for other devices.
MAC flooding is an example of eavesdropping (or sniffing): capturing data in transit so it can be recorded and copied. Anything not encrypted can be read.
4DNS poisoning
In a DNS poisoning attack, the adversary pretends to be an authoritative name server (the server officially responsible for a domain's records) and plants a fake DNS record on a DNS server. Anyone who asks that server for the real site's address gets the adversary's address instead, and their browser goes to a malicious site built to steal credentials.
This is an example of credential harvesting: setting up a fake login site that looks like the real one so users enter their real usernames and passwords, which the adversary captures and uses.
5Smurf attacks
A smurf attack tries to overwhelm a target with ICMP traffic. The adversary sends many ICMP requests to a network's broadcast address (an address that delivers to every device on that network), with the victim's address faked as the sender. The network's gateway passes the requests to all devices, and every device replies to the victim. The flood of replies can block legitimate traffic.
A smurf attack is a type of denial of service (DoS) attack: it makes a system or resource unavailable to authorized users. When many devices attack the same target at once, it is called a distributed denial of service (DDoS) attack. Most modern routers are set to refuse requests sent to a broadcast address from outside, which is one reason smurf attacks are less common today.
6Comparing the four
| Attack | What the adversary fakes or floods | Result | Category |
|---|---|---|---|
| ARP poisoning | Fake ARP replies link the victim's IP to the adversary's MAC | Traffic flows through the adversary | On-path (man-in-the-middle); MAC spoofing |
| MAC flooding | Thousands of fake MAC addresses fill the switch's table | Switch broadcasts all frames | Eavesdropping (sniffing) |
| DNS poisoning | A fake DNS record for a real name | Users are sent to a fake login site | Credential harvesting |
| Smurf | ICMP requests to a broadcast address with the victim's address as sender | Victim flooded with replies | Denial of service |
Each attack abuses a trust built into the network: ARP trusts replies, switches trust source addresses, DNS servers trust records, and devices answer broadcast pings. Identify which trust was abused and you can name the attack.
7Worked examples
Two IPs, one MAC
An analyst checks the gateway's ARP table and sees that 192.168.1.20 and 192.168.1.66 both map to 7E:91:0D:55:C2:9F. Yesterday, .20 mapped to a different MAC. Which attack is likely, and what does the adversary gain?
- 1Two IPs pointing to one MAC means one device is answering for both.
- 2The
.20entry changed to the MAC used by.66: that device has claimed the other's IP. - 3This is ARP poisoning (with MAC spoofing). Traffic for
.20now goes to the adversary first.
The switch that started shouting
A network monitor shows a switch suddenly seeing tens of thousands of new MAC addresses from one port in under a minute. Afterward, a computer on another port starts receiving frames addressed to other machines. What happened?
- 1A flood of new MAC addresses from one port is not normal: real devices do not appear by the thousand.
- 2The switch's table filled up, so it fell back to broadcasting frames to every port.
- 3Now any port, including the attacker's, receives everyone's traffic.
The right name, the wrong site
Several employees type the company's real email address, mail.northwind-co.com, into their browsers and get a login page that looks normal. The page's IP address is not the company's. Their passwords are later used by someone else. What attack is this?
- 1The users typed the correct name, so this is not a lookalike-link phishing message.
- 2The name led to the wrong IP address, so the DNS answer was wrong.
- 3A fake DNS record was planted, sending users to a credential-harvesting site.
Replies nobody asked for
A school's web server is suddenly hit by a flood of ICMP echo replies from hundreds of devices on another network. The server never sent any requests. What is happening, and how big can the flood get?
- 1Replies to requests the server never sent means someone sent requests pretending to be the server.
- 2Replies from hundreds of devices on one network means the requests went to that network's broadcast address.
- 3If that network has 200 devices and the attacker sends 1,000 requests, the server gets 200 × 1,000 = 200,000 replies.
What can a man-in-the-middle do?
After ARP poisoning, an adversary sits between a laptop and the gateway. What can they do with traffic that uses HTTPS, and with traffic that does not?
- 1Unencrypted traffic: read it, copy it, and even change it before passing it on (for example, altering a download).
- 2HTTPS traffic: the content is encrypted, so the adversary cannot read or invisibly alter it, but can still see which servers the laptop talks to, and can block or delay it.
8Common mistakes
ARP poisoning corrupts the local IP-to-MAC table; DNS poisoning corrupts the name-to-IP record. ARP affects the local network; DNS can send users anywhere on the internet.
Its goal is eavesdropping: making the switch broadcast so the attacker sees others' traffic.
The flood comes from the devices answering the broadcast. The attacker only sends the spoofed requests.
DoS: one source makes a system unavailable. DDoS: many devices attack the same target at once.
“This is ARP poisoning: the adversary sent falsified ARP messages so the gateway's table links the laptop's IP address to the adversary's MAC address. Traffic for the laptop now goes to the adversary, an on-path attack that lets them copy or alter the data before passing it on.”
Name the attack, say what was faked or flooded, and say what it lets the adversary do.