Sniffing · Module 08

ARP Spoofing

Poison ARP caches to intercept traffic on a LAN (man-in-the-middle).

ModuleModule 08PhaseSniffingTypeOffensivePlatformKali Linux

Definition

ARP Spoofing (ARP poisoning) is a technique where an attacker sends falsified ARP messages on a local network.

Primary purpose

Associate the attacker's MAC address with another host's IP (often the gateway), redirecting traffic through the attacker's machine.

Cybersecurity use

Demonstrating man-in-the-middle (MITM) risk, testing segmentation and detection controls, and Layer 2 attack/defense training — only on networks you own or are explicitly authorized to test.

Key features

Traffic interception

Enables MITM positioning to observe or manipulate traffic between two hosts.

Gateway impersonation

Commonly targets the default gateway to intercept a victim's traffic.

Tool variety

Implemented by arpspoof (dsniff), Ettercap and Bettercap.

Pairs with sniffers

Often combined with Wireshark or tcpdump to capture redirected traffic.

Detectable pattern

Generates duplicate/gratuitous ARP replies that defensive tools can flag.

Important commands

arpspoof -i eth0 -t <victim-ip> <gateway-ip>

Tell the victim the attacker is the gateway.

arpspoof -i eth0 -t <gateway-ip> <victim-ip>

Tell the gateway the attacker is the victim.

echo 1 > /proc/sys/net/ipv4/ip_forward

Enable IP forwarding so traffic still reaches its destination.

ettercap -T -i eth0 -M arp:remote /<victim-ip>/ /<gateway-ip>/

Launch an ARP MITM via Ettercap's text interface.

arp -a

Display the local ARP table to check for spoofed entries (defensive).

arpwatch -i eth0

Monitor ARP traffic and alert on changes (defensive).

Practical examples

01Enable forwarding first
command
echo 1 > /proc/sys/net/ipv4/ip_forward

Purpose Routes traffic onward so the victim's connection keeps working during the test.

02Spoof the victim's view of the gateway
command
arpspoof -i eth0 -t 192.168.1.20 192.168.1.1

Purpose In a lab, redirects the victim's gateway traffic through the attacker.

03Detect spoofing (defensive)
command
arp -a

Purpose A defender checks for one MAC mapped to multiple IPs — a sign of spoofing.

Important points

  • Strictly authorized use only: Intercepting others' traffic is illegal without documented permission — practice only in isolated labs you own.
  • Disruptive by nature: Misconfigured spoofing (e.g. forgetting IP forwarding) can cut off the victim's access.
  • Layer 2 limitation: Only works within the same local segment/VLAN; it cannot cross routed networks.
  • Defenses exist: Dynamic ARP Inspection (DAI), static ARP entries and port security prevent or detect it.

Common use cases

Authorized MITM testing

Check whether sensitive traffic is properly encrypted.

Network defense validation

Test whether ARP inspection, IDS or monitoring detect spoofing.

Security training

Teach Layer 2 attack mechanics and the value of segmentation.

Incident response prep

Help blue teams recognize ARP spoofing indicators.

Learn it in context

This tool is taught in Module 08

Read the full written notes, with diagrams, defense and detection.

Open Module 08