All Topics  
Wired Equivalent Privacy

 

   Email Print
   Bookmark   Link






 

Wired Equivalent Privacy



 
 
Wired Equivalent Privacy (WEP) is a deprecated
Deprecation

In computer software standards and documentation, the term deprecation is applied to software features that are superseded and should be avoided....
 algorithm
Algorithm

In mathematics, computing, linguistics and related subjects, an algorithm is a sequence of finite instructions, often used for calculation and data processing....
 to secure IEEE 802.11
IEEE 802.11

IEEE 802.11 is a set of standards carrying out Wireless LAN computer communication in the 2.4, 3.6 and 5 GHz frequency bands. They are implemented by the Institute of Electrical and Electronics Engineers LAN/MAN Standards Committee ....
 wireless networks
Computer network

A computer network is a group of interconnected computers. Networks may be classified according to a wide variety of characteristics. This article provides a general overview of some types and categories and also presents the basic components of a network....
. Wireless networks broadcast messages using radio
Radio

Radio is the transmission of signals, by modulation of electromagnetic radiation with frequency below those of visible light.Electromagnetic radiation radio propagation by means of oscillating electromagnetic fields that pass through the air and the vacuum of space....
 and are thus more susceptible to eavesdropping
Eavesdropping

Eavesdropping is the act of surreptitiously listening to a private conversation. This is commonly thought to be unethical and there is an old adage that eavesdroppers seldom hear anything good of themselves....
 than wired networks. When introduced in 1997, WEP was intended to provide confidentiality
Confidentiality

Confidentiality has been defined by the International Organization for Standardization as "ensuring that information is accessible only to those authorized to have access" and is one of the cornerstones of information security....
 comparable to that of a traditional wired network
Local area network

A local area network is a computer network covering a small physical area, like a home, office, or small group of buildings, such as a school, or an airport....
.

Beginning in 2001, several serious weaknesses were identified by cryptanalysts with the result that today a WEP connection can be cracked with readily available software within minutes.






Discussion
Ask a question about 'Wired Equivalent Privacy'
Start a new discussion about 'Wired Equivalent Privacy'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Wired Equivalent Privacy (WEP) is a deprecated
Deprecation

In computer software standards and documentation, the term deprecation is applied to software features that are superseded and should be avoided....
 algorithm
Algorithm

In mathematics, computing, linguistics and related subjects, an algorithm is a sequence of finite instructions, often used for calculation and data processing....
 to secure IEEE 802.11
IEEE 802.11

IEEE 802.11 is a set of standards carrying out Wireless LAN computer communication in the 2.4, 3.6 and 5 GHz frequency bands. They are implemented by the Institute of Electrical and Electronics Engineers LAN/MAN Standards Committee ....
 wireless networks
Computer network

A computer network is a group of interconnected computers. Networks may be classified according to a wide variety of characteristics. This article provides a general overview of some types and categories and also presents the basic components of a network....
. Wireless networks broadcast messages using radio
Radio

Radio is the transmission of signals, by modulation of electromagnetic radiation with frequency below those of visible light.Electromagnetic radiation radio propagation by means of oscillating electromagnetic fields that pass through the air and the vacuum of space....
 and are thus more susceptible to eavesdropping
Eavesdropping

Eavesdropping is the act of surreptitiously listening to a private conversation. This is commonly thought to be unethical and there is an old adage that eavesdroppers seldom hear anything good of themselves....
 than wired networks. When introduced in 1997, WEP was intended to provide confidentiality
Confidentiality

Confidentiality has been defined by the International Organization for Standardization as "ensuring that information is accessible only to those authorized to have access" and is one of the cornerstones of information security....
 comparable to that of a traditional wired network
Local area network

A local area network is a computer network covering a small physical area, like a home, office, or small group of buildings, such as a school, or an airport....
.

Beginning in 2001, several serious weaknesses were identified by cryptanalysts with the result that today a WEP connection can be cracked with readily available software within minutes. Within a few months the IEEE created a new 802.11i
IEEE 802.11i

IEEE 802.11i-2004 or 802.11i is an amendment to the original IEEE 802.11 standard specifying security mechanisms for wireless LANs. It replaced the short Authentication and privacy clause of the original standard with a detailed Security clause, in the process deprecating the broken Wired Equivalent Privacy....
 task force to counteract the problems. By 2003, the Wi-Fi Alliance
Wi-Fi Alliance

The Wi-Fi Alliance is a trade group that owns the trademark to Wi-Fi.From Wi-Fi Alliance publications:The Wi-Fi Alliance is a global, non-profit industry association of more than 300 member companies devoted to promoting the growth of wireless Local Area Networks ....
 announced that WEP had been superseded by Wi-Fi Protected Access
Wi-Fi Protected Access

