The Wayback Machine - https://web.archive.org/web/20240605131440/https://www.geeksforgeeks.org/how-to-avoid-arp-poisoning/
Open In App

How to Avoid ARP Poisoning?

Last Updated : 10 Mar, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Many cyber-attacks take place by exploiting the weaknesses in the network. ARP poisoning is also one such cyber-attack. It exploits the Address Resolution Protocol (ARP) to attack network traffic. Before we go in-depth to understand the concept of ARP poisoning, let us first understand the ARP protocol. 

ARP Protocol:

In earlier days of computer networking, Address Resolution Protocol (ARP) was used extensively as it supported the layered approach. In the layered approach, different layers worked independently of each other.  

ARP translates between MAC addresses and IP addresses. MAC addresses are present at the data link layer and IP addresses are present at the network layer. This way, networked devices can know the other device to which the current IP address is currently assigned. This mapping can also be made public to the rest of the network. Further, to maintain efficiency, devices cache all the responses to keep a list of MAC-IP mappings at a present moment.  

ARP Poisoning:

As mentioned previously, this attack exploits the weaknesses present in the ARP protocol to corrupt the mappings that are present over the network. ARP protocol was introduced in 1982 and security was not a concern at that time. Thus, there were no authentication mechanisms devised to validate ARP messages. This way, even malicious devices can answer an ARP request. This is a major loophole in ARP protocol as it leaves a huge space for malicious users to poison the caches of other devices. If this happens, then the ARP cache would be filled with incorrect entries. 

General steps involved in ARP Poisoning Attack:

The steps of an ARP Poisoning attack can change but generally, it has the following steps:

  1. Selection of Victim: First and foremost, a target is selected. It can be a single machine or a group of machines depending on the intention of the attack. Moreover, an attacker may choose a single endpoint or a group of endpoints over the network. However, the most attractive target is a router as this may disrupt the entire network.
  2. Launching of tools and initiation of attack: To conduct an ARP poisoning attack, there is a wide variety of tools that we can use. After choosing a specific tool, the settings are configured and the attacker is all set to start the attack. An attacker may choose to broadcast ARP messages or wait for a request.
  3. Meddling with the traffic: After corrupting the machines in the network, the attacker can perform any kind of malicious activity. They can change, inspect, or permanently block the data from going to its destination.

Various ARP Poisoning Attacks:

These are the few main types of ARP poisoning attacks:

  1. Man-in-the-Middle Attack: Also abbreviated as MiTM, it is an attack where a third person comes into the picture disguised as an authentic party. It is a very dangerous attack where the middle man can send false data to other devices over the network. Moreover, this leads to the victim machine being populated with an ARP cache of MAC addresses of the device of attack and not that of the MAC address of the local router. The machines that have been attacked will then incorrectly forward the traffic to the attacker.
  2. Denial of Services Attack: Also abbreviated as DoS, it is an attack that aims at denying access to the network to the victims. When ARP comes into the picture, then the attacker can falsely map thousands of IP addresses to a single MAC. This is also called ARP flooding and it impacts the performance of the entire network.
  3. Session Hijacking: These are a bit similar to the Man-in-the-Middle attacks. The only difference which exists is that the attacker does not forward traffic maliciously. Rather, he takes over the genuine TCP sequence number to take the identity of the victim.

Prevention of ARP Poisoning Attacks:

Following are the five ways of avoiding ARP Poisoning attacks:

Prevention of ARP Poisoning Attacks

Prevention of ARP Poisoning Attacks

1. Static ARP Tables: Half of the problem will be solved if we can be sure of the correct mapping of MAC addresses to IP addresses. This can be done but it is heavy on the part of the administration. ARP tables keep a record of all the mappings and any network change is updated in these tables manually. Now, manually updating ARP tables for all hosts is not feasible for organizations. 

2. Switch Security: Most Ethernet switches have features that can help mitigate ARP Poisoning attacks. These features are also known as Dynamic ARP Inspection(DAI) and help in validating the ARP messages and drop packets that show any kind of malicious activity. This also allows one to limit the rate at which ARP messages can pass through the switch. 

DAI and other such features are now not only available on high-end networking gear but also on all business-grade switches. Usually, DAI is enabled on all ports but the ones connected to other switches. Port security on a switch helps in reducing ARP Cache Poisoning attacks. While using port security, there is no chance that an attacker may take multiple identities over the network. This is because, using port security, a single MAC address can be configured on a switch port. 

