Man-in-the-Middle attacks happen much more often than we think, quietly compromising our data while we go about our daily lives. Whether you are working from a coffee shop or sitting in your living room, the devices you use are vulnerable to interception. These attacks do not show up as virus warnings on your screen. Instead, they work silently in the background, copying sensitive information as it travels through the air.
The Ignored Mystery Box
To understand how these attacks work, we first need to look at the router.
Most people think of the router as just a dusty plastic box sitting in the corner of the house, only noticing it when the internet stops working. However, it is arguably the most important device in your network. It connects your phone to your banking app, your smart TV to streaming services, and your laptop to the internet. Without it, your devices cannot communicate with the outside world at all.
Every single packet destined for the internet eventually passes through the router. Since it sits at the center of all communication, it becomes an extremely attractive target for attackers. Instead of attacking every device individually, an attacker only needs to compromise the path between a device and the router.
The Attack
If a hacker wants to monitor or steal your data, they do not need to hack your computer or the website you are visiting. They simply need to control the route your data takes to reach the router.
By placing themselves between your device and the router, they become a “man in the middle.” They act as a fake gateway, gaining visibility into all the information flowing between both parties.
This attack is made possible by abusing a core network protocol called the Address Resolution Protocol (ARP).
Computers use IP addresses to identify devices logically, but inside a local network, the actual data transmission happens using MAC addresses. ARP acts as the translator between these two systems.
Suppose your laptop wants to access a website. It already knows the router’s IP address because the router acts as the default gateway. However, it cannot directly send data using an IP address. It first needs to know the router’s physical MAC address.
Your laptop broadcasts a message to the entire network:
“Who owns 192.168.1.1?”
The router responds:
“192.168.1.1 is at AA:BB:CC:DD:EE:FF”
Your laptop stores this information inside its ARP table so it does not have to ask repeatedly.
Betrayed by Trust
The biggest weakness of ARP is that it was built entirely on trust.
ARP has no authentication mechanism. There is no way to verify whether a response genuinely came from the router. Even worse, devices will accept ARP replies they never requested.
This means anyone connected to the same Wi-Fi network can send fake ARP replies and overwrite the existing records.
Attackers exploit this weakness using a technique called ARP spoofing.
How ARP Spoofing Actually Works
The attack is a two-way deception.
The attacker continuously sends fake ARP replies to both the victim and the router.
Step 1: Poison the victim
The attacker sends a fake ARP reply to the victim:
“192.168.1.1 (the router) is at 11:22:33:44:55:66 (my MAC address).”
The victim trusts this information and updates its ARP table.
Now, whenever the victim wants to send internet traffic, it unknowingly sends everything to the attacker instead of the router.
Step 2: Poison the router
The attacker also sends another fake ARP reply to the router:
“192.168.1.100 (the victim) is at 11:22:33:44:55:66 (my MAC address).”
The router also trusts this information and updates its own ARP table.
At this point, both devices believe the attacker is the other party.
The Silent Interceptor
Now a problem appears.
If the attacker simply intercepts the packets and keeps them, the victim will immediately lose internet connectivity and become suspicious.
To remain invisible, the attacker must forward every intercepted packet to its original destination.
The communication flow now looks like this:
The attacker silently reads, copies or modifies the packets before forwarding them.
Since the forwarding happens extremely quickly, the victim rarely notices anything unusual.
This is why ARP spoofing is considered one of the most dangerous local network attacks.
The Attacker’s Toolkit
An attacker typically enables packet forwarding on their machine and then launches ARP spoofing tools.
Enable packet forwarding (Linux)
sudo sysctl -w net.ipv4.ip_forward=1
Using arpspoof
sudo arpspoof -i wlan0 -t 192.168.1.100 192.168.1.1
This poisons the victim.
sudo arpspoof -i wlan0 -t 192.168.1.1 192.168.1.100
This poisons the router.
The attacker runs both commands simultaneously to establish a complete Man-in-the-Middle attack.
Seeing the Attack Happen
As a network engineer, you can actually observe this attack because it leaves visible traces on the network.
Observe ARP traffic
On Unix-based systems:
sudo tcpdump -i en0 arp
On Linux:
sudo tcpdump -i eth0 arp
During normal operation, you will see occasional ARP requests and replies.
During an attack, your terminal will suddenly flood with repetitive ARP replies attempting to claim ownership of the router’s IP address.
You can also inspect your ARP table.
macOS
arp -a
Linux
ip neigh
Windows
arp -a
If the router’s MAC address keeps changing unexpectedly, that is a strong indicator of ARP poisoning.
Packet analysis tools like Wireshark can also reveal suspicious duplicate ARP replies and conflicting MAC address advertisements.
Doesn’t HTTPS Solve This?
Fortunately, modern websites have a powerful defense mechanism: HTTPS.
HTTPS encrypts the actual data before it leaves your device. Even if an attacker successfully redirects your traffic, they cannot directly read your passwords, banking information or session data.
Instead of seeing plain text, they will only see encrypted packets.
However, HTTPS does not eliminate the attack itself.
The attacker can still see metadata such as:
- Which websites you visit
- When you visit them
- How much data is being exchanged
- Which devices are communicating
HTTPS protects the contents of the conversation, but not the fact that a conversation is taking place.
The underlying ARP weakness still exists.
Preventing ARP Spoofing
The most effective defense starts with controlling who can access your network.
Your primary Wi-Fi network should only be shared with people you fully trust. Every additional device connected to your network is another potential entry point for an attacker.
For visitors, it is far safer to create a dedicated guest network with temporary credentials instead of giving them access to your primary network. Guest networks isolate visitors from your personal devices, preventing them from interacting with laptops, phones, printers and other sensitive systems.
In enterprise environments, network segmentation becomes even more important. Employees, guests and internal systems should operate on separate networks rather than sharing a single broadcast domain.
Modern enterprise switches and routers also provide security features such as Dynamic ARP Inspection (DAI). These systems actively validate ARP packets before accepting them and immediately block suspicious devices attempting to impersonate others on the network.
Ultimately, ARP spoofing is not a vulnerability caused by bad software or weak passwords. It is a design limitation of a protocol created during an era when networks were much smaller and trust was assumed by default.
That design assumption no longer holds true today.
The router sitting quietly in the corner of your house is not just another device. It is the gatekeeper of your entire digital life, and protecting access to it is one of the most important security decisions you can make.
