4 min read

How to Detect ARP Spoofing in a Packet Capture

ARP spoofing is the classic technique behind man-in-the-middle attacks on a LAN, and a recurring headache in internal network troubleshooting. This article explains the packet signatures of the attack and uses a real capture to walk through how to identify and confirm it step by step with PcapDecoder.

How to Detect ARP Spoofing in a Packet Capture
SummaryKey Points
  • ARP has no authentication: any host can answer someone else's IP-to-MAC query — the root cause of the attack
  • Three detection signals: one IP with two MACs, unsolicited ARP reply storms, sudden gateway MAC changes
  • Real-sample verification: a 622-packet pure ARP storm — an unmistakably abnormal pattern
  • After confirmation: static bindings, port isolation, and switch DAI

Why ARP Can Be Spoofed

ARP (Address Resolution Protocol) solves a simple problem: I know the target IP — how do I find its MAC address? The flow is a broadcast question ("Who is 192.168.1.1?") followed by a unicast reply ("I am; my MAC is xx:xx:xx:xx:xx:xx").

The problem: ARP has no authentication mechanism whatsoever. A host that receives a reply updates its ARP cache unconditionally — regardless of whether the reply answers its own question, and regardless of whether a valid entry already exists. An attacker who keeps sending "I am the gateway" replies can redirect traffic to their own machine.

What the Attack Traffic Looks Like

ARP spoofing has a very distinctive shape in a packet capture. Remember three signals:

Signal 1: One IP mapping to multiple MACs

On a healthy network, an IP's MAC is stable. If the same IP appears behind two different source MACs in a capture, someone is almost certainly answering on its behalf.

Signal 2: Unsolicited ARP reply storms

Normal ARP replies always follow a request (and are unicast). If you see large volumes of gratuitous ARP (unsolicited ARP) — broadcasting "I am the gateway" without anyone asking — that is the classic prelude to spoofing. In the real sample, one ARP storm file reached 622 packets, every one of them ARP, with no TCP/UDP traffic at all — a strikingly abnormal pattern.

Signal 3: The gateway MAC suddenly changes

Under continuous monitoring, the gateway IP's MAC changes from A to B (and it is not a legitimate device replacement), accompanied by shifts in the traffic path and intermittent TLS certificate anomalies — hard proof that a man-in-the-middle is at work.

How-to: Three-Step Detection

Step 1: Open the pcap and check the protocol distribution first. PcapDecoder produces protocol statistics as soon as parsing completes. If ARP accounts for an abnormally high share (say, more than half of all packets), go straight to step two.

Step 2: Filter for ARP packets and review the replies. Open the protocol filter and show only arp packets. Inspect each ARP reply one by one: is the source-IP-to-source-MAC mapping stable, and are there packets that answer without anyone asking?

!Packet list

Step 3: Run a deep scan for cross-validation. PcapDecoder's anomaly detection module flags patterns such as ARP storms and gateway MAC drift as anomaly events. If you also see TLS certificate anomalies or redirections to unfamiliar IPs, you can classify it as a man-in-the-middle attack.

Real-Sample Verification

Tested against Wireshark's official test sample arp-storm.pcap: all 622 packets are ARP, with no upper-layer traffic whatsoever. This "pure ARP flood" pattern usually corresponds to two scenarios:

  1. A network loop or misconfiguration: a switch loop causes ARP broadcasts to replicate indefinitely, showing up as enormous volumes of both requests and replies with repetitive content;
  2. Scanning or an attack: the attacker uses a tool (such as arpspoof) to keep sending spoofed replies, characterized by replies clearly outnumbering requests and clustering on a small number of IP-MAC pairs.

How to tell them apart: look at the request-to-reply ratio. In a loop scenario both are numerous and intermingled; in a spoofing scenario replies far outnumber requests. PcapDecoder's statistics panel reports the counts separately, making the distinction clear at a glance.

What to Do After Confirming

  1. Stop the bleeding first: identify the affected network segment, then shut down the suspicious port on the switch or move it into an isolation VLAN;
  2. Locate the attacker: look up the anomalous MAC in the switch port table to physically track down the machine;
  3. Harden the network: enable Dynamic ARP Inspection (DAI) on access switches, and set static ARP bindings on servers and gateways;
  4. Conduct a post-mortem: if a business system was hijacked, check whether sensitive data was exfiltrated over plaintext protocols (HTTP, FTP, SMTP).

A successful ARP spoofing attack often exposes a deeper problem: too much plaintext protocol traffic still runs on the internal network. Run a scan with PcapDecoder and see how many "easy pickings" — HTTP plaintext credentials, FTP passwords, and the like — are lying around: "How to Find Plaintext Credentials in Traffic" covers this in a dedicated article.


Related reading: "How to Diagnose a Slow Network with Packet Capture".

ARP SpoofingMan-in-the-MiddleInternal Network SecurityPacket AnalysisLAN
Share
Back to home