Wi-Fi Protected Access is a certification program created by the Wi-Fi Alliance to indicate compliance with the security protocol created by the Wi-Fi Alliance to secure wireless computer networks....
 (WPA), which was a subset of then upcoming 802.11i amendment. Finally in 2004, with the ratification of the full 802.11i standard (a.k.a. WPA2), the IEEE declared that both WEP-40 and WEP-104 "have been deprecated as they fail to meet their security goals". Despite its weaknesses, WEP is still widely in use. WEP is often the first security choice presented to users by router configuration tools even though it provides a level of security that deters only unintentional use, leaving the network vulnerable to deliberate compromise.

WEP is often inaccurately referred to as Wireless Encryption Protocol.

Encryption details

WEP was included as the privacy of the original IEEE 802.11
IEEE 802.11

IEEE 802.11 is a set of standards carrying out Wireless LAN computer communication in the 2.4, 3.6 and 5 GHz frequency bands. They are implemented by the Institute of Electrical and Electronics Engineers LAN/MAN Standards Committee ....
 standard ratified in September 1999. WEP uses the stream cipher
Stream cipher

In cryptography, a stream cipher is a symmetric key algorithm cipher where plaintext bits are combined with a pseudorandom cipher bit stream , typically by an exclusive-or operation....
 RC4
RC4

In cryptography, RC4 is the most widely-used software stream cipher and is used in popular protocols such as Secure Sockets Layer and Wired Equivalent Privacy ....
 for confidentiality
Confidentiality

Confidentiality has been defined by the International Organization for Standardization as "ensuring that information is accessible only to those authorized to have access" and is one of the cornerstones of information security....
, and the CRC-32 checksum for integrity
Integrity

Integrity comprises perceived consistency of actions, values, methods, measures and principles. As a holism concept, it judges the quality of a system in terms of its ability to achieve its own goals....
. It was deprecated as a wireless privacy mechanism in 2004, but for legacy purposes is still documented in the current standard.

Standard 64-bit WEP uses a 40 bit
40-bit encryption

40-bit encryption refers to a key size of forty bits, or five bytes, for symmetric encryption; this represents a relatively low level of security....
 key (also known as WEP-40), which is concatenated with a 24-bit initialization vector
Initialization vector

In cryptography, an initialization vector is a block of bits that is required to allow a stream cipher or a block cipher to be executed in any of several block cipher modes of operation to produce a unique stream independent from other streams produced by the same encryption key, without having to go through a re-keying process....
 (IV) to form the RC4 traffic key. At the time that the original WEP standard was being drafted, U.S. Government export restrictions on cryptographic technology
Export of cryptography

The export of cryptography is the transfer from one country to another of devices and technology related to cryptography.Since World War II, many governments, including the United States and its NATO allies, have regulated the export of cryptography for national security considerations, and, for a time, defined cryptography to be a munition...
 limited the key size. Once the restrictions were lifted, all of the major manufacturers eventually implemented an extended 128-bit WEP protocol using a 104-bit key size (WEP-104).

A 128-bit WEP key is almost always entered by users as a string of 26 hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 (base 16) characters (0-9 and A-F). Each character represents four bits of the key. 26 digits of four bits each gives 104 bits; adding the 24-bit IV produces the final 128-bit WEP key.

A 256-bit WEP system is available from some vendors, and as with the 128-bit key system, 24 bits of that is for the IV, leaving 232 actual bits for protection. These 232 bits are typically entered as 58 hexadecimal characters. (58 × 4 = 232 bits) + 24 IV bits = 256-bit WEP key.

Key size is not the only major security limitation in WEP. Cracking
Cryptanalysis

Cryptanalysis is the study of methods for obtaining the meaning of encrypted information, without access to the secret information which is normally required to do so....
 a longer key requires interception of more packets, but there are active attacks that simulate the necessary traffic. There are other weaknesses in WEP, including the possibility of IV collisions and altered packets, that are not helped at all by a longer key.

Authentication

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

For the sake of clarity, we discuss WEP authentication in the Infrastructure mode (ie, between a WLAN client and an Access Point), but the discussion applies to the Ad-Hoc mode
Wireless ad-hoc network

A wireless ad hoc network is a decentralized wireless network. The network is ad hoc because each node is willing to forward data for other nodes, and so the determination of which nodes forward data is made dynamically based on the network connectivity....
 as well.

In Open System authentication, the WLAN client need not provide its credentials to the Access Point during authentication. Thus, any client, regardless of its WEP keys, can authenticate itself with the Access Point and then attempt to associate. In effect, no authentication (in the true sense of the term) occurs. After the authentication and association, WEP can be used for encrypting the data frames. At this point, the client needs to have the right keys.

