Wired Equivalent Privacy

Short description: Deprecated security algorithm for wireless networks

Wired Equivalent Privacy (WEP) is an obsolete security algorithm for 802.11 wireless networks. It was introduced as part of the original IEEE 802.11 standard ratified in 1997. The standard described WEP as providing a level of security and privacy comparable to that of a traditional wired network.[1] WEP, recognizable by its key of 10 or 26 hexadecimal digits (40 or 104 bits), was once widely used and was often the default security option presented to users by router configuration tools.[2][3] After a major design flaw in the algorithm was disclosed in 2001,[4] WEP was no longer considered secure. In most cases, Wi-Fi hardware that relied on WEP could not be upgraded to support stronger encryption. Some of WEP's flaws were addressed in WEP2, but it also proved insecure and was never widely adopted or standardized.[5]

In 2003, the Wi-Fi Alliance announced that WEP and WEP2 had been superseded by Wi-Fi Protected Access (WPA). In 2004, with the ratification of the full 802.11i standard (i.e. WPA2), the IEEE declared that both WEP-40 and WEP-104 were deprecated.[6] WPA retained some design characteristics of WEP that continued to present weaknesses.

WEP was the only encryption protocol available to 802.11a and 802.11b devices built before the WPA standard, which was introduced with 802.11g. Some 802.11b devices later received firmware or software updates to enable WPA, and newer devices included it by default.[7]

## Contents

* 1 History
* 2 Encryption details
* 3 Authentication
* 4 Weak security
* 4.1 Caffe Latte attack
* 5 Countermeasures
* 5.1 802.11i (WPA and WPA2)
* 5.2 Implemented non-standard fixes
* 5.2.1 WEP2
* 5.2.2 WEPplus
* 5.2.3 Dynamic WEP
* 6 See also
* 7 References
* 8 External links

## History

WEP was ratified as a Wi-Fi security standard on September 17, 1999. The first versions of WEP were relatively weak, even at the time of release, due to U.S. restrictions on the export of cryptographic technologies. These restrictions led manufacturers to limit devices to 64-bit encryption. When the restrictions were lifted, the encryption length was increased to 128 bits. Although 256-bit WEP was later introduced, 128-bit WEP remained the most common implementation.[8]

## Encryption details

WEP was included as the privacy component of the original IEEE 802.11[9] standard ratified in 1997.[10][11] WEP uses the stream cipher RC4 for confidentiality,[12] and the CRC-32 checksum for integrity.[13] It was deprecated in 2004 and is documented in the current standard.[14]

Basic WEP encryption: RC4 keystream XORed with plaintext

Standard 64-bit WEP uses a 40-bit key (also known as WEP-40), which is concatenated with a 24-bit initialization vector (IV) to form the RC4 key. At the time the original WEP standard was drafted, U.S. export restrictions on cryptographic technology limited the key size. Once those restrictions were lifted, manufacturers of access points implemented an extended 128-bit WEP protocol using a 104-bit key size (WEP-104).

A 64-bit WEP key is usually entered as a string of 10 hexadecimal (base 16) characters (0–9 and A–F). Each character represents 4 bits; 10 digits at 4 bits each gives 40 bits. Adding the 24-bit IV produces the complete 64-bit WEP key (4 bits × 10 + 24-bit IV = 64-bit WEP key). Most devices also allow the user to enter the key as 5 ASCII characters (0–9, a–z, A–Z), each of which is turned into 8 bits using the character’s byte value in ASCII (8 bits × 5 + 24-bit IV = 64-bit WEP key). However, this restricts each byte to printable ASCII characters, which represent only a small fraction of possible byte values, greatly reducing the space of possible keys.

A 128-bit WEP key is usually entered as a string of 26 hexadecimal characters. Twenty-six digits at 4 bits each gives 104 bits; adding the 24-bit IV produces the complete 128-bit WEP key (4 bits × 26 + 24-bit IV = 128-bit WEP key). Most devices also allow entry as 13 ASCII characters (8 bits × 13 + 24-bit IV = 128-bit WEP key).

152-bit and 256-bit WEP systems were available from some vendors. As with other WEP variants, 24 bits are reserved for the IV, leaving 128 or 232 bits for the key material. These are typically entered as 32 or 58 hexadecimal characters (4 bits × 32 + 24-bit IV = 152-bit WEP key; 4 bits × 58 + 24-bit IV = 256-bit WEP key). Most devices also allow entry as 16 or 29 ASCII characters (8 bits × 16 + 24-bit IV = 152-bit WEP key; 8 bits × 29 + 24-bit IV = 256-bit WEP key).