3. Physical Security: A very simple way to mitigate ARP Poisoning attacks is to control the physical space of your business. Routing of ARP messages takes place only within a local network. Thus, probable attackers are in physical proximity to the network of the victim. Also, in the case of wireless systems, an attacker might be present in a street or a parking lot. The use of technologies like 802.1x can help in removing any threats to the devices and the network. 

4. Network Isolation: Since ARP messages don’t have a scope greater than the local subnet, a well-segmented network is better than a normal network. This way, even if the attack occurs, a part of the network will only be affected and the other parts will be safe. Attack in one subnet does not impact the devices in any other subnet. Thus, important resources can be placed in a dedicated segment with high security.

5. Encryption: Encryption does not help in preventing ARP Poisoning, however, it does help in mitigating the damage that might occur in case of attacks. As in the case of MiTM attacks, login credentials are stolen from the network. However, with technologies like SSL and TLS, data in the encrypted form might get stolen but it can be read by the attacker, rendering it of no use to the attacker. 


Similar Reads

ARP, Reverse ARP(RARP), Inverse ARP (InARP), Proxy ARP and Gratuitous ARP
Prerequisite IP Addressing, Introduction of MAC Addresses, Basics of Address Resolution Protocol (ARP) In this article, we will discuss about whole ARP-family, which are ARP, RARP, InARP, Proxy ARP and Gratuitous ARP. Let's try to understand each one by one. 1. Address Resolution Protocol (ARP) - Address Resolution Protocol is a communication proto
6 min read
What is ARP Spoofing? - ARP poisoning Attack
The ARP Poisoning, also known as ARP Spoofing, is a type of cyberattack that takes advantage of the ARP (Address Resolution Protocol). ARP is a protocol that maps an IP address to a MAC address within a local network. However, ARP lacks authentication mechanisms, and this is what the attack exploits. The attacker sends fake ARP responses to a speci
5 min read
ARP Spoofing and ARP Poisoning
In this article, we will learn about the difference between ARP Spoofing and ARP Poisoning. We will explore them and understand the importance of these two malicious attacks in the context of network security. Before diving into the difference between ARP Spoofing and ARP Poisoning let's understand these topics in detail. What is ARP?ARP or Address
5 min read
MITM (Man in The Middle) Attack using ARP Poisoning
Introduction :Man In The Middle Attack implies an active attack where the attacker/Hacker creates a connection between the victims and sends messages between them or may capture all the data packets from the victims. In this case, the victims think that they are communicating with each other, but in reality, the malicious attacker/hacker controls t
5 min read
DNS Spoofing or DNS Cache poisoning
Prerequisite - Domain Name Server Before Discussing DNS Spoofing, First, discuss what is DNS.A Domain Name System (DNS) converts a human-readable name (such as www.geeksforgeeks.org) to a numeric IP address. The DNS system responds to one or more IP-address by which your computer connects to a website (such as geeksforgeeks.org) by using one of the
3 min read
What Is BGP Poisoning?
Border Gateway Protocol (BGP) is an IETF standard which refers to a gateway protocol that controls how packets get routed from one network to another by exchanging routing and its reachability information between the edge routers and also through exchanging routing information between autonomous systems, as networks interact and depend on each othe
5 min read
Route Poisoning and Count to infinity problem in Routing
The main issue with Distance Vector Routing (DVR) protocols is Routing Loops since Bellman-Ford Algorithm cannot prevent loops. This routing loop in the DVR network causes the Count to Infinity Problem. Routing loops usually occur when an interface goes down or two routers send updates at the same time. Counting to infinity problem: So in this exam
3 min read
Difference between ARP and RARP
In Address Resolution Protocol (ARP), Receiver's MAC address is fetched. Through ARP, (32-bit) IP address mapped into (48-bit) MAC address. Whereas, In Reverse Address Resolution Protocol (RARP), IP address is fetched through server. Through RARP, (48-bit) MAC address of 48 bits mapped into (32-bit) IP address. Prerequisite - ARP, Reverse ARP(RARP)
2 min read
ARP Protocol Packet Format
Pre-requisites: How Address Resolution Protocol (ARP) works? ARP is a communication mechanism that is used to translate a network address, such as an IP address, to a physical (MAC) address on a local network. ARP packets are transmitted and received on a network to achieve this mapping. An ARP packet's format, also known as an ARP packet header, h
2 min read
What is Dynamic ARP Inspection?
There are various ways in which an attacker tries to enter the network to steal confidential information, or they try to choke the network by flooding it with unwanted requests. A network security administrator works to provide security to the network. ARP spoofing is one of the ways in which attackers poison the network. Dynamic ARP inspection is
4 min read