In Shared Key authentication, WEP is used for authentication. A four-way challenge-response handshake is used:
  1. The client station sends an authentication request to the Access Point.
  2. The Access Point sends back a clear-text
    Cleartext

    In data communications, cleartext is the form of a message or data which is in a form that is immediately comprehensible to a human being without additional processing....
     challenge.
  3. The client has to encrypt the challenge text using the configured WEP key, and send it back in another authentication request.
  4. The Access Point decrypts the material, and compares it with the clear-text it had sent. Depending on the success of this comparison, the Access Point sends back a positive or negative response.


After the authentication and association, WEP can be used for encrypting the data frames.

At first glance, it might seem as though Shared Key authentication is more secure than Open System authentication, since the latter offers no real authentication. However, it is quite the reverse. It is possible to derive the keystream used for the handshake by capturing the challenge frames in Shared Key authentication. Hence, it is advisable to use Open System authentication for WEP authentication, rather than Shared Key authentication. (Note that both authentication mechanisms are weak).

Flaws

Because RC4 is a stream cipher
Stream cipher

In cryptography, a stream cipher is a symmetric key algorithm cipher where plaintext bits are combined with a pseudorandom cipher bit stream , typically by an exclusive-or operation....
, the same traffic key must never be used twice. The purpose of an IV, which is transmitted as plain text, is to prevent any repetition, but a 24-bit IV is not long enough to ensure this on a busy network. The way the IV was used also opened WEP to a related key attack. For a 24-bit IV, there is a 50% probability the same IV will repeat after 5000 packets.

Many WEP systems require a key in hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 format. Some users choose keys that spell words in the limited 0-9, A-F hex character set, for example C0DE C0DE C0DE C0DE. Such keys are often easily guessed.

In August 2001, Scott Fluhrer, Itsik Mantin, and Adi Shamir
Adi Shamir

Adi Shamir is an Israeli cryptography. He was one of the inventors of the RSA algorithm , one of the inventors of the Feige-Fiat-Shamir Identification Scheme , one of the inventors of differential cryptanalysis and has made numerous contributions to the fields of cryptography and computer science....
 published a cryptanalysis of WEP that exploits the way the RC4 cipher and IV is used in WEP, resulting in a passive attack that can recover the RC4 key
Key (cryptography)

In cryptography, a key is a piece of information that determines the functional output of a cryptographic algorithm or cipher. Without a key, the algorithm would have no result....
 after eavesdropping on the network. Depending on the amount of network traffic, and thus the number of packets available for inspection, a successful key recovery could take as little as one minute. If an insufficient number of packets are being sent, there are ways for an attacker to send packets on the network and thereby stimulate reply packets which can then be inspected to find the key. The attack was soon implemented, and automated tools have since been released. It is possible to perform the attack with a personal computer, off-the-shelf hardware and freely available software such as aircrack-ng
Aircrack-ng

Aircrack-ng is a network software suite consisting of a detector, packet sniffer, Wired Equivalent Privacy and Wi-Fi Protected Access/WPA2-PSK Wireless hacking tool for 802.11 wireless LANs....
 to crack any WEP key in minutes.

Cam-Winget et al. (2003) surveyed a variety of shortcomings in WEP. They write "Experiments in the field indicate 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 reported two generic weaknesses:
  • the use of WEP was optional, resulting in many installations never even activating it, and
  • WEP did not include a key management protocol, relying instead on a single shared key amongst users.


In 2005, a group from the U.S. Federal Bureau of Investigation
Federal Bureau of Investigation

The Federal Bureau of Investigation is the primary unit in the United States United States Department of Justice, serving as both a Law enforcement agency body and a domestic intelligence agency....
 gave a demonstration where they cracked a WEP-protected network in 3 minutes using publicly available tools. Andreas Klein presented another analysis of the RC4 stream cipher. Klein showed that there are more correlations between the RC4 keystream and the key than the ones found by Fluhrer, Mantin, and Shamir which can additionally be used to break WEP in WEP like usage modes.

In 2006, Bittau, Handley and Lackey showed that the 802.11 protocol itself can be used against WEP to enable earlier attacks that were previously thought impractical. After eavesdropping a single packet, an attacker can rapidly bootstrap to be able to transmit arbitrary data. The eavesdropped packet can then be decrypted one byte at a time (by transmitting about 128 packets per byte to decrypt) to discover the local network IP addresses. Finally, if the 802.11 network is connected to the Internet, the attacker can use 802.11 fragmentation to replay eavesdropped packets while crafting a new IP header onto them. The access point can then be used to decrypt these packets and relay them on to a buddy on the Internet, allowing real-time decryption of WEP traffic within a minute of eavesdropping the first packet.

