Docsity

Wired Equivalent Privacy - Problems and Solutions | DCS 835, Papers of Data Communication Systems and Computer Networks

Toggle sidebar
bg1
DPS Team 4
Kile, Little, and Shah
DCS835 Data Communications
Pace University
Last Revised: June 24, 2005
IEEE 802.11 Wired Equivalent Privacy (WEP)
Problems and Solutions
1. Background
802.11 networks have become ubiquitous because of their convenience, ease of setup and use.
As these networks have grown in number, the inherent limitations on their security have come to
the forefront. With a few dollars and very little work, hackers can locate and access wireless
networks. There even are web sites that map know 802.11 sites and list their vulnerabilities [4].
Wired Equivalent Privacy (WEP) is designed to provide the same level of security as a wired
network. Since there is no security on wired Ethernet this should is not be too difficult. WEP
was originally included as an optional security feature in the IEEE 802.11 standard. However,
vendors of 802.11 products favored the use of MAC filtering as a security measure.
Unfortunately, MAC filtering is a lot of work for professionals and very difficult for the ordinary
home user. With the advent of software, such as Kismet, to discover valid MAC addresses and
impersonate valid network clients, the use of MAC filtering declined and was replaced by WEP
[7].
Wired Equivalent Privacy (WEP) is an encryption algorithm designed to provide wireless
security for users implementing 802.11 wireless networks. WEP was developed by a group of
volunteer IEEE members. The intention was to offer security through an 802.11 wireless
network while data is transmitted from one end point to another over radio waves. WEP is used
to protect wireless communication from eavesdropping (confidentiality), prevent unauthorized
access to a wireless network (access control) and prevent tampering with transmitted messages
(data integrity) [2, 11]. It provides standards for authentication between network clients
(initiators) and access points (responders) in addition to packet encryption. At its core, WEP
uses the RC4 stream cipher for encryption and decryption of 802.11 packets. Due to export
restrictions at the time the standard was released, the 40- bit length was initially used in WEP
implementations [7].
2. Technical Description
In order to protect data sent from a user’s device (e.g. a portable PC to a wireless access point),
the 802.11a/b/g standard specifies a security algorithm called Wireless Equivalent Privacy
(WEP). This feature is optional and offers encryption and/or authentication[6]. WEP uses a
stream cipher algorithm called RC4 encryption. A stream cipher operates by expanding a short
key into an infinite pseudo-random key stream [2]. WEP combines either a 40-bit or 104 bit key
with a 24-bit random number known as an Initialization Vector (IV) to encrypt the data [11]. The
length of the resulting encryption key is 64-bit for the 40-bit shared secret key or 128-bit for the
104-bit shared secret key. The IV changes with every message, thus causing the new
pf3
pf4
pf5

Partial preview of the text

Download Wired Equivalent Privacy - Problems and Solutions | DCS 835 and more Papers Data Communication Systems and Computer Networks in PDF only on Docsity!

DPS Team 4 Kile, Little, and Shah DCS835 Data Communications Pace University

Last Revised: June 24, 2005

IEEE 802.11 Wired Equivalent Privacy (WEP)

Problems and Solutions

1. Background

802.11 networks have become ubiquitous because of their convenience, ease of setup and use. As these networks have grown in number, the inherent limitations on their security have come to the forefront. With a few dollars and very little work, hackers can locate and access wireless networks. There even are web sites that map know 802.11 sites and list their vulnerabilities [4].

Wired Equivalent Privacy (WEP) is designed to provide the same level of security as a wired network. Since there is no security on wired Ethernet this should is not be too difficult. WEP was originally included as an optional security feature in the IEEE 802.11 standard. However, vendors of 802.11 products favored the use of MAC filtering as a security measure. Unfortunately, MAC filtering is a lot of work for professionals and very difficult for the ordinary home user. With the advent of software, such as Kismet, to discover valid MAC addresses and impersonate valid network clients, the use of MAC filtering declined and was replaced by WEP [7].

Wired Equivalent Privacy (WEP) is an encryption algorithm designed to provide wireless security for users implementing 802.11 wireless networks. WEP was developed by a group of volunteer IEEE members. The intention was to offer security through an 802.11 wireless network while data is transmitted from one end point to another over radio waves. WEP is used to protect wireless communication from eavesdropping (confidentiality), prevent unauthorized access to a wireless network (access control) and prevent tampering with transmitted messages (data integrity) [2, 11]. It provides standards for authentication between network clients (initiators) and access points (responders) in addition to packet encryption. At its core, WEP uses the RC4 stream cipher for encryption and decryption of 802.11 packets. Due to export restrictions at the time the standard was released, the 40- bit length was initially used in WEP implementations [7].