## Authentication

Two methods of authentication can be used with WEP: Open System authentication and Shared Key authentication.

In Open System authentication, the WLAN client does not provide credentials to the access point during authentication. Any client can authenticate with the access point and then attempt to associate. In effect, no authentication occurs. After association, WEP keys are used for encrypting data frames, and the client must have the correct keys.

In Shared Key authentication, the WEP key is used in a four-step challenge–response handshake:

1. The client sends an authentication request to the access point.
2. The access point replies with a clear-text challenge.
3. The client encrypts the challenge text using the configured WEP key and sends it back in another authentication request.
4. The access point decrypts the response. If it matches the challenge text, the access point sends back a positive reply.

After authentication and association, the pre-shared WEP key is also used for encrypting data frames with RC4.

Although Shared Key authentication might appear more secure than Open System authentication, the opposite is true. The keystream used for the handshake can be derived by capturing the challenge frames in Shared Key authentication.[15] This makes it easier to intercept and decrypt data with Shared Key authentication than with Open System authentication. If privacy is a concern, Open System authentication is generally preferable when using WEP, though it also allows any WLAN client to connect to the access point. Both mechanisms are weak, and Shared Key WEP has been deprecated in favor of WPA/WPA2.

## Weak security

Because RC4 is a stream cipher, the same traffic key must never be reused. The purpose of an IV, which is transmitted as plaintext, is to prevent repetition. However, WEP’s 24-bit IV is too short to guarantee uniqueness on a busy network. The way the IV was implemented also exposed WEP to a related-key attack. For a 24-bit IV, there is a 50% probability of repetition after about 5,000 packets.

In August 2001, Scott Fluhrer, Itsik Mantin, and Adi Shamir published a cryptanalysis of WEP[4] that exploited the way RC4 and IVs were used, enabling a passive attack that could recover the RC4 key after eavesdropping on network traffic. Depending on traffic volume, a successful key recovery could take as little as one minute. If insufficient packets were available, attackers could stimulate traffic by sending packets to the network and analyzing the replies. The attack was quickly implemented, and automated tools were released. With a personal computer, standard hardware, and freely available software such as aircrack-ng, WEP keys can be cracked in minutes.

Cam-Winget et al.[16] surveyed WEP’s shortcomings. They noted that “experiments in the field show that, with proper equipment, it is practical to eavesdrop on WEP-protected networks from distances of a mile or more from the target.” They also identified two general weaknesses:

* WEP was optional, and many installations never enabled it.
* By default, WEP relied on a single shared key among users, making it difficult to manage compromises, which were often ignored.

In 2005, the U.S. Federal Bureau of Investigation demonstrated cracking a WEP-protected network in three minutes using publicly available tools.[17] Andreas Klein later presented an analysis of RC4 showing additional correlations between the keystream and the key, which could also be exploited to break WEP.

In 2006, Bittau, Handley, and Lackey showed[2] that the 802.11 protocol itself could be leveraged to make earlier attacks practical. After eavesdropping a single packet, an attacker could bootstrap to transmit arbitrary data. The captured packet could then be decrypted one byte at a time (by transmitting about 128 packets per byte) to reveal local network IP addresses. If the network was connected to the Internet, attackers could use 802.11 fragmentation to replay packets with modified headers, allowing the access point to decrypt them and forward them online. This enabled real-time decryption of WEP traffic within a minute of capturing the first packet.

In 2007, Erik Tews, Andrei Pyshkin, and Ralf-Philipp Weinmann extended Klein’s 2005 attack and optimized it for WEP. Their method[18] could recover a 104-bit WEP key with 50% probability using only 40,000 captured packets. With 60,000 packets, the probability rose to about 80%, and with 85,000 packets, about 95%. Using active techniques such as Wi-Fi deauthentication attacks and ARP re-injection, 40,000 packets could be captured in under a minute under favorable conditions. The computation required about three seconds and 3 MB of memory on a Pentium-M 1.7 GHz processor, and could be optimized for slower devices. The same attack worked against 40-bit keys with even higher success rates.

In 2008, the Payment Card Industry Security Standards Council (PCI SSC) updated the Data Security Standard (DSS) to prohibit the use of WEP in credit-card processing after 30 June 2010, and to prohibit the installation of any new WEP-based systems after 31 March 2009. The use of WEP was a factor in the TJ Maxx parent company network breach.[19]