In 2007, Erik Tews, Andrei Pychkine and Ralf-Philipp Weinmann were able to extend Klein's 2005 attack and optimize it for usage against WEP. With the it is possible to recover a 104 bit WEP key with probability 50% using just 40,000 captured packets. For 60,000 available data packets, the success probability is about 80% and for 85,000 data packets about 95%. Using active techniques like deauth and ARP re-injection, 40,000 packets can be captured in less than one minute under good conditions. The actual computation takes about 3 seconds and 3 MB of main memory on a Pentium-M 1.7 GHz and can additionally be optimized for devices with slower CPUs. The same attack can be used for 40 bit keys with an even higher success probability.

Remedies

Use of encrypted tunneling protocols (e.g. IPSec
IPsec

Internet Protocol Security is a Protocol suite for securing Internet Protocol communications by authentication and encryption each packet #Example: IP packets of a data stream....
, Secure Shell
Secure Shell

Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for TELNET and other Computer security remote Shell s, which send information, notably passwords, in...
) can provide secure data transmission over an insecure network. However, replacements for WEP have been developed with the goal of restoring security to the wireless network itself.

802.11i (WPA and WPA2)

The recommended solution to WEP security problems is to switch to WPA2 or with older equipment the less resource intensive WPA
Wi-Fi Protected Access

Wi-Fi Protected Access is a certification program created by the Wi-Fi Alliance to indicate compliance with the security protocol created by the Wi-Fi Alliance to secure wireless computer networks....
. Either is much more secure than WEP. To add support for WPA or WPA2, some old Wi-Fi access point
Access Point

Access Point can refer to:*Access Point , a location on Anvers Island, Antarctica*Wireless access point, a wireless networking device...
s might need to be replaced or have their firmware
Firmware

Firmware is a term sometimes used to denote the fixed, usually rather small, programs that internally control various electronic devices. Typical examples range from end user products such as remote controls or calculators, via computer parts and devices like harddisks, keyboard s, TFT screens or memory cards, all the way to scientific instr...
 upgraded. WPA was designed as an interim software solution for WEP; it runs on the same hardware that WEP does. However, TKIP (the basis of WPA) has reached the end of its designed lifetime and has been deprecated in the next full release of the 802.11 standard.

Implemented non-standard fixes


WEP2
This stopgap enhancement to WEP was present in some of the early 802.11i drafts. It was implementable on some (not all) hardware not able to handle WPA or WPA2, and extended both the IV and the key values to 128 bits. It was hoped to eliminate the duplicate IV deficiency as well as stop brute force
Brute force attack

In cryptanalysis, a brute force attack is a method of defeating a cryptographic scheme by systematically trying a large number of possibilities; for example, a large number of the possible key s in a key space in order to decrypt a message....
 key attacks.

After it became clear that the overall WEP algorithm was deficient (and not just the IV and key sizes) and would require even more fixes, both the WEP2 name and original algorithm were dropped. The two extended key lengths remained in what eventually became WPA's TKIP.

WEPplus
WEPplus, also known as WEP+, is a proprietary enhancement to WEP by Agere Systems
Agere Systems

Agere Systems Inc. was an integrated circuit components company based in Allentown, Pennsylvania, in the Lehigh Valley region of Pennsylvania, in the United States....
 (formerly a subsidiary of Lucent Technologies
Lucent Technologies

Lucent Technologies was a technology company composed of what was formerly AT&T Technologies, which included Western Electric and Bell Labs. It was spun off from AT&T on September 30, 1996....
) that enhances WEP security by avoiding "weak IVs". It is only completely effective when WEPplus is used at both ends of the wireless connection. As this cannot easily be enforced, it remains a serious limitation. It is possible that successful attacks against WEPplus will eventually be found. It also does not necessarily prevent replay attack
Replay attack

A replay attack is a form of Computer network attack in which a valid data transmission is maliciously or fraudulently repeated or delayed. This is carried out either by the originator or by an Adversary who intercepts the data and retransmits it, possibly as part of a Spoofing attack by Internet Protocol packet substitution ....
s.

Dynamic WEP
Dynamic WEP changes WEP keys dynamically. It is a vendor-specific feature provided by several vendors such as 3Com
3Com

3Com is a manufacturer best known for its computer network infrastructure products. The company was co-founded in 1979 by Robert Metcalfe, Bruce Borden, and Greg Shaw, and is headquartered in Marlborough, Massachusetts, Massachusetts....
.

The dynamic change idea made it into 802.11i as part of TKIP, but not for the actual WEP algorithm.

See also

  • Stream cipher attack
    Stream cipher attack

    Stream ciphers, where plaintext bits are combined with a cipher bit stream by an exclusive-or operation , can be very secure if used properly. However they are vulnerable to attack if certain precautions are not followed:...
  • Wireless Hacking
    Wireless hacking

    In security breaches, wireless hacking is the unauthorized use or penetration of a wireless network. A wireless network can be penetrated in a number of ways....