2. Technical Description

In order to protect data sent from a user’s device (e.g. a portable PC to a wireless access point), the 802.11a/b/g standard specifies a security algorithm called Wireless Equivalent Privacy (WEP). This feature is optional and offers encryption and/or authentication[6]. WEP uses a stream cipher algorithm called RC4 encryption. A stream cipher operates by expanding a short key into an infinite pseudo-random key stream [2]. WEP combines either a 40-bit or 104 bit key with a 24-bit random number known as an Initialization Vector (IV) to encrypt the data [11]. The length of the resulting encryption key is 64-bit for the 40-bit shared secret key or 128-bit for the 104-bit shared secret key. The IV changes with every message, thus causing the new

encryption key to be generated every time. The 802.11 standard does not specify how the IV is generated. Because different WEP implementations use different IV generation algorithms, the IV travels in clear text with the encrypted message. Typically, the IV is implemented as a counter incremented with every message. The 802.11 specification says is that “the IV may be changed as frequently as every Management Protocol Data Unit” and thus, does not mandate changing the IV with every message [6]. Due to export restrictions at the time the standard was released, the 40- bit length was initially used in WEP implementations [7]

WEP begins by encrypting an initialization vector with the shared secret key to produce the first output block. The first output block is encrypted with the key to produce the second output block. The second block is encrypted with the same key to get a third block, and ad infinitum. The IV is used only in the first step. After the first step, each output block is encrypted with the shared key to produce the next output block. This produces a very large sequence of output blocks, the keystream. The keystream is treated like a one-time pad, which is the same size as the plaintext [10].

Before the plaintext is encrypted, a CRC-32 checksum is calculated on the plaintext and appended to the end of the plaintext as an Integrity Check field. This is designed to ensure that a packet has not been modified in transit [2]. The sender then XOR's the keystream with the actual data and the Integrity Check field to produce ciphertext. The packet, containing both the IV in plaintext and the ciphertext, is sent to the receiver [11].

The receiver generates the keystream in the same way that the sender did, using the IV received with the packet in plaintext. This can be done since the keystream depends only on the IV and the shared secret key [10]. The receiver XOR’s the key stream it generates with the ciphertext to produce plaintext and the Integrity Check field [2]. The receiver then compares the CRC-32 checksum it generates from the plaintext to the IC field to determine if the packet has changed in transit. If these number are the same, the message is assumed to be good [11].

Symbolically:

P = (M, c(M))

C = P ⊕ RC4 (IV, KAB )

A → B: IV, (P ⊕ RC4(IV, KAB )) or A → B: IV, C [1]

3. Evaluation

WEP has been shown to provide weak protection for wireless networks [1, 5, 9]. Modifying current inexpensive wireless cards so that they can be used to attack 802.11 sites has been shown to be possible [3]. Once the attacker has the right hardware, WEP is susceptible to: brute force attacks; replay attacks; passive attacks to decrypt traffic based on statistical analysis; active attacks to inject new traffic from unauthorized mobile stations, based on known plaintext; and active attacks to decrypt traffic, based on tricking the access point [2].

During a Brute Force Attack, every possible combination of key is used to attempt to decrypt the message. This type of attack can be quite effective against 40-bit encryption and is possible for

SOLUTION

The many problems with WEP resulted in the IEEE looking for a replacement standard to provide more robust security. However, the process was much slower than the Wi-Fi alliance wished. In 2001, the Wi-Fi alliance created the Wi-Fi Protected Access (WPA) security protocol [7]. WPA is an interim security solution that targets all known WEP vulnerabilities. It was designed to be compatible with the 802.11i standard and was designed so that only software or firmware upgrades were necessary for the existing or legacy hardware to meet the requirements The ultimate wireless security solution is still 802.11i [11]. WPA is based on a subset of 802.11i standard, including the following key features to address WEP vulnerabilities [7]:

  • Apply stronger network access control through mutual authentication 802.1X EAP
  • Support better security technologies like 802.1X, EAP, RADIUS and pre-shared keys
  • Adopt dynamic keys in Temporal Key Integrity Protocol (TKIP) to establish better key management
  • Enforce data integrity through Michael Message Integrity Check
  • Provide forward compatibility to ultimate wireless security solution, 802.11i [11] 4. Annotated References