### Caffe Latte attack

The Caffe Latte attack is another method of defeating WEP. Unlike many other attacks, it does not require the attacker to be within range of the target network. By exploiting a vulnerability in the Windows wireless stack, it is possible to obtain the WEP key from a remote client.[20] The attack works by sending a flood of encrypted ARP requests, taking advantage of shared key authentication and message modification flaws in 802.11 WEP. The attacker then uses the ARP responses to recover the WEP key, often in less than six minutes.[21]

## Countermeasures

The use of encrypted tunneling protocols (e.g., IPsec, Secure Shell) can provide secure data transmission over an insecure network. However, replacements for WEP were developed to restore security at the wireless network layer itself.

### 802.11i (WPA and WPA2)

The recommended solution to WEP’s security problems is to migrate to WPA2. WPA was introduced as an interim solution for hardware that could not support WPA2. Both WPA and WPA2 are significantly more secure than WEP.[22] To enable WPA or WPA2, some older Wi-Fi access points required firmware upgrades or replacement. WPA was designed as a software-implementable stopgap to extend the life of WEP-based hardware.[23] However, the TKIP (the basis of WPA) has reached the end of its intended lifetime, has been partially broken, and was officially deprecated with the release of the 802.11-2012 standard.[24]

### Implemented non-standard fixes

#### WEP2

WEP2 was a stopgap enhancement included in some early 802.11i drafts. It was supported on certain hardware that could not handle WPA or WPA2, and extended both the IV and key values to 128 bits.[9] It was intended to address the duplicate IV problem and resist brute-force key attacks.

Once it became clear that WEP’s overall design was fundamentally flawed, both the WEP2 name and algorithm were abandoned. The extended key lengths were retained in what later became WPA’s TKIP.

#### WEPplus

WEPplus, also known as WEP+, is a proprietary enhancement developed by Agere Systems (formerly a subsidiary of Lucent Technologies) that attempted to improve WEP security by avoiding "weak IVs".[25] It is only fully effective when implemented at both ends of the wireless connection, which is difficult to enforce. It also does not prevent replay attacks and is ineffective against later statistical attacks that do not rely on weak IVs.

#### Dynamic WEP

Dynamic WEP refers to the use of 802.1x technology with the Extensible Authentication Protocol to change WEP keys dynamically. It was a vendor-specific feature offered by several companies, including 3Com.

The concept of dynamic key changes was later incorporated into 802.11i as part of TKIP, but not retained for WEP itself.

## See also

* Stream cipher attacks
* Wireless security
* Wi-Fi Protected Access

## References

