Notes
What ARP does
On a local network, machines deliver packets using hardware addresses called MAC addresses. To send something to the router, your laptop first needs the router's MAC address, so it broadcasts a question: who has this IP address? The router replies, and the laptop stores the answer in its ARP table. The problem is in the design. ARP was built in a trusting era and has no authentication. A machine believes whatever reply it hears.
- to send to 10.0.0.1 the laptop needs its hardware (MAC) address
- it shouts: "who has 10.0.0.1?"
- the router replies with its MAC
- the laptop caches the answer in its ARP table
- ARP has no authentication
The lie
So the attacker sends forged ARP replies, unprompted and repeatedly. To the victim: the router's address is at my MAC. To the router: the victim's address is at my MAC. Both obediently update their tables. There is no password to crack and no bug to exploit. The protocol simply allows it, which is why this attack is decades old and still works on networks that have not turned on the switch protections you will see shortly.
- the attacker sends forged ARP replies, over and over: to the victim: "10.0.0.1 is at MY MAC"
- to the router: "10.0.0.5 is at MY MAC"
- both update their tables
- no password, no exploit: the protocol allows it
In the middle
Now every packet between the victim and the internet passes through the attacker's machine. The attacker forwards them on, so nothing breaks and the victim notices nothing. From the middle they can read anything unencrypted, change content in transit, try to downgrade connections with SSL stripping, and answer DNS questions with false addresses. That position is called man in the middle, and ARP spoofing is the cheapest way to get it.
- the attacker forwards every packet, so nothing breaks
- the victim notices nothing
- now the attacker can: read plain-text traffic change it in transit try SSL stripping answer DNS with lies
What TLS changes
Here is the good news. If the connection uses TLS and the certificate is checked, being in the middle wins almost nothing. The content is unreadable. Tampering breaks the connection. Presenting a fake certificate triggers a loud browser warning. And with HSTS there is no plain HTTP request to strip. The attack still succeeds at the network level; it just has nothing to read. This is why the user habit that matters most is never clicking through a certificate warning.
- content: unreadable
- tampering: detected, the connection fails
- a fake certificate: the browser shows a loud warning
- HSTS: no plain HTTP to strip
- the attack still works; it just wins almost nothing
Spot it
How do you spot it? Look at the ARP table. If the router's address and some other machine's address map to the same MAC, something is impersonating the gateway. In a packet capture you will see a steady stream of ARP replies that nobody asked for, and Wireshark flags duplicate addresses on its own. Tools like arpwatch do this continuously and alert when the MAC address for an important IP suddenly changes.
$ ip neigh (or: arp -a) 10.0.0.1 lladdr aa:bb:cc:..66 10.0.0.66 lladdr aa:bb:cc:..66 # two IPs, one MAC: suspicious in Wireshark: arp.duplicate-address-detected a flood of unasked ARP replies
Stop it at the switch
The real fix lives in the network equipment. Managed switches offer dynamic ARP inspection: the switch knows which address was leased to which port, through DHCP snooping, and drops any ARP reply that does not match. Port security limits how many MAC addresses a port may use. Guest Wi-Fi should enable client isolation, so guests cannot talk to each other at all. And smaller network segments mean fewer machines an attacker can reach.
- Dynamic ARP Inspection: the switch drops ARP replies that do not match known leases
- DHCP snooping: builds that trusted table
- port security: limit MACs per port
- client isolation on guest Wi-Fi
- segmentation: smaller LANs
Protect yourself
You cannot fix the cafe's switch, so on a network you do not control, assume someone is in the middle. Use HTTPS everywhere and never accept a certificate warning. Use a VPN or zero-trust client so all traffic is wrapped before it touches the local network. Use encrypted DNS. And turn off file sharing and discovery services in public. This is the practical meaning of zero trust: the network gets no trust at all.
- assume the network is hostile
- HTTPS everywhere; never accept a certificate warning
- a VPN or zero-trust client wraps all traffic
- encrypted DNS
- keep sharing and discovery services off in public
Other ways in
ARP spoofing is the classic, but the middle has other doors. An evil twin access point. A rogue DHCP server that hands out the attacker as the gateway. DNS spoofing, which is the next episode. Forged IPv6 router advertisements, on networks that forgot IPv6 is enabled. Or simply a compromised router. You do not need a separate defense for each. End-to-end encryption with verified certificates defeats them all at once.
- evil twin Wi-Fi access point
- rogue DHCP server: hands out the attacker as gateway
- DNS spoofing (next episode)
- IPv6 router advertisements on networks that ignore IPv6
- a compromised router or proxy
- the defense is the same: TLS
Common mistakes
Mistakes. A flat network where every laptop, printer and server shares one segment. Dynamic ARP inspection and DHCP snooping available on the switches and never enabled. Guest Wi-Fi without client isolation. Internal applications on plain HTTP, which turns a man in the middle from a nuisance into a breach. Users trained by broken internal certificates to click past warnings. And IPv6 enabled everywhere while nobody monitors it.
- flat networks, everyone on one LAN
- switch protections left off
- guest Wi-Fi without isolation
- internal apps on plain HTTP
- users trained to click past certificate warnings
- IPv6 enabled and ignored
Say it like this
In the interview: ARP has no authentication, so an attacker on the same local network can send forged replies that map the gateway's IP address to their own MAC, and become a man in the middle. I prevent it at the switch with dynamic ARP inspection and DHCP snooping, reduce exposure with segmentation and client isolation, detect it by watching for MAC changes on key addresses, and rely on TLS everywhere so interception gains nothing.
- "ARP has no authentication, so an attacker on the LAN sends
- forged replies claiming the gateway's IP and becomes a man
- in the middle. I prevent it
- with dynamic ARP inspection and DHCP snooping, segmentation, and TLS so interception
- gains nothing."