---
title: "Identifying Common Network Attacks | FiveStudy"
description: "How ARP poisoning, MAC flooding, DNS poisoning, and smurf attacks work, and how to tell on-path, eavesdropping, credential-harvesting, and denial-of-service attacks apart."
url: https://fivestudy.com/guides/ap-cybersecurity-3-1-a-identifying-common-network-attacks
---

[AP Cybersecurity](https://fivestudy.com/ap-cybersecurity) · Study guide

# Identifying Common Network Attacks

[Figure: FiveStudy]

FiveStudy

AP® Cybersecurity · Unit 3 · Network Security, Firewalls & Detection

AP® Cybersecurity · Unit 3 · Network Security, Firewalls & Detection

# Identifying Common Network Attacks

How ARP poisoning, MAC flooding, DNS poisoning, and smurf attacks work, and what each one lets an attacker do.

1. A few network basics 2. ARP poisoning 3. MAC flooding 4. DNS poisoning 5. Smurf attacks 6. Comparing the four 7. Worked examples 8. Common mistakes

## 1 A 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. |

## 2 ARP 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**.

**Figure 1.** ARP poisoning links the victim's IP address to the attacker's MAC address. The attacker now sits on the path between the two parties: an on-path attack.

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.

## 3 MAC 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.

**Figure 2.** MAC flooding turns a switch into something like an old hub: once it broadcasts, the attacker can eavesdrop on traffic meant for others.

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.

## 4 DNS 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.

**Figure 3.** DNS works like a phone book for the internet. Poisoning it puts a wrong number next to a real name.

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.

## 5 Smurf 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.

**Figure 4.** A smurf attack is a denial of service: the network's own devices are tricked into flooding the victim.

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.

## 6 Comparing 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 |

The key idea

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.

## 7 Worked examples

Worked Example 1 Identify the attack

### 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?

1. 1

   Two IPs pointing to one MAC means one device is answering for both.

2. 2

   The `.20` entry changed to the MAC used by `.66`: that device has claimed the other's IP.

3. 3

   This is ARP poisoning (with MAC spoofing). Traffic for `.20` now goes to the adversary first.

**Answer:** ARP poisoning. The adversary is on-path and can read, copy, or alter traffic meant for 192.168.1.20.

Worked Example 2 Identify the attack

### 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?

1. 1

   A flood of new MAC addresses from one port is not normal: real devices do not appear by the thousand.

2. 2

   The switch's table filled up, so it fell back to broadcasting frames to every port.

3. 3

   Now any port, including the attacker's, receives everyone's traffic.

**Answer:** MAC flooding, leading to eavesdropping. Port security that limits MAC addresses per port prevents it.

Worked Example 3 Identify the attack

### 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?

1. 1

   The users typed the correct name, so this is not a lookalike-link phishing message.

2. 2

   The name led to the wrong IP address, so the DNS answer was wrong.

3. 3

   A fake DNS record was planted, sending users to a credential-harvesting site.

**Answer:** DNS poisoning used for credential harvesting.

Worked Example 4 Identify the attack

### 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?

1. 1

   Replies to requests the server never sent means someone sent requests pretending to be the server.

2. 2

   Replies from hundreds of devices on one network means the requests went to that network's broadcast address.

3. 3

   If that network has 200 devices and the attacker sends 1,000 requests, the server gets 200 × 1,000 = 200,000 replies.

**Answer:** A smurf attack, a denial of service. One request is multiplied by every device that answers.

Worked Example 5 On-path consequences

### 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?

1. 1

   Unencrypted traffic: read it, copy it, and even change it before passing it on (for example, altering a download).

2. 2

   HTTPS 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.

**Answer:** On-path position exposes unencrypted traffic completely. Encryption protects content, which is why it matters even inside a trusted network.

## 8 Common mistakes

Common Mistake 1 · Mixing up ARP and DNS poisoning

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.

Common Mistake 2 · Calling MAC flooding a denial of service

Its goal is eavesdropping: making the switch broadcast so the attacker sees others' traffic.

Common Mistake 3 · Thinking a smurf attack comes from the attacker's machine

The flood comes from the devices answering the broadcast. The attacker only sends the spoofed requests.

Common Mistake 4 · Confusing DoS and DDoS

DoS: one source makes a system unavailable. DDoS: many devices attack the same target at once.

Identify a network attack like this

“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.

FiveStudy AP® Cybersecurity · Identifying Common Network Attacks