[1] N. Borisov, I. Goldberg and D. Wagner, "Intercepting Mobile Communications: The Insecurity of 802.11", Seventh International Conference on Mobile Computing and Networking , ACM, 2001. Discussion of several serious security flaws in Wired Equivalent Privacy (WEP) protocol stemming from misapplication of cryptographic primitives. The flaws lead to a number of practical attacks that are discussed in detail in the paper including each of the flaws, the underlying security principle violations, and the ensuing attacks. [2] N. Borisov, I. Goldberg and D. Wagner, "Security of the WEP algorithm", http://www.isaac.cs.berkeley.edu/isaac/wep-faq.html, 2001. The paper discusses flaws in the WEP algorithm, which make it vulnerable to attack. The paper presents: passive attacks, active attacks to inject new traffic from unauthorized mobile stations, active attacks to decrypt traffic and dictionary-building attack that, after analysis of about a day's worth of traffic, allows real-time automated decryption of all traffic. Attacks apply to both 40-bit and 128-bit versions of WEP equally well. [3] J. Ellingson, "Layers One &Two of 802.11 WLAN Security", http://www.sans.org/rr/whitepapers/wireless/14.php, 2001. This paper addresses some of the fundamental security concerns about 802.11 by examining the media access control (Layer two) and physical layer (Layer one). It is intended to provide a foundation for implementation of more secure WLAN environments. [4] A. Etter, "A Guide to Wardriving and Detecting Wardrivers", http://www.sans.org/rr/whitepapers/wireless/174.php, 2002. Computer users have been deploying 802.11b wireless access points in homes, offices, and schools without any regard to the security of these devices. A threat to these networks is Wardriving. Wardrivers assemble rigs of hardware and software and cruise streets to find wireless access point. These results are plotted on a map available from sites on the Internet. The paper discussed the components needed to construct a wardriving rig and suggestd methods for detecting wardrivers as they drive past your wireless network [5] S. Fluhrer, I. Mantin and A. Shamir, "Weaknesses in the Key Scheduling Algorithm of RC4", Proceedings Eighth Annual Workshop on Selected Areas in Cryptography ,. [6] A. Kagan, "How Things Work: WLAN Technologies and Security Mechanisms", http://www.sans.org/rr/whitepapers/wireless/1301.php, 2003. The paper claims to be a single source containing detailed explanation of how wireless technologies operate and

how wireless security mechanisms are implemented. The goal of the paper is to illustrate the concepts of wireless communication and wireless security mechanisms. This paper explains the concepts of wireless communications based on the electromagnetic theory and introduces wireless standards and elements. [7] E. Perez, "802.11i (How we got here and where are we headed)", http://www.sans.org/rr/whitepapers/wireless/1467.php, 2004. This paper focuses on the IEEE1 802.11i standard. It tries to show how the standard ensures Confidentiality, Integrity, and Availability (the CIA triad). The author believes that corporate WLAN implementations have been underutilized due to the lack of a truly secure standard. The paper focuses on enterprise implementations of the 802.11i standard while looking into the past deficiencies of WLAN security and attempts to remediate them. [8] J. Scolamiero, "Securing Your Wireless Access Point: What Do All Those Settings Mean Anyways?" http://www.sans.org/rr/whitepapers/wireless/1405.php. This is a reference guide for users on how to secure wireless LANs. It focuses on what all the settings are that are found on wireless access points. [9] A. Stubblefield, J. Ioannidis and A. D. Rubin, "Using the Fluhrer, Mantin, and Shamir Attack to Break WEP", Processing Network and Distributed Systems Security Symposium , no. Issue, pp. 1-11, ISOC. The authors implemented an attack against WEP, which was described in a paper by Fluhrer, Mantin and Shamir. They were able to recover the 128 bit secret key with a passive attack. This paper describes the attack, how it was implemented it, and some optimizations to make the attack more efficient. The paper concluded that 802.11 WEP is totally insecure. [10] A. S. Tanenbaum, Computer Networks. Fourth Edition: Prentice Hall, 2003. Pages 781- 783 [11] S. Wong, "The evolution of wireless security in 802.11 networks: WEP, WPA and 802. standards", http://www.sans.org/rr/whitepapers/wireless/1109.php, 2003. This paper describes the evolution of wireless security in 802.11 networks. The paper discusses the security weakness of Wired Equivalent Privacy (WEP) and provides with the interim and ultimate solutions: Wi-Fi Protected Access (WPA) and 802.11i standards.