Working with scapy to detect ARP spoofing attacks
ARP spoofing, also known as ARP poisoning, is a type of attack in which a malicious user sends forged ARP messages over a LAN. This results in matching an attacker’s MAC address to the IP address of a legitimate computer or server on a network.
This attack allows us to poison our victim’s ARP cache tables and to execute attacks such as Man in the Middle (MITM), Denial of Service (DoS) or Session Hijacking among other techniques.
This attack consists of sending false ARP messages and the purpose is to associate the attacker’s MAC address with the IP address of another node, such as the default gateway. The aim is to send a packet to the victim’s computer (referenced by the IP and MAC addresses), associating the gateway IP with our MAC address (the attacking computer). As a result, the ARP tables of the victim computer are modified with the MAC addresses of the attacking computer.
Among the main...