On an IPv4 Ethernet segment, which ARP-level observations point to cache poisoning, and why is each one only a hint rather than proof?
answer
- mappings that should be stable
- one claimant, many addresses
- replies nobody requested
- legitimate lookalikes
basics
~20 sHints: a gateway IP whose MAC changes or flips, one MAC claiming many IPs, replies with no request, and hosts reporting their address claimed elsewhere. Each has lookalikes such as failover, proxy ARP and NIC replacement.
solid answer
~40 sWatch the mappings that should be stable. A default gateway's IP changing MAC, or flipping between two MACs, is the strongest signal. One MAC claiming many IPs and bursts of replies with no earlier request are others, and a host seeing a conflicting ARP packet for its own address, as RFC 5227 §2.4 describes, will log it. Each has an innocent twin: a failover moves a virtual IP to a new MAC with an announcement, a router doing proxy ARP answers for many IPs, and a swapped NIC changes a MAC. So you correlate with change records, and treat detection as late: the cache is already wrong when you see it.
go deeper
Know that a gateway whose MAC suddenly changes is suspicious and that you check the ARP table to see it.
List the signals - gateway MAC flip, one MAC claiming many IPs, unsolicited replies, conflict reports - and say what each looks like on the wire.
Separate signal from lookalike by correlating with change records, expected bindings and known proxy or failover behaviour, and treat detection as after the fact.
Decide what detection you fund against what prevention removes, and who owns the expected-binding data that makes alerts trustworthy.
## What a defender can see Detection works by comparing ARP traffic and caches against what should be stable. The sources are host ARP caches, a passive monitor on a mirrored port or the switch itself, and log lines from hosts that notice a conflict. ## The signals 1. **A stable address changes owner.** The default gateway is the best canary. If a monitor keeps an IP-to-MAC pairing table and the gateway's IP shows a second MAC, or alternates between two, someone is contesting it. The alternation is the tell: the attacker repeats its claim and the genuine host's traffic keeps restoring the truth. 2. **One MAC claiming many IPs.** A forged-reply campaign, or an attacker answering broadly, makes a single MAC appear as the sender for several addresses. 3. **Unsolicited replies.** ARP replies that do not follow a request the target sent, especially unicast to one host, at a steady rate. 4. **Conflict reports from the genuine host.** RFC 5227 §2.4 says that when a host receives an ARP packet, request or reply, whose sender IP is its own address and whose sender hardware address is not its own, that is a *conflicting ARP packet*. A host wishing to provide reliable operation MUST respond in one of three defined ways, and hosts that defend or give up usually log it. This only fires when the forged claim is seen by the real owner, so it appears for broadcast claims, not for a packet aimed solely at another victim. 5. **Path symptoms.** A forwarding attacker adds one Layer 3 hop, visible as a TTL one lower or an extra hop on a classic traceroute, and flows may show added latency or sudden resets. ## Why every signal is only a hint | Signal | Legitimate lookalike | |---|---| | Gateway IP changes MAC | Failover of a virtual IP to a standby, announced by an unsolicited ARP; a replaced router | | One MAC, many IPs | A router doing proxy ARP; a host or load balancer owning several addresses | | Unsolicited replies | Gratuitous announcements after a NIC swap or address change | | Conflict report | Genuine duplicate address after misconfiguration | The two lookalikes that bite most are failover announcements and proxy ARP, each owned by its own topic, so a detector must be told which addresses are expected to move or to be shared. A well-tuned monitor alerts on **a change to a stable binding it was told to expect not to change**, not on any single packet. ## Detection is late by construction When you see the flip, the poisoned entry already exists. Detection therefore supports response, such as locating the port by MAC and isolating it, but prevention comes from validating ARP before it reaches hosts, as with the switch-side checks in the next question. RFC 5227 also notes that its conflict machinery turns a silent failure into a visible one: the same visibility is what helps here. ## Operating it sensibly - Record expected bindings for gateways and critical servers and alert only on deviation. - Keep change records so a failover or NIC replacement explains itself. - Rate-limit and aggregate alerts; a loop of conflicting hosts is noisy by nature. - Act on the port, not the IP: the attacker's MAC and switch port are what you can contain. ## Interview summary Lead with the gateway-MAC flip and unsolicited replies, name the legitimate twins (failover, proxy ARP, NIC change), and say that detection confirms an attack that has already happened.
- Why does a host's own conflict report not always fire during poisoning?The conflict logic of RFC 5227 triggers when the real owner receives a packet claiming its address. A forged reply aimed only at another host never reaches it, so the owner sees nothing. A broadcast claim does reach it, which is why this signal is useful but unreliable.
- Which legitimate events do you whitelist or correlate before alerting on a gateway MAC change?Planned failover or router replacement, a NIC swap on the gateway, and a virtual-IP move announced by unsolicited ARP. Check them against change records, then alert on unexplained changes only. Proxy ARP explains one MAC answering for many IPs, not a gateway changing owner.
saying these in an interview costs you the question
- Says any unsolicited ARP packet proves an attack
- Treats one MAC with many IPs as always malicious
- Believes detection prevents the poisoning
- Ignores failover and proxy ARP as benign causes
- Thinks only the poisoned host can ever notice anything