view Side-By-Side changes
EAP Working Group Bernard Aboba INTERNET-DRAFT Dan Simon Category: Standards Track Microsoft<draft-ietf-eap-keying-07.txt><draft-ietf-eap-keying-08.txt> J. Arkko17 July23 October 2005 Ericsson P. Eronen Nokia H. Levkowetz, Ed. ipUnplugged Extensible Authentication Protocol (EAP) Key Management Framework By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section 6 of BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet- Drafts. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt. The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html. This Internet-Draft will expire onJanuaryApril 22, 2006. Copyright Notice Copyright (C) The Internet Society 2005. Abstract The Extensible Authentication Protocol (EAP), defined in [RFC3748], enables extensible network access authentication. This document provides a framework for the generation, transport and usage of keying material generated by EAP authentication algorithms, known as "methods". It also specifies the EAP key hierarchy. Aboba, et al. Standards Track [Page 1] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005 Table of Contents 1. Introduction ..........................................43 1.1 Requirements Language ...........................43 1.2 Terminology .....................................43 1.3 Overview ........................................75 1.4 EAP Invariants ..................................149 2. Lower Layer Operation .................................1613 2.1Discovery Phase ................................. 18Overview ........................................ 13 2.2Authentication Phase ............................ 18Layering ........................................ 14 2.3Secure Association Phase ........................ 19Caching ......................................... 17 2.4Lower LayerKeyHierarchy ....................... 21 2.5 AAA-Key Derivation and Naming ................... 24 3. Security associations ................................. 26 3.1 EAP Method SA ................................... 26 3.2 EAP-Key SA ...................................... 27 3.3 AAA SA(s)Scope .......................................27 3.4 Service SA(s) ................................... 27 4.18 3. Key Management ........................................30 4.1 Key Caching ..................................... 31 4.221 3.1 Secure Association Protocol ..................... 22 3.2 Parent-Child Relationships ......................32 4.324 3.3 Local Key Lifetimes .............................32 4.425 3.4 Exported and Calculated Key Lifetimes ...........33 4.525 3.5 Key Cache Synchronization .......................34 4.6 Key Scope ....................................... 35 4.727 3.6 Key Strength ....................................36 4.827 3.7 Key Wrap ........................................37 5.28 4. Handoff Vulnerabilities ...............................38 5.129 4.1 Authorization ...................................38 5.229 4.2 Correctness .....................................39 6.30 5. Security Considerations ..............................42 6.133 5.1 Security Terminology ............................42 6.234 5.2 Threat Model ....................................42 6.3 Security Analysis34 5.3 Authenticator Compromise ........................ 35 5.4 Spoofing ........................................ 36 5.5 Downgrade Attacks ...............................44 6.4 Man-in-the-middle36 5.6 Unauthorized Disclosure ......................... 37 5.7 Replay Protection ............................... 38 5.8 Key Freshness ................................... 39 5.9 Elevation of Privilege .......................... 40 5.10 Man-in-the-Middle Attacks .......................47 6.541 5.11 Denial of Service Attacks .......................48 6.641 5.12 Impersonation ...................................48 6.742 5.13 Channel Binding .................................50 Aboba, et al. Standards Track [Page 2] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 7. Security Requirements ................................. 50 7.1 EAP Method Requirements ......................... 51 7.2 AAA Protocol Requirements ....................... 53 7.3 Secure Association Protocol Requirements ........ 55 7.4 Ciphersuite Requirements ........................ 56 8.43 6. IANA Considerations ...................................57 9.44 7. References ............................................57 9.144 7.1 Normative References ............................57 9.244 7.2 Informative References ..........................5745 Acknowledgments ..............................................6149 Author's Addresses ...........................................6149 Appendix A -Ciphersuite Keying Requirements ................. 63 Appendix B - Example Transient EAP Key (TEK) Hierarchy ....... 64 Appendix C -EAP-TLS Key Hierarchy ...........................65 Appendix D - Example Transient Session Key (TSK) Derivation .. 6751 AppendixEB - Exported Parameters in Existing Methods .........68 Appendix F - Security Association Examples ................... 7053 Intellectual Property Statement ..............................7354 Disclaimer of Validity .......................................7455 Copyright Statement ..........................................7455 Aboba, et al. Standards Track [Page3]2] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005 1. Introduction The Extensible Authentication Protocol (EAP), defined in [RFC3748], was designed to enable extensible authentication for network access in situations in which the IP protocol is not available. Originally developed for use with PPP [RFC1661], it has subsequently also been applied to IEEE 802 wired networks [IEEE-802.1X]. This document provides a framework for the generation, transport and usage of keying material generated by EAP authentication algorithms, known as "methods". In EAP keying material is generated by EAP methods. Part of this keying material may be used by EAP methods themselves and part of this material may be exported. The exported keying material may be transported by AAA protocols or transformed by Secure Association Protocols into session keys which are used by lower layer ciphersuites. This document describes each of these elements and provides a system-level security analysis. It also specifies the EAP key hierarchy. 1.1. Requirements Language The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119]. 1.2. Terminology This document frequently uses the following terms: authenticator The end of the link initiating EAP authentication. The term Authenticator is used in [IEEE-802.1X], and authenticator has the same meaning in this document. peer The end of the link that responds to the authenticator. In [IEEE-802.1X], this end is known as the Supplicant. Supplicant The end of the link that responds to the authenticator in [IEEE-802.1X]. In this document, this end of the link is called the peer. backend authentication server A backend authentication server is an entity that provides an authentication service to an authenticator. When used, this server typically executes EAP methods for the authenticator. This terminology is also used in [IEEE-802.1X]. Aboba, et al. Standards Track [Page4]3] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005 AAA Authentication, Authorization and Accounting. AAA protocols with EAP support include RADIUS [RFC3579] and Diameter[I-D.ietf-aaa- eap].[RFC4072]. In this document, the terms "AAA server" and "backend authentication server" are used interchangeably. EAP server The entity that terminates the EAP authentication method with the peer. In the case where no backend authentication server is used, the EAP server is part of the authenticator. In the case where the authenticator operates in pass-through mode, the EAP server is located on the backend authentication server. security association A set of policies and cryptographic state used to protect information. Elements of a security association may include cryptographic keys, negotiated ciphersuites and other parameters, counters, sequence spaces, authorization attributes, etc. Long Term Credential EAP methods frequently make use of long term secrets in order to enable authentication between the peer and server. In the case of a method based on pre-shared key authentication, the long term credential is the pre-shared key. In the case of a public-key based method, the long term credential is the corresponding private key. Master Session Key (MSK) Keying material that is derived between the EAP peer and server and exported by the EAP method. The MSK is at least 64 octets in length. Extended Master Session Key (EMSK) Additional keying material derived between the peer and server that is exported by the EAP method. The EMSK is at least 64 octets in length, and is never shared with a third party. Initialization Vector (IV) A quantity of at least 64 octets, suitable for use in an initialization vector field, that is derived between the peer and EAP server. Since the IV is a known value in methods such as EAP- TLS [RFC2716], it cannot be used by itself for computation of any quantity that needs to remain secret. As a result, its use has been deprecated and EAP methods are not required to generate it. However, when it is generated it MUST be unpredictable. Pairwise Master Key (PMK) TheAAA-KeyMSK is divided into two halves, the "Peer to Authenticator Encryption Key" (Enc-RECV-Key) and "Authenticator to Peer Aboba, et al. Standards Track [Page5]4] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005 Encryption Key" (Enc-SEND-Key) (reception is defined from the point of view of the authenticator). Within [IEEE-802.11i] Octets 0-31 of theAAA-KeyMSK (Enc-RECV-Key) are known as the Pairwise Master Key (PMK). In [IEEE-802.11i] the TKIP and AES CCMP ciphersuites derive their Transient Session Keys (TSKs) solely from the PMK, whereas the WEP ciphersuite as noted in [RFC3580], derives its TSKs from both halves of theAAA-Key.MSK. Transient EAP Keys (TEKs) Session keys which are used to establish a protected channel between the EAP peer and server during the EAP authentication exchange. The TEKs are appropriate for use with the ciphersuite negotiated between EAP peer and server for use in protecting the EAP conversation. The TEKs are stored locally by the EAP method and are not exported. Note that the ciphersuite used to set up the protected channel between the EAP peer and server during EAP authentication is unrelated to the ciphersuite used to subsequently protect data sent between the EAP peer and authenticator. An example TEK key hierarchy is described in AppendixC.A. Transient Session Keys (TSKs) Session keys used to protect data exchangedbetweenin aport ofsession between the peer anda port of theauthenticator after the EAP authentication has successfully completed. TSKs are appropriate for the lower layer ciphersuite negotiated between the ports of the EAP peer and authenticator. Examples of TSK derivation are provided in AppendixD.B. AAA-Key A key derived by the peer and EAP server, used by the peer and authenticator in the derivation of Transient Session Keys (TSKs). Where a backend authentication server is present, the AAA-Key is transported from the backend authentication server to theauthenticator, wrapped within the AAA-Token; it is therefore known by the peer, authenticator and backend authentication server. Despite the name, the AAA-Key is computed regardless of whether a backend authentication server is present. AAA-Key derivation is discussed in Section 2.5; inauthenticator. In existingimplementations the MSK is used as the AAA-Key. AAA-Token Where a backend server is present,usage, the AAA-Keyand one or more attributesistransported between the backend authentication server and the authenticator within a package known asalways derived from theAAA-Token. The formatMSK andwrapping of the AAA-Token, which is intended toso can beaccessible onlyreferred to using thebackend authentication server and authenticator, is defined by the AAA protocol. Examples include RADIUS [RFC2548] and Diameter [I-D.ietf-aaa-eap]. Aboba, et al. Standards Track [Page 6] INTERNET-DRAFT EAP Key Management Framework 17 July 2005MSK name. AAA-Key = MSK(0,63). 1.3. Overview EAP, defined in[RFC3748][RFC3748], is a two-party protocol spoken between the EAP peer and server. Within EAP, keying material is generated by EAP methods. Part of this keying material may be used by EAP methods themselves and part of this material may be exported. In addition to export of keying material, EAP methods may also export associated parameters, and may import and export Channel Bindings from the lower layer. As illustrated in Figure 1, the EAP method key derivation has at the Aboba, et al. Standards Track [Page 5] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 root the long term credential utilized by the selected EAP method. If authentication is based on a pre-shared key, the parties store the EAP method to be used and the pre-shared key. The EAP server also stores the peer's identity and/or other information necessary to decide whether access to some service should be granted. The peer stores information necessary to choose which secret to use for which service. If authentication is based on proof of possession of the private key corresponding to the public key contained within a certificate, the parties store the EAP method to be used and the trust anchors used to validate the certificates. The EAP server also stores the peer's identity and/or other information necessary to decide whether access to some service should be granted. The peer stores information necessary to choose which certificate to use for which service. Based on the long term credential established between the peer and the server, EAP methods derive two types of keys: [1] Keys calculated locally by the EAP method but not exported by the EAP method, such as the TEKs. [2] Keying material exported by the EAP method: MSK, EMSK, IV. As noted in [RFC3748] Section 7.10, EAP methods generating keys are required to calculate and export the MSK and EMSK, which must be at least 64 octets in length. EAP methods also may export the IV; however, the use of the IV is deprecated. EAP methods also MAY export method-specific peer and server identifiers (peer-ID and server-ID), a method-specific EAP conversation identifier known as the Method-ID, and the lifetime of the exported keys, known the Key-Lifetime. EAP methods MAY also support the import and export of Channel Bindings. New EAP method specifications MUST define the Peer-ID, Server-ID and Method-ID. The combination of the Peer-ID and Server-ID uniquely specifies the endpoints of the EAP method exchange. Aboba, et al. Standards Track [Page7]6] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---+ | | ^ | EAP Method | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+ | | | | | | | | | | | EAP Method Key |<->| Long-Term | | | | | Derivation | | Credential | | | | | | | | | | | | | +-+-+-+-+-+-+-+ | Local to | | | | | EAP | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Method | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+ | | | | | TEK | |MSK, EMSK | |IV | | | | | |Derivation | |Derivation | |Derivation | | | | | +-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+ | | | | | | | | | | ^ | | | V +-+-|-+-+-+-+-+-+-+-+-|-+-+-+-+-+-|-+-+-+-+-+-+-+-+-|-+-+-+ ---+ | | | | ^ | Peer-ID, | | | Exported| | Server-ID, | Channel | MSK (64+B) | IV (64B) by | | Method-ID, | Bindings | EMSK (64+B) | EAP | | Key-Lifetime | & Result | | Method | V V V V V Figure 1: EAP Method Parameter Import/ExportEAP methods also MAY export method-specific peer and server identifiers (peer-ID and server-ID), a method-specific EAP conversation identifier known asPeer-ID As described in [RFC3748] Section 7.3, theMethod-ID, and the lifetime of the exported keys, known the Key-Lifetime. EAP methods MAY also support the import and export of Channel Bindings. New EAP method specifications MUST define the Peer-ID, Server-ID and Method-ID. The combination of the Peer-ID and Server-ID uniquely specifies the endpoints of the EAP method exchange. Peer-ID As described in [RFC3748] Section 7.3, the identity provided inidentity provided in the EAP-Response/Identity, may be different from the peer identity authenticated by the EAP method. Where the EAP method authenticates the peer identity, that identity is exported by theAboba, et al. Standards Track [Page 8] INTERNET-DRAFT EAP Key Management Framework 17 July 2005method as the Peer-ID. A suitable EAP peer name may not always be available. Where an EAP method does not define a method-specific peer identity, the Peer-ID is the null string. The Peer-ID for existing EAP methods is defined in AppendixE.B. Server-ID Where the EAP method authenticates the server identity, that identity is exported by the method as the Server-ID. A suitable EAP server Aboba, et al. Standards Track [Page 7] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 name may not always be available. Where an EAP method does not define a method-specific peer identity, the Server-ID is the null string. The Server-ID for existing EAP methods is defined in AppendixE.B. Method-ID EAP method specifications deriving keys MUST specify a temporally unique method identifier known as the Method-ID. The EAPMethod- IDMethod-ID uniquely identifies an EAP session of a given Type between an EAP peer and server. The Method-ID is typically constructed from nonces or counters used within the EAP method exchange. The Method-ID for existing EAP methods is defined in AppendixE.B. Session-ID The Session-ID uniquely identifies an EAP session between an EAP peer (as identified by the Peer-ID) and server (as identified by the Server-ID). The EAP Session-ID consists of the concatenation of the Expanded EAP Type Code (including the Type, Vendor-ID and Vendor-Type fields defined in [RFC3748] Section 5.7) and the Method-ID. The inclusion of the Expanded Type Code in the EAP Session-Id ensures that each EAP method has a distinct Session-ID space. Since an EAP session is not bound to a particular authenticator or specific ports on the peer and authenticator, the authenticator port or identity are not included in the Session-Id. Key-Lifetime While EAP itself does not support key lifetime negotiation, it is possible to specify methods that do. However, systems that rely on such negotiation for exported keys would only function with these methods. As a result, it is NOT RECOMMENDED to use this approach as the sole way to determine key lifetimes. Channel Bindings Channel Bindings include lower layer parameters that are verified for consistency between the EAP peer and server. In order toAboba, et al. Standards Track [Page 9] INTERNET-DRAFT EAP Key Management Framework 17 July 2005avoid introducing media dependencies, EAP methods that transport Channel Binding data MUST treatChannel Bindingsthis data as opaque octets. Typically the EAP method imports Channel Bindings from the lower layer on the peer, and transmits them securely to the EAP server, which exports them to the lower layer. However, transport may occur from EAP server to peer, or may be bi-directional. On the side of the exchange (peer or server) where Channel Bindings are verified, the lower layer passes the result of the verification (TRUE or FALSE) up to the EAP method.1.3.1. Layering As illustrated in Figure 2, keying material and parameters exported byAboba, et al. Standards Track [Page 8] INTERNET-DRAFT EAPmethods are passed down toKey Management Framework 23 October 2005 1.3.1. Key Naming Each key created within the EAPpeer or authenticator layers, which passes themkey management framework has a name (a unique identifier), as well as a scope (the parties to whom theEAP layer. Keying material and relatedkey is available). The scope of exported parameters(including Channel Bindings) MUST NOT be cachedis defined by the EAP peeror authenticator layers, orname (if securely exchanged within the method) and the EAPlayer. Based onserver name (also only if securely exchanged). Where a peer or server name is missing theMethod-IDnull string is used. MSK, EMSK and IV Names These parameters are exported by the EAPmethod, thepeer and EAPlayer formsserver, and can be referred to using the EAP Session-IDby concatenating the EAP Expanded Type withand a binary or textual indication of theMethod-ID. Together withparameter being referred to. PMK Name This document does not specify a naming scheme for theMSK, EMSK, IV, Peer-ID, Server-ID, and Key-Lifetime,PMK. The PMK is only identified by theEAP layer passeskey from which it is derived. Note: IEEE 802.11i names theSession-ID downPMKID for the purposes of being able to refer to it in thelower layer.Secure Association protocol; this naming is based on a hash of the PMK itself as well as some other parameters (see Section 8.5.1.2 [IEEE-802.11i]). TEK Name TheMethod-IDTEKs may or may not be named. Their naming isexported byspecified in the EAPmethods rather thanmethod. TSK Name The TSKs are typically named. Their naming is specified in theSession-IDlower layer so that the correct set of transient session keys can be identified for processing a given packet. 1.4. EAP Invariants Certain basic characteristics, known asto prevent"EAP Invariants", hold true for EAP implementations on all media: Mode independence Media independence Method independence Ciphersuite independence 1.4.1. Mode Independence EAPmethods from writing into each other's Session- ID space. Lower layers MAY cache keying material and related parameters, including Channel Bindings. Lower Layer behaviorisdiscussedtypically deployed inmore detailorder to support extensible network access authentication inSection 2.situations where a peer desires network access via one or more authenticators. Where authenticators are deployed standalone, the EAP conversation occurs between the peer and Aboba, et al. Standards Track [Page10]9] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | |authenticator, and the authenticator must locally implement an EAP method| | | | MSK, EMSK, IV, Channel | | Peer-ID, Server-ID, Bindings | | Method-ID, | | Key-Lifetime | | | | V ^ ^ | +-+-+-+-!-+-+-+-+-+-+-+-+-+-+-+-!-+-+-+-+-!-+-+ | ! ! ! | | EAP ! Peer or Authenticator ! ! | | ! layer ! ! | | ! ! ! | +-+-+-+-!-+-+-+-+-+-+-+-+-+-+-+-!-+-+-+-+-!-+-+ | ! ! ! | | EAP ! layer ! ! | | ! ! ! | | ! Session-ID = ! ! | | ! Expanded-Type || ! ! | | ! Method-ID ! ! | | ! ! ! | +-+-+-+-!-+-+-+-+-+-+-+-+-+-+-+-!-+-+-+-+-!-+-+ | ! ! ! | | Lower ! layer ! ! | | ! ! ! | | V V ^ | | MSK, EMSK, IV, Channel Result | | Peer-ID, Server-ID, Bindings | | Session-ID, | | Key-Lifetime | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 2: Flowacceptable to the peer. However, one of the advantages of EAPparameters 1.3.2. Key Naming Each key created withinis that it enables deployment of new authentication methods without requiring development of new code on the authenticator. While the authenticator may implement some EAPkey management framework has a name (the identifier by whichmethods locally and use those methods to authenticate local users, it may at thekey can be identified), as wellsame time act as ascope (the parties to whompass-through for other users and methods, forwarding EAP packets back and forth between thekey is available). The scope of exported parametersbackend authentication server and the peer. This isdefinedaccomplished bytheencapsulating EAPpeer name (if securely exchangedpackets within themethod)Authentication, Authorization andtheAccounting (AAA) protocol, spoken between the authenticator and backend authentication server. AAA protocols supporting EAPserver name (also only if securely exchanged). Where a peer or server nameinclude RADIUS [RFC3579] and Diameter [RFC4072]. It ismissinga fundamental property of EAP that at thenull string is used. Aboba, et al. Standards Track [Page 11] INTERNET-DRAFTEAPKey Management Framework 17 July 2005 MSK Name This key is createdmethod layer, the conversation between the EAP peer and server is unaffected by whether the EAPserver,authenticator is operating in "pass-through" mode. EAP methods operate identically in all aspects, including key derivation andcan be referred to using the string "MSK:", concatenated withparameter import/export, regardless of whether theEAP Session-ID. EMSK Nameauthenticator is operating as a pass-through or not. TheEMSK can be referred to using the string "EMSK:", concatenated with thesuccessful completion of an EAPSession-ID. IV Name Usemethod that supports key derivation results in the export of keying material on theIV is deprecated. However, if necessaryEAP peer and server. Even though theIV can be referred to usingEAP peer or server may import Channel- Bindings that may include thestring "IV:" concatenated withidentity of the EAPSession-ID. PMK Name This document does not specifyauthenticator, this information is treated as opaque octets. As anaming scheme forresult, within EAP thePMK. The PMK isonlyidentified byrelevant identities are thekey from which it is derived. Note: IEEE 802.11i namesPeer-ID and Server-ID. Channel Bindings are only interpreted by thePMKID forlower layer. Within EAP, thepurposesprimary function ofbeing able to refer to it intheSecure Association protocol; this namingAAA protocol isbased on a hash ofto maintain thePMK itselfprinciple of Mode Independence, so that aswellfar assome other parameters (see Section 8.5.1.2 [IEEE-802.11i]). TEK Name The TEKs may or may not be named. Their naming is specified inthe EAPmethod. 1.3.3. EAP and AAA EAP is typically deployed in order to support extensible network access authentication in situations where a peer desires network access via one or more authenticators. Since both the peer and authenticator may have more than one physical or logical port, a givenpeermay simultaneously access the network via multiple authenticators, or via multiple physical or logical ports on a given authenticator. Similarly, an authenticator may offer network access to multiple peers, each via a separate physical or logical port. The situationisillustrated in Figure 3. Where authenticators are deployed standalone, the EAPconcerned, its conversationoccurs betweenwith thepeer andEAP authenticator, and all consequences of that conversation, are identical, regardless of the authenticatormust locally implement an EAP method acceptable to the peer. However, onemode of operation. 1.4.2. Media Independence One of theadvantagesgoals of EAP isthat it enables deployment of new authenticationto allow EAP methodswithout requiring development of new codeto function on any lower layer meeting theauthenticator. While the authenticator may implement somecriteria outlined in [RFC3748], Section 3.1. For example, as described in [RFC3748], EAPmethods locallyauthentication can be run over PPP [RFC1661], IEEE 802 wired networks [IEEE-802.1X], anduse those methodsIEEE 802.11 wireless LANs [IEEE-802.11i]. In order toauthenticate local users,maintain media independence, itmay at the same time act as a pass-throughis necessary forother users and methods, forwardingEAPpackets back and forth betweento avoid consideration of media-specific elements. For example, EAP methods cannot be assumed to have knowledge of thebackendlower layer over which they are transported, and cannot be restricted to identifiers Aboba, et al. Standards Track [Page12]10] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005authentication server andassociated with a particular usage environment (e.g. MAC addresses). Note that media independence may be retained within EAP methods that support Channel-Bindings or method-specific identification. An EAP method need not be aware of thepeer.content of an identifier in order to use it. Thisis accomplishedenables an EAP method to use media-specific identifiers such as MAC addresses without compromising media independence. Channel-Bindings are treated as opaque octets byencapsulatingEAPpackets withinmethods, so that handling them does not require media-specific knowledge. 1.4.3. Method Independence By enabling pass-through, authenticators can support any method implemented on theAuthentication, Authorizationpeer andAccounting (AAA) protocol, spoken betweenserver, not just locally implemented methods. This allows the authenticatorand backend authentication server. AAA protocolsto avoid implementing code for each EAP method required by peers. In fact, since a pass-through authenticator is not required to implement any EAP methods at all, it cannot be assumed to support any EAP method-specific code. As a result, as noted in [RFC3748], authenticators must by default be capable of supporting any EAPinclude RADIUS [RFC3579]method. This is useful where there is no single EAP method that is both mandatory-to-implement andDiameter [I- D.ietf-aaa-eap]. +-+-+-+-+ | | |offers acceptable security for the media in use. For example, the [RFC3748] mandatory-to-implement EAP| | Peer | | | +-+-+-+-+ | | | Peer Ports / | \ / | \ / | \ / | \ / | \ / | \ / | \ / | \ | | | | | | | | | Authenticator Ports +-+-+-+-+ +-+-+-+-+ +-+-+-+-+ | | | | | | | Auth. | | Auth. | | Auth. | | | | | | | +-+-+-+-+ +-+-+-+-+ +-+-+-+-+ \ | / \ | / \ | / EAP over AAA \ | / (optional) \ | / \ | / \ | / \ | / +-+-+-+-+ | | | AAA | |Server | | | +-+-+-+-+ Figure 3: Relationship between peer, authenticatormethod (MD5-Challenge) does not provide dictionary attack resistance, mutual authentication or key derivation, andbackend server Aboba, et al. Standards Track [Page 13] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 1.4. EAP Invariants Certain basic characteristics, knownas"EAP Invariants", hold truea result is not appropriate for use in wireless LAN authentication [RFC4017]. However, despite this it is possible for the peer and authenticator to interoperate as long as a suitable EAPimplementationsmethod is supported onall media: Mode independence Media independence Method independencethe EAP server. 1.4.4. Ciphersuite Independence Ciphersuiteindependence 1.4.1. ModeIndependenceEAP as defined in [RFC3748]is atwo party protocol spoken betweenconsequence of theEAP peer and server. A fundamental propertyprinciples of Mode Independence and Media Independence. While EAPis that atmethods may negotiate the ciphersuite used in protection of the EAPmethod layer,conversation, theconversation betweenciphersuite used for the protection of the data exchanged after EAPpeer and server is unaffected by whether the EAP authenticator is operating in "pass-through" mode. EAP methods operate identically in all aspects, including key derivation and parameter import/export, regardless of whether the authenticatorauthentication has completed isoperating as a pass-through or not. The successful completion of an EAP method that supports key derivation results in the export of keying material onnegotiated between theEAPpeer andserver. Even though the EAP peer or server may import Channel- Bindings that may includeauthenticator within theidentitylower layer, outside of EAP. For example, within PPP, theEAP authenticator, this informationciphersuite istreated as opaque octets. As a result,negotiated within the Encryption Control Protocol (ECP) defined in [RFC1968], after EAP authentication is completed. Within [IEEE-802.11i], theonly relevant identitiesAP ciphersuites are advertised in thePeer-IDBeacon and Probe Responses prior to EAP authentication, andServer-ID. Channel Bindingsareonly interpreted by the lower layer. Within EAP, the primary function ofsecurely verified during a 4-way handshake exchange. Aboba, et al. Standards Track [Page 11] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 Since theAAA protocol isciphersuites used tomaintain the principle of Mode Independence, so that as far as the EAP peer is concerned, its conversation withprotect data depend on the lower layer, requiring EAPauthenticator, and all consequences of that conversation, are identical, regardlessmethods have knowledge of lower layer ciphersuites would compromise theauthenticator modeprinciple ofoperation. 1.4.2.MediaIndependence One ofIndependence. Since ciphersuite negotiation occurs in thegoals of EAPlower layer, there isto allowno need for ciphersuite negotiation within EAP, and EAP methodsto function on any lower layer meetinggenerate keying material that is ciphersuite-independent. Algorithms for deriving TSKs MUST NOT depend on thecriteria outlined in [RFC3748], Section 3.1. For example, as described in [RFC3748],EAPauthentication canmethod, although algorithms for TEK derivation MAY berun over PPP [RFC1661], IEEE 802 wired networks [IEEE-802.1X], and IEEE 802.11 wireless LANs [IEEE-802.11i].specific to the EAP method. In order tomaintain media independence, it is necessary for EAPallow a ciphersuite toavoid consideration of media-specific elements. For example, EAP methods cannotbeassumed to have knowledge ofusable within thelower layer over which they are transported, and cannot be restricted to identifiers Aboba, et al. Standards Track [Page 14] INTERNET-DRAFTEAPKey Management Framework 17 July 2005 associated withkeying framework, aparticular usage environment (e.g. MAC addresses). Note that media independence mayspecification MUST beretained withinprovided describing how TSKs suitable for use with the ciphersuite are derived from exported EAPmethods that support Channel-Bindings or method-specific identification. Ankeying parameters. Advantages of ciphersuite-independence include: Reduced update requirements If EAPmethodmethods were to specify how to derive transient session keys for each ciphersuite, they would need to be updated each time a new ciphersuite is developed. In addition, backend authentication servers might not beaware ofusable with all EAP-capable authenticators, since thecontent of an identifier in orderbackend authentication server would also need touse it. This enables anbe updated each time support for a new ciphersuite is added to the authenticator. Reduced EAP methodto use media-specific identifiers such as MAC addresses without compromising media independence. Channel-Bindings are treated as opaque octets bycomplexity Requiring each EAPmethods, so that handling them does not require media-specific knowledge. 1.4.3. Method Independence By enabling pass-through, authenticators can support anymethodimplemented on the peer and server, not just locally implemented methods. This allows the authenticatortoavoid implementinginclude ciphersuite-specific code foreach EAPtransient session key derivation would increase methodrequired by peers. In fact, since a pass-through authenticator is not required to implement any EAP methods at all, it cannot be assumed to support any EAP method-specific code. As a result, as notedcomplexity and result in[RFC3748], authenticators must by default be capable of supporting any EAP method. This is useful where there is no single EAP method thatduplicated effort. Simplified configuration The ciphersuite isboth mandatory-to-implementnegotiated between the peer andoffers acceptable security forauthenticator outside of EAP. Where themediaauthenticator operates inuse. For example,"pass-through" mode, the[RFC3748] mandatory-to-implementEAPmethod (MD5-Challenge) does not provide dictionary attack resistance, mutual authentication or key derivation, and as a resultserver is notappropriate for use in wireless LAN authentication [RFC4017]. However, despitea party to thisitnegotiation, nor ispossible forit involved in the data flow between the EAP peer andauthenticator to interoperate as long asauthenticator. As asuitable EAP method is supported onresult, the EAPserver. 1.4.4. Ciphersuite Independence Ciphersuite Independence is a consequenceserver may not have knowledge of theprinciples of Mode Independenceciphersuites andMedia Independence. While EAP methods may negotiatenegotiation policies implemented by theciphersuite used in protectionpeer and authenticator, or be aware of theEAP conversation, theciphersuiteused for the protection of the data exchanged after EAP authentication has completed isnegotiated betweenthe peer and authenticator within the lower layer, outside of EAP. Since the ciphersuites used to protect data depend on the lower layer, requiring EAP methods have knowledge of lower layer ciphersuites would compromise the principle of Media Indepence. Since ciphersuitethem. For example, since ECP negotiation occursinafter authentication, when run over PPP, thelower layer, there is no need for ciphersuite negotiation within EAP, andEAPmethods generate keying material that is ciphersuite-independent. For example, within PPP,peer and server may not anticipate theciphersuite isnegotiatedwithinciphersuite and therefore this information cannot be provided to the EAP method. Aboba, et al. Standards Track [Page15]12] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005Encryption Control Protocol (ECP) defined in [RFC1968], after2. Lower Layer Operation 2.1. Overview Where EAPauthenticationkey derivation iscompleted. Within [IEEE-802.11i],supported, theAP ciphersuites are advertisedconversation typically takes place inthe Beacon and Probe Responses prior tothree phases: Phase 0: Discovery Phase 1: Authentication 1a: EAPauthentication,authentication 1b: AAA Key Transport (optional) Phase 2: Secure Association Establishment 2a: Unicast Secure Association 2b: Multicast Secure Association (optional) Of these phases, Phase 0, 1b and Phase 2 aresecurely verified during a 4-way handshake exchange. Advantages of ciphersuite-independence include: Reduced update requirements If EAP methods were to specify how to derive transient session keys for each ciphersuite, they would need to be updated each timehandled by anew ciphersuite is developed.lower layer. Inaddition, backend authentication servers might not be usable with all EAP-capable authenticators, sincethebackend authentication server would also needdiscovery phase (phase 0), peers locate authenticators and discover their capabilities. A peer may locate an authenticator providing access tobe updated each time support foranew ciphersuite is addedparticular network, or a peer may locate an authenticator behind a bridge with which it desires to establish a Secure Association. Discovery can occur manually or automatically, depending on theauthenticator. Reducedlower layer over which EAPmethod complexity Requiringruns. The authentication phase (phase 1) may begin once the peer and authenticator discover each other. This phase, if it occurs, always includes EAP authentication (phase 1a). Where the chosen EAP methodto include ciphersuite-specific code for transient sessionsupports keyderivation would increase method complexity and resultderivation, induplicated effort. Simplified configuration The ciphersuitephase 1a EAP keying material isnegotiated betweenderived on both the peer andauthenticator outside of EAP. Where the authenticator operates in "pass-through" mode,the EAPserverserver. An additional step (phase 1b) isnotrequired in deployments which include aparty to this negotiation, nor is it involvedbackend authentication server, in order to transport keying material from thedata flow betweenbackend authentication server to theEAP peer andauthenticator.AsIn order to obey the principle of Mode Independence, where aresult,backend server is present AAA Key transport needs to provide the exported EAPserver may not have knowledgekeying material and/or derived keys required for derivation of theciphersuites and negotiation policies implemented byTSKs. Since existing TSK derivation techniques depend solely on thepeer and authenticator, or be aware ofMSK, in existing AAA implementations, this is theciphersuite negotiated between them. For example, since ECP negotiation occurs after authentication, when run over PPP,only keying material replicated in the AAA key transport phase 1b. Successful completion of EAP authentication and key derivation by a peer and EAP servermaydoes notanticipatenecessarily imply that thenegotiated ciphersuite and therefore this information cannot be providedpeer is committed to joining the network associated with an EAPmethod. 2. Lower Layer Operation Where EAP key derivationserver. Rather, this commitment issupported, the conversation typically takes place in three phases: Phase 0: Discovery Phase 1: Authentication 1a: EAP authentication 1b: AAA-Key Transport (optional) Phase 2: Secure Association Establishment 2a: Unicast Secure Association 2b: Multicast Secure Association (optional) Aboba, et al. Standards Track [Page 16] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 Of these phases, Phase 0, 1b and Phase 2 are handledimplied bya lower layer. Inthediscovery phase (phase 0), peers locate authenticators and discover their capabilities. For example, a peer may locate an authenticator providing access to a particular network, or a peer may locate an authenticator behind a bridge with which it desires to establishcreation of aSecure Association. The authentication phase (phase 1) may begin once the peer and authenticator discover each other. This phase always includes EAP authentication (phase 1a). Wheresecurity association between thechosenEAPmethod supports key derivation, in phase 1a keying material is derived on both thepeer andthe EAP server. This keying material may be used for multiple purposes, including protectionauthenticator, as part of theEAP conversation and subsequent data exchanges. An additional stepSecure Association Protocol (phase1b) is required in deployments which include a backend authentication server, in order to transport keying material (known as the AAA-Key) from the backend authentication server to the authenticator. A2). The Secure Association exchange (phase 2)thenoccurs between the peer and authenticator in order to manage the creation and deletion of unicast(phase 2a) and multicast (phase 2b) securityAboba, et al. Standards Track [Page 13] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 (phase 2a) and multicast (phase 2b) security associations between the peer and authenticator. The conversationphases and relationshipbetween the parties is shown in Figure4.2. EAP peer Authenticator Auth. Server -------- ------------- ------------ |<----------------------------->| | | Discovery (phase 0) | | |<----------------------------->|<----------------------------->| | EAP auth (phase 1a) | AAA pass-through (optional) | | | | | |<----------------------------->| | |AAA-KeyAAA Key transport | | | (optional; phase 1b) | |<----------------------------->| | | Unicast Secure association | | | (phase 2a) | | | | | |<----------------------------->| | | Multicast Secure association | | | (optional; phase 2b) | | | | | Figure4:2: Conversation OverviewAboba, et al. Standards Track [Page 17] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 2.1. Discovery Phase2.2. Layering Inthe discovery phase (phase 0), thecompletion of EAP authentication, EAP methods on the peer andauthenticator locate each other and discover each other's capabilities. Discovery can occur manually or automatically, depending onEAP server export thelower layer over whichMaster Session Key (MSK), Extended Master Session Key (EMSK), Initialization Vector (IV), Peer-ID, Server-ID, Session- ID and Key-Lifetime. As illustrated in Figure 3, EAPruns. Since authenticator discovery is handled outside of EAP, there is no needmethods export keying material and parameters toprovide this functionality within EAP. For example, where EAP runs over PPP,the EAP peermight be configured with a phone book providing phone numbers of authenticators and associated capabilities such as supported rates, authentication protocolsorciphersuites. In contrast, PPPoE [RFC2516] provides support for a Discovery Stage to allow aauthenticator layers. The EAP peerto identify the Ethernet MAC address of one or more authenticatorsandestablish a PPPoE SESSION_ID. IEEE 802.11 [IEEE-802.11] also provides integrated discovery support utilizing Beacon and/or Probe Request/Response frames, allowingauthenticator layers MUST NOT modify or cache keying material or parameters (including Channel Bindings) passing in either direction between thepeer (known asEAP method layer and thestationEAP layer. The EAP layer also MUST NOT cache keying material orSTA)parameters (including Channel Bindings) passed todetermineit by theMAC address and capabilities of one or more authenticators (known as Access PointEAP peer/authenticator layer orAPs). 2.2. Authentication Phase Oncethepeer and authenticator discover each other, they exchange EAP packets. Typically, the peer desires access to the network, and the authenticators provide that access. In such a situation, access tolower layer. Based on thenetwork can be providedMethod-ID exported byany authenticator attaching to the desired network, andthe EAPpeer is typically willing to send data traffic through any authenticator that can demonstrate that it is authorized to provide access tomethod, thedesired network. AnEAPauthenticator may handle the authentication locally, or it may act as a pass-through to a backend authentication server. In the latter caselayer forms the EAPexchange occurs betweenSession-ID by concatenating the EAPpeer and a backend authenticator server,Expanded Type with theauthenticator forwarding EAP packets between the two. The entity which terminates EAP authenticationMethod-ID. Together with thepeer is known as the EAP server. Where pass- through is supported, the backend authentication server functions as the EAP server; where authentication occurs locally,MSK, IV (deprecated), Peer-ID, Server-ID, and Key-Lifetime, the EAPserver is the authenticator. Where a backend authentication server is present, at the successful completion of an authentication exchange,layer passes theAAA-Key is transportedSession-ID down to theauthenticator (phase 1b). EAP may alsolower layer. The EMSK MUST NOT beused when it is desired for two network devices (e.g. two switches or routers) to authenticate each other, or where two peers desireprovided toauthenticate each other and set up a securethe lower layer, nor is it permitted Aboba, et al. Standards Track [Page18]14] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005association suitable for protecting data traffic. Some EAP methods exist which only support one-way authentication; however, EAP methods deriving keys are requiredtosupport mutual authentication. In either case, it can be assumed thatpass any quantity to theparties do not utilize the link to exchange data traffic unless their authentication requirements have been met. For example, a peer completing mutual authentication with an EAP server will not send data traffic over the link until the EAP server has authenticated successfully tolower layer from which thepeer, and a Secure Association has been negotiated. Since EAP isEMSK could be computed without breaking some cryptographic assumption, such as inverting apeer-to-peer protocol, an independent and simultaneous authentication may take placeone-way function. As noted inthe reverse direction. Both peers may act as authenticators[RFC3748] Section 7.10: The EMSK is reserved for future use andauthenticatees atMUST remain on thesame time. Successful completion ofEAPauthentication and key derivation by apeer and EAP serverdoes not necessarily imply that the peerwhere it iscommittedderived; it MUST NOT be transported to, or shared with, additional parties, or used tojoiningderive any other keys. (This restriction will be relaxed in a future document that specifies how thenetwork associated with an EAP server. Rather, this commitmentEMSK can be used.) The Method-ID isimpliedexported bythe creation of a security association between theEAPpeer and authenticator, as part ofmethods rather than theSecure Association Protocol (phase 2). As a result, EAP may be used for "pre-authentication" in situations where it is necessarySession-ID so as topre- establishprevent EAPsecurity associations inmethods from writing into each other's Session- ID space. In order todecrease handoff or roaming latency. 2.3. Secure Association Phase The Secure Association phase (phase 2), if it occurs, begins afterpreserve thecompletionsecurity of keys derived within EAPauthentication (phase 1a) and key transport (phase 1b). A Secure Association Protocol used with EAP typically supports the following features: [1] Generation of fresh transient sessionmethods, lower layers other than AAA MUST NOT export keys(TSKs). Where AAA-Key caching is supported, thepassed down by EAPpeer may initiate a new session using a AAA-Keymethods. This implies thatwas used inEAP keying material or parameters passed down to aprevious session. Werelower layer are for theTSKs toexclusive use of that lower layer and MUST NOT bederivedused within another lower layer. This prevents compromise of one lower layer from compromising other applications using EAP keying parameters. EAP keying material and parameters provided to aportion of the AAA-Key, this would result in reuse oflower layer other than AAA MUST NOT be transported to another entity. For example, EAP keying material and parameters passed down to thesession keys which could exposeEAP peer lower layer MUST NOT leave theunderlying ciphersuitepeer; EAP keying material and parameters passed down or transported toattack. As a result, where AAA-Key caching is supported,theSecure Association Protocol phase is REQUIRED, andEAP authenticator lower layer MUSTprovide for freshness ofNOT leave theTSKs. Thisauthenticator. The exception to the "no sharing" rule istypically handled viatheexchange of nonces or counters, which are then mixed withAAA layer. On EAP server, keying material requested by and passed down to theAAA-Key in orderAAA layer may be replicated togenerate fresh unicast (phase 2a) and possibly multicast (phase 2b) session keys. By not usingtheAAA-Key directlyAAA layer on the authenticator. On the authenticator, the AAA layer may provide the replicated keying material toprotect data,theSecure Association Protocol protects against compromise oflower layer over which theAAA-Key. Aboba, et al. Standards Track [Page 19] INTERNET-DRAFTEAPKey Management Framework 17 July 2005 [2] Entity Naming. A basic feature of a Secure Association Protocol is the explicit naming of the parties engaged in the exchange. Explicit identification of the parties is critical, since without this the parties engagedauthentication conversation took place. This enables "mode independence" to be maintained. As illustrated inthe exchange are not identifiedFigure 4, a AAA client receiving transported EAP keying material and parameters passes them to thescope ofEAP authenticator and EAP layers, which then provide them to thetransient session keys (TSKs) generated duringauthenticator lower layer using theexchange is undefined. As illustrated in Figure 3, bothsame mechanisms that would be used if the EAP peer andNAS may have more than one physical or virtual port, so that port identifiers are NOT RECOMMENDED asauthenticator were conducting anaming mechanism. [3] Secure capabilities negotiation. This includes the secure negotiation of usage modes, session parameters (such asstand-alone conversation. The resulting keylifetimes), ciphersuites and required filters, including confirmation ofstate in thecapabilities discovered during phase 0. Itlower layer isRECOMMENDED thatindistinguishable between theSecure Association Protocol support secure capabilities negotiation, instandalone and pass-through cases, as required by the principle of mode independence. In order toprotect against spoofing duringprevent thediscovery phase,compromise of transported EAP keying material andto ensure agreement betweenparameters, thepeerAAA client and EAP authenticatorabout how data is toMUST besecured. [4] Key management.co-resident. Aboba, et al. Standards Track [Page 15] INTERNET-DRAFT EAPas defined in [RFC3748] supports key derivation, but not key management. WhileKey Management Framework 23 October 2005 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | EAPmethods may derive keying material,method | | | | MSK, EMSK, IV, Channel | | Peer-ID, Server-ID, Bindings | | Method-ID, | | Key-Lifetime | | | | V ^ ^ | +-+-+-+-!-+-+-+-+-+-+-+-+-+-+-+-!-+-+-+-+-!-+-+ | ! ! ! | | EAPdoes provide for the management of exported! Peer orderived keys. For example,Authenticator ! ! | | ! layer ! ! | | ! ! ! | +-+-+-+-!-+-+-+-+-+-+-+-+-+-+-+-!-+-+-+-+-!-+-+ | ! ! ! | | EAPdoes not support negotiation of the key lifetime! layer ! ! | | ! ! ! | | ! Session-ID = ! ! | | ! Expanded-Type || ! ! | | ! Method-ID ! ! | | ! ! ! | +-+-+-+-!-+-+-+-+-+-+-+-+-+-+-+-!-+-+-+-+-!-+-+ | ! ! ! | | Lower ! layer ! ! | | ! ! ! | | V V ^ | | MSK, IV, Peer-ID, Channel Result | | Server-ID, Bindings | | Session-ID, | | Key-Lifetime | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 3: Flow ofexported or derived keys, nor does it support rekey. AlthoughEAPmethods may support "fast reconnect" as defined in [RFC3748] Section 7.2.1, rekey of exported keys cannot occur without reauthentication. In order to provide method independence, key management of exported or derived keys SHOULD NOT be provided withinparameters Aboba, et al. Standards Track [Page 16] INTERNET-DRAFT EAPmethods. Since neitherKey Management Framework 23 October 2005 Peer Pass-through Authenticator Authentication Server +-+-+-+-+-+-+ +-+-+-+-+-+-+ | | | | |EAP method | |EAP method | | V | | V | +-+-+-!-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-!-+-+-+ | ! | |EAP | EAPnor| | | ! | | ! | |Peer | Auth.| EAPmethods provide key management support, it is RECOMMENDED that key management facilities be provided within the Secure Association Protocol. This includes key lifetime management (such as via explicit key lifetime negotiation, or seamless rekey), as well synchronizationAuth. | | ! | |EAP ! peer| | | +-----------+ | |EAP !Auth.| | ! | | | ! | ! | | ! | +-+-+-!-+-+-+ +-+-+-+-!-+-+-+-+-+-!-+-+-+-+ +-+-+-!-+-+-+ | ! | | ! | ! | | ! | |EAP !layer| | EAP !layer| EAP !layer | |EAP !layer| | ! | | ! | ! | | ! | +-+-+-!-+-+-+ +-+-+-+-!-+-+-+-+-+-!-+-+-+-+ +-+-+-!-+-+-+ | V | | V | ! | | ! | |Lower layer| | Lower layer| AAA ! /IP | | AAA ! /IP | | | | | ! | | ! | +-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-!-+-+-+-+ +-+-+-!-+-+-+ ! ! ! ! +---------<-------+ Figure 4: Flow of EAP Keying Material and Parameters 2.3. Caching Where explicitly supported by the lower layer, lower layers MAY cache theinstallationexported EAP keying material anddeletion of keys so as to enable recovery from partial or complete lossparameters and/or TSKs. The structure of this keystatecache is defined by thepeer or authenticator. Since key management requires a key naming scheme, Secure Association Protocols supporting key management supportlower layer. So as to enable interoperability, new lower layer specifications MUSTalso supportdescribe EAP keynaming. [5] Mutual proof of possession of the AAA-Key. The Secure Association Protocol MUST demonstrate mutual proof of posession ofcaching behavior. Unless explicitly specified by theAAA-Key, in order to show that bothlower layer, thepeerEAP peer, server and authenticatorhave been authenticatedMUST assume that peers andauthorized by the backend authentication server. Since mutual proof of possession isauthenticators do notthe same as mutual authentication, the peer cannot verify authenticator assertions (including the authenticator identity)cache exported EAP keying parameters or TSKs. The caching behavior of existing EAP lower layers is asa resultfollows: PPP PPP, defined in [RFC1661] does not support caching of EAP keying material or parameters. Since PPP ciphersuites derive their TSKs directly from the MSK as described in [RFC2716], were PPP to support caching, thisexchange.could result in stale TSKs. Therefore once the PPP session is terminated, it is assumed that EAP keying material and parameters are discarded. Aboba, et al. Standards Track [Page20]17] INTERNET-DRAFT EAP Key Management Framework17 July23 October 20052.4. Lower Layer Key Hierarchy From the keys exported by the EAP method, two other types of keys may be derived: [3] Keys calculated from exported quantities: AAA-Key. [4] Keys calculated by the Secure Association Protocol from the AAA-Key: TSKs. In order to protect theIKEv2 IKEv2, defined in [IKEv2] only uses EAPconversation, methods supportingkeying material for authentication purposes and not keyderivation typically negotiatederivation. As aciphersuite and derive Transientresult, IKEv2 does not cache EAPKeys (TEKs) for use with that ciphersuite. The TEKs are stored locally bykeying material or parameters, nor does it utilize the Key-Lifetime to determine the lifetime of IPsec SAs. As result, once IKEv2 authentication completes it is assumed that EAPmethodkeying material and parameters are discarded. IEEE 802.11i IEEE 802.11i enables caching of the MSK, but notexported. As noted in [RFC3748] Section 7.10, EAP methods generating keys are required to calculate and exporttheMSK andEMSK,which must be at least 64 octets in length. EAP methods also may exportIV, Peer-ID, Server-ID, Session-ID, or Key-Lifetime. More details are about theIV; however,structure of theusecache are available in [IEEE-802.11i]. IEEE 802.1X-2004 IEEE 802.1X-2004, defined in [IEEE-802.1X-2004] does not support caching ofthe IV is deprecated. On both the peer andEAPserver, the exported MSK is utilized in order to calculate the AAA- Key. Where a backend authentication server is present, the AAA-Key is transported from the backend authentication server to the authenticator within the AAA-Token, using the AAA protocol. Oncekeying material or parameters. Therefore once EAP authenticationcompletes and is successful, the peer and authenticator obtain the AAA-Key and the Secure Association Protocolcompletes, it isrun between the peer and authenticator in order to securely negotiate the ciphersuite, derive fresh TSKs used to protect data,assumed that EAP keying material andprovide mutual proof of possession of the AAA-Key. When the authenticator acts as an endpointparameters are discarded. AAA Existing AAA servers supporting RADIUS/EAP [RFC3579] or Diameter EAP [RFC4207] do not support caching oftheEAPconversation rather than a pass-through,keying material or parameters. In existing AAA server implementations, exported EAPmethods are implemented on the authenticatorkeying material (MSK, EMSK and IV) as well asthe peer. If the EAP method negotiated between the EAP peer and authenticator supports mutual authentication and key derivation, the EAP Master Session Key (MSK)parameters andExtended Master Session Key (EMSK) arederivedon the EAP peer and authenticatorkeys are not cached andexported byMUST be presumed lost after theEAP method.AAA exchange completes. Inthis case,order to avoid key reuse, theMSK and EMSKAAA layer MUST delete transported keys once they areknown onlysent. The AAA layer MUST NOT retain keys that it has previously sent to thepeer and authenticator and no other parties. The TEKs and TSKs also reside solely on the peer andauthenticator.This is illustrated in Figure 6. As demonstrated in [I-D.ietf-roamops-cert], in this case it is still possible to support roaming between providers, using certificate-based authentication. WhereFor example, abackend authentication server is utilized,AAA layer that has transported thesituation is illustrated in Figure 7. HereMSK MUST delete it, and keys MUST NOT be derived from the MSK from that point forward. 2.4. Key Scope It should be understood that an EAP authenticatoractsor peer: [a] may contain one or more physical or logical ports; [b] may advertise itself asa pass- through betweenone or more "virtual" authenticators or peers; [c] may utilize multiple CPUs; [d] may support clustering services for load balancing or failover. The issues that arise from this are discussed below. 2.4.1. Multiple Ports Both the EAP peer anda backend authentication server. In this model, theauthenticatordelegates themay have more than one physical or logical port. A peer may simultaneously accesscontrol decision to the backend authentication server, which acts as a Key Distribution Center (KDC). In this case,theauthenticatornetwork via Aboba, et al. Standards Track [Page21]18] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005encapsulates EAP packet with a AAA protocol such as RADIUS [RFC3579]multiple authenticators, orDiameter [I-D.ietf-aaa-eap], and forwards packets to and from the backend authentication server, which acts as the EAP server. Since thevia multiple physical or logical ports on a given authenticator. Similarly, an authenticatoracts asmay offer network access to multiple peers, each via apass-through, EAP methods reside only on the peer andseparate physical or logical port. The situation is illustrated in Figure 5. +-+-+-+-+ | EAPserver As a result, the TEKs, MSK and EMSK are derived on the peer and EAP server. On completion of EAP authentication, EAP methods on the peer and EAP server export the Master Session Key (MSK) and Extended Master Session Key (EMSK). The peer and EAP server then calculate the AAA- Key from the MSK and EMSK, and the backend authentication server sends an Access-Accept to the authenticator, providing the AAA-Key within a protected package known as the AAA-Token. The AAA-Key is then used by the peer and authenticator within the Secure Association Protocol to derive Transient Session Keys (TSKs) required for the negotiated ciphersuite. The TSKs are known only to the peer and authenticator. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---+ | | ^ | EAP Method | Local to| | Peer |EAP+-+-+-+-+ | |+-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+| Peer Ports / | \ / | \ / |TEK\ / | \ / |MSK\ / ||EMSK\ / ||IV\ / | \ | | ||Derivation||Derivation||Derivation||Derivation| | | Authenticator Ports +-+-+-+-+ +-+-+-+-+ +-+-+-+-+ |+-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+| | | | | | Auth. |V +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---+| Auth. | |^Auth. |MSK (64B)|EMSK (64B)|IV (64B) Exported|| | |by| +-+-+-+-+ +-+-+-+-+ +-+-+-+-+ \ | / \ | / \ | / EAP| | V V v | ---+ | AAA-Key Transported | | byover AAA \ | / (optional) \ |Protocol | V V +-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---+ | | ^ | TSK Derivation | Lower layer/ \ | / \ |[AAA-Key Cache]/ \ |Specific/ +-+-+-+-+ | EAP | |Server |V +-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---++-+-+-+-+ Figure 5:Complete Key Hierarchy Aboba, et al. Standards Track [Page 22] INTERNET-DRAFTRelationship between EAPKey Management Framework 17 July 2005 +-+-+-+-+-+ +-+-+-+-+-+ | | | | | | | | | Cipher- | | Cipher- | | Suite | | Suite | | | | | +-+-+-+-+-+ +-+-+-+-+-+ ^ ^ | | | | | | V V +-+-+-+-+-+ +-+-+-+-+-+ | | | | | |===============| | | |EAP, TEK Deriv.|Authenti-| | |<------------->| cator | | | | | | | Secure Assoc. | | | peer |<------------->| (EAP | | |===============| server) | | | Link layer | | | | (PPP,IEEE802) | | | | | | |MSK,EMSK | |MSK,EMSK | | (TSKs) | | (TSKs) | +-+-+-+-+-+ +-+-+-+-+-+ ^ ^ | | | MSK, EMSK | MSK, EMSK | | | | +-+-+-+-+-+ +-+-+-+-+-+ | | | | | EAP | | EAP | | Method | | Method | | | | | | (TEKs) | | (TEKs) | | | | | +-+-+-+-+-+ +-+-+-+-+-+ Figure 6: Relationship betweenpeer, authenticator and server Absent explicit specification within the lower layer, EAP keying material and parameters are not bound to a specific peer or authenticator port. Where the peer and authenticator(actingidentify themselves within the lower layer using a port identifier such asan EAP server), where no backend authentication server is present.a link layer address, this creates a problem, because it may not be obvious to the peer which authenticator ports are associated with which authenticators. Similarly, it may not be obvious to the authenticator which peer ports are associated with which peers. As a result, the peer and authenticator may not be able to determine the Aboba, et al. Standards Track [Page23]19] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005+-+-+-+-+-+ +-+-+-+-+-+ | | | | | | | | | Cipher- | | Cipher- | | Suite | | Suite | | | | | +-+-+-+-+-+ +-+-+-+-+-+ ^ ^ | | | | | | V V +-+-+-+-+-+ +-+-+-+-+-+ +-+-+-+-+-+ | |===============| |========| | | |EAP, TEK Deriv.| | | | | |<-------------------------------->| backend | | | | |AAA-Key/| | | | Secure Assoc. | | Name | | | peer |<------------->|Authenti-|<-------| auth | | |===============| cator |========| server | | | Link Layer | | AAA | (EAP | | | (PPP,IEEE 802)| |Protocol| server) | | | | | | | |MSK,EMSK | | MSK | |MSK,EMSK | | (TSKs) | | (TSKs) | | | +-+-+-+-+-+ +-+-+-+-+-+ +-+-+-+-+-+ ^ ^ | | | MSK, EMSK | MSK, EMSK | | | | +-+-+-+-+-+ +-+-+-+-+-+ | | | | | EAP | | EAP | | Method | | Method | | | | | | (TEKs) | | (TEKs) | | | | | +-+-+-+-+-+ +-+-+-+-+-+ Figure 7: Pass-through relationship betweenscope of the EAPpeer, authenticator and backend authentication server. 2.5. AAA-Key Derivation and Naming In existing usage,keying material. This is particularly problematic for lower layers wherea AAA-Keykey caching isgenerated assupported. For example, where theresult of a successfulEAPauthentication withpeer cannot identify the EAP authenticator,the AAA-Key is Aboba, et al. Standards Track [Page 24] INTERNET-DRAFTit will be unable to determine whether EAPKey Management Framework 17 July 2005 based on the MSK: AAA-Key = MSK(0,63). In existing usage, the AAA-Keykeying material has been shared outside of its authorized scope, and therefore needs to be considered compromised. There isalways derived fromalso a practical problem because theMSK so canEAP peer will bereferredunable tousingutilize theMSK name.EAP authenticator key cache in an efficient way. TheAAA-Key scopesolution to this problem isprovided by the concatenation of thefor lower layers to identify EAP peers and authenticators unambiguously, without incorporating implicit assumptions about peername (if securely provided to the authenticator),andtheauthenticatorname (if securely provided to the peer). For the purpose of identifying the authenticator to the peer, the valuearchitectures. Use ofthe NAS-Identifier attributeport identifiers isrecommended. The authenticatorNOT RECOMMENDED where peers and authenticators mayinclude the NAS-Identifier attribute to thesupport multiple ports. AAAserver in an Access-Request,protocols such as RADIUS [RFC3579] andthe authenticator mayDiameter [RFC4072] provide a mechanism for theNAS-Identifier toidentification of AAA clients; since the EAPpeer. Mechanisms forauthenticator and AAA client are always co-resident, thisinclude use ofmechanism can be applied to theEAP-Request/Identity (unsecured)identification of EAP authenticators. RADIUS requires that an Access-Request packet contain one ora lower layer mechanism (such asmore of the802.11 Beacon/Probe Response). WhereNAS-Identifier, NAS-IP-Address and NAS-IPv6-Address attributes. Since a NAS may have more than one IP address associated with it, the NAS-Identifier attribute isprovided byRECOMMENDED for theauthenticator tounambiguous identification of thepeer a secure mechanism is RECOMMENDED. ForEAP authenticator. From thepurposepoint of view ofidentifyingthepeerAAA server, EAP keying material and parameters are transported to theauthenticator,NAS identified by theEAP peer identifier provided withinNAS- Identifier attribute. Since the NAS/ EAPmethod is recommended. It cannot be assumed that theauthenticatoris aware of theMUST NOT share EAPpeer name used within the method. Therefore alternatives mechanisms need to be used to providekeying material or parameters with another party, if the EAP peername to the authenticator. For example, theor AAA servermay include thedetects use of EAPpeer name inkeying material and parameters outside theUser- Name attribute ofscope defined by theAccess-Accept orNAS-Identifier, thepeer may providekeying material MUST be considered compromised. In order to further limit theauthenticator with its name via akey scope the following measures are suggested: [a] The lower layermechanism. Absent an explicit binding step withinMAY specify additional restrictions on key usage, such as limiting theSecure Association Protocol,use of EAP keying material and parameters on theAAA-Key is not bound to a specificEAP peeror authenticator port. As a result,to thepeer or authenticatorport over which on the EAP conversationtakes place is not included in the AAA-Key scope. 2.5.1. TSKswas conducted. [b] TheTSKs are typically named. Their naming is specifiedAAA server and client/authenticator MAY implement additional attributes in order to further restrict theSecure Association (phase 2) protocol, so that the correct set of transient session keys can be identified for processing a given packet. Thescope of EAP keying material. For example, in 802.11, theTSKs is negotiated withinAAA server may provide theSecure Association Protocol. TSK creation and deletion operations are typically supported so that establishment and re-establishmentauthenticator with a list ofTSKs can be synchronized between the parties. In order to avoid confusion in the case where anauthorized Called or Calling-Station- Ids and/or SSIDs for which EAPpeer has more than one AAA-Key (phase 1b) applicable to establishment of a phase 2keying material is valid. Aboba, et al. Standards Track [Page25]20] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005security association,[c] Where thesecure Association protocol needs to utilizeAAA server provides attributes restricting theAAA-Key name sokey scope, it is RECOMMENDED that restrictions be securely communicated by theappropriate phase 1b keying materialauthenticator to the peer. This can beidentified for use inaccomplished using the Secure AssociationProtocol exchange. 3. Security Associations During EAP authentication and subsequent exchanges, four types of security associations (SAs) are created: [1]Protocol, but also can be accomplished via the EAP methodSA. This SA is betweenor thepeer and EAP server. It stores state that can be used for "fast reconnect" or other functionality in some EAP methods. Not all EAP methods create such an SA. [2] EAP-Key SA. This is an SA betweenlower layer. 2.4.2. Virtual Authenticators When a single physical authenticator advertises itself as multiple "virtual authenticators", the EAP peer andEAP server, which is usedauthenticator also may not be able tostore the keying material exported byagree on theEAP method. Current EAP server implementations do not retain this SA afterscope of the EAPconversation completes. [3] AAA SA(s). These SAs are between the authenticator and the backend authentication server. They permitkeying material, creating a security vulnerability. For example, theparties to mutually authenticate each other and protectpeer may assume that thecommunications between them. [4] Service SA(s). These SAs"virtual authenticators" arebetween the peer and authenticator,distinct andthey are created asdo not share aresult of phases 1-2 ofkey cache, whereas, depending on theconversation (see Section 2). Examplesarchitecture ofsecurity associations are provided in Appendix F. 3.1. EAP Method SA (peer - EAP server) An EAP method may store some state onthepeer andphysical authenticator, a shared key cache may or may not be implemented. Where EAPserver even after phase 1a has completed. Typically, thiskeying material isused for "fast reconnect": theshared between "virtual authenticators" an attacker acting as a peer could authenticate with the "Guest" "virtual authenticator" and derive EAPserver can confirm that they are still talking tokeying material. If thesame party, perhaps using fewer round-trips or less computational power. In this case,virtual authenticators share a key cache, then the peer can utilize the EAPmethod SA is essentially a cachekeying material derived forperformance optimization, and either party may removetheSA from its"Guest" network to obtain access to the "Corporate Intranet" virtual authenticator. Several measures are recommended to address these issues: [d] Authenticators are REQUIRED to cacheat any point. Anassociated authorizations along with EAPmethod may also keep state in orderkeying material and parameters and tosupport pseudonym-based identity protection.apply authorizations consistently. Thisis typically aensures that an attacker cannot obtain elevated privileges even where the key cache is shared between "virtual authenticators". [e] It is RECOMMENDED that physical authenticators maintain separate key caches for each "virtual authenticator". [f] It is RECOMMENDED that each "virtual authenticator" identify itself distinctly to the AAA server, such aswell (the information can be recreated ifby utilizing a distinct NAS- Identifier attribute. This enables theoriginalAAA server to utilize a separate credential to authenticate each "virtual authenticator". 3. Key Management EAPmethod SA is lost),as defined in [RFC3748] supports key derivation, but not key management. While EAP methods maybe storedderive keying material, EAP does not provide forlonger periodsthe management oftime.exported or derived keys. For example, EAP does not support negotiation of the key lifetime of exported or derived keys, nor does it support re-key. Although EAP methods may support "fast reconnect" as defined in [RFC3748] Section 7.2.1, re-key of exported keys cannot occur without re- Aboba, et al. Standards Track [Page26]21] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005The EAP method SA is not restrictedauthentication. In order toa particular serviceprovide method independence, key management of exported orauthenticator and is most useful when the peer accesses many different authenticators. Anderived keys SHOULD NOT be provided within EAPmethod is responsible for specifying how the parties select if an existing EAP method SA should be used, and if so, which one. Where multiple backend authentication servers are used, EAP method SAs are not typically synchronized between them.methods. 3.1. Secure Association Protocol Since neither EAPmethod implementations should consider the appropriate lifetime for thenor EAPmethod SA. "Fast reconnect" assumesmethods provide key management support, it is RECOMMENDED that key management facilities be provided within theinformation required (primarilySecure Association Protocol. This includes: [a] Entity Naming. A basic feature of a Secure Association Protocol is thekeysexplicit naming of the parties engaged in theEAP method SA) hasn't been compromised. In caseexchange. Without explicit identification, theoriginal authentication was carried out using, for instance, a smart card, it may be easier to compromiseparties engaged in theEAP method SA (stored onexchange are not identified and thePC, for instance), so typicallyscope of the EAPmethod SAs have a limited lifetime. Contents: o Implicitly,keying parameters negotiated during the EAPmethod this SA refers to o Internal (non-exported) cryptographic state o EAP method SA name o SA lifetime 3.2. EAP-Key SA Thisexchange isan SA betweenundefined. As shown in Figure 5, both the peer andEAP server, whichauthenticator may have more than one physical or virtual port, and as a result SHOULD identify themselves in a manner that isused to store the keying material exported by the EAP method. Currentindependent of their attached ports. [b] Mutual proof of possession of EAPserver implementations do not retain this SA afterkeying material. During theEAP conversation completes. As a result, all keys exported bySecure Association Protocol the EAPmethod (including the MSK, EMSKpeer andIV) onauthenticator MUST demonstrate possession of theAAAkeying material transported between the backend authentication serverare discardedandare not cached. Calculated keys (such as the AAA-Key) are also discarded and not cached. 3.3. AAA SA(s) (authenticator - backend authentication server) In order for theauthenticatorand backend authentication server to authenticate each other, they need(e.g. MSK), in order tostore some information. In casedemonstrate that theauthenticatorpeer andbackend authentication server are colocated,authenticator have been andthey communicate using local procedure calls or shared memory, this SA needauthorized. Since mutual proof of possession is notnecessarily contain any information. 3.4. Service SA(s) (peer - authenticator) The service SAs store information about the service being provided. These includetheRoot service SA and derived unicast and multicast service SAs. Aboba, et al. Standards Track [Page 27] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 The Root service SA is establishedsame as mutual authentication, the peer cannot verify authenticator assertions (including the authenticator identity) as a result of this exchange. [c] Secure capabilities negotiation. In order to protect against spoofing during thecompletiondiscovery phase, ensure selection ofEAP authentication (phase 1a)the "best" ciphersuite, andAAA-Key derivation or transport (phase 1b). It includes: o Service parameters (or at least those parameters that are still needed) o Onprotect against forging of negotiated security parameters, theauthenticator, service authorization information received fromSecure Association Protocol MUST support secure capabilities negotiation. This includes thebackend authentication server (or necessary partssecure negotiation ofit) o On the peer, usually locally configured service authorization information. o The AAA-Key, if it can be needed again (to refresh and/or resynchronize other keys or for another reason) o AAA-Key lifetime Unicastusage modes, session parameters (such as security association identifiers (SAIDs) and(optionally) multicast service SAs are derived from the Root service SA, viakey lifetimes), ciphersuites and required filters, including confirmation of security-relevant capabilities discovered during phase 0. As part of secure capabilities negotiation, the Secure AssociationProtocol. In order for unicastProtocol MUST support integrity andmulticast service SAsreplay protection of all messages. [d] Key naming andassociated TSKs to be established, itselection. Where key caching isnot necessarysupported, it may be possible for the EAPauthentication (phase 1a)peer and authenticator tobe rerun each time. Instead,share more than one key of a given type. As a result, the Secure Association Protocolcan beMUST explicitly name the keys usedto mutually provein the proof of possession exchange, so as to prevent confusion when more than one set of keying material could potentially be used as theAAA-Key and create associated unicast (phase 2a) and multicast (phase 2b) service SAs and TSKs, enablingbasis for the exchange. Use of the key naming mechanism described in this Aboba, et al. Standards Track [Page 22] INTERNET-DRAFT EAPexchangeKey Management Framework 23 October 2005 document is RECOMMENDED. In order tobe bypassed. Unicast and multicast service SAs include: o Service parameters negotiated bysupport the correct processing of phase 2 security associations, the Secure AssociationProtocol. o Endpoint identifiers. o Transient Session Keys used to protect(phase 2) protocol MUST support thecommunication. o Transient Session Key lifetime. One functionnaming of phase 2 security associations and associated transient session keys, so that the correct set of transient session keys can be identified for processing a given packet. The phase 2 Secure Association Protocolis to bind the the unicastalso MUST support transient session key activation andmulticast service SAsSHOULD support deletion, so that establishment andTSKs to endpoint identifiers. For example, within [IEEE802.11i], the 4-way handshake binds the TSKs to the MAC addressesre-establishment of transient session keys can be synchronized between theendpoints; in [IKEv2], the TSKs are bound to the IP addressesparties. [e] Generation of fresh transient session keys (TSKs). Where theendpoints and the negotiated SPI. It is possible for more than one unicast or multicast service SA to be derived from a single Root service SA. However, a unicast or multicast service SA is always descended from only one Root service SA. Unicast or multicast service SAs descended from the same Root service SA may utilizelower layer supports caching of exported EAP keying material, thesame security parameters (e.g. mode, ciphersuite, etc.) or they may utilize different parameters. AnEAP peer lower layer maybe able to negotiate multiple service SAs withinitiate agiven authenticator, or may be able to maintain one or more service SAs with multiple authenticators, depending onnew session using keying material that was derived in a previous session. Were thepropertiesTSKs to be derived from a portion of themedia. Aboba, et al. Standards Track [Page 28] INTERNET-DRAFTexported EAPKey Management Framework 17 July 2005 Except where explicitly specified bykeying material, this would result in reuse of theSecure Association Protocol, it should not be assumed thatsession keys which could expose theinstallation of new service SAs implies deletionunderlying ciphersuite to attack. In lower layers where caching ofold service SAs. ItEAP keying material ispossible for multicast Root service SAs to betweensupported, thesame EAP peerSecure Association Protocol phase is REQUIRED, andauthenticator; during a re-keyMUST support the derivation ofafresh unicastorand multicastservice SA it is possible for two service SAs to exist during the period betweenTSKs, even when thenew service SA and corresponding TSKskeying material provided by the backend authentication server is not fresh. This is typically supported via the exchange of nonces or counters, which arecalculated and when they are installed. Similarly, deletion or creation of athen mixed with the exported keying material in order to generate fresh unicastor(phase 2a) and possibly multicastservice SA does(phase 2b) session keys. By notnecessarily imply deletion or creation of related unicast or multicast service SAs, unless specified byusing EAP keying material directly to protect data, the Secure Associationprotocol. For example, a unicast service SA may be rekeyed without implying a rekey of the multicast service SA. The deletion of the Root service SAProtocol protects it against compromise. [f] Key lifetime management. This includes explicit key lifetime negotiation or seamless re-key. EAP does notnecessarily imply the deletion of the derived unicast and multicast service SAs and associated TSKs. Failure to mutually prove possessionsupport negotiation ofthe AAA-Key duringkey lifetimes, nor does it support re-key without re- authentication. As a result, the Secure Association Protocolexchange need not be grounds for deletionmay handle re-key and determination of theAAA-Key by both parties;key lifetime. Where key caching is supported, secure negotiation of key lifetimes is RECOMMENDED. Lower layers that support re-key, but not key caching, may not require key lifetime negotiation. To take an example from IKE, theaction to be takendifference between IKEv1 and IKEv2 isdefined bythat in IKEv1 SA lifetimes were negotiated. In IKEv2, each end of theSecure Association Protocol. 3.4.1. Sharing service SAs A single service may be provided by multiple logical or physical service elements. Each serviceSA is responsible forspecifying how changing service elements is handled. Some approaches include: Transparent sharing If the service parameters visible toenforcing its own lifetime policy on theother party (either peer or authenticator) do not change,SA and re- keying theservice can be moved without requiring cooperation from the other party. Whether such a move should be supported or used depends on implementation and administrative considerations. For instance, an administrator may decide to configure a group of IKEv2/IPsec gateways in a clusterSA when necessary. [g] Key resynchronization. It is possible forhigh-availability purposes, iftheimplementation used supports this. Thepeerdoes not necessarily have any wayor authenticator to reboot or reclaim resources, clearing portions or all ofknowing when the change occurs. No sharing Iftheservice parameters require changing, some changes may require terminatingkey cache. Therefore, key lifetime negotiation cannot guarantee that theold service, and starting a new conversation from phase 0. This approach is used by all services for at least some parameters,key cache will remain synchronized, andit doesn't require any protocol for transferringtheservice SA between the service elements. The service may support keeping the old service element activepeer Aboba, et al. Standards Track [Page29]23] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005while the new conversation takes phase,may not be able todecrease the timedetermine before attempting to use a key whether it exists within theserviceauthenticator cache. It isnot available. Some sharing The service may allow changing some parameters by simply agreeing abouttherefore RECOMMENDED for thenew values. This may involveSecure Association Protocol to provide asimilar exchange asmechanism for key state resynchronization. Since inphase 2,this situation one orperhaps a shorter conversation. This option usually requires some protocol for transferring the service SA betweenmore of theelements. An administrator may decideparties initially do not possess a key with which toenableprotect the resynchronization exchange, securing thisfeature at all, and typicallymechanism may be difficult. [h] Key scope synchronization. Since thesharingDiscovery phase isrestricted to some particular service elements (defined either byhandled out-of-band, EAP does not provide aservice parameter, or simple administrative decision). If the old and new service element do not support such "context transfer", this approach falls back to the previous option (no transfer). Services supporting this feature should also consider what changes require new authorization from the backend authentication server (see Section 5.2). Note that these considerations are not limited to service parameters related tomechanism by which theauthenticator--they apply topeerparameters as well. 4. Key Management EAP supports key derivation, but not key management.can determine the authenticator identity. As a result,key management functionality needs to be provided bywhere theSecure Association Protocol. This includes: [a] Generation of fresh transient session keys (TSKs). Where AAA-Keyauthenticator has multiple ports and key caching is supported, the EAP peer mayinitiate a new session using a AAA-Key that was used in a previous session. Were the TSKs tonot bederived from a portion ofable to determine theAAA-Key, this would result in reusescope of validity of thesession keys which could exposeexported EAP keying material. Similarly, where theunderlying ciphersuiteEAP peer has multiple ports, the authenticator may not be able toattack. Asdetermine whether aresult, where AAA-Key caching is supported,peer has authorization to use a particular key. To allow key scope determination, the Secure Association Protocolphase is REQUIRED, and MUSTSHOULD providefor freshness ofa mechanism by which theTSKs. [b] Key lifetime determination. EAP does not support negotiationpeer can determine the scope ofkey lifetimes, nor does it support rekey without reauthentication. As a result,theSecure Association Protocol may handle rekeykey cache on each authenticator, anddeterminationby which the authenticator can determine the scope of the keylifetime. Where key caching is supported, securecache on a peer. This includes negotiation of restrictions on keylifetimes is RECOMMENDED. Lower layers that support rekey, but not key caching, may not require key lifetime negotiation. To take an example from IKE,usage. [i] Direct operation. Since thedifference between IKEv1 and IKEv2phase 2 Secure Association Protocol isthat in IKEv1 SA lifetimes were negotiated. In IKEv2, each endconcerned with the establishment of security associations between theSA is responsible for Aboba, et al. Standards Track [Page 30] INTERNET-DRAFTEAPKey Management Framework 17 July 2005 enforcing its own lifetime policy on the SApeer andrekeying the SA when necessary. [c] Key resynchronization. It is possible forauthenticator, including thepeer or authenticator to reboot or reclaim resources, clearing portions or allderivation of transient session keys, only those parties have "a need to know" thekey cache. Therefore, key lifetime negotiation cannot guarantee that the key cache will remain synchronized, andtransient session keys. The Secure Association Protocol MUST operate directly between the peermay notand authenticator, and MUST NOT beablepassed-through todetermine before attemptingthe backend authentication server, or include additional parties. [j] Bi-directional operation While some ciphersuites only require a single set of transient session keys touseprotect traffic in both directions, other ciphersuites require aAAA-Key whether it exists within the authenticator cache. It is therefore RECOMMENDED for theunique set of transient session keys in each direction. The phase 2 Secure Association ProtocoltoSHOULD providea mechanismforkey state resynchronization. Since in this situation one or more oftheparties initially doderivation of unicast and multicast keys in each direction, so as notpossess a key with whichtoprotect the resynchronization exchange, securing this mechanism may be difficult. [d] Key selection. Where key caching is supported, it may be possible for the EAP peer and authenticatorrequire two separate phase 2 exchanges in order toshare more than one key of a given type. Ascreate aresult,bi-directional phase 2 security association. 3.2. Parent-Child Relationships When keying material exported by EAP methods expires, all keying material derived from theSecure Association Protocol needs to support key selection, usingexported keying material expires, including the TSKs. When an EAPKey Naming scheme described in this document. [e] Key scope determination. Since the Discovery phasere-authentication takes place, new keying material ishandled out- of-band, EAP does not provide a mechanismderived and exported bywhichthepeer can determineEAP method, which eventually results in Aboba, et al. Standards Track [Page 24] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 replacement of calculated keys, including theauthenticator identity.TSKs. As a result,where the authenticator has multiple ports and AAA-Key caching is supported, the EAP peer may not be able to determinewhile thescopelifetime ofvaliditycalculated keys can be less than or equal that ofa AAA-Key. Similarly, where the EAP peer has multiple ports,theauthenticator may notexported keys they are derived from, it cannot beablegreater. For example, TSK re-key may occur prior todetermine whether a peer has authorizationEAP re- authentication. Failure touse a particular AAA-Key. To allow key scope determination, the lower layer SHOULD provide a mechanism by which the peer can determinemutually prove possession of keying material during thescopeSecure Association Protocol exchange need not be grounds for deletion of theAAA-Key cache on each authenticator, andkeying material bywhich the authenticator can determine the scope of the AAA-Key cache onboth parties; rate-limiting Secure Association Protocol exchanges could be used to prevent apeer. 4.1.brute force attack. 3.3. Local KeyCaching In existing implementations, key caching may be supported onLifetimes The Transient EAP Keys (TEKs) are session keys used to protect the EAPpeerconversation. The TEKs are internal to the EAP method andauthenticator butare noton the backend server. Where explicitly supported byexported. TEKs are typically created during an EAP conversation, used until thelower layer,end of the conversation and then discarded. However, methods may re-key TEKs during a conversation. When using TEKs within an EAPpeerconversation or across conversations, it is necessary to ensure that replay protection andauthenticator MAY cachekey separation requirements are fulfilled. For instance, if a replay counter is used, TEK re-key MUST occur prior to wrapping of theAAA-Key and/or TSKs. The structurecounter. Similarly, TSKs MUST remain cryptographically separate from TEKs despite TEK re-keying or caching. This prevents TEK compromise from leading directly to compromise of thekeyTSKs and vice versa. EAP methods may cache local keying material which may persist for multiple EAP conversations when fast reconnect is used [RFC 3748]. For example, EAP methods based onthe peerTLS (such as EAP-TLS [RFC2716]) derive andauthenticatorcache the TLS Master Secret, typically for substantial time periods. The lifetime of other local keying material calculated within the EAP method is defined by thelower layer. Unless specified by the lower layer, the EAP peer and authenticator MUST assumemethod. Note thatpeers and authenticators do not cache the AAA-Key or TSKs. In existing AAA server implementations, all keys exportedin general, when using fast reconnect, there is no guarantee to that the original long-term credentials are still in the possession of the peer. For instance, a card hold holding the private key for EAP-TLS may have been removed. EAP servers SHOULD also verify that the long- term credentials are still valid, such as by checking that certificate used in the original authentication has not yet expired. 3.4. Exported and Calculated Key Lifetimes All EAP methods(includinggenerating keys are required to generate theMSK, EMSKMSK andIV)EMSK, andcalculated keys (e.g. AAA-Key) aremay optionally generate the IV. However, EAP, defined in [RFC3748], does notcachedsupport the negotiation of lifetimes for exported keying material such as the MSK, EMSK andare lost after EAP authenticationIV. Aboba, et al. Standards Track [Page31]25] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005completes: [1] In order to avoidSeveral mechanisms exist for managing keyreuse, on the EAP server, transported keys are deleted once they are sent. An EAP server MUST NOT retain keys that it has previously sent tolifetimes: [a] AAA attributes. AAA protocols such as RADIUS [RFC2865] and Diameter [RFC4072] support theauthenticator. For example, an EAP server that has transported a AAA-Key based onSession-Timeout attribute. The Session-Timeout value represents theMSK MUST deletemaximum lifetime of theMSK,exported keys, andnoall keysmay be derived from the MSKcalculated fromthat point forward by the server. [2] Keys which are not transported, such asit, on theEMSK, are also deleted byauthenticator. Since existingimplementations. 4.2. Parent-Child Relationships When keying materialAAA servers do not cache keys exported by EAPmethods expires, all keying material derivedmethods, or keys calculated fromtheexportedkeying material expires, includingkeys, theAAA-Key and TSKs. When anvalue of the Session-Timeout attribute has no bearing on the key lifetime within the AAA server. On the authenticator, where EAPreauthentication takes place, new keying materialisderived and exported byused for authentication, the Session-Timeout value represents the maximum session time prior to re-authentication, as described in [RFC3580]. Where EAPmethod,is used for pre-authentication, the session may not start until some future time, or may never occur. Nevertheless, the Session-Timeout value represents the time after whicheventually results in replacement oftransported EAP keying material, and all keys calculatedkeys, includingfrom it, will have expired on theAAA-Key and TSKs. As a result, whileauthenticator. If thelifetime of calculated keys cansession subsequently starts, re- authentication will beless than or equal that ofinitiated once theexportedSession-Time has expired. If the session never started, or started and ended, by default keysthey are derived from, it cannottransported by AAA and all keys calculated from them will begreater. For example, TSK rekey may occurexpired by the authenticator prior toEAP reauthentication. Failure to mutually prove possession oftheAAA-Key duringfuture time indicated by Session-Timeout. Since theSecure Association Protocol exchange needTSK lifetime is often determined by authenticator resources, the AAA server has no insight into the TSK derivation process, and by the principle of ciphersuite independence, it is notbe groundsappropriate fordeletion oftheAAA-Key by both parties; rate-limiting Secure Association Protocol exchanges could be usedAAA server toprevent a brute force attack. 4.3. Local Key Lifetimes The Transient EAP Keys (TEKs) are session keys used to protectmanage any aspect of theEAP conversation. The TEKs are internalTSK derivation process, including the TSK lifetime. [b] Lower layer mechanisms. While AAA attributes can communicate the maximum exported key lifetime, this only serves to synchronize theEAP methodkey lifetime between the backend authentication server andare not exported. TEKs are typically created during an EAP conversation,the authenticator. Lower layer mechanisms such as the Secure Association Protocol can then be useduntilto enable theendlifetime of exported and calculated keys to be negotiated between theconversationpeer andthen discarded. However, methods may rekey TEKs duringauthenticator. Where TSKs are established as the result of aconversation. When using TEKs within an EAP conversation or across conversations,Secure Association Protocol exchange, it isnecessary to ensureRECOMMENDED thatreplay protection and key separation requirements are fulfilled. For instance, if a replay counterthe Secure Association Protocol include support for TSK resynchronization. Where the TSK isused, TEK rekey MUST occur priortaken from the MSK, there is no need towrapping ofmanage thecounter. Similarly, TSKs MUST remain cryptographicallyTSK lifetime as a separatefrom TEKs despite TEK rekeying or caching. This prevents TEK compromise from leading directly to compromiseparameter, since the TSK lifetime and MSK lifetime are identical. [c] System defaults. Where the EAP method does not support the negotiation of theTSKsexported key lifetime, andvice versa.a key lifetime Aboba, et al. Standards Track [Page32]26] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005EAP methods may cache local keying material which may persist for multiple EAP conversations when fast reconnectnegotiation mechanism isused [RFC 3748]. For example, EAP methods based on TLS (such as EAP-TLS [RFC2716]) derive and cache the TLS Master Secret, typically for substantial time periods. The lifetime of other local keying material calculated within the EAP method is definednot provided by themethod. Note that in general, when using fast reconnect,lower lower, thereismay be noguarantee to thatway for theoriginal long-term credentials are still inpeer to learn thepossession ofexported key lifetime. In this case it is RECOMMENDED that thepeer. For instance,peer assume acard hold holdingdefault value of theprivateexported keyfor EAP-TLS may have been removed. EAP servers SHOULD also verify thatlifetime; 8 hours is recommended. Similarly, thelong- term credentials are still valid, suchlifetime of calculated keys can also be managed asby checking that certificate used ina system parameter on theoriginal authentication has not yet expired. 4.4. Exported and Calculated Key Lifetimes Allauthenticator. [d] Method specific negotiation within EAP. While EAPmethods generating keys are required to generate the MSK and EMSK, and may optionally generate the IV. However, EAP, defined in [RFC3748],itself does not supportthelifetime negotiation, it would be possible to specify methods that do. However, systems that rely on such negotiationof lifetimesfor exportedkeying material suchkeys would only function with these methods. As a result, it is NOT RECOMMENDED to use this approach as theMSK, EMSKsole way to determine key lifetimes. 3.5. Key cache synchronization Issues arise when attempting to synchronize the key cache on the peer andIV. Several mechanisms exist for managingauthenticator. Lifetime negotiation alone cannot guarantee keylifetimes: [a] AAA attributes.cache synchronization. One problem is that the AAAprotocols such as RADIUS [RFC2865] and Diameter [I-D.ietf-aaa-eap] supportprotocol cannot guarantee synchronization of key lifetimes between theSession-Timeout attribute. The Session-Timeout value representspeer and authenticator. Where themaximum lifetime ofSecure Association Protocol is not run immediately after EAP authentication, the exportedkeys,andall keyscalculatedfrom it, on the authenticator. Since existing AAA servers dokey lifetimes will notcache keys exportedbe known byEAP methods, or keys calculated from exported keys, the value oftheSession-Timeout attribute has no bearing onpeer during thekey lifetime withinhiatus. Where EAP pre-authentication occurs, this can leave theAAA server. Onpeer uncertain whether a subsequent attempt to use theauthenticator,exported keys will prove successful. However, even whereEAPthe Secure Association Protocol isusedrun immediately after EAP, it is still possible forauthentication, the Session-Timeout value representsthemaximum session time priorauthenticator tore-authentication, as described in [RFC3580]. Where EAP is used for pre-authentication,reclaim resources if thesession maycreated key state is notstart until some future time, orimmediately utilized. The lower layer maynever occur. Nevertheless,utilize Discovery mechanisms to assist in this. For example, theSession-Timeout value representsauthenticator manages thetime after whichkey cache by deleting theAAA-Key, and all keys calculated from it, will have expired onoldest key first (LIFO), theauthenticator. Ifrelative creation time of thesession subsequently starts, re-authentication willlast key to beinitiated once the Session-Time has expired. Ifdeleted could be advertised with thesession never started, or started and ended,Discovery phase, enabling theAAA-Key and all keys calculated from it will bepeer to determine whether a given key had been expiredbyfrom the authenticatorpriorkey cache prematurely. 3.6. Key Strength In order tothe future time indicated by Session-Timeout. Since the TSK lifetime is often determined by authenticator resources, the AAA server has no insight into the TSK derivation process, and by the principleguard against brute force attacks, EAP methods deriving keys need to be capable ofciphersuite independence, itgenerating keys with an appropriate effective symmetric key strength. In order to ensure that key generation is notappropriate fortheAAA server to manage any aspect ofweakest link, it is RECOMMENDED that EAP methods utilizing public key cryptography choose a public key that has a cryptographic strength meeting theTSKsymmetric key strength Aboba, et al. Standards Track [Page33]27] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005derivation process, including the TSK lifetime. [b] Lower layer mechanisms. While AAA attributes can communicate the maximum exported key lifetime,requirement. As noted in [RFC3766] Section 5, thisonly serves to synchronize the key lifetime betweenresults in thebackend authentication serverfollowing required RSA or DH module and DSA subgroup size in bits, for a given level of attack resistance in bits: Attack Resistance RSA or DH Modulus DSA subgroup (bits) size (bits) size (bits) ----------------- ----------------- ------------ 70 947 128 80 1228 145 90 1553 153 100 1926 184 150 4575 279 200 8719 373 250 14596 475 3.7. Key Wrap As described in [RFC3579] Section 4.3, known problems exist in theauthenticator. Lower layer mechanisms such askey wrap specified in [RFC2548]. Where theSecure Association Protocol can then besame RADIUS shared secret is usedto enable the lifetime of exported and calculated keys to be negotiated between the peer and authenticator. Where TSKs are established as the result ofby aSecure Association Protocol exchange, itPAP authenticator and an EAP authenticator, there isRECOMMENDED thata vulnerability to known plaintext attack. Since RADIUS uses theSecure Association Protocol include supportshared secret forTSK resynchronization. Where the TSKmultiple purposes, including per-packet authentication, attribute hiding, considerable information istaken fromexposed about theAAA-Key, thereshared secret with each packet. This exposes the shared secret to dictionary attacks. MD5 isno needused both tomanage the TSK lifetime as a separate parameter, sincecompute theTSK lifetimeRADIUS Response Authenticator andAAA- Key lifetime are identical. [c] System defaults. WheretheEAP method does not supportMessage-Authenticator attribute, and some concerns exist relating to thenegotiationsecurity of this hash [MD5Attack]. As discussed in [RFC3579] Section 4.3, theexported key lifetime,security vulnerabilities of RADIUS are extensive, and therefore development of an alternative key wrap technique based on the RADIUS shared secret would not substantially improve security. As a result, [RFC3759] Section 4.2 recommends running RADIUS over IPsec. The same approach is taken in Diameter EAP [RFC4072], which defines cleartext keylifetime negotiation mechanismattributes, to be protected by IPsec or TLS. Where an untrusted AAA intermediary is present (such as a RADIUS proxy or a Diameter agent), and data object security is notprovided by the lower lower, thereused, transported keying material may beno way forrecovered by an attacker in control of the untrusted intermediary. Possession of transported keying material enables decryption of data traffic sent between the peerto learn the exported key lifetime. In this case it is RECOMMENDED that the peer assume a default value of the exported key lifetime; 8 hours is recommended. Similarly, the lifetime of calculated keys can also be managed asand asystem parameter on the authenticator. [d] Methodspecificnegotiation within EAP. While EAP itself does not support lifetime negotiation, it would be possible to specify methods that do.authenticator. However,systems that rely on such negotiation for exportedas long as EAP keying material or keyswould only function with these methods. As a result,derived from it isNOT RECOMMENDED to use this approach as the sole way to determine key lifetimes. 4.5. Key cache synchronization Issues arise when attempting to synchronize the key cache on the peer and authenticator. Lifetime negotiation alone cannot guarantee key cache synchronization. One problem is that the AAA protocol cannot guarantee synchronizationonly utilized by a single authenticator, compromise ofkey lifetimes between the peer and authenticator. Where the Secure Association Protocol is not run immediately after EAP authentication,theexported and calculated key lifetimes willtransported keying material does notbe known by the peer during the hiatus. Where EAP pre-authentication occurs, this can leaveenable an attacker to impersonate the peeruncertain whether a subsequent attempttouse the exported keys will prove successful. However, even where the Secure Association Protocol is runanother authenticator. Aboba, et al. Standards Track [Page34]28] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005immediately after EAP, it is still possible for the authenticator to reclaim resources if the created key state is not immediately utilized. The lower layer may utilize Discovery mechanismsVulnerability toassist in this. For example, the authenticator manages the AAA-Key cachean untrusted AAA intermediary can be mitigated bydeleting the oldest AAA-Key first (LIFO), the relative creation timeimplementation ofthe last AAA-Key to be deleted could be advertised with the Discovery phase, enabling the peer to determine whether a given AAA-Key had been expired from the authenticator key cache prematurely. 4.6. Key Scope Asredirect functionality, as described inSection 2.5,[RFC3588] and [RFC4072]. 4. Handoff Vulnerabilities With EAP, a number of mechanisms are be utilized inexisting applicationsorder to reduce theAAA-Keylatency of handoff between authenticators. One such mechanism isderived from the MSK byEAP pre-authentication, in which EAP is utilized to pre-establish EAP keying material on an authenticator prior to arrival of the peer. Another such mechanism is key caching, in which an EAP peerand server, andcan re- attach to an authenticator without having to re-authenticate using EAP. Yet another mechanism isusedcontext transfer, such as is defined in [IEEE-802.11F] and [CTP]. These mechanisms introduce new security vulnerabilities, as discussed in theroot of the ciphersuite-specific key hierarchy. Wheresections that follow. 4.1. Authorization In abackendtypical network access scenario (dial-in, wireless LAN, etc.) access control mechanisms are typically applied. These mechanisms include user authenticationserver is present, the AAA-Key is transported fromas well as authorization for theEAP server tooffered service. As a part of theauthenticator; where it is not present,authentication process, theAAA-Key is calculated onAAA network determines theauthenticator. Regardless of how many sessionsuser's authorization profile. The user authorizations areinitiated using it,transmitted by theAAA-Key scope is betweenbackend authentication server to the EAPpeer that calculates it, and the authenticator that either calculates it (where no backend authenticator is present) or receives it from the server (where a backend authenticator server is present). It should be understood that an authenticator or peer: [a] may contain multiple physical ports; [b] may advertise itself as multiple "virtual" authenticators or peers; [c] may utilize multiple CPUs; [d] may support clustering services for load balancing or failover. As illustrated in Figure 1, an EAP peer with multiple ports may be attached to one or more authenticators, each with multiple ports. Where the peer andauthenticatoridentify themselves using a port identifier such(also known asa link layer address, it may not be obvious tothepeer which authenticator ports are associatedNetwork Access Server or authenticator) included withwhich authenticators. Similarly, it may not be obvious totheauthenticator which peer ports are associated withAAA-Token, whichpeers. As a result, the peer and authenticator may not be able to determinealso contains thescopetransported EAP keying material, in Phase 1b of theAAA-Key. When a single physical authenticator advertises itself as multiple "virtual authenticators", theEAPpeer and authenticator also may not be able to agree onconversation. Typically, thescope ofprofile is determined based on theAAA-Key, creatinguser identity, but asecurity vulnerability. For example,certificate presented by thepeeruser mayassume that the "virtual Aboba, et al. Standards Track [Page 35] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 authenticators" are distinct and do not sharealso provide authorization information. The backend authentication server is responsible for making akey cache, whereas, depending onuser authorization decision, answering thearchitecturefollowing questions: [a] Is this a legitimate user for this particular network? [b] Is this user allowed the type of access he or she is requesting? [c] Are there any specific parameters (mandatory tunneling, bandwidth, filters, and so on) that the access network should be aware of for this user? [d] Is this user within thephysical AP, a shared key cache maysubscription rules regarding time of day? [e] Is this user within his limits for concurrent sessions? Aboba, et al. Standards Track [Page 29] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 [f] Are there any fraud, credit limit, ormay notother concerns that indicate that access should beimplemented. Wheredenied? While theAAA-Keyauthorization decision isshared between "virtual authenticators" an attacker acting as a peer could authenticate within principle simple, the"Guest" "virtual authenticator" and derive a AAA-Key. Ifprocess is complicated by thevirtual authenticators share a key cache, thendistributed nature of AAA decision making. Where brokering entities or proxies are involved, all of thepeer can utilizeAAA devices in theAAA- Key derived forchain from the"Guest" network to obtain accessauthenticator to the"Corporate Intranet" virtual authenticator. Several measures are recommended to address these issues: [a] Authenticatorshome AAA server areREQUIRED to cache associated authorizations along withinvolved in theAAA-Key and apply authorizations consistently. This ensures that an attacker cannot obtain elevated privilegesdecision. For instance, a broker can disallow access evenwhere the AAA-Key cache is shared between "virtual authenticators". [b] It is RECOMMENDED that physical authenticators maintain separate AAA-Key caches for each "virtual authenticator". [c] It is RECOMMENDED that each "virtual authenticator" identify itself distinctly toif the home AAAserver, suchserver would allow it, or a proxy can add authorizations (e.g., bandwidth limits). Decisions can be based on static policy definitions and profiles as well as dynamic state (e.g. time of day or limits on the number of concurrent sessions). In addition to the Accept/Reject decision made byutilizing a distinct NAS- identifier attribute. This enablesthe AAAserver to utilize a separate credentialchain, parameters or constraints can be communicated toauthenticate each "virtual authenticator". [d] It is RECOMMENDED that Secure Association Protocols identify peers and authenticators unambiguously, without incorporating implicit assumptions about peer and authenticator architectures. Using port-specific MAC addresses as identifiers is NOT RECOMMENDED where peers and authenticators may support multiple ports. [e]the authenticator. TheAAA server and authenticator MAY implement additional attributes in ordercriteria for Accept/Reject decisions or the reasons for choosing particular authorizations are typically not communicated tofurther restricttheAAA-Key scope. For example, in 802.11,authenticator, only theAAA server may providefinal result. As a result, the authenticatorwithhas no way to know what the decision was based on. Was alistset ofauthorized Calledauthorization parameters sent because this service is always provided to the user, orCalling-Station-Ids and/or SSIDs for whichwas theAAA-Key is valid. [f] Wheredecision based on theAAA server provides attributes restrictingtime/day and thekey scope, it is RECOMMENDED that restrictions be securely communicated bycapabilities of the requesting authenticatorto the peer. This can be accomplished usingdevice? 4.2. Correctness When theSecure Association Protocol, but also can be accomplishedAAA exchange is bypassed via use of techniques such as key caching, this creates challenges in ensuring that authorization is properly handled. These include: [a] Consistent application of session time limits. Bypassing AAA should not automatically increase theEAP method or the lower layer. 4.7. Key Strength In orderavailable session time, allowing a user toguard against brute force attacks, EAP methods deriving keys needendlessly extend their network access by changing the point of attachment. [b] Avoidance of privilege elevation. Bypassing AAA should not result in a user being granted access to services which they are not entitled to. [c] Consideration of dynamic state. In situations in which dynamic state is involved in the access decision (day/time, simultaneous session limit) it should becapablepossible to take this state into account either before or after access is granted. Note that consideration ofgenerating keys with an appropriatenetwork-wide state such as simultaneous session limits can typically only be taken into account by the backend authentication server. Aboba, et al. Standards Track [Page36]30] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005effective symmetric key strength. In order to ensure that key generation is[d] Encoding of restrictions. Since a authenticator may not be aware of theweakest link, it is RECOMMENDED that EAP methods utilizing public key cryptography choosecriteria considered by apublic key that hasbackend authentication server when allowing access, in order to ensure consistent authorization during acryptographic strength meetingfast handoff it may be necessary to explicitly encode thesymmetric key strength requirement. As noted in [RFC3766] Section 5, this results inrestrictions within thefollowing required RSA or DH module and DSA subgroup size in bits, for a given level of attack resistance in bits: Attack Resistance RSA or DH Modulus DSA subgroup (bits) size (bits) size (bits) ----------------- ----------------- ------------ 70 947 128 80 1228 145 90 1553 153 100 1926 184 150 4575 279 200 8719 373 250 14596 475 4.8. Key Wrap As described in [RFC3579] Section 4.3, known problems existauthorizations provided in thekey wrap specified in [RFC2548]. WhereAAA-Token. [e] State validity. The introduction of fast handoff should not render thesame RADIUS shared secretauthentication server incapable of keeping track of network- wide state. A handoff mechanism capable of addressing these concerns isused by a PAP authenticator and an EAP authenticator, theresaid to be "correct". One condition for correctness is as follows: For avulnerabilityhandoff toknown plaintext attack. Since RADIUS usesbe "correct" it MUST establish on theshared secret for multiple purposes, including per-packet authentication, attribute hiding, considerable information is exposed aboutnew device theshared secretsame context as would have been created had the new device completed a AAA conversation witheach packet. This exposestheshared secret to dictionary attacks. MD5authentication server. A properly designed handoff scheme will only succeed if it isused both to compute the RADIUS Response Authenticator and the Message-Authenticator attribute, and some concerns exist relating to the security of"correct" in thishash [MD5Attack]. As discussedway. If a successful handoff would establish "incorrect" state, it is preferable for it to fail, in[RFC3579] Section 4.3, the security vulnerabilitiesorder to avoid creation ofRADIUS are extensive,incorrect context. Some backend authentication server andtherefore developmentauthenticator configurations are incapable ofan alternative key wrap technique based onmeeting this definition of "correctness". For example, if theRADIUS shared secret would not substantially improve security. Asold and new device differ in their capabilities, it may be difficult to meet this definition of correctness in aresult, [RFC3759] Section 4.2 recommends running RADIUS over IPsec. The same approach is takenhandoff mechanism that bypasses AAA. Backend authentication servers often perform conditional evaluation, inDiameter EAP [I-D.ietf-aaa-eap],whichdefines cleartext key attributes, to be protected by IPsec or TLS. Wherethe authorizations returned in anuntrusted AAA intermediary is present (suchAccess-Accept message are contingent on the authenticator or on dynamic state such asa RADIUS proxythe time of day or number of simultaneous sessions. For example, in aDiameter agent), and data object security is not used,heterogeneous deployment, theAAA-Key may be recovered by an attackerbackend authentication server might return different authorizations depending on the authenticator making the request, incontrol oforder to make sure that theuntrusted intermediary. Possession ofrequested service is consistent with theAAA-Key enables decryption of data traffic sentauthenticator capabilities. If differences between thepeernew and old device would result in the backend authentication server sending aspecific authenticator. However, Aboba, et al. Standards Track [Page 37] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 as long as a AAA-Key or keys derived from it is only utilized by a single authenticator, compromisedifferent set ofthe AAA-Key does not enable an attackermessages toimpersonatethepeer to another authenticator. Vulnerabilitynew device than were sent toan untrusted AAA intermediary can be mitigated by implementation of redirect functionality, as described in [RFC3588] and [I-D.ietf-aaa-eap]. 5. Handoff Vulnerabilities With EAP, a number of mechanisms are be utilized in order to reducethelatency ofold device, then if the handoffbetween authenticators. One suchmechanismis EAP pre-authentication, in which EAP is utilized to pre-establish a AAA-Key on an authenticator prior to arrival ofbypasses AAA, then thepeer. Another such mechanism is AAA-Key caching, in which an EAP peer can re-attach to anhandoff cannot be carried out correctly. For example, if some authenticatorwithout having to re-authenticate using EAP. Yet another mechanism is context transfer, such as is defineddevices within a deployment support dynamic VLANs while others do not, then attributes present in[IEEE-802.11F] and [CTP]. These mechanisms introduce new security vulnerabilities,the Access-Request (such asdiscussed inthesections that follow. 5.1. Authorization In a typical network access scenario (dial-in, wireless LAN,authenticator-IP-Address, authenticator-Identifier, Vendor-Identifier, etc.)access control mechanisms are typically applied. These mechanisms include user authentication as wellcould be examined to determine when VLAN attributes will be returned, asauthorization for the offered service. Asdescribed in [RFC3580]. VLAN support is defined in [IEEE-802.1Q]. If apart of the authentication process, the AAA network determines the user's authorization profile. The user authorizations are transmitted byhandoff bypassing the backend authentication server were totheoccur between a Aboba, et al. Standards Track [Page 31] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 authenticator supporting dynamic VLANs and another authenticator(also known as the Network Access Server or authenticator) included with the AAA-Token,whichalso contains the AAA-Key, in Phase 1b of the EAP conversation. Typically, the profile is determined based on the user identity, butdoes not, then acertificate presented by theguest usermay also provide authorization information. The backend authentication server is responsible for makingwith access restricted to auser authorization decision, answeringguest VLAN could be given unrestricted access to thefollowing questions: [a] Is thisnetwork. Similarly, in alegitimate user for this particular network? [b] Is this user allowed the type ofnetwork where accesshe or sheisrequesting? [c] Are there any specific parameters (mandatory tunneling, bandwidth, filters,restricted based on the day andso on) thattime, Service Set Identifier (SSID), Calling-Station-Id or other factors, unless theaccess network should be aware of for this user? [d] Is this userrestrictions are encoded within thesubscription rules regarding time of day? Aboba, et al. Standards Track [Page 38] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 [e] Is this user within his limits for concurrent sessions? [f] Are there any fraud, credit limit,authorizations, orother concerns that indicate that access should be denied? While the authorization decisiona partial AAA conversation is included, then a handoff could result inprinciple simple,theprocess is complicated byuser bypassing thedistributed nature ofrestrictions. In practice, these considerations limit the situations in which fast handoff mechanisms bypassing AAAdecision making.can be expected to be successful. Wherebrokering entities or proxies are involved, all oftheAAAdeployed devicesin the chain fromimplement theauthenticatorsame set of services, it may be possible to do successful handoffs within such mechanisms. However, where thehome AAA server are involved insupported services differ between devices, thedecision. For instance,handoff may not succeed. For example, [RFC2865] section 1.1 states: "A authenticator that does not implement abroker can disallow access even ifgiven service MUST NOT implement thehome AAA server would allow it, orRADIUS attributes for that service. For example, aproxy can add authorizations (e.g., bandwidth limits). Decisions can be based on static policy definitions and profiles as well as dynamic state (e.g. time of day or limits on the number of concurrent sessions). In addition to the Accept/Reject decision made by the AAA chain, parameters or constraints can be communicatedauthenticator that is unable to offer ARAP service MUST NOT implement theauthenticator. The criteria for Accept/Reject decisions or the reasonsRADIUS attributes forchoosing particular authorizationsARAP. A authenticator MUST treat a RADIUS access-accept authorizing an unavailable service as an access-reject instead." Note that this behavior only applies to attributes that aretypicallyknown, but notcommunicatedimplemented. For attributes that are unknown, [RFC2865] Section 5 states: "A RADIUS server MAY ignore Attributes with an unknown Type. A RADIUS client MAY ignore Attributes with an unknown Type." In order tothe authenticator, only the final result. Asperform aresult,correct handoff, if a new device is provided with RADIUS context for a known but unavailable service, then it MUST process this context theauthenticator has nosame wayto know whatit would handle a RADIUS Access- Accept requesting an unavailable service. This MUST cause thedecision was based on. Washandoff to fail. However, if aset of authorization parameters sent because this servicenew device isalwaysprovidedto the user, or was the decision based on the time/day and the capabilities of the requesting authenticator device? 5.2. Correctness When the AAA exchange is bypassed via use of techniques such as AAA- Key caching, this creates challenges in ensuringwith RADIUS context thatauthorizationindicates an unknown attribute, then this attribute MAY be ignored. Although it may seem somewhat counter-intuitive, failure isproperly handled. These include: [a] Consistent application of session time limits. Bypassing AAA should not automatically increaseindeed theavailable session time, allowing"correct" result where auser to endlessly extend their network access by changing the point of attachment. [b] Avoidance of privilege elevation. Bypassing AAA shouldknown but unsupported service is requested. Presumably a correctly configured backend authentication server would notresult inrequest that auser being granted access to services which they aredevice carry out a service that it does notentitled to. [c] Consideration of dynamic state. In situations in which dynamic state is involved inimplement. This implies that if theaccess decision (day/time, simultaneous session limit)new device were to complete a AAA conversation that itshouldwould bepossiblelikely totake this state into account either before or after access is granted. Note that consideration of network-wide statereceive different service instructions. In suchas simultaneous session limits can typically only be taken into account bya case, failure of thebackendhandoff is the desired result. This will cause the new device to go back to the AAA server in order to receive the appropriate service Aboba, et al. Standards Track [Page39]32] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005authentication server. [d] Encoding of restrictions. Since a authenticator may notdefinition. In practice, this implies that handoff mechanisms which bypass AAA are most likely to beaware of the criteria considered bysuccessful within abackend authentication server when allowing access, in order to ensure consistent authorization duringhomogeneous device deployment within afast handoffsingle administrative domain. For example, itmaywould not benecessaryadvisable toexplicitly encode the restrictions within the authorizations provided in the AAA-Token. [e] State validity. The introduction ofcarry out a fast handoffshouldbypassing AAA between a authenticator providing confidentiality and another authenticator that does notrender the authentication server incapable of keeping track of network- wide state. A handoff mechanism capablesupport this service. The correct result ofaddressing these concerns is said to be "correct". One condition for correctness is as follows: Forsuch a handofftowould be"correct" it MUST establish ona failure, since if thenew devicehandoff were blindly carried out, then thesame context asuser wouldhave been created had the new device completedbe moved from aAAA conversation withsecure to an insecure channel without permission from the backend authentication server.A properly designed handoff scheme will only succeed if it is "correct" in this way. IfThus the definition of asuccessful handoff would establish "incorrect" state, it is preferable"known but unsupported service" MUST encompass requests foritunavailable security services. This includes vendor-specific attributes related tofail,security, such as those described in [RFC2548]. 5. Security Considerations In order toavoid creation of incorrect context. Some backend authentication server and authenticator configurations are incapable of meeting this definition of "correctness". For example, ifanalyze whether theold and new device differ in their capabilities,EAP conversation achieves itmay be difficultsecurity goals, it is first necessary tomeet this definitionstate those goals as well as the underlying security assumptions. The overall goal ofcorrectness in a handoff mechanism that bypasses AAA. Backend authentication servers often perform conditional evaluation, in whichtheauthorizations returned in an Access-Accept messageEAP conversation is to derive fresh session keys between the EAP peer and authenticator that arecontingent onknown only to those parties, and for both the EAP peer and authenticator to demonstrate that they are authorized to perform their roles either by each other oron dynamic state such as the timeby a trusted third party (the AAA server). The principals ofday or numberthe authentication phase are the EAP peer and server. Completion ofsimultaneous sessions. For example,an EAP method exchange supporting key derivation results ina heterogeneous deployment,thebackend authenticationderivation of EAP keying material (MSK, EMSK, TEKs) known only to the EAP peer (identified by the Peer-ID) and servermight return different authorizations depending on(identified by theauthenticator makingServer-ID). Both therequest, in orderEAP peer and EAP server know the exported keying material tomake sure thatbe fresh. The principals of therequested service is consistent withAAA Key transport exchange are the EAP authenticatorcapabilities. If differences between the newandold device would resultthe EAP server. Completion of the AAA exchange results in thebackend authentication server sending a different settransport ofmessages toEAP keying material from thenew device than were sentEAP server (identified by the Server-ID) to theold device, then ifEAP authenticator (identified by thehandoff mechanism bypasses AAA, thenNAS-Identifier) without disclosure to any other party. Both thehandoff cannot be carried out correctly. For example, if someEAP server and EAP authenticatordevices within a deployment support dynamic VLANs while others do not, then attributes presentknow this keying material to be fresh. The principals of the Secure Association Protocol are the EAP peer (identified by the Peer-ID) and authenticator (identified by the NAS- Identifier). Completion of the Secure Association Protocol results in theAccess-Request (such asderivation of TSKs known only to theauthenticator-IP-Address, authenticator-Identifier, Vendor-Identifier, etc.) could be examinedEAP peer and authenticator. Both the EAP peer and authenticator know the TSKs todetermine when VLAN attributes will be returned, as described inAboba, et al. Standards Track [Page40]33] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005[RFC3580]. VLAN support is defined in [IEEE-802.1Q]. If a handoff bypassing the backend authentication server were to occur between a authenticator supporting dynamic VLANs and another authenticator which does not, then a guest user with access restricted to a guest VLAN couldbegiven unrestricted access to the network. Similarly,fresh. 5.1. Terminology "Cryptographic binding", "Cryptographic separation", "Key strength" and "Mutual authentication" are defined ina network where access is restricted based on the day[RFC3748] andtime, Service Set Identifier (SSID), Calling-Station-Id or other factors, unless the restrictionsareencoded withinused with theauthorizations, or a partial AAA conversationsame meaning here. 5.2. Threat Model The EAP threat model isincluded, then a handoff could resultdescribed inthe user bypassing the restrictions. In practice,[RFC3748] Section 7.1. The security properties of EAP methods (known as "security claims", described in [RFC3784] Section 7.2.1), address theseconsiderations limit the situationsthreats. EAP method requirements for applications such as Wireless LAN authentication are described inwhich fast handoff mechanisms bypassing AAA can be expected[RFC4017]. The RADIUS threat model is described in [RFC3579] Section 4.1, and responses tobe successful. Where the deployed devices implement the same set of services, itthese threats are described in [RFC3579] Sections 4.2 and 4.3. However, in addition to threats against EAP and AAA, there are other system-level threats worth discussing. These include: [1] An attacker maybe possiblecompromise or steal an EAP authenticator, in an attempt todo successful handoffs within such mechanisms. However, where the supported services differ between devices, the handoffgain access to other EAP authenticators or obtain long- term secrets. [2] An attacker maynot succeed. For example, [RFC2865] section 1.1 states: "Acompromise an EAP authenticatorthat does not implement a given service MUST NOT implement the RADIUS attributes for that service.in an effort to commit fraud. For example, a compromised authenticatorthat is unablemay provide incorrect information tooffer ARAP service MUST NOT implementtheRADIUS attributes for ARAP. A authenticator MUST treatEAP peer and/or server via out-of-band mechanisms (such as via aRADIUS access-accept authorizingAAA or lower layer protocol). This includes impersonating another authenticator, or providing inconsistent information to the peer and EAP server. [3] An attacker may try to modify or spoof packets, including Discovery or Secure Association Protocol frames, EAP or AAA packets. [4] An attacker may attempt a downgrade attack in order to exploit known weaknesses in anunavailable service asauthentication method or cryptographic transform. [5] An attacker may attempt to induce anaccess-reject instead." Note that this behavior only appliesEAP peer, authenticator or server toattributes that are known, but not implemented. For attributes that are unknown, [RFC2865] Section 5 states: "A RADIUS server MAY ignore Attributes with an unknown Type. A RADIUS client MAY ignore Attributes with an unknown Type." In orderdisclose keying material toperform a correct handoff, if a new device is provided with RADIUS context for a known but unavailable service, then it MUST process this context the same way it would handle a RADIUS Access- Accept requestinganunavailable service. This MUST causeunauthorized party, or utilize keying material outside thehandoff to fail. However, if a new device is provided with RADIUScontext thatindicates an unknown attribute, then this attribute MAY be ignored. Althoughit was intended for. [6] An attacker mayseem somewhat counter-intuitive, failure is indeed the "correct" result where a known but unsupported service is requested. Presumably a correctly configured backend authenticationreplay packets. [7] An attacker may cause an EAP peer, authenticator or serverwould not request that a device carry out a service that it does not implement. This implies that if the new device were to complete a AAA conversation that it would be likelytoreceive different service instructions. In such a case, failurereuse an stale key. Use ofthestale keys may also occur unintentionally. Aboba, et al. Standards Track [Page41]34] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005handoff is the desired result. This will cause the new device to go back to theFor example, a poorly implemented AAA server may provide stale keying material to an authenticator, or a poorly implemented authenticator may reuse nonces. [8] An authenticated attacker may attempt to obtain elevated privilege in order toreceive the appropriate service definition. In practice, this impliesaccess information thathandoff mechanisms which bypass AAA are most likely to be successful within a homogeneous device deployment within a single administrative domain. For example,itwoulddoes notbe advisablehave rights to. In order tocarry out a fast handoff bypassing AAA betweenaddress these threats, [Housley] provides a description of mandatory system security properties. Issues relating system security requirements are discussed in the sections that follow. 5.3. Authenticator Compromise In the event that an authenticatorproviding confidentiality and another authenticatoris compromised or stolen, an attacker may gain access to the network via thatdoes not supportauthenticator, or may obtain the credentials required for that authenticator/AAA client to communicate with one or more AAA servers. However, thisservice.should not allow the attacker to compromise other authenticators or the AAA server, or obtain long-term user credentials. Thecorrect resultimplications ofsuch a handoff would be a failure,this requirement are many, but some of the more important are as follows: No Key Sharing An EAP authenticator MUST NOT share any keying material with another EAP authenticator, since ifthe handoffone EAP authenticator wereblindly carried out, then the usercompromised, this would enable the compromise of keying material on another authenticator. In order to bemoved from a secureable toan insecure channel without permission from the backend authentication server. Thusdetermine whether keying material has been shared, it is necessary for thedefinitionidentity ofa "known but unsupported service" MUST encompass requests for unavailable security services. This includes vendor-specific attributes relatedthe EAP authenticator tosecurity, such as those described in [RFC2548]. 6. Security Considerations 6.1. Security Terminology "Cryptographic binding", "Cryptographic separation", "Key strength" and "Mutual authentication" arebe definedin [RFC3748]andare usedunderstood by all parties that communicate withthe same meaning here. 6.2. Threat Model The EAP threat model is described in [RFC3748] Section 7.1. In order to address these threats, EAP relies on the security properties of EAP methods (known as "security claims", described in [RFC3784] Section 7.2.1). EAP method requirements for application suchit. No AAA Credential Sharing AAA credentials (such asWireless LAN authentication are described in [RFC4017]. TheRADIUSthreat model is described in [RFC3579] Section 4.1, and responsesshared secrets, IPsec pre-shared keys or certificates) MUST NOT be shared between AAA clients, since if one AAA client were compromised, this would enable an attacker tothese threats are described in [RFC3579] Sections 4.2 and 4.3. Amongimpersonate otherthings, [RFC3579] Section 4.2 recommends the use of IPsec ESP with non-null transformAAA clients toprovide per-packet authentication and confidentiality, integrity and replay protection for RADIUS/EAP. Giventheexisting documentation of EAP andAAAthreat models and responses, there is no needserver, or even to impersonate a AAA server toduplicate that material here. However, there are manyothersystem-level threats no covered in these document which have not been describedAAA clients. No Compromise of Long-Term Credentials An attacker obtaining TSKs, TEKs oranalyzed elsewhere. These include:EAP keying material such as the MSK MUST NOT be able to obtain long-term user credentials such as pre-shared keys, passwords or private-keys without breaking a fundamental cryptographic assumption. Aboba, et al. Standards Track [Page42]35] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005[1] An attacker may try to modify5.4. Spoofing The use of per-packet authentication and integrity protection provides protection against spoofing attacks. Diameter [RFC3588] provides support for per-packet authentication and integrity protection via use of IPsec orspoof Secure Association Protocol packets. [2] An attacker compromising an authenticator may provide incorrect information to the EAP peer and/or server via out-of-band mechanisms (such asTLS. RADIUS/EAP [RFC3579] provides for per-packet authentication and integrity protection viaa AAA or lower layer protocol). This includes impersonating another authenticator, or providing inconsistent information touse of thepeerMessage-Authenticator attribute. [RFC3748] Section 7.2.1 describes the "integrity protection" security claim and [RFC4017] requires use of EAPserver. [3] An attacker may attemptmethods supporting this claim. In order toperform downgrading attacks on the ciphersuite negotiation within theprevent forgery of Secure Association Protocolin order to ensure that a weaker ciphersuiteframes, per-frame authentication and integrity protection isused to protect data. DependingRECOMMENDED on all messages. [IEEE-802.11i] supports per-frame integrity protection and authentication on all messages within thelower layer, these attacks may be carried out without requiring physical proximity. In order to address these threats, [Housley] describes the mandatory system security properties: Algorithm independence Wherever cryptographic algorithms are chosen,4-way handshake except thealgorithms must be negotiable,first message. An attack leveraging this ommission is described inorder[Analysis]. 5.5. Downgrade Attacks The ability toprovide resilientnegotiate the use of a particular cryptographic algorithm provides resilience against compromise of a particular cryptographic algorithm.Algorithm independence must be demonstrated within all aspects of the system,This is usually accomplished by includingwithin EAP, AAA andan algorithm identifier in theSecure Association Protocol. However, for interoperability, at least one suite of algorithms MUST be implemented. Strong, fresh session keys Session keys must be demonstrated to be strongprotocol, andfresh in all circumstances, while atby specifying thesame time retainingalgorithmindependence. Replay protection All protocol exchanges must be replay protected. This includes exchanges within EAP, AAA, andrequirements in theSecure Association Protocol. Authentication All parties needprotocol specification. In order tobe authenticated. The confidentialityprevent downgrade attacks, secure confirmation of theauthenticator must be maintained. No plaintext passwords are allowed. Authorization"best" ciphersuite is required. [RFC3748] Section 7.2.1 describes the "protected ciphersuite negotiation" security claim that refers to the ability of an EAPpeermethod to negotiate the ciphersuite used to protect the EAP conversation, as well as to integrity protect the negotiation. [RFC4017] requires EAP methods satisfying this security claim. Diameter [RFC3588] provides support for cryptographic algorithm negotiation via use of IPsec or TLS. RADIUS [RFC3579] does not support the negotiation of cryptographic algorithms, andauthenticator authorization mustrelies on MD5 for integrity protection, authentication and confidentiality, despite known weaknesses in the algorithm [MD5Attack]. This issue can beperformed. Session keys Confidentialityaddressed via use ofsession keys must be maintained.RADIUS over IPsec, as described in [RFC3579] Section 4.2. As a result, EAP methods and AAA protocols are capable of addressing downgrade attacks. To ensure against downgrade attacks within lower layer protocols, algorithm independence is REQUIRED with lower layers using EAP for key derivation. For interoperability, at least one Aboba, et al. Standards Track [Page43]36] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005Ciphersuite negotiation The selectionsuite ofthe "best" ciphersuite must be securely confirmed. Unique naming Session keys mustmandatory-to-implement algorithm MUST beuniquely named. Domino effect Compromiseselected. Lower layer protocols supporting EAP for key derivation SHOULD also support secure ciphersuite negotiation. As described in [RFC1968], PPP ECP does not provide support for secure ciphersuite negotiation. However, [IEEE-802.11i] does support secure ciphersuite negotiation. 5.6. Unauthorized Disclosure While preserving algorithm independence, confidentiality ofa single authenticator cannot compromise any other partall keying material MUST be maintained. To prevent unauthorized disclose of keys, each party in thesystem, including session keys and long-term secrets. Key binding The key mustEAP conversation MUST beboundauthenticated to the other parties with whom it communicates. Keying material MUST be bound to the appropriate context.6.3. Security Analysis Figure 8 illustrates the relationship between[RFC3748] Section 7.2.1 describes thepeer, authenticator"mutual authentication" andbackend"dictionary attack resistance" claims, and [RFC4017] requires EAP methods satisfying these claims. EAP methods complying with [RFC4017] therefore provide for mutual authenticationserver.between the EAP peer/\ / \ Protocol: EAP / \ Protocol: Secure Association Auth: Mutual / \ Auth: Mutual Unique keys: / \ Unique keys: TSKs TEKs,EMSK / \ / \and server. Binding of EAP keying material (MSK, EMSK) to the appropriate context is provided by the Peer-ID and Server-ID which are exported along with the keying material. Diameter [RFC3588] provides for per-packet authentication and integrity protection via IPsec or TLS, and RADIUS/EAP [RFC3579] also provides for per-packet authentication and integrity protection. Where the NAS/authenticator and AAA server+--------------+ Authenticator Protocol:communicate directly and credible keywrap is used (see Section 3.7), this ensures that the AAAAuth: Mutual Unique key:Key Transport phase achieves its security objectives: mutually authenticating the AAAsession key Figure 8: Relationship between peer, authenticatorclient/authenticator andauth.AAA serverThe peerand providing EAPserver communicate using EAP [RFC3748]. The security properties of this communication are largely determined bykeying material to thechosenEAPmethod. Method security claims are described in [RFC3748] Section 7.2. These include the key strength, protected ciphersuite negotiation, mutual authentication, integrity protection, replay protection, confidentiality, key derivation, key strength, dictionary attack resistance, fast reconnect, cryptographic binding, session independence, fragmentationauthenticator andchannel binding claims. At a minimum, methods claimingtosupport key derivation must also support mutual authentication.no other party. As noted in[RFC3748]Section7.10: EAP Methods deriving keys MUST3.1, the Secure Association Protocol does not by itself provide for mutual authentication between the EAP peer andtheauthenticator, even if mutual possession of EAPServer. Ciphersuite independencekeying material isalso required: Aboba, et al. Standards Track [Page 44] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 Keying material exported by EAP methods MUST be independent ofproven. However, where theciphersuite negotiated to protect data. In terms of key strengthNAS/authenticator andfreshness, [RFC3748] Section 10 says: EAP methods SHOULD ensureAAA server communicate directly, thefreshnessAAA server can verify the correspondence between NAS identification attributes, the source address of packets sent by theMSKNAS, andEMSK even in cases where one party maythe AAA credentials. As long as the NAS has nothave a high quality random number generator.... In ordershared its AAA credentials with another NAS, this allows the AAA server topreserve algorithm independence,authenticate the NAS. Using Channel Bindings, the EAPmethods deriving keys SHOULD support (and document)peer can then determine whether theprotected negotiation ofNAS/authenticator has provided theciphersuite usedsame identifying information toprotectthe EAPconversation between thepeer andserver... In order to enable deployments requiring strong keys, EAP methods supporting key derivation SHOULD be capable of generating an MSKAAA server. Peer andEMSK, each with an effective key strength of at least 128 bits. Theauthenticatorand backend authentication server communicate using a AAA protocol such as RADIUS [RFC3579] or Diameter [I-D.ietf-aaa- eap]. As noted in [RFC3588] Section 13, Diameter mustauthorization MUST beprotected by either IPsec ESP with non-null transform or TLS. Asperformed. Authorization is REQUIRED whenever aresult, Diameter requires per-packet integrity and confidentiality. Replay protection must be supported. For RADIUS, [RFC3579] Section 4.2 recommends that RADIUS be protected by IPsec ESPpeer associates with anon-null transform,new authenticator. Authorization checking prevents an elevation of privilege attack, andwhere IPsecensures that an unauthorized authenticator isimplemented replay protection mustAboba, et al. Standards Track [Page 37] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 detected. Authorizations SHOULD besupported. The peer and authenticator communicate usingsynchronized between theSecure Association Protocol. As noted inEAP peer, server, authenticator. Once thefigure, each party inEAP conversation exchanges are complete, all of these parties should hold theexchange mutually authenticates with eachsame view of the authorizations associated the otherparties, and derives a unique key. All parties inparties. If peer authorization is restricted, then thediagram have access topeer SHOULD be made aware of theAAA-Key.restriction. The AAA exchange provides the EAPpeer and backend authentication server mutually authenticate viaauthenticator with authorizations relating to the EAPmethod, and derivepeer. However, neither theTEKs and EMSK which are known onlyEAP nor AAA exchanges provides authorizations tothem. The TEKs are usedthe EAP peer. In order toprotect some orensure that all parties hold the same view of theEAP conversationauthorizations it is RECOMMENDED that the Secure Association Protocol enable communication of authorizations between thepeerEAP authenticator andauthenticator, so aspeer. In order toguard against modification or insertionenable key binding and authorization ofEAP packets by an attacker. The degreeall parties, it is RECOMMENDED that the parties use a set ofprotection afforded byidentities that are consistent between theTEKs is determinedconversation phases. RADIUS [RFC2865] and Diameter NASREQ [RFC4005] require that the NAS/EAP authenticator identify itself by including one or more identification attributes within an Access-Request packet (NAS-Identifier, NAS-IP-Address, NAS- IPv6-Address). Since the AAA server provides EAPmethod; some methods may protectkeying material for use by theentireEAPpacket, including theauthenticator as identified by these attributes, where an EAPheader, while other methodsauthenticator mayonly protect the contents of the Type-Data field, defined in [RFC3748]. Since EAPhave multiple ports, it isspoken only betweenRECOMMENDED for the EAPpeer and server, if a backend authentication server is present thenauthenticator to identify itself using NAS identification attributes during the Secure Association Protocol exchange with the EAPconversation does not provide mutual authentication betweenpeer. This enables the EAP peerand authenticator, onlyto determine whether EAP keying material has been shared between EAP authenticators as well as to confirm with the AAA server that an EAPpeer andauthenticator proving possession of EAPserver (backend authentication server). Askeying material during the Secure Association Protocol was authorized to obtain it. Typically, the NAS-Identifier attribute is most convenient for this purpose, since aresult, mutualNAS/authenticator may have multiple IP addresses. Similarly, the AAA server authorizes the EAP authenticator to provide access to the EAP peer identified by the Peer-ID, securely verified during the EAP authentication exchange. In order to determine whether EAP keying material has been shared between EAP peers, where the EAP peer has multiple ports it is RECOMMENDED for the EAP peerand authenticator only occurs where ato identify itself using the Peer-ID during the Secure Association Protocol exchange with the EAP authenticator. 5.7. Replay Protection Replay protection allows a protocol message recipient to discard any message that was recorded during a previous legitimate dialogue and presented as though it belonged to the current dialogue. Aboba, et al. Standards Track [Page45]38] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005protocol is used, such[RFC3748] Section 7.2.1 describes theunicast"replay protection" security claim andgroup key derivation handshake supported in [IEEE-802.11i]. This means that absent[RFC4017] requires use ofa secure Association Protocol, from the pointEAP methods supporting this claim. Diameter [RFC3588] provides support for replay protection via use ofviewIPsec or TLS. RADIUS/EAP [RFC3579] protects against replay of keying material via thepeer, EAP mutual authentication only proves thatRequest Authenticator. However, some RADIUS packets are not replay protected. In Accounting, Disconnect and CoA-Request packets theauthenticator is trusted by the backend authentication server; the identity of the authenticator isRequest Authenticator contains a keyed MAC rather than a Nonce. The Response Authenticator in Accounting, Disconnect and CoA Response packets also contains a keyed MAC whose calculation does notconfirmed. Utilizing the AAA protocol,depend on a Nonce in either theauthenticator and backend authentication server mutually authenticate and derive session keys known only to them, used to provide per-packet integrity and replay protection, authentication and confidentiality. The AAA-KeyRequest or Response packets. Therefore unless an Event-Timestamp attribute isdistributed byincluded or IPsec is used, thebackend authentication serverrecipient may not be able tothe authenticator over this channel, bounddetermine whether these packets have been replayed. In order toattributes constraining its usage, as part of the AAA-Token. The bindingprevent replay ofattributes to the AAA-Key within a protected packageSecure Association Protocol frames, replay protection isimportant so the authenticator receivingREQUIRED on all messages. [IEEE-802.11i] supports replay protection on all messages within theAAA-Token can determine that4-way handshake. 5.8. Key Freshness A session key should be considered compromised if ithas not been compromised,remains in use too long. As noted in [Housley], session keys MUST be strong and fresh, while preserving algorithm independence. A fresh cryptographic key is one that is generated specifically for thekeying material has not been replayed, or mis-directed in some way. The security propertiesintended use. Each session deserves an independent session key; disclosure of one session key MUST NOT aid theEAP exchangeattacker in discovering any other session keys. Fresh keys aredependent on each legrequired even when a long replay counter (that is, one that "will never wrap") is used to ensure that loss of state does not cause thetriangle: the selected EAP method, AAA protocol and the Secure Association Protocol. Assuming thatsame counter value to be used more than once with the same session key. EAP, AAAprotocol provides protection against rogue authenticators forging their identity, then the AAA-Token can be assumed to be sent to the correct authenticator,andwhere it is wrapped appropriately, it can be assumed to be immune to compromise by a snooping attacker. Where an untrusted AAA intermediary is present, the AAA-Token must not be provided totheintermediary so as to avoid compromise oflower layer each bear responsibility for ensuring theAAA-Token. This can be avoided byuse ofre-direct as defined in [RFC3588]. Whenfresh, strong session keys: EAPis used for authentication on PPP or wired IEEE 802 networks, it is typically assumed that the link is physically secure, so that an attacker cannot gain access to the link, or insert a rogue device.EAP methodsdefined in [RFC3748] reflect this usage model. These includeneed to ensure the freshness and strength of EAPMD5, as wellkeying material provided asOne-Time Password (OTP) and Generic Token Card. These methods support one-way authentication (from EAP peeran input toauthenticator) but not mutual authentication orsession key derivation.As a result, these[RFC3748] Section 7.10 states that "EAP methodsdo not bindSHOULD ensure theinitial authenticationfreshness of the MSK andsubsequent data traffic,EMSK, evenwhenin cases where one party may not have a high quality random number generator. A RECOMMENDED method is for each party to provide a nonce of at least 128 bits, used in the derivation of theciphersuite used to protect data supports per-packet authenticationMSK andintegrity protection. As a result,EMSK." The contribution of nonces enables the EAPmethods not supporting mutual authentication are vulnerablepeer and server tosession hijacking as well as attacks by rogue devices.ensure that exported EAP keying material is fresh. Aboba, et al. Standards Track [Page46]39] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005On wireless networks such as IEEE 802.11 [IEEE-802.11], these attacks become easy to mount, since any attacker within range can access[RFC3748] Section 7.2.1 describes thewireless medium, or act as an access point. As a result, new ciphersuites have been proposed for use with wireless LANs [IEEE-802.11i] which provide per-packet authentication, integrity"key strength" andreplay protection. In addition, mutual authentication"session independence" security claims, andkey derivation, provided byand [RFC4017] requires use of EAP methodssuchsupporting these claims asEAP-TLS [RFC2716] are required [IEEE-802.11i], sowell asto address the threatbeing capable ofrogue devices, and provideproviding an equivalent key strength of 128 bits or greater. AAA The AAA protocol needs to ensure that transported keying materialto bind the initial authentication to subsequent data traffic. Ifis fresh and is not utilized outside its recommended lifetime. Replay protection is necessary for key freshness, but an attacker can deliver a stale (and therefore potentially compromised) key in a replay-protected message, so replay protection is not sufficient. The EAP Session-ID, derived from theselectedEAPmethod does not support mutual authentication, thenType and Method-ID (based on thepeer will be vulnerable to attacknonces contributed byrogue authenticators and backend authentication servers. IftheEAP method does not derive keys, then TSKs will not be available for use with a negotiated ciphersuite,peer andthere will be no binding betweenserver) enables theinitialEAPauthenticationpeer, authenticator andsubsequent data traffic, leaving the session vulnerableserver tohijack. Ifdistinguish EAP conversations. However, unless thebackend authentication server does not protect againstauthenticatormasquerade, or provide the proper bindingkeeps track of EAP Session-IDs, theAAA- Key toauthenticator cannot use thesession withinSession-ID to guarantee theAAA-Token, then one or more AAA-Keys may befreshness of EAP keying material. As described in [RFC3580] Section 3.17, When senttoin anunauthorized party, and an attacker may be able to gain access toAccess- Accept along with a Termination-Action value of RADIUS-Request, thenetwork. IfSession-Timeout attribute specifies theAAA-Token ismaximum number of seconds of service provided prior toan untrusted AAA intermediary, thenre-authentication. [IEEE-802.11i] also utilizes the Session-Timeout attribute to limit the maximum time thatintermediaryEAP keying material may beable to modifycache. Therefore theAAA-Key, oruse of theattributes associated with it, as described in [RFC2607]. IfSession-Timeout attribute enables the AAA server to limit the exposure of EAP keying material. Lower Layer The lower layer Secure Association Protocoldoes not provide mutual proof of possession ofMUST generate a fresh session key for each session, even if theAAA-Key material, thenkeying material and parameters provided by EAP methods are cached, or the peerwill notor authenticator lacks a high entropy random number generator. A RECOMMENDED method is for the peer and authenticator to each provide a nonce or counter of at least 128 bits, used in session key derivation. 5.9. Elevation of Privilege Parties MUST NOT haveassuranceaccess to keying material that is not needed to perform their own role. A party has access to a particular key if it has access to all of the secret information needed to derive it. If a post-EAP handshake isconnectedused to establish session keys, thecorrect authenticator, only thatpost-EAP handshake MUST specify the scope for session keys. Transported EAP keying material is permitted to be accessed by the EAP peer, authenticator andbackend authenticationserver. The EAP peer and servershare a trust relationship (since AAA protocols support mutual authentication). This distinction can become important when multiple authenticators receive AAA-Keys fromderive thebackend authentication server, such as where fast handoff is supported. Iftransported keying material during theTSK derivation does not provide for protected ciphersuiteprocess of mutually authenticating each other using the selected EAP method. During the Aboba, et al. Standards Track [Page 40] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 Secure Association Protocol, the EAP peer utilizes the transported EAP keying material to demonstrate to the authenticator that it is the same party that authenticated to the EAP server andcapabilities negotiation, then downgrade attackswas authorized by it. The EAP authenticator utilizes the transported EAP keying material to prove to the peer not only that the EAP conversation was transported through it (this could be demonstrated by a man-in-the-middle), but that it was uniquely authorized by the EAP server to provide the peer with access to the network. Unique authorization can only be demonstrated if the EAP authenticator does not share the transported keying material with a party other than the EAP peer and server. TSKs arepossible. 6.4.permitted to be accessed only by the EAP peer and authenticator. Since the TSKs can be determined from the transported EAP keying material and the cleartext of the Secure Association Protocol exchange, the AAA server will have access to the TSKs unless it deletes the transported EAP keying material after sending it. 5.10. Man-in-the-middle Attacks As described in [I-D.puthenkulam-eap-binding], EAP method sequences and compound authentication mechanisms may be subject to man-in-the- middle attacks. When such attacks are successfully carried out, the attacker acts as an intermediary between a victim and a legitimate authenticator. This allows the attacker to authenticate successfully to the authenticator, as well as to obtain access to the network.Aboba, et al. Standards Track [Page 47] INTERNET-DRAFT EAP Key Management Framework 17 July 2005In order to prevent these attacks, [I-D.puthenkulam-eap-binding] recommends derivation of a compound key by which the EAP peer and server can prove that they have participated in the entire EAP exchange. Since the compound key must not be known to an attacker posing as an authenticator, and yet must be derived from quantities that are exported by EAP methods, it may be desirable to derive the compound key from a portion of the EMSK. In order to provide proper key hygiene, it is recommended that the compound key used for man-in- the-middle protection be cryptographically separate from other keys derived from theEMSK, such as fast handoff keys, discussed in Section 2.3. 6.5.EMSK. 5.11. Denial of Service AttacksTheKey cachingof security associationsmay result in vulnerability to denial of service attacks.Since an EAP peer may derive multiple EAP SAs with a given EAP server, and creation of a new EAP SA does not implicitly delete a previous EAP SA,For example, EAP methods thatresult in creation ofcreate persistent state may be vulnerable to denial of service attacksbyon the EAP server by a rogue EAP peer.As a result,To address this vulnerability, EAP methods creating persistent state may wish to limit thenumber of cached EAP SAs (Phase 1a) corresponding topersistent state created by an EAP peer. For example, for each peer an EAP server may choose toonly retainlimit persistent Aboba, et al. Standards Track [Page 41] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 state to a few EAPSAs for each peer.conversations, distinguished by the EAP Session- ID. This prevents a rogue peer from denying access to other peers. Similarly,an authenticator may have multiple AAA-Key SAs corresponding to a given EAP peer;to conserve resources an authenticator may choose to limit thenumber of cached AAA-Key (Phase 1 b) SAs forpersistent state corresponding to each peer. This can be accomplished by limiting each peer to persistent sttate corresponding to a few EAP converations, distinguished by the EAP Session-ID. Depending on the media, creation ofanewunicast Secure Association SATSKs may or may not imply deletion ofa previous unicast secure association SA.previously derived TSKs. Where there is no implied deletion, the authenticator may choose to limitPhase 2 (unicastthe number of TSKs andmulticast) Secure Association SAsassociated state that can be stored for each peer.6.6.5.12. Impersonation Both the RADIUS and Diameter protocols are potentially vulnerable to impersonation by a rogue authenticator. While AAA protocols such as RADIUS [RFC2865] or Diameter [RFC3588] support mutual authentication between the authenticator (known as the AAA client) and the backend authentication server (known as the AAA server), the security mechanisms vary according to the AAA protocol.Aboba, et al. Standards Track [Page 48] INTERNET-DRAFT EAP Key Management Framework 17 July 2005In RADIUS, the shared secret used for authentication is determined by the source address of the RADIUS packet. As noted in [RFC3579] Section 4.3.7, it is highly desirable that the source address be checked against one or more NAS identification attributes so as to detect and prevent impersonation attacks. When RADIUS requests are forwarded by a proxy, the NAS-IP-Address or NAS-IPv6-Address attributes may not correspond to the source address. Since the NAS-Identifier attribute need not contain an FQDN, it also may not correspond to the source address, even indirectly. [RFC2865] Section 3 states: A RADIUS server MUST use the source IP address of the RADIUS UDP packet to decide which shared secret to use, so that RADIUS requests can be proxied. This implies that it is possible for a rogue authenticator to forge NAS-IP-Address, NAS-IPv6-Address or NAS-Identifier attributes within a RADIUS Access-Request in order to impersonate another authenticator. Among other things, this can result in messages (andMSKs)transorted keying material) being sent to the wrong authenticator. Since the rogue authenticator is authenticated by the RADIUS proxy or server purely based on the source address, other mechanisms are required to detect the forgery. In addition, it is possible for attributes such as the Called-Station-Id and Calling-Station-Id to be Aboba, et al. Standards Track [Page 42] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 forged as well. As recommended in[RFC3579],[RFC3579] Section 4.3.7, this vulnerability can be mitigated by having RADIUS proxies checkauthenticatorNAS identification attributes against the source address.To allow verification of session parameters such as the Called- Station- Id and Calling-Station-Id, these can be sent by the EAP peer to the server, protected by the TEKs. The RADIUS server can then check the parameters sent by the EAP peer against those claimed by the authenticator. If a discrepancy is found, an error can be logged.While [RFC3588] requires use of the Route-Record AVP, this utilizes FQDNs, so that impersonation detection requires DNS A/AAAA and PTR RRs to be properly configured. As a result, it appears that Diameter is as vulnerable to this attack as RADIUS, if not more so. To address this vulnerability, it is necessary to allow the backend authentication server to communicate with the authenticator directly, such as via the redirect functionality supported in [RFC3588].Aboba, et al. Standards Track [Page 49] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 6.7.5.13. ChannelbindingBinding It is possible for a compromised or poorly implemented EAP authenticator to communicate incorrect information to the EAP peer and/or server. This may enable an authenticator to impersonate another authenticator or communicate incorrect information via out- of-band mechanisms (such as via AAA or the lowerlayer protocol).layer). Where EAP is used in pass-through mode, the EAP peertypicallydoes not verify the identity of the pass-throughauthenticator, it only verifies thatauthenticator. Within thepass-throughSecure Association Protocol, the EAP peer and authenticatoris trusted byonly demonstrate mutual possession of the transported EAPserver.keying material. This creates a potential security vulnerability, described in [RFC3748] Section 7.15. [RFC3579] Section 4.3.7 describes how an EAP pass-through authenticator acting as a AAA client can be detected if it attempts to impersonate another authenticator (such by sending incorrectNAS- IdentifierCalled-Station-ID [RFC2865], NAS-Identifier [RFC2865], NAS-IP-Address [RFC2865] or NAS-IPv6-Address [RFC3162] attributes via the AAA protocol). However, it is possible for a pass-through authenticator acting as a AAA client to provide correct information to the AAA server while communicating misleading information to the EAP peer viaathe lowerlayer protocol.layer. For example,it is possible fora compromised authenticatortocan utilize another authenticator's Called-Station-Id or NAS-Identifier in communicating with the EAP peer viaathe lowerlayer protocol,layer, or for a pass-through authenticator acting as a AAA client to provide an incorrect peer Calling-Station-Id [RFC2865][RFC3580] to the AAA server via the AAA protocol. As noted in [RFC3748] Section 7.15, this vulnerability can be addressed byuse ofEAP methods that support a protected exchange of channel Aboba, et al. Standards Track [Page 43] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 properties such as endpoint identifiers, including (but not limited to): Called-Station-Id [RFC2865][RFC3580], Calling-Station-Id [RFC2865][RFC3580], NAS-Identifier [RFC2865], NAS-IP-Address [RFC2865], and NAS-IPv6-Address [RFC3162]. Using such a protected exchange, it is possible to match the channel properties provided by the authenticator via out-of-band mechanisms against those exchanged within the EAP method. For example, see[ServiceIdent]. 7. Security Requirements This section summarizes the security requirements that must be met by EAP methods, AAA protocols, Secure Association Protocols and Ciphersuites in order[I- D.arkko-eap-service-identity-auth]. It is also possible toaddress the security threats described inachieve Channel Bindings without transporting data over EAP. For example, see [draft-ohba-eap-aaakey-binding]. In thisdocument. These requirements MUST be met by specifications Aboba, et al. Standards Track [Page 50] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 requesting publication as an RFC. Each requirement provides a pointer toapproach thesections of this document describingauthenticator informs thethreat that it mitigates. 7.1. EAP Method Requirements It is possible forbackend server about thepeerChannel Binding parameters using AAA, andEAPthe backend serverto mutually authenticate and derive keys. In order to providecalculates transported keying material based on this parameter set, making it impossible foruse inthe peer and authenticator to complete the Secure Association Protocol if there was asubsequently negotiated ciphersuite,mismatch in the parameters. The main difference between these approaches is that Channel Binding support within an EAP methodsupporting key derivation MUST export a Master Session Key (MSK) of at least 64 octets, and an Extended Master Session Key (EMSK) of at least 64 octets. EAP Methods deriving keys MUST provide for mutual authentication betweenmay require upgrading or changing the EAP method, impacting both the peer and theEAP Server. The MSKserver. Where Channel Bindings are implemented in AAA, the peer, authenticator andEMSK MUST NOT be used directlythe backend server need toprotect data; however, they are of sufficient size to enable derivation of a AAA-Key subsequently used to derive Transient Session Keys (TSKs) for use with the selected ciphersuite. Each ciphersuite is responsible for specifying how to derive the TSKs from the AAA-Key. The AAA-Key is derived from the keying material exported bybe upgraded, but the EAP method(MSK and EMSK).need not be modified. 6. IANA Considerations Thisderivation occurs on the AAA server. In many existing protocols that use EAP, the AAA-Key and MSK are equivalent, but more complicated mechanisms are possible. EAP methods SHOULD ensure the freshness of the MSK and EMSK even in cases where one party maydocument does nothave a high quality random number generator. A RECOMMENDED method iscreate any new name spaces nor does it allocate any protocol parameters. 7. References 7.1. Normative References [RFC2119] Bradner, S., "Key words foreach party to provide a nonce of at least 128 bits, useduse inthe derivation of the MSK and EMSK. EAP methods export the MSKRFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. [RFC2434] Narten, T. andEMSKH. Alvestrand, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 2434, October 1998. [RFC3748] Aboba, B., Blunk, L., Vollbrecht, J., Carlson, J. andnot Transient Session Keys so as to allowH. Lefkowetz, "Extensible Authentication Protocol (EAP)", RFC 3748, June 2004. Aboba, et al. Standards Track [Page 44] INTERNET-DRAFT EAPmethods to be ciphersuiteKey Management Framework 23 October 2005 7.2. Informative References [Analysis] He, C. andmedia independent. Keying material exported by EAP methods MUST be independentJ. Mitchell, "Analysis of theciphersuite negotiated to protect data. Depending on802.11i 4-Way Handshake", Proceedings of thelower layer, EAP methods may run before or after ciphersuite negotiation, so that the selected ciphersuite may not be known to the EAP method. By providing keying material usable with any ciphersuite, EAP methods can used with a wide range2004 ACM Workshop on Wireless Security, pp. 43-50, ISBN: 1-58113-925-X. [CTP] Loughney, J., Nakhjiri, M., Perkins, C. and R. Koodli, "Context Transfer Protocol", draft-ietf-seamoby-ctp-11.txt, Internet draft (work in progress), August 2004. [DESMODES] National Institute ofciphersuitesStandards andmedia. It is RECOMMENDED that methods providing integrity protectionTechnology, "DES Modes ofEAP packets include coverageOperation", FIPS PUB 81, December 1980, <http:// www.itl.nist.gov/fipspubs/fip81.htm>. [FIPSDES] National Institute ofall the EAP header fields, including the Code, Identifier, Length, TypeStandards andType-Data fields. In order to preserve algorithm independence, EAP methods deriving keys SHOULD support (and document) the protected negotiation of the ciphersuite used to protect the EAP conversation between the peerTechnology, "Data Encryption Standard", FIPS PUB 46, January 1977. [Housley] Housley, R. and B. Aboba,et al. Standards Track [Page 51] INTERNET-DRAFT EAP"AAA KeyManagement Framework 17 July 2005 server. This is distinct from the ciphersuite negotiated between the peerManagement", draft-housley- aaa-key-mgmt-00.txt, Internet draft (work in progress), June 2005. [IEEE-802] Institute of Electrical andauthenticator, used to protect data. The strengthElectronics Engineers, "IEEE Standards for Local and Metropolitan Area Networks: Overview and Architecture", ANSI/IEEE Standard 802, 1990. [IEEE-802.11] Institute ofTransient Session Keys (TSKs) used to protect data is ultimately dependent on the strengthElectrical and Electronics Engineers, "Information technology - Telecommunications and information exchange between systems - Local and metropolitan area networks - Specific Requirements Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications", IEEE IEEE Standard 802.11-2003, 2003. [IEEE-802.1X] Institute ofkeys generated by the EAP method. If an EAP method cannot produce keying material of sufficient strength, then the TSKs may be subject to brute force attack. In order to enable deployments requiring strong keys, EAP methods supporting key derivation SHOULD be capable of generating an MSKElectrical andEMSK, each with an effective key strength of at least 128 bits. Methods supporting key derivation MUST demonstrate cryptographic separation between the MSKElectronics Engineers, "Local andEMSK branches of the EAP key hierarchy. Without violating a fundamental cryptographic assumption (such as the non-invertibility of a one-way function) an attacker recovering the MSK or EMSK MUST NOT be able to recover the other quantity with a level of effort less than brute force. Non-overlapping substrings of the MSK MUST be cryptographically separate from each other. That is, knowledge of one substring MUST NOT help in recovering some other non-overlapping substring without breaking some hard cryptographic assumption. This is required because some existing ciphersuites form TSKs by simply splitting the AAA-Key to pieces of appropriate length. Likewise, non-overlapping substringsMetropolitan Area Networks: Port-Based Network Access Control", IEEE Standard 802.1X-2004, December 2004. [IEEE-802.1Q] Institute ofthe EMSK MUST be cryptographically separate from each other,Electrical andfrom substrings of the MSK. The EMSK MUST NOT be transported to, or shared with, additional parties. Since EAP does not provideElectronics Engineers, "IEEE Standards forexplicit key lifetime negotiation, EAP peers, authenticatorsLocal andauthentication servers MUST be preparedMetropolitan Area Networks: Draft Standard forsituations in which oneVirtual Bridged Local Area Networks", IEEE Standard 802.1Q/D8, January 1998. Aboba, et al. Standards Track [Page 45] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 [IEEE-802.11i] Institute ofthe parties discards key state which remains valid on another party. The developmentElectrical andvalidation of key derivation algorithms is difficult,Electronics Engineers, "Supplement to STANDARD FOR Telecommunications andas a result EAP methods SHOULD reuse well establishedInformation Exchange between Systems - LAN/MAN Specific Requirements - Part 11: Wireless Medium Access Control (MAC) andanalyzed mechanismsphysical layer (PHY) specifications: Specification forMSKEnhanced Security", IEEE 802.11i, December 2004. [IEEE-802.11F] Institute of Electrical andEMSK key derivation (such as those specified in IKE [RFC2409] or TLS [RFC2246]), rather than inventing new ones. 7.1.1. Requirements for EAP methods In orderElectronics Engineers, "Recommended Practice for Multi-Vendor Access Point Interoperability via anEAP method to meet the guidelinesInter-Access Point Protocol Across Distribution Systems Supporting IEEE 802.11 Operation", IEEE 802.11F, July 2003. [IEEE-02-758] Mishra, A., Shin, M., Arbaugh, W., Lee, I. and K. Jang, "Proactive Caching Strategies forEMSK usage it must meet the following requirements: o It MUST specify howIAPP Latency Improvement during 802.11 Handoff", IEEE 802.11 Working Group, IEEE-02-758r1-F Draft 802.11I/D5.0, November 2002. [IEEE-03-084] Mishra, A., Shin, M., Arbaugh, W., Lee, I. and K. Jang, "Proactive Key Distribution toderive the EMSK o The key material used for the EMSK MUST besupport fast and secure roaming", IEEE 802.11 Working Group, IEEE-03-084r1-I, http://www.ieee802.org/11/Documents/DocumentHolder/ 3-084.zip, January 2003. [IEEE-03-155] Aboba, B., "Fast Handoff Issues", IEEE 802.11 Working Group, IEEE-03-155r0-I, http://www.ieee802.org/11/ Documents/DocumentHolder/3-155.zip, March 2003. [I-D.ietf-roamops-cert] Aboba, B., "Certificate-Based Roaming", draft-ietf-roamops- cert-02 (work in progress), April 1999. [I-D.puthenkulam-eap-binding] Puthenkulam, J., "The Compound Authentication Binding Problem", draft-puthenkulam-eap-binding-04 (work in progress), October 2003. [I-D.arkko-pppext-eap-aka] Arkko, J. and H. Haverinen, "EAP AKA Authentication", draft- arkko-pppext-eap-aka-15.txt (work in progress), December 2004. [I-D.arkko-eap-service-identity-auth] Arkko, J. and P. Eronen, "Authenticated Service Information Aboba, et al. Standards Track [Page52]46] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005computationally independent offor theMSK and TEKs. o The EMSK MUST NOT be used for any other purpose than the key derivation described in this document. o The EMSK MUST be secret and not known to someone observing the authentication mechanism protocol exchange. o The EMSK MUST NOT be exported from the EAP server. o The EMSK MUST be unique for each session. o The EAP mechanism SHOULD a unique identifier suitable for naming the EMSK. 7.1.2. Requirements for EAP applications In order for an application to meet the guidelines for EMSK usage it must meet the following requirements: o New applications following this specification SHOULD NOT use the MSK. If more than one application uses the MSK, then the cryptographic separation is not achieved. Implementations SHOULD prevent such combinations. o A peer MUST NOT use the EMSK directly for cryptographic protection of data. 7.2. AAAExtensible Authentication ProtocolRequirements AAA protocols suitable for use in transporting EAP MUST provide the following facilities: Security services AAA protocols used for transport of EAP keying material MUST implement and SHOULD use per-packet integrity and authentication, replay protection and confidentiality. These requirements are met by Diameter EAP [I-D.ietf-aaa-eap], as well as RADIUS over IPsec [RFC3579]. Session Keys AAA protocols used for transport of EAP keying material MUST implement and SHOULD use dynamic key management in order to derive fresh session keys, as(EAP)", draft- arkko-eap-service-identity-auth-02.txt (work inDiameter EAP [I-D.ietf-aaa-eap] and RADIUS over IPsec [RFC3579], rather than using a static key, as originally definedprogress), May 2005. [I-D.ohba-eap-aaakey-binding] Ohba, Y., "AAA-Key Derivation with Channel Binding", draft- ohba-eap-aaakey-binding-00.txt (work inRADIUS [RFC2865]. Mutual authentication AAA protocols used for transport of EAP keying material MUST Aboba, et al. Standards Track [Page 53] INTERNET-DRAFT EAPprogress), May 2005. [IKEv2] Kaufman, C., "Internet KeyManagement Framework 17 July 2005 provide for mutual authentication between the authenticator and backend authentication server. These requirements are met by Diameter EAP [I-D.ietf-aaa-eap] as well as by RADIUS EAP [RFC3579]. Authorization AAA protocols used for transport of EAP keying material SHOULD provide protection against rogue authenticators masquerading as other authenticators. This can be accomplished, for example, by requiring that AAA agents check the source address of packets against the origin attributes (Origin-Host AVP in Diameter, NAS-IP- Address, NAS-IPv6-Address, NAS-Identifier in RADIUS). For details, see [RFC3579] Section 4.3.7. Key transport Since EAP methods do not export Transient Session Keys (TSKs) in order to maintain media and ciphersuite independence, the AAA server MUST NOT transport TSKs from the backend authentication server to authenticator. Key transport specification In order to enable backend authentication servers to provide keying material to the authenticator in a well defined format, AAA protocols suitable for use with EAP MUST define the format and wrapping of the AAA-Token. EMSK transport Since the EMSK is a secret known only to the backend authentication server and peer, the AAA-Token MUST NOT transport the EMSK from the backend authentication server to the authenticator. AAA-Token protection To ensure against compromise, the AAA-Token MUST be integrity protected, authenticated, replay protected and encrypted in transit, using well-established cryptographic algorithms. Session Keys The AAA-Token SHOULD be protected with session keys as in Diameter [RFC3588] or RADIUS over IPsec [RFC3579] rather than static keys, as in [RFC2548]. Key naming In order to ensure against confusion between the appropriate keying material to be used in a given Secure Association Protocol exchange, the AAA-Token SHOULD include explicit key names and context appropriate for informing the authenticator how the keying material is to be used. Aboba, et al. Standards Track [Page 54] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 Key Compromise Where untrusted intermediaries are present, the AAA-Token SHOULD NOT be provided to the intermediaries. In Diameter, handling of keys by intermediaries can be avoided using Redirect functionality [RFC3588]. 7.3. Secure Association Protocol Requirements The Secure Association Protocol supports the following: Entity Naming The peer and authenticator SHOULD identify themselves in a manner that is independent of their attached ports. Mutual proof of possession The peer and authenticator MUST each demonstrate possession of the keying material transported between the backend authentication server and authenticator (AAA-Key). Key Naming The Secure Association Protocol MUST explicitly name the keys used in the proof of possession exchange, so as to prevent confusion when more than one set of keying material could potentially be used as the basis for the exchange. Creation and Deletion In order to support the correct processing of phase 2 security associations, the Secure Association (phase 2) protocol MUST support the naming of phase 2 security associations and associated transient session keys, so that the correct set of transient session keys can be identified for processing a given packet. The phase 2 Secure Association Protocol also MUST support transient session key activation and SHOULD support deletion, so that establishment and re-establishment of transient session keys can be synchronized between the parties. Integrity and Replay Protection The Secure Association Protocol MUST support integrity and replay protection of all messages. Direct operation Since the phase 2 Secure Association Protocol is concerned with the establishment of security associations between the EAP peer and authenticator, including the derivation of transient session keys, only those parties have "a need to know" the transient session keys. The Secure Association Protocol MUST operate directly between the peer and authenticator, and MUST NOT be passed-through to the backend authentication server, or include additional parties. Aboba, et al. Standards Track [Page 55] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 Derivation of transient session keys The Secure Association Protocol negotiation MUST support derivation of unicast and multicast transient session keys suitable for use with the negotiated ciphersuite. TSK freshness The Secure Association (phase 2) Protocol MUST support the derivation of fresh unicast and multicast transient session keys, even when the keying material provided by the backend authentication server is not fresh. This is typically supported by including an exchange of nonces within the Secure Association Protocol. Bi-directional operation While some ciphersuites only require a single set of transient session keys to protect traffic in both directions, other ciphersuites require a unique set of transient session keys in each direction. The phase 2 Secure Association Protocol SHOULD provide for the derivation of unicast and multicast keys in each direction, so as not to require two separate phase 2 exchanges in order to create a bi-directional phase 2 security association. Secure capabilities negotiation The Secure Association Protocol MUST support secure capabilities negotiation. This includes security parameters such as the security association identifier (SAID) and ciphersuites, as well as negotiation of the lifetime of the TSKs, AAA-Key and exported EAP keys. Secure capabilities negotiation also includes confirmation of the capabilities discovered during the discovery phase (phase 0), so as to ensure that the announced capabilities have not been forged. Key Scoping The Secure Association Protocol MUST ensure the synchronization of key scope between the peer and authenticator. This includes negotiation of restrictions on key usage. 7.4. Ciphersuite Requirements Ciphersuites suitable for keying by EAP methods MUST provide the following facilities: TSK derivation In order to allow a ciphersuite to be usable within the EAP keying framework, a specification MUST be provided describing how transient session keys suitable for use with the ciphersuite are derived from the AAA-Key. Aboba, et al. Standards Track [Page 56] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 EAP method independence Algorithms for deriving transient session keys from the AAA-Key MUST NOT depend on the EAP method. However, algorithms for deriving TEKs MAY be specific to the EAP method. Cryptographic separation The TSKs derived from the AAA-Key MUST be cryptographically separate from each other. Similarly, TEKs MUST be cryptographically separate from each other. In addition, the TSKs MUST be cryptographically separate from the TEKs. 8. IANA Considerations This document does not create any new name spaces nor does it allocate any protocol parameters. 9. References 9.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. [RFC2434] Narten, T. and H. Alvestrand, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 2434, October 1998. [RFC3748] Aboba, B., Blunk, L., Vollbrecht, J., Carlson, J. and H. Lefkowetz, "Extensible Authentication Protocol (EAP)", RFC 3748, June 2004. 9.2. Informative References [CTP] Loughney, J., Nakhjiri, M., Perkins, C. and R. Koodli, "Context Transfer Protocol", draft-ietf-seamoby-ctp-11.txt, Internet draft (work in progress), August 2004. [DESMODES] National Institute of Standards and Technology, "DES Modes of Operation", FIPS PUB 81, December 1980, <http:// www.itl.nist.gov/fipspubs/fip81.htm>. [FIPSDES] National Institute of Standards and Technology, "Data Encryption Standard", FIPS PUB 46, January 1977. [Housley] Housley, R. and B. Aboba, "AAA Key Management", draft-housley- aaa-key-mgmt-00.txt, Internet draft (work in progress), June 2005..IP [IEEE-802] Institute of Electrical and Electronics Aboba, et al. Standards Track [Page 57] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 Engineers, "IEEE Standards for Local and Metropolitan Area Networks: Overview and Architecture", ANSI/IEEE Standard 802, 1990. [IEEE-802.11] Institute of Electrical and Electronics Engineers, "Information technology - Telecommunications and information exchange between systems - Local and metropolitan area networks - Specific Requirements Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications", IEEE IEEE Standard 802.11-2003, 2003. [IEEE-802.1X] Institute of Electrical and Electronics Engineers, "Local and Metropolitan Area Networks: Port-Based Network Access Control", IEEE Standard 802.1X-2004, December 2004. [IEEE-802.1Q] Institute of Electrical and Electronics Engineers, "IEEE Standards for Local and Metropolitan Area Networks: Draft Standard for Virtual Bridged Local Area Networks", IEEE Standard 802.1Q/D8, January 1998. [IEEE-802.11i] Institute of Electrical and Electronics Engineers, "Supplement to STANDARD FOR Telecommunications and Information Exchange between Systems - LAN/MAN Specific Requirements - Part 11: Wireless Medium Access Control (MAC) and physical layer (PHY) specifications: Specification for Enhanced Security", IEEE 802.11i, December 2004. [IEEE-802.11F] Institute of Electrical and Electronics Engineers, "Recommended Practice for Multi-Vendor Access Point Interoperability via an Inter-Access Point Protocol Across Distribution Systems Supporting IEEE 802.11 Operation", IEEE 802.11F, July 2003. [IEEE-02-758] Mishra, A., Shin, M., Arbaugh, W., Lee, I. and K. Jang, "Proactive Caching Strategies for IAPP Latency Improvement during 802.11 Handoff", IEEE 802.11 Working Group, IEEE-02-758r1-F Draft 802.11I/D5.0, November 2002. [IEEE-03-084] Mishra, A., Shin, M., Arbaugh, W., Lee, I. and K. Jang, "Proactive Key Distribution to support fast and secure roaming", IEEE 802.11 Working Group, IEEE-03-084r1-I, Aboba, et al. Standards Track [Page 58] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 http://www.ieee802.org/11/Documents/DocumentHolder/ 3-084.zip, January 2003. [IEEE-03-155] Aboba, B., "Fast Handoff Issues", IEEE 802.11 Working Group, IEEE-03-155r0-I, http://www.ieee802.org/11/ Documents/DocumentHolder/3-155.zip, March 2003. [I-D.ietf-roamops-cert] Aboba, B., "Certificate-Based Roaming", draft-ietf-roamops- cert-02 (work in progress), April 1999. [I-D.ietf-aaa-eap] Eronen, P., Hiller, T. and G. Zorn, "Diameter Extensible Authentication Protocol (EAP) Application", draft-ietf-aaa- eap-10 (work in progress), November 2004. [I-D.puthenkulam-eap-binding] Puthenkulam, J., "The Compound Authentication Binding Problem", draft-puthenkulam-eap-binding-04 (work in progress), October 2003. [I-D.arkko-pppext-eap-aka] Arkko, J. and H. Haverinen, "EAP AKA Authentication", draft- arkko-pppext-eap-aka-15.txt (work in progress), December 2004. [IKEv2] Kaufman, C., "Internet Key Exchange (IKEv2) Protocol", draft- ietf-ipsec-ikev2-17 (work in progress), September 2004. [MD5Attack] Dobbertin, H., "The Status of MD5 After a Recent Attack", CryptoBytes, Vol.2 No.2, 1996. [RFC0793] Postel, J., "Transmission Control Protocol", STD 7, RFC 793, September 1981. [RFC1661] Simpson, W., "The Point-to-Point Protocol (PPP)", STD 51, RFC 1661, July 1994. [RFC1968] Meyer, G. and K. Fox, "The PPP Encryption Control Protocol (ECP)", RFC 1968, June 1996. [RFC2104] Krawczyk, H., Bellare, M. and R. Canetti, "HMAC: Keyed-Hashing for Message Authentication", RFC 2104, February 1997. [RFC2246] Dierks, T., Allen, C., Treese, W., Karlton, P., Freier, A. and P. Kocher, "The TLS Protocol Version 1.0", RFC 2246, January 1999. Aboba, et al. Standards Track [Page 59] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 [RFC2401] Kent, S. and R. Atkinson, "Security Architecture for the Internet Protocol", RFC 2401, November 1998. [RFC2409] Harkins, D. and D. Carrel, "The Internet Key Exchange (IKE)", RFC 2409, November 1998. [RFC2419] Sklower, K. and G. Meyer, "The PPP DES Encryption Protocol, Version 2 (DESE-bis)", RFC 2419, September 1998. [RFC2420] Kummert, H., "The PPP Triple-DES Encryption Protocol (3DESE)", RFC 2420, September 1998. [RFC2516] Mamakos, L., Lidl, K., Evarts, J., Carrel, D., Simone, D. and R. Wheeler, "A Method for Transmitting PPP Over Ethernet (PPPoE)", RFC 2516, February 1999. [RFC2548] Zorn, G., "Microsoft Vendor-specific RADIUS Attributes", RFC 2548, March 1999. [RFC2607] Aboba, B. and J. Vollbrecht, "Proxy Chaining and Policy Implementation in Roaming", RFC 2607, June 1999. [RFC2716] Aboba, B. and D. Simon, "PPP EAP TLS Authentication Protocol", RFC 2716, October 1999. [RFC2865] Rigney, C., Willens, S., Rubens, A. and W. Simpson, "Remote Authentication Dial In User Service (RADIUS)", RFC 2865, June 2000. [RFC3078] Pall, G. and G. Zorn, "Microsoft Point-To-Point Encryption (MPPE) Protocol", RFC 3078, March 2001. [RFC3079] Zorn, G., "Deriving Keys for use with Microsoft Point-to-Point Encryption (MPPE)", RFC 3079, March 2001. [RFC3579] Aboba, B. and P. Calhoun, "RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP)", RFC 3579, September 2003. [RFC3580] Congdon, P., Aboba, B., Smith, A., Zorn, G. and J. Roese, "IEEE 802.1X Remote Authentication Dial In User Service (RADIUS) Usage Guidelines", RFC 3580, September 2003. [RFC3588] Calhoun, P., Loughney, J., Guttman, E., Zorn, G. and J. Arkko, "Diameter Base Protocol", RFC 3588, September 2003. [RFC3766] Orman, H. and P. Hoffman, "Determining Strengths For Public Keys Used For Exchanging Symmetric Keys", RFC 3766, April Aboba, et al. Standards Track [Page 60] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 2004. [RFC4017] Stanley, D., Walker, J. and B. Aboba, "EAP Method Requirements for Wireless LANs", RFC 4017, March 2005. [8021XHandoff] Pack, S. and Y. Choi, "Pre-Authenticated Fast Handoff in a Public Wireless LAN Based on IEEE 802.1X Model", School of Computer Science and Engineering, Seoul National University, Seoul, Korea, 2002. Acknowledgments Thanks to Arun Ayyagari, Ashwin Palekar, and Tim Moore of Microsoft, Dorothy Stanley of Agere, Bob Moskowitz of TruSecure, Jesse Walker of Intel, Joe Salowey of Cisco and Russ Housley of Vigil Security for useful feedback. Author Addresses Bernard Aboba Microsoft Corporation One Microsoft Way Redmond, WA 98052 EMail: bernarda@microsoft.com Phone: +1 425 706 6605 Fax: +1 425 936 7329 Dan Simon Microsoft Research Microsoft Corporation One Microsoft Way Redmond, WA 98052 EMail: dansimon@microsoft.com Phone: +1 425 706 6711 Fax: +1 425 936 7329 Jari Arkko Ericsson Jorvas 02420 Finland Phone: EMail: jari.arkko@ericsson.com Pasi Eronen Aboba, et al. Standards Track [Page 61] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 Nokia Research Center P.O. Box 407 FIN-00045 Nokia Group Finland EMail: pasi.eronen@nokia.com Henrik Levkowetz (editor) ipUnplugged AB Arenavagen 27 Stockholm S-121 28 SWEDEN Phone: +46 708 32 16 08 EMail: henrik@levkowetz.com Aboba, et al. Standards Track [Page 62] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 Appendix A - Ciphersuite Keying Requirements To date, PPP and IEEE 802.11 ciphersuites are suitable for keying by EAP. This Appendix describes the keying requirements of common PPP and 802.11 ciphersuites. PPP ciphersuites include DESEbis [RFC2419], 3DES [RFC2420], and MPPE [RFC3078]. The DES algorithm is described in [FIPSDES], and DES modes (such as CBC, used in [RFC2419] and DES-EDE3-CBC, used in [RFC2420]) are described in [DESMODES]. For PPP DESEbis, a single 56-bit encryption key is required, used in both directions. For PPP 3DES, a 168-bit encryption key is needed, used in both directions. As described in [RFC2419] for DESEbis and [RFC2420] for 3DES, the IV, which is different in each direction, is "deduced from an explicit 64-bit nonce, which is exchanged in the clear during the [ECP] negotiation phase." There is therefore no need for the IV to be provided by EAP. For MPPE, 40-bit, 56-bit or 128-bit encryption keys are required in each direction, as described in [RFC3078]. No initialization vector is required. While these PPP ciphersuites provide encryption, they do not provide per-packet authentication or integrity protection, so an authentication key is not required in either direction. Within [IEEE-802.11], Transient Session Keys (TSKs) are required both for unicast traffic as well as for multicast traffic, and therefore separate key hierarchies are required for unicast keys and multicast keys. IEEE 802.11 ciphersuites include WEP-40, described in [IEEE-802.11], which requires a 40-bit encryption key, the same in either direction; and WEP-128, which requires a 104-bit encryption key, the same in either direction. These ciphersuites also do not support per-packet authentication and integrity protection. In addition to these unicast keys, authentication and encryption keys are required to wrap the multicast encryption key. Recently, new ciphersuites have been proposed for use with IEEE 802.11 that provide per-packet authentication and integrity protection as well as encryption [IEEE-802.11i]. These include TKIP, which requires a single 128-bit encryption key and two 64-bit authentication keys (one for each direction); and AES CCMP, which requires a single 128-bit key (used in both directions) in order to authenticate and encrypt data. As with WEP, authentication and encryption keys are also required to wrap the multicast encryption (and possibly, authentication) keys. Aboba, et al. Standards Track [Page 63] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 Appendix B - Transient EAP Key (TEK) Hierarchy Figure B-1 illustrates the TEK key hierarchy for EAP-TLS [RFC2716], which is based on the TLS key hierarchy described in [RFC2246]. The TLS-negotiated ciphersuite is used to set up a protected channel for use in protecting the EAP conversation, keyed by the derived TEKs. The TEK derivation proceeds as follows: master_secret = TLS-PRF-48(pre_master_secret, "master secret", client.random || server.random) TEK = TLS-PRF-X(master_secret, "key expansion", server.random || client.random) Where: TLS-PRF-X = TLS pseudo-random function defined in [RFC2246], computed to X octets. | | | | | pre_master_secret | server| | | client Random| V | Random | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | | | | | +---->| master_secret |<------+ | | (TMS) | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | | | | | | V V V +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | Key Block | | (TEKs) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | | | client | server | client | server | client | server | MAC | MAC | write | write | IV | IV | | | | | | V V V V V V Figure B-1 - TLS [RFC2246] Key Hierarchy Aboba, et al. Standards Track [Page 64] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 Appendix C - EAP-TLS Key Hierarchy In EAP-TLS [RFC2716], the MSK is divided into two halves, corresponding to the "Peer to Authenticator Encryption Key" (Enc- RECV-Key, 32 octets, also known as the PMK) and "Authenticator to Peer Encryption Key" (Enc-SEND-Key, 32 octets). In [RFC2548], the Enc-RECV-Key (the PMK) is transported in the MS-MPPE-Recv-Key attribute, and the Enc-SEND-Key is transported in the MS-MPPE-Send- Key attribute. The EMSK is also divided into two halves, corresponding to the "Peer to Authenticator Authentication Key" (Auth-RECV-Key, 32 octets) and "Authenticator to Peer Authentication Key" (Auth-SEND-Key, 32 octets). The IV is a 64 octet quantity that is a known value; octets 0-31 are known as the "Peer to Authenticator IV" or RECV-IV, and Octets 32-63 are known as the "Authenticator to Peer IV", or SEND-IV. In EAP-TLS, the MSK, EMSK and IV are derived from the TLS master secret via a one-way function. This ensures that the TLS master secret cannot be derived from the MSK, EMSK or IV unless the one-way function (TLS PRF) is broken. Since the MSK is derived from the the TLS master secret, if the TLS master secret is compromised then the MSK is also compromised. The key derivation scheme specified in RFC 2716 that was specified prior to the introduction of the terminology MSK and EMSK MUST be interpreted as follows: MSK = TLS-PRF-64(TMS, "client EAP encryption", client.random || server.random) EMSK = second 64 octets of: TLS-PRF-128(TMS, "client EAP encryption", client.random || server.random) IV = TLS-PRF-64("", "client EAP encryption", client.random || server.random) AAA-Key(0,31) = Peer to Authenticator Encryption Key (Enc-RECV-Key) (MS-MPPE-Recv-Key in [RFC2548]). Also known as the PMK. AAA-Key(32,63)= Authenticator to Peer Encryption Key (Enc-SEND-Key) (MS-MPPE-Send-Key in [RFC2548]) EMSK(0,31) = Peer to Authenticator Authentication Key (Auth-RECV-Key) EMSK(32,63) = Authenticator to Peer Authentication Key (Auth-Send-Key) IV(0,31) = Peer to Authenticator Initialization Vector (RECV-IV) IV(32,63) = Authenticator to Peer Initialization vector (SEND-IV) Where: Aboba, et al. Standards Track [Page 65] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 AAA-Key(W,Z) = Octets W through Z includes of the AAA-Key. IV(W,Z) = Octets W through Z inclusive of the IV. MSK(W,Z) = Octets W through Z inclusive of the MSK. EMSK(W,Z) = Octets W through Z inclusive of the EMSK. TMS = TLS master_secret TLS-PRF-X = TLS PRF function defined in [RFC2246] computed to X octets client.random = Nonce generated by the TLS client. server.random = Nonce generated by the TLS server. Figure C-1 describes the process by which the MSK,EMSK,IV and ultimately the TSKs, are derived from the TLS Master Secret. ---+ | ^ | TLS Master Secret (TMS) | | | V | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | EAP | | Master Session Key (MSK) | Method | | Derivation | | | | V +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ EAP ---+ | | | API ^ | MSK | EMSK | IV | | | | | V V V v +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---+ | | | | | | | backend authentication server | | | | | | | V +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---+ | | ^ | AAA-Key(0,31) | AAA-Key(32,63) | | (PMK) | Transported | | | via AAA | | | | V V V +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---+ | | ^ | Ciphersuite-Specific Transient Session | Auth.| | Key Derivation | | | | V +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---+ Figure C-1 - EAP TLS [RFC2716] Key hierarchy Aboba, et al. Standards Track [Page 66] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 Appendix D - Example Transient Session Key (TSK) Derivation Within IEEE 802.11 RSN, the Pairwise Transient Key (PTK), a transient session key used to protect unicast traffic, is derived from the PMK (octets 0-31 of the MSK), known in [RFC2716] as the Peer to Authenticator Encryption Key. In [IEEE-802.11i], the PTK is derived from the PMK via the following formula: PTK = EAPOL-PRF-X(PMK, "Pairwise key expansion", Min(AA,SA) || Max(AA, SA) || Min(ANonce,SNonce) || Max(ANonce,SNonce)) Where: PMK = AAA-Key(0,31) SA = Station MAC address (Calling-Station-Id) AA = Access Point MAC address (Called-Station-Id) ANonce = Access Point Nonce SNonce = Station Nonce EAPOL-PRF-X = Pseudo-Random Function based on HMAC-SHA1, generating a PTK of size X octets. TKIP uses X = 64, while CCMP, WRAP, and WEP use X = 48. The EAPOL-Key Confirmation Key (KCK) is used to provide data origin authenticity in the TSK derivation. It utilizes the first 128 bits (bits 0-127) of the PTK. The EAPOL-Key Encryption Key (KEK) provides confidentialityExchange (IKEv2) Protocol", draft- ietf-ipsec-ikev2-17 (work inthe TSK derivation. It utilizes bits 128-255 of the PTK. Bits 256-383progress), September 2004. [MD5Attack] Dobbertin, H., "The Status of MD5 After a Recent Attack", CryptoBytes, Vol.2 No.2, 1996. [RFC0793] Postel, J., "Transmission Control Protocol", STD 7, RFC 793, September 1981. [RFC1661] Simpson, W., "The Point-to-Point Protocol (PPP)", STD 51, RFC 1661, July 1994. [RFC1968] Meyer, G. and K. Fox, "The PPP Encryption Control Protocol (ECP)", RFC 1968, June 1996. [RFC2104] Krawczyk, H., Bellare, M. and R. Canetti, "HMAC: Keyed-Hashing for Message Authentication", RFC 2104, February 1997. [RFC2246] Dierks, T., Allen, C., Treese, W., Karlton, P., Freier, A. and P. Kocher, "The TLS Protocol Version 1.0", RFC 2246, January 1999. [RFC2401] Kent, S. and R. Atkinson, "Security Architecture for thePTK are used by Temporal Key 1,Internet Protocol", RFC 2401, November 1998. [RFC2409] Harkins, D. andBits 384-511 are used by TemporalD. Carrel, "The Internet Key2. Usage of TK1Exchange (IKE)", RFC 2409, November 1998. [RFC2419] Sklower, K. andTK2 is ciphersuite specific. Details are available in [IEEE-802.11i].G. Meyer, "The PPP DES Encryption Protocol, Version 2 (DESE-bis)", RFC 2419, September 1998. [RFC2420] Kummert, H., "The PPP Triple-DES Encryption Protocol (3DESE)", RFC 2420, September 1998. [RFC2516] Mamakos, L., Lidl, K., Evarts, J., Carrel, D., Simone, D. and R. Wheeler, "A Method for Transmitting PPP Over Ethernet (PPPoE)", RFC 2516, February 1999. Aboba, et al. Standards Track [Page67]47] INTERNET-DRAFT EAP Key Management Framework17 July 2005 Appendix E - Exported Parameters in Existing Methods This Appendix specifies Method-ID, Peer-ID, Server-ID and Key- Lifetime for EAP methods that have been published prior to this specification. Future EAP method specifications MUST include a definition of the Method-ID, Peer-ID,23 October 2005 [RFC2548] Zorn, G., "Microsoft Vendor-specific RADIUS Attributes", RFC 2548, March 1999. [RFC2607] Aboba, B. andServer-ID (could be the empty string)J. Vollbrecht, "Proxy Chaining andMAY also define the Key-Lifetime (assumed to be indeterminate if not described). EAP-Identity The EAP-Identity method does not derive keys,Policy Implementation in Roaming", RFC 2607, June 1999. [RFC2716] Aboba, B. andtherefore does not define the Key-Lifetime or Method-ID. The Peer-ID exported by the Identity method is determined by the octets included within the EAP- Response/Identity. The Server-ID is the empty string (zero length). EAP-Notification The EAP-Notification method does not derive keysD. Simon, "PPP EAP TLS Authentication Protocol", RFC 2716, October 1999. [RFC2865] Rigney, C., Willens, S., Rubens, A. andtherefore does not define the Key-LifetimeW. Simpson, "Remote Authentication Dial In User Service (RADIUS)", RFC 2865, June 2000. [RFC3078] Pall, G. andMethod-ID. The Peer-IDG. Zorn, "Microsoft Point-To-Point Encryption (MPPE) Protocol", RFC 3078, March 2001. [RFC3079] Zorn, G., "Deriving Keys for use with Microsoft Point-to-Point Encryption (MPPE)", RFC 3079, March 2001. [RFC3579] Aboba, B. andServer-ID are the empty string (zero length). EAP-GTC The EAP-GTC method does not derive keysP. Calhoun, "RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP)", RFC 3579, September 2003. [RFC3580] Congdon, P., Aboba, B., Smith, A., Zorn, G. andtherefore does not define the Key-LifetimeJ. Roese, "IEEE 802.1X Remote Authentication Dial In User Service (RADIUS) Usage Guidelines", RFC 3580, September 2003. [RFC3588] Calhoun, P., Loughney, J., Guttman, E., Zorn, G. and J. Arkko, "Diameter Base Protocol", RFC 3588, September 2003. [RFC3766] Orman, H. andMethod-ID. The Peer-IDP. Hoffman, "Determining Strengths For Public Keys Used For Exchanging Symmetric Keys", RFC 3766, April 2004. [RFC4005] Calhoun, P., Zorn, G., Spence, D. andServer-ID are the empty string. EAP-OTP The EAP-OTP method does not derive keysD. Mitton, "Diameter Network Access Server Application", RFC 4005, August 2005. [RFC4017] Stanley, D., Walker, J. andtherefore does not define the Key-LifetimeB. Aboba, "EAP Method Requirements for Wireless LANs", RFC 4017, March 2005. [RFC4072] Eronen, P., Hiller, T. andMethod-ID. The Peer-IDG. Zorn, "Diameter Extensible Authentication Protocol (EAP) Application", RFC 4072, August 2005. [8021XHandoff] Pack, S. andServer-ID are the empty string. EAP-TLS The EAP-TLS Method-Id is the concatenationY. Choi, "Pre-Authenticated Fast Handoff in a Public Wireless LAN Based on IEEE 802.1X Model", School ofthe peerComputer Science andserver nonces. The Peer-IDEngineering, Seoul National University, Aboba, et al. Standards Track [Page 48] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 Seoul, Korea, 2002. Acknowledgments Thanks to Arun Ayyagari, Ashwin Palekar, andServer-ID are the contentsTim Moore ofthe altSubjectName in the peerMicrosoft, Dorothy Stanley of Agere, Bob Moskowitz of TruSecure, Jesse Walker of Intel, Joe Salowey of Cisco andserver certificates. EAP-TLS does not negotiate a Key-Lifetime. EAP-AKA The EAP-AKA Method-Id is the contentsRuss Housley ofthe RAND field from theVigil Security for useful feedback. Author Addresses Bernard Aboba Microsoft Corporation One Microsoft Way Redmond, WA 98052 EMail: bernarda@microsoft.com Phone: +1 425 706 6605 Fax: +1 425 936 7329 Dan Simon Microsoft Research Microsoft Corporation One Microsoft Way Redmond, WA 98052 EMail: dansimon@microsoft.com Phone: +1 425 706 6711 Fax: +1 425 936 7329 Jari Arkko Ericsson Jorvas 02420 Finland Phone: EMail: jari.arkko@ericsson.com Pasi Eronen Nokia Research Center P.O. Box 407 FIN-00045 Nokia Group Finland EMail: pasi.eronen@nokia.com Henrik Levkowetz (editor) ipUnplugged AB Aboba, et al. Standards Track [Page68]49] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005AT_RAND attribute, followed byArenavagen 27 Stockholm S-121 28 SWEDEN Phone: +46 708 32 16 08 EMail: henrik@levkowetz.com Aboba, et al. Standards Track [Page 50] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 Appendix A - EAP-TLS Key Hierarchy EAP-TLS [RFC 2716] was documented prior to thecontentsdevelopment of EAP key management terminology [RFC3748], and therefore does not explicitly define theAUTN field inMSK and EMSK. In EAP-TLS, theAT_AUTN attribute. The Peer-ID isMSK, EMSK and IV are derived from thecontents ofTLS master secret via a one-way function. This ensures that theIdentity fieldTLS master secret cannot be derived from theAT_IDENTITY attribute, using onlyMSK, EMSK or IV unless theActual Identity Length octetsone-way function (TLS PRF) is broken. Since the MSK is derived from thebeginning, however. Note thatthecontents are used as they are transmitted, regardless of whetherTLS master secret, if thetransmitted identity was a permanent, pseudonym, or fast reauthentication identity. The Server- IDTLS master secret isan empty string. EAP-AKA does not negotiate a key lifetime. EAP-SIM The Method-Idcompromised then the MSK is also compromised. [RFC2716] specifies that thecontents ofMSK is divided into two halves, corresponding to theRAND field from"Peer to Authenticator Encryption Key" (Enc- RECV-Key, 32 octets, also known as theAT_RAND attribute, followed byPMK) and "Authenticator to Peer Encryption Key" (Enc-SEND-Key, 32 octets). In [RFC2548], the Enc-RECV-Key (the PMK) is transported in thecontents ofMS-MPPE-Recv-Key attribute, and theNONCE_MT fieldEnc-SEND-Key is transported in theAT_NONCE_MTMS-MPPE-Send- Key attribute. ThePeer-IDEMSK is also divided into two halves, corresponding to thecontents of the Identity field from the AT_IDENTITY attribute, using only the Actual Identity Length octets from the beginning, however. Note"Peer to Authenticator Authentication Key" (Auth-RECV-Key, 32 octets) and "Authenticator to Peer Authentication Key" (Auth-SEND-Key, 32 octets). The IV is a 64 octet quantity thatthe contentsis a known value; octets 0-31 areusedknown astheythe "Peer to Authenticator IV" or RECV-IV, and Octets 32-63 aretransmitted, regardless of whetherknown as thetransmitted identity was a permanent, pseudonym,"Authenticator to Peer IV", orfast reauthentication identity.SEND-IV. TheServer- ID is an empty string. EAP-SIM does not negotiate akeylifetime.derivation scheme MUST be interpreted as follows: MSK = TLS-PRF-64(TMS, "client EAP encryption", client.random || server.random) EMSK = second 64 octets of: TLS-PRF-128(TMS, "client EAP encryption", client.random || server.random) IV = TLS-PRF-64("", "client EAP encryption", client.random || server.random) MSK(0,31) = Peer to Authenticator Encryption Key (Enc-RECV-Key) (MS-MPPE-Recv-Key in [RFC2548]). Also known as the PMK. MSK(32,63) = Authenticator to Peer Encryption Key (Enc-SEND-Key) (MS-MPPE-Send-Key in [RFC2548]) EMSK(0,31) = Peer to Authenticator Authentication Key (Auth-RECV-Key) EMSK(32,63) = Authenticator to Peer Authentication Key (Auth-Send-Key) IV(0,31) = Peer to Authenticator Initialization Vector (RECV-IV) IV(32,63) = Authenticator to Peer Initialization vector (SEND-IV) Aboba, et al. Standards Track [Page69]51] INTERNET-DRAFT EAP Key Management Framework17 July 2005 Appendix F - Security Association Examples EAP Method SA Example: EAP-TLS In EAP-TLS [RFC2716], after the EAP authentication the client (peer) and server can store the following information: o Implicitly, the EAP method this SA refers to (EAP-TLS) o Session identifier (a value selected by23 October 2005 Where: IV(W,Z) = Octets W through Z inclusive of theserver) o CertificateIV. MSK(W,Z) = Octets W through Z inclusive of theother party (server storesMSK. EMSK(W,Z) = Octets W through Z inclusive of theclient's certificate and vice versa) o Ciphersuite and compression method oEMSK. TMS = TLSMaster secret (known as the EAP-TLS Master Key) o SA lifetime (ensuring that the SA is not stored forever) o If the client has multiple different credentials (certificates and corresponding private keys), a pointermaster_secret TLS-PRF-X = TLS PRF function defined in [RFC2246] computed tothose credentials WhenX octets client.random = Nonce generated by theserver initiates EAP-TLS,TLS client. server.random = Nonce generated by theclient can look upTLS server. Figure A-1 illustrates the TEK key hierarchy for EAP-TLSSA[RFC2716], which is based on thecredentials it was going to use (certificate and private key), and the expected credentials (certificate or name) of the server. If an EAP-TLS SA exists, and it is not too old, the client informs the server about the existence of this SA by including its Session-Id in theTLSClientHello message.key hierarchy described in [RFC2246]. Theserver then looksTLS-negotiated ciphersuite is used to set up a protected channel for use in protecting thecorrect SA based on the Session-Id (or detects that it doesn't yet have one). EAP Method SA Example: EAP-AKA In EAP-AKA [I-D.arkko-pppext-eap-aka], afterEAPauthentication the client and server can store the following information: o Implicitly,conversation, keyed by theEAP method this SA refers to (EAP-AKA) o A re-authentication pseudonym oderived TEKs. Theclient's permanent identity (IMSI) o Replay protection counter o Authentication key (K_aut) o Encryption key (K_encr) o Original MasterTEK derivation proceeds as follows: master_secret = TLS-PRF-48(pre_master_secret, "master secret", client.random || server.random) TEK = TLS-PRF-X(master_secret, "key expansion", server.random || client.random) Where: TLS-PRF-X = TLS pseudo-random function defined in [RFC2246], computed to X octets. | | pre_master_secret | server| | | client Random| V | Random | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | +---->| master_secret |<------+ | | (TMS) | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | V V V +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Key(MK) o SA lifetime (ensuring that the SA is not stored forever) When the server initiates EAP-AKA, theBlock (TEKs) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | | | clientcan look up the EAP-AKA SA based on the credentials it was going to use (permanent identity). If an EAP-AKA SA exists, and it is not too old, the| server | clientinforms the| serverabout the existence of this SA by sending its re- authentication pseudonym as its identity in EAP Identity Response message, instead of its permanent identity. The| client | serverthen looks up the correct SA based on this identity.| MAC | MAC | write | write | IV | IV | | | | | | V V V V V V Figure A-1 - TLS [RFC2246] Key Hierarchy Aboba, et al. Standards Track [Page70]52] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005AAA SA Example: RADIUS In RADIUS, where shared secret authentication is used,Appendix B - Exported Parameters in Existing Methods This Appendix specifies Method-ID, Peer-ID, Server-ID and Key- Lifetime for EAP methods that have been published prior to this specification. Future EAP method specifications MUST include a definition of theclientMethod-ID, Peer-ID, andserver store each other's IP addressServer-ID (could be the empty string) and MAY also define the Key-Lifetime (assumed to be indeterminate if not described). EAP-Identity The EAP-Identity method does not derive keys, and therefore does not define the Key-Lifetime or Method-ID. The Peer-ID exported by theshared secret, whichIdentity method isused to calculatedetermined by theResponse Authenticator [RFC2865] and Message- Authenticator [RFC3579] values, and to encrypt some attributes (such asoctets included within theAAA-Key, see [RFC3580] Section 3.16). Where IPsec is used to protect RADIUS [RFC3579] and IKEEAP- Response/Identity. The Server-ID isused for key management,theparties store information necessary to authenticateempty string (zero length). EAP-Notification The EAP-Notification method does not derive keys andauthorizetherefore does not define theother party (e.g. certificates, trust anchorsKey-Lifetime andnames).Method-ID. TheIKE exchange results in IKE Phase 1Peer-ID andPhase 2 SAs containing information used to protect the conversation (session keys, selected ciphersuite, etc.) AAA SA Example: Diameter with TLS When using Diameter protected by TLS,Server-ID are theparties store information necessary to authenticateempty string (zero length). EAP-GTC The EAP-GTC method does not derive keys andauthorizetherefore does not define theother party (e.g. certificates, trust anchorsKey-Lifetime andnames).Method-ID. TheTLS handshake results in a short-term TLS SA that contains information used to protect the actual communications (session keys, selected TLS ciphersuite, etc.). Service SA Example: 802.11i [IEEE802.11i] Section 8.4.1.1 definesPeer-ID and Server-ID are thesecurity associations used within IEEE 802.11. A summary follows;empty string. EAP-OTP The EAP-OTP method does not derive keys and therefore does not define thestandard should be consulted for details. o Pairwise Master Key Security Association (PMKSA)Key-Lifetime and Method-ID. ThePMKSA is a bi-directional SA, used by both parties for sendingPeer-ID andreceiving.Server-ID are the empty string. EAP-TLS ThePMKSAEAP-TLS Method-Id is theRoot Service SA. It is created onconcatenation of the peerwhen EAP authentication completes successfully or a pre-shared key is configured.and server nonces. ThePMKSA is created onPeer-ID and Server-ID are theauthenticator whencontents of thePMK is received or created onaltSubjectName in theauthenticator orpeer and server certificates. EAP-TLS does not negotiate apre-shared key is configured.Key-Lifetime. EAP-AKA ThePMKSAEAP-AKA Method-Id isused to createthePTKSA. PMKSAs are cached for their lifetimes. The PMKSA consistscontents of thefollowing elements: - PMKID (security association identifier) - Authenticator MAC address - PMK - Lifetime - Authenticated Key Management Protocol (AKMP) - Authorization parameters specified by the AAA server or by local configuration. This can include parameters such asRAND field from thepeer's authorized SSID.Aboba, et al. Standards Track [Page71]53] INTERNET-DRAFT EAP Key Management Framework17 July23 October 2005On the peer, this information can be locally configured. - Key replay counters (for EAPOL-Key messages) - Reference to PTKSA (if any), needed to: o delete it (e.g. AAA server-initiated disconnect) o replace it when a new four-way handshake is done - Reference to accounting context,AT_RAND attribute, followed by thedetailscontents ofwhich depend on the accounting protocol used,theimplementation and administrative details. In RADIUS, this could include (e.g. packet and octet counters, and Acct-Multi-Session-Id). o Pairwise Transient Key Security Association (PTKSA) The PTKSA is a bi-directional SA created asAUTN field in theresult of a successful four-way handshake.AT_AUTN attribute. ThePTKSAPeer-ID isa unicast service SA. There may only be one PTKSA between a pair of peer and authenticator MAC addresses. PTKSAs are cached forthelifetimecontents of thePMKSA. Since the PTKSA is tied toIdentity field from thePMKSA, itAT_IDENTITY attribute, using onlyhastheadditional informationActual Identity Length octets from the4-way handshake. The PTKSA consists ofbeginning, however. Note that thefollowing: - Key (PTK) - Selected ciphersuite - MAC addressescontents are used as they are transmitted, regardless of whether theparties - Replay counters, and ciphersuite specific state - Reference to PMKSA: This is needed when: o A new four-way handshake is needed (lifetime, TKIP countermeasures), and we need to know which PMKSA to use o Group Transient Key Security Association (GTKSA)transmitted identity was a permanent, pseudonym, or fast re- authentication identity. TheGTKSAServer-ID is an empty string. EAP- AKA does not negotiate auni-directional SA created based on the four-way handshake or the groupkeyhandshake.lifetime. EAP-SIM TheGTKSAMethod-Id isa multicast service SA. A GTKSA consiststhe contents of thefollowing: - Direction vector (whetherRAND field from theGTK is used for transmit or receive) - Group cipher suite selector - Key (GTK) - Authenticator MAC address - Via reference to PMKSA, or copied here: o Authorization parameters o Reference to accounting context Service SA Example: IKEv2/IPsec Note that this exampleAT_RAND attribute, followed by the contents of the NONCE_MT field in the AT_NONCE_MT attribute. The Peer-ID isintended to be informative, and it does not necessarily include all information stored. Aboba, et al. Standards Track [Page 72] INTERNET-DRAFT EAP Key Management Framework 17 July 2005 o IKEv2 SA - Protocol version - Identitiesthe contents of theparties - IKEv2 SPIs - Selected ciphersuite - Replay protection counters (Message ID) - Keys for protecting IKEv2 messages (SK_ai/SK_ar/SK_ei/SK_er) - Key for deriving keys for IPsec SAs (SK_d) - Lifetime information - OnIdentity field from theauthenticator, service authorization information receivedAT_IDENTITY attribute, using only the Actual Identity Length octets from thebackend authentication server. When processing an incoming message,beginning, however. Note that thecorrect SA is looked up based oncontents are used as they are transmitted, regardless of whether theSPIs. o IPsec SAs/SPD - Traffic selectors - Replay protection counters - Selected ciphersuite - IPsec SPI - Keys - Lifetime information - Protocol mode (tunneltransmitted identity was a permanent, pseudonym, ortransport)fast re- authentication identity. Thecorrect SAServer-ID islooked up based on SPI (for inbound packets), or SPD traffic selectors (for outbound traffic). A separate IPsec SA exists for each direction.an empty string. EAP- SIM does not negotiate a key lifetime. Intellectual Property Statement The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79. Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr.Aboba, et al. Standards Track [Page 73] INTERNET-DRAFT EAP Key Management Framework 17 July 2005The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf- ipr@ietf.org. Aboba, et al. Standards Track [Page 54] INTERNET-DRAFT EAP Key Management Framework 23 October 2005 Disclaimer of Validity This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Copyright Statement Copyright (C) The Internet Society (2005). This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights. Acknowledgment Funding for the RFC Editor function is currently provided by the Internet Society. Open Issues Open issues relating to this specification are tracked on the following web site: http://www.drizzle.com/~aboba/EAP/eapissues.html Aboba, et al. Standards Track [Page74]55] ----