ARP (Address Resolution Protocol) spoofing, also known as ARP poisoning, is a cyberattack where an attacker sends falsified ARP messages over a local network. This malicious activity associates the attacker’s MAC address with the IP address of a legitimate device, redirecting traffic intended for the victim to the attacker instead.
This article demonstrates how ARP spoofing can be implemented in NetSim, a network simulation tool, by modifying ARP protocol behavior and analyzing the attack’s impact.

Smart Meter A poisons the Data Collector’s ARP cache, making it believe Smart Meter A’s MAC address corresponds to Smart Meter C’s IP. This allows Smart Meter A to send falsified data to the Server Collector while impersonating Smart Meter C.
Network Setup in NetSim
Software: NetSim Standard v14.3, Visual Studio 2022
Project Download Link:
https://github.com/NetSim-TETCOS/ARP-Spoofing-v14.3/archive/refs/heads/main.zip
Follow the instructions specified in the following link to download and set up the Project in NetSim:

The simulation involves:
Home Area Network (HAN): Smart Meters (A, B, C)
Neighbor Area Network (NAN): Access Points
Wide Area Network (WAN): Data Collector & Server
Key Devices:
| Device | IP Address | Role |
|---|---|---|
| Smart Meter A | 192.169.0.3 | Attacker |
| Smart Meter C | 192.169.0.2 | Victim |
| Server Collector | 192.168.0.2 | Target Destination |
To simulate ARP spoofing, the following changes were made in NetSim’s source code:


3. Application Project Modifications



The screenshot below displays the NetSim packet trace with packets filtered to show Smart Meter A (the attacker node) as the transmitter. Both the ARP request and the data packets sent from the attacker node have a spoofed source IP address (192.169.0.2) instead of its actual IP address (192.169.0.3).

The logs (ARP_log.csv) show manipulated ARP table entries:
| IP Address | MAC Address | Type |
|---|---|---|
| 192.169.0.2 | Victim node (Smart Meter C) | DYNAMIC |


Conclusion
This article demonstrated how ARP spoofing can be simulated in NetSim by modifying ARP behavior and analyzing the attack’s impact.