ARP spoofing, also called ARP cache poisoning, is an attack in which a device on a local network sends forged ARP messages that link the attacker's MAC address to another device's IP address, usually the gateway. Victims then send their traffic to the attacker, who can read, change or block it. It works because ARP, defined in RFC 826, has no authentication.
Key takeaways
- ARP spoofing poisons the IP-to-MAC cache on a local network so traffic goes to the attacker.
- It only works on the same local network, because ARP traffic does not cross a router.
- Dynamic ARP Inspection with DHCP snooping is the strongest prevention on managed switches.
Your devices trust each other on a local network — and that trust is the whole problem. ARP spoofing abuses a 1980s protocol that never learned to verify who is speaking.
What is ARP spoofing?
ARP spoofing, also called ARP cache poisoning, is an attack in which a device sends forged ARP messages that link the attacker's MAC address to another device's IP address, usually the default gateway. Victims update their ARP caches with the lie and send their traffic to the attacker.
ARP, the Address Resolution Protocol, maps an IPv4 address to a MAC address on a local network. When your laptop wants to reach the gateway at 192.168.1.1, it broadcasts an ARP request asking who holds that address, the gateway replies with its MAC address, and your laptop caches the pairing.
The flaw is that ARP has no authentication. Defined in RFC 826 (1982), it was built for networks where every device was trusted. Any host can answer an ARP request — including one nobody asked — and victims accept the answer. MITRE ATT&CK tracks the attack as technique T1557.002, ARP Cache Poisoning, under Adversary-in-the-Middle.
How does an ARP spoofing attack work?
An attacker on the same local network sends forged ARP replies claiming the gateway's IP address belongs to the attacker's MAC address. Victims poison their caches, and their outbound traffic flows through the attacker.
The attack runs in five steps. First, the attacker joins the local network — a coffee-shop Wi-Fi, an office LAN, or a compromised device on the segment. Second, they send gratuitous ARP replies: unsolicited messages announcing that the gateway IP now maps to their MAC address.
Third, victims overwrite their cached gateway entry with the attacker's MAC address. Fourth, the attacker repeats the forged replies, because ARP cache entries expire after a few minutes and would otherwise be refreshed correctly.
Fifth, the attacker forwards the traffic to the real gateway so nothing visibly breaks. The victim browses normally while the attacker watches. For the attack to work in both directions, the attacker usually poisons the gateway's cache too, claiming the victim's IP belongs to the attacker.
What can an attacker do after ARP spoofing?
Once traffic flows through the attacker, they can read unencrypted traffic, steal session cookies, redirect victims to fake sites, and inject malicious content into plain HTTP pages.
Session hijacking is the most damaging outcome. If a victim logs into a site over plain HTTP, the attacker can capture the session cookie and reuse it to impersonate the victim without ever learning the password.
DNS spoofing is a common follow-up: the attacker answers DNS queries with fake addresses, sending victims to look-alike login pages. That is why a certificate warning during an attack must never be clicked through — it is often the only visible sign that something is wrong. See our spear phishing guide for how fake login pages are used once traffic is redirected.
Encryption limits the damage but does not remove it. HTTPS hides page contents and passwords, yet the attacker can still see which domains you visit, block your traffic, or try to downgrade connections. A VPN adds a second layer: traffic inside the VPN tunnel stays encrypted even from a local attacker.
ARP spoofing vs DNS spoofing vs DHCP spoofing?
These three attacks all poison a local service, but they target different mappings. ARP spoofing fakes the IP-to-MAC mapping, DNS spoofing fakes the name-to-IP mapping, and DHCP spoofing fakes the server that hands out network settings.
| ARP spoofing | DNS spoofing | DHCP spoofing | |
|---|---|---|---|
| What is faked | IP address to MAC address | Domain name to IP address | DHCP server and gateway |
| Layer | Layer 2 (data link) | Layer 7 (application) | Layer 7 (application) |
| Goal | Get traffic routed through attacker | Send victims to fake sites | Push victims to attacker gateway |
| Needs | Same local segment | Same network, or a poisoned resolver | Same local segment |
| Key defense | Dynamic ARP Inspection | DNSSEC, DNS over HTTPS | DHCP snooping |
Attackers often combine them. ARP spoofing gets the attacker into the middle, and DNS spoofing then steers victims to fake sites. Defending one layer while ignoring the others leaves the door open.
How do you detect ARP spoofing?
ARP spoofing leaves a clear signature if you watch the right place: the same IP address suddenly resolving to a new MAC address, or one MAC address claiming several IP addresses.
On a single computer, compare the live ARP cache with a known-good baseline. On Windows, arp -a shows the cache; on macOS and Linux, arp -a or ip neigh does the same. If the gateway IP now points at an unfamiliar MAC address, investigate immediately.
On the wire, Wireshark flags the conflict with its duplicate-address detection, and a filter for unsolicited or repeated gratuitous ARP replies catches the attacker's keep-alive messages. MITRE's detection guidance for this technique flags exactly these indicators: multiple IPs resolving to one MAC, and repeated gratuitous ARP replies.
Purpose-built monitors automate the watch. Arpwatch records every IP-to-MAC pairing on a segment and alerts on changes, and intrusion detection systems with ARP-aware rules raise alerts on the same anomalies.
How do you prevent ARP spoofing?
Prevention removes the trust the attack abuses, and the strongest controls live on the switch. Dynamic ARP Inspection (DAI) checks every ARP packet against a trusted binding table built by DHCP snooping, and drops forgeries before they reach a cache.
That pair is the standard enterprise answer. DHCP snooping builds the table of which IP belongs to which MAC on which port, and DAI enforces it. Without DHCP snooping, DAI has nothing trustworthy to check against, so enable both together.
- Enable DHCP snooping and DAI on managed switches, and rate-limit ARP traffic on untrusted ports.
- Segment the network: keep guests, IoT devices and untrusted machines on separate VLANs from servers and workstations.
- Use static ARP entries only for critical hosts such as the gateway on a few servers — it does not scale to a whole network.
- Encrypt everything: prefer HTTPS, use a VPN on untrusted networks, and never ignore certificate warnings.
- Monitor ARP changes with arpwatch or an IDS, and alert on gateway MAC changes.
On a home network, the practical defenses are simpler: keep your Wi-Fi password strong, use WPA3 where your router supports it, and do not do banking on public Wi-Fi without a VPN. Our guide on how to secure your Wi-Fi walks through the home-router settings that matter most.
What should you do if you suspect ARP spoofing?
Act quickly and do not log into anything sensitive until the network is clean. Disconnect from the suspect network, tell the network administrator, and check the ARP cache on affected machines.
- Disconnect from the Wi-Fi or wired network, or switch to mobile data for urgent work.
- Clear the ARP cache on your device and reconnect only after the administrator confirms the segment is clean.
- Change passwords for any account you used on that network, from a trusted network, and check for unfamiliar sessions.
- Report it to IT or the network owner with the time, the network name and any MAC addresses you recorded.
- Watch for follow-up such as password-reset emails or login alerts in the days after the incident.
If you think an account was accessed, our guide on how to know if your phone is hacked covers the session and account checks that apply to any device.
The bottom line
ARP spoofing works because ARP trusts every device on the local network. The attacker does not need to break encryption or guess a password — they just need to be on the same network and lie first.
On managed networks, DHCP snooping plus Dynamic ARP Inspection closes the hole. Everywhere else, encryption and caution do the work: use HTTPS, use a VPN on public networks, and treat a sudden certificate warning as a reason to stop. Check what your connection currently exposes with the free what-is-my-IP tool.
Frequently asked questions
What is ARP spoofing in simple terms?
ARP spoofing is lying to a local network about which device owns an address. The attacker tells other devices that the gateway's address belongs to the attacker's computer, so traffic meant for the internet flows through the attacker first.
Is ARP spoofing the same as a man-in-the-middle attack?
ARP spoofing is one way to get into the middle. Once the attacker has poisoned the ARP caches, they sit between the victim and the gateway, which is a man-in-the-middle position. From there they can spy on, alter or block traffic.
Can ARP spoofing work over the internet?
No. ARP only works inside one local network segment, because ARP messages do not cross routers. An attacker must already be on the same Wi-Fi network or wired segment as the victim, or have compromised a device there.
How do I know if ARP spoofing is happening?
Look for the gateway's IP address suddenly pointing to a different MAC address, one MAC address claiming several IPs, or duplicate-address warnings in Wireshark. Tools such as arpwatch alert when an IP-to-MAC pairing changes.
Does HTTPS protect against ARP spoofing?
Partly. HTTPS encrypts the contents of web traffic, so an attacker in the middle cannot read passwords or page contents, but they can still see which sites you visit and can block or redirect traffic. Certificate warnings must never be ignored.
How do I stop ARP spoofing on my network?
On managed switches, enable DHCP snooping and Dynamic ARP Inspection, which check ARP messages against a trusted table and drop forgeries. Segment untrusted devices, use encrypted protocols, and avoid public Wi-Fi for sensitive work.
Is ARP spoofing illegal?
Yes, when done without permission. Intercepting other people's traffic is unlawful in most countries, including under computer misuse and wiretapping laws. Security professionals only test it on networks they own or have written permission to test.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against MITRE ATT&CK T1557.002, MITRE detection guidance DET0296 and RFC 826.
How we write and fact-check →