1. ↑ IEEE Standard for Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) specifications. IEEE STD 802.11-1997. November 1997. pp. 1–445. doi:10.1109/IEEESTD.1997.85951. ISBN 1-55937-935-9.
2. ↑ 2.0 2.1 Andrea Bittau; Mark Handley; Joshua Lackey. "The Final Nail in WEP's Coffin". 2006 IEEE Symposium on Security and Privacy. doi:10.1109/SP.2006.40. http://www.cs.ucl.ac.uk/staff/M.Handley/papers/fragmentation.pdf. Retrieved 2008-03-16.
3. ↑ "Wireless Adoption Leaps Ahead, Advanced Encryption Gains Ground in the Post-WEP Era" (Press release). RSA Security. 2007-06-14. Archived from the original on 2008-02-02. Retrieved 2007-12-28.
4. ↑ 4.0 4.1 Fluhrer, Scott; Mantin, Itsik; Shamir, Adi (2001). "Weaknesses in the Key Scheduling Algorithm of RC4". https://www.cs.cornell.edu/people/egs/615/rc4_ksaproc.pdf.
5. ↑ "WEP2: Wired Equivalent Privacy 2". 10 October 2024. https://www.videoexpertsgroup.com/glossary/wep2.
6. ↑ "What is a WEP key?". http://lirent.net/wifi/what-is-a-wep-key.html.
7. ↑ "SolutionBase: 802.11g vs. 802.11b". 19 August 2004. https://www.techrepublic.com/article/solutionbase-80211g-vs-80211b/.
8. ↑ Fitzpatrick, Jason (September 21, 2016). "The Difference Between WEP, WPA and WPA2 Wi-Fi Passwords". https://www.howtogeek.com/167783/htg-explains-the-difference-between-wep-wpa-and-wpa2-wireless-encryption-and-why-it-matters/.
9. ↑ 9.0 9.1 "WEP2, Credibility Zero". starkrealities.com. http://www.starkrealities.com/wireless003.html.
10. ↑ Harwood, Mike (29 June 2009). "Securing Wireless Networks". CompTIA Network+ N10-004 Exam Prep. Pearson IT Certification. p. 287. ISBN 978-0-7897-3795-3. https://books.google.com/books?id=7b6_va4Sci0C. Retrieved 9 July 2016. "WEP is an IEEE standard introduced in 1997, designed to secure 802.11 networks."
11. ↑ Walker, Jesse. "A History of 802.11 Security". Intel Corporation. http://www.winlab.rutgers.edu/pub/docs/JesseWalker.pdf. "IEEE Std 802.11-1997 (802.11a) defined Wired Equivalent Privacy (WEP)."
12. ↑ "WPA Part 2: Weak IV's". informit.com. http://www.informit.com/guides/content.aspx?g=security&seqNum=85.
13. ↑ "An Inductive Chosen Plaintext Attack against WEP/WEP2". cs.umd.edu. http://www.cs.umd.edu/~waa/attack/v3dcmnt.htm.
14. ↑ IEEE 802.11i-2004: Medium Access Control (MAC) Security Enhancements. 2004. http://standards.ieee.org/getieee802/download/802.11i-2004.pdf. Retrieved 2007-12-18.
15. ↑ Nikita Borisov; Ian Goldberg; David Wagner. "Intercepting Mobile Communications: The Insecurity of 802.11". Proceedings of the 7th Annual International Conference on Mobile Computing and Networking. doi:10.1145/381677.381695. ISBN 1581134223. http://www.isaac.cs.berkeley.edu/isaac/mobicom.pdf. Retrieved 2006-09-12.
16. ↑ Cam-Winget, Nancy; Housley, Russ; Wagner, David; Walker, Jesse (May 2003). "Security Flaws in 802.11 Data Link Procotols". Communications of the ACM 46 (5): 35–39. doi:10.1145/769800.769823. http://www.cs.berkeley.edu/~daw/papers/wireless-cacm.pdf.
17. ↑ "Wireless Features". 31 March 2005. http://www.smallnetbuilder.com/index.php?option=com_content&task=view&id=24251&Itemid=100.
18. ↑ Tews, Erik; Weinmann, Ralf-Philipp; Pyshkin, Andrei. "Breaking 104 bit WEP in less than 60 seconds". http://eprint.iacr.org/2007/120.pdf.
19. ↑ Greenemeier, Larry (2007-05-09). "T.J. Maxx data theft likely due to wireless 'wardriving'". Information Week. http://www.informationweek.com/tj-maxx-data-theft-likely-due-to-wireles/199500385.
20. ↑ Lisa Phifer. "The Caffe Latte Attack: How It Works—and How to Block It". wi-fiplanet.com. http://www.wi-fiplanet.com/tutorials/article.php/10724_3716241_1.
21. ↑ "Caffe Latte with a Free Topping of Cracked WEP: Retrieving WEP Keys from Road-Warriors". http://www.airtightnetworks.com/home/news/pr/select_category/14/article/123/airtight-wireless-security-researcher-reveals-wep-can-be-cracked-without-an-access-point.html.
22. ↑ "802.11b Update: Stepping Up Your WLAN Security". networkmagazineindia.com. http://www.networkmagazineindia.com/200112/focus3.htm.
23. ↑ "Wireless Network Security". Proxim Wireless. http://www.proxim.com/learn/library/whitepapers/wireless_security.pdf.
24. ↑ "802.11mb Issues List v12" (excel). 20 Jan 2009. p. CID 98. https://mentor.ieee.org/802.11/file/08/11-08-1127-12-000m-tgmb-issues-list.xls. "The use of TKIP is deprecated. The TKIP algorithm is unsuitable for the purposes of this standard"
25. ↑ "Agere Systems is First to Solve Wireless LAN Wired Equivalent Privacy Security Issue; New Software Prevents Creation of Weak WEP Keys". Business Wire. 2001-11-12. http://findarticles.com/p/articles/mi_m0EIN/is_2001_Nov_12/ai_79954213.

## External links

* The Evolution of 802.11 Wireless Security, by Kevin Benton, April 18th 2010

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Wired Equivalent Privacy. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Wired_Equivalent_Privacy&oldid=4124275"