SimulatorUnit 3 Primer

ARP: ask for a MAC address, then poison the cache

Watch ARP find a MAC address, then see an adversary poison the cache.

New to this? Read the topic first: Primer: Addresses.

Simulation · ARP poisoning [3.1.A.1, 3.5.E.3]

Simulator: poison the gateway's ARP table

You play both sides. First watch normal delivery, then attack as the adversary, then defend by spotting the indicator.

The internet connects to the default gateway router at 192.168.1.1. On the LAN, the router connects to the target laptop at 192.168.1.10 and the adversary's laptop at 192.168.1.66. Internet web server Default gateway 192.168.1.1 Target laptop 192.168.1.10 3C:52:82:4A:9F:10 Adversary 192.168.1.66 66:0B:5D:E2:21:AD Falsified ARP reply 192.168.1.10 is at 66:0B:5D:E2:21:AD Network icons: Cisco The internet connects to the default gateway router at 192.168.1.1. On the LAN, the router connects to the target laptop at 192.168.1.10 and the adversary's laptop at 192.168.1.66. Internet web server Default gateway 192.168.1.1 Target laptop 192.168.1.10 3C:52:82:4A:9F:10 Adversary 192.168.1.66 66:0B:5D:E2:21:AD Falsified ARP reply 192.168.1.10 is at 66:0B:5D:E2:21:AD Network icons: Cisco
gw-01# show ip arp
ProtocolAddressAge (min)Hardware AddrTypeInterface
Internet192.168.1.1-001a.2b3c.4d5eARPAGi0/1
Internet192.168.1.1033c52.824a.9f10ARPAGi0/1
Internet192.168.1.661660b.5de2.21adARPAGi0/1

Cisco routers write a MAC address in three groups of four: 3c52.824a.9f10 is 3C:52:82:4A:9F:10. Age: minutes since the entry was learned; - is the router's own address.

Packet capture · LAN (Gi0/1) · filter: arp
No.TimeSourceDestinationProtocolInfo
10.00000000:1a:2b:3c:4d:5eBroadcastARPWho has 192.168.1.10? Tell 192.168.1.1
20.0018423c:52:82:4a:9f:1000:1a:2b:3c:4d:5eARP192.168.1.10 is at 3c:52:82:4a:9f:10
34.12037566:0b:5d:e2:21:ad00:1a:2b:3c:4d:5eARP192.168.1.10 is at 66:0b:5d:e2:21:ad
46.12100466:0b:5d:e2:21:ad00:1a:2b:3c:4d:5eARP192.168.1.10 is at 66:0b:5d:e2:21:ad

Frames 1 and 2: the gateway asks, the target answers. Frames 3 and 4: replies nobody asked for, sent again every 2 seconds to keep the table poisoned.

Read the steps without the simulator
  1. Normal delivery. A web page for 192.168.1.10 arrives at the default gateway. The gateway asks "Who has 192.168.1.10?" and the target replies with 3C:52:82:4A:9F:10 (frames 1 and 2). The gateway sends the frame straight to the target.
  2. The attack. The adversary at 192.168.1.66 sends the gateway falsified ARP replies saying "192.168.1.10 is at 66:0B:5D:E2:21:AD" (frames 3 and 4). Nobody asked, and ARP cannot verify replies, so the gateway updates its table.
  3. On the path. Traffic for 192.168.1.10 now goes to the adversary's MAC address first. The adversary copies or alters it, then forwards it to the target, so neither side notices: an on-path attack.
  4. Detection. The table now lists 66:0B:5D:E2:21:AD (660b.5de2.21ad) for both 192.168.1.10 and 192.168.1.66. One MAC address for two IP addresses is the warning sign of ARP poisoning.
After the attack: AddressHardware Addr
192.168.1.10660b.5de2.21ad
192.168.1.66660b.5de2.21ad

Go to the topic: Addresses

Was this page helpful?

No names are ever shown, and every public comment is checked by us first. Please do not include personal details. To get a reply, email [email protected].

Course map
↑ Top

Enlarged view of the selected figure