view Side-By-Side changes
EAP Working Group Bernard Aboba INTERNET-DRAFT Dan Simon Category: Standards Track Microsoft<draft-ietf-eap-keying-10.txt><draft-ietf-eap-keying-11.txt> J. Arkko5 March3 April 2006 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 onAugust 22,October 10, 2006. Copyright Notice Copyright (C) The Internet Society 2006. Abstract The Extensible Authentication Protocol (EAP), defined in [RFC3748], enables extensible network access authentication. This document provides a framework for the 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 Framework5 March3 April 2006 Table of Contents 1. Introduction .......................................... 3 1.1 Requirements Language ........................... 3 1.2 Terminology ..................................... 3 1.3 Overview ........................................ 5 1.4 EAP Key Hierarchy ............................... 8 1.5 Security Goals .................................. 11 1.6 EAP Invariants ..................................912 2. Lower Layer Operation .................................1215 2.1Overview ........................................ 12 2.2 Layering ........................................ 14 2.3Transient Session Keys .......................... 162.42.2 Authenticator Architecture ......................19 2.5 Key Scope ....................................... 2218 3. Key Management ........................................2422 3.1 Secure Association Protocol .....................2422 3.2 Key Scope ....................................... 25 3.3 Parent-Child Relationships ......................27 3.326 3.4 Local Key Lifetimes .............................27 3.426 3.5 Exported and Calculated Key Lifetimes ...........28 3.527 3.6 Key Cache Synchronization .......................29 3.628 3.7 Key Strength ....................................30 3.729 3.8 Key Wrap ........................................3129 4. Handoff Vulnerabilities ...............................3130 4.1 Authorization ...................................3230 4.2 Correctness .....................................3332 5. Security Considerations ..............................3634 5.1Security Terminology ............................ 36 5.2Threat Model ....................................36 5.335 5.2 Authenticator Compromise ........................37 5.436 5.3 Spoofing ........................................38 5.536 5.4 Downgrade Attacks ...............................39 5.637 5.5 Unauthorized Disclosure .........................39 5.738 5.6 Replay Protection ...............................41 5.839 5.7 Key Freshness ...................................42 5.940 5.8 Elevation of Privilege ..........................43 5.1041 5.9 Man-in-the-Middle Attacks .......................44 5.1142 5.10 Denial of Service Attacks .......................44 5.1242 5.11 Impersonation ...................................45 5.1343 5.12 Channel Binding .................................4644 6. IANA Considerations ...................................4745 7. References ............................................4745 7.1 Normative References ............................4745 7.2 Informative References ..........................4746 Acknowledgments ..............................................5250 Author's Addresses ...........................................5350 Appendix A - Exported Parameters in Existing Methods .........5452 Intellectual Property Statement ..............................5553 Disclaimer of Validity .......................................5654 Copyright Statement ..........................................5654 Aboba, et al. Standards Track [Page 2] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006 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].[IEEE-802.1X], wireless networks such as [IEEE-802.11i] and [IEEE-802.16e], and IKEv2 [RFC4306]. This document provides a framework for the 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 protocolsorand used by Secure Association Protocols in the generation or transport of 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 inBCP 14[RFC2119]. 1.2. Terminology This document frequently uses the following terms: AAA Authentication, Authorization and Accounting. AAA protocols with EAP support include RADIUS [RFC3579] and Diameter [RFC4072]. In this document, the terms "AAA server" and "backend authentication server" are used interchangeably. 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 [Page 3] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006AAA Authentication, Authorization and Accounting. AAA protocols with EAP support include RADIUS [RFC3579] and Diameter [RFC4072]. In this document, the terms "AAA server" and "backend authentication server" are used interchangeably. EAP serverChannel Binding Theentity that terminates thecommunication within an EAPauthenticationmethodwith the peer. In the case where no backend authentication server is used, the EAPof integrity-protected channel properties such as endpoint identifiers which can be compared to values communicated via out of band mechanisms (such as via a AAA or lower layer protocol). 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. AAA-Key The term AAA-Key is synonymous with MSK. 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) Lower layers use the MSK in lower-layer dependent manner. For instance, in [IEEE-802.11i] Octets 0-31 of the MSK are known as theAboba, et al. Standards Track [Page 4] INTERNET-DRAFT EAP Key Management Framework 5 March 2006Pairwise Master Key (PMK). In [IEEE-802.11i] the TKIP and AES CCMP ciphersuites derive their Transient Session Keys (TSKs) solely from Aboba, et al. Standards Track [Page 4] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 the PMK, whereas the WEP ciphersuite as noted in [RFC3580], derives its TSKs from both halves of the MSK. In [802.16e], the MSK is truncated to4020 octets for PMK and 20 octets for PMK2. 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. 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. Transient Session Keys (TSKs) Session keys used to protect data exchanged after EAP authentication has successfully completed, using the ciphersuite negotiated between the EAP peer and authenticator.AAA-Key The term AAA-Key is synonymous with MSK.1.3. OverviewEAP, defined in [RFC3748],Where EAP key derivation isa two-party protocol spoken betweensupported, the conversation typically takes place in three phases: Phase 0: Discovery Phase 1: Authentication 1a: EAPpeerauthentication 1b: AAA Key Transport (optional) Phase 2: Secure Association Protocol 2a: Unicast Secure Association 2b: Multicast Secure Association (optional) Of these phases, Phase 0, 1b andserver. Within EAP, keying materialPhase 2 are handled external to EAP. Phases 0 and 2 are handled by the lower layer protocol and phase 1b isgeneratedtypically handled byEAP 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 root the long term credential utilized by the selected EAP method. If authentication is based onapre-shared key, the parties storeAAA protocol. In theEAP method to be useddiscovery phase (phase 0), peers locate authenticators andthe pre-shared key. The EAP server also stores the peer's identity as well as other information associated with it. This informationdiscover their capabilities. A peer maybe used to determine whetherlocate an authenticator providing access tosome service should be granted. Thea particular network, or a peerstores information necessary to choose which secret to use formay locate an authenticator behind a bridge with whichservice. If authentication is based on proof of possession of the private key correspondingit desires tothe public key contained withinestablish acertificate, 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'sSecure Association. Discovery can occur manually or automatically, Aboba, et al. Standards Track [Page 5] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006identity and the peer stores information necessary to choose which certificate to use for which service. Baseddepending on thelong term credential established between the peer and the server,lower layer over which EAPmethods derive two types of keys: [1] Keys calculated locally by theruns. EAPmethod but not exported by thepeer Authenticator Auth. Server -------- ------------- ------------ |<----------------------------->| | | Discovery (phase 0) | | |<----------------------------->|<----------------------------->| | EAPmethod, such asauth (phase 1a) | AAA pass-through (optional) | | | | | |<----------------------------->| | | AAA Key transport | | | (optional; phase 1b) | |<----------------------------->| | | Unicast Secure association | | | (phase 2a) | | | | | |<----------------------------->| | | Multicast Secure association | | | (optional; phase 2b) | | | | | Figure 1: Conversation Overview The authentication phase (phase 1) may begin once theTEKs. [2] Keying material exported bypeer and authenticator discover each other. This phase, if it occurs, always includes EAP authentication (phase 1a). Where the chosen EAPmethod: MSK, EMSK, IV. As notedmethod supports key derivation, in[RFC3748] Section 7.10,phase 1a EAPmethods generating keys are required to calculate and exportkeying material is derived on both theMSKpeer andEMSK,the EAP server. An additional step (phase 1b) is required in deployments whichmust be at least 64 octetsinclude a backend authentication server, inlength. EAP methods also may exportorder to transport keying material from theIV; however,backend authentication server to theuse ofauthenticator. In order to obey theIVprinciple of Mode Independence (see Section 1.6.1), where a backend server isdeprecated.present, all keying material which is required by the lower layer needs to be transported from the EAPmethods also MAY export method-specific peer andserveridentifiers (peer-ID and server-ID), a method-specific EAP conversation identifier known as the Method-ID, andto thelifetime of the exported keys, known as 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-IDauthenticator. Since existing TSK derivation andServer-ID uniquely specifies the endpoints oftransport techniques depend solely on theEAP method exchange when they are provided. Peer-ID As describedMSK, in[RFC3748] Section 7.3,existing implementations, this is theidentity providedonly keying material replicated in theEAP-Response/Identity, may be different from the peer identity authenticated by the EAP method. Where theAAA key transport phase 1b. Successful completion of EAPmethod authenticates the peer identity, that identity is exportedauthentication and key derivation bythe method as the Peer-ID. A suitable EAPa peername may not always be available. Where anand EAPmethodserver does notdefine a method-specific peer identity, the Peer-ID isnecessarily imply that thenull string. The Peer-ID for existing EAP methodspeer isdefined in Appendix A. Server-ID Wherecommitted to joining the network associated with an EAPmethod authenticates the server identity, that identityserver. Rather, this commitment isexportedimplied by themethod ascreation of a security association between theServer-ID. A suitable EAP server name may not always be available. Where anEAPmethod does not define a method-specificpeeridentity, the Server-ID isand authenticator, as part of thenull string.Secure Association Protocol (phase 2). TheServer-ID for existing EAP methods is definedSecure Association Protocol exchange (phase 2) occurs between the peer and authenticator inAppendix A.order to manage the creation and deletion of unicast (phase 2a) Aboba, et al. Standards Track [Page 6] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---+ | | ^ | EAP Method | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+ | | | | | | | | | | | EAP Method Key |<->| Long-Term | | | | | Derivation | | Credential | | | | | | | | | | | | | +-+-+-+-+-+-+-+ | Local to | | | | | EAP | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Method | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+-+ | | | | | TEK | |MSK, EMSK | |IV | | | | | |Derivation | |Derivation | |Derivation | | | | | | | | | |(Deprecated) | | | | | +-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+-+ | | | | ^ | | | | | | | | | | V +-+-|-+-+-+-+-+-+-+-+-|-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+ ---+ | | | | ^ | Peer-ID, | | | Exported | | Server-ID, | Channel | MSK (64+B) | IV (64B) by | | Method-ID, | Bindings | EMSK (64+B) | (Optional) EAP | | Key-Lifetime | & Result | | Method | V V V V V Figure 1: EAP Method Parameter Import/Export Method-ID EAP method specifications deriving keys MUST specify a temporally unique method identifier known as the Method-ID. The EAP Method-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 Appendix A. 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 Aboba, et al. Standards Track [Page 7] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 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 to avoid introducing media dependencies, EAP methods that transport Channel Binding data MUST treat this 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. Key Naming Each key created within the EAP key management framework has a name (a unique identifier), as well as a scope (the parties to whom the key is available). The scope of exported parameters is defined by the EAP peer name (if securely exchanged within the method) and the EAP server name (also only if securely exchanged). Where a peer or server name is missing the null string is used. MSK and EMSK Names These parameters are exported by the EAP peer and EAP server, and can be referred to using the EAP Session-ID and a binary or textual indication of the parameter being referred to. PMK Name This document does not specify a naming scheme for the PMK. The PMK is only identified by the key from which it is derived. Note: IEEE 802.11i names the PMKID for the purposes of being able Aboba, et al. Standards Track [Page 8] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 to refer to it in the 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 The TEKs may or may not be named. Their naming is specified in the EAP method. TSK Name The TSKs are typically named. Their naming is specified in the lower 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 as "EAP Invariants", hold true for EAP implementations on all media: Mode independence Media independence Method independence Ciphersuite independence 1.4.1. Mode Independence 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. Where authenticators are deployed standalone, the EAP conversation occurs between the peer and authenticator, and the authenticator must locally implement an EAP method acceptable to the peer. However, one of the advantages of EAP is that it enables deployment of new authentication methods without requiring development of new code on the authenticator. While the authenticator may implement some EAP methods locally and use those methods to authenticate local users, it may at the same time act as a pass-through for other users and methods, forwarding EAP packets back and forth between the backend authentication server and the peer. This is accomplished by encapsulating EAP packets within the Authentication, Authorization and Accounting (AAA) protocol, spoken between the authenticator and backend authentication server. AAA protocols supporting EAP include RADIUS [RFC3579] and Diameter [RFC4072]. It is a fundamental property of EAP that at the EAP method layer, the conversation between the EAP peer 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 Aboba, et al. Standards Track [Page 9] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 and parameter import/export, regardless of whether the authenticator is operating as a pass-through or not. The successful completion of an EAP method that supports key derivation results in the export of keying material on the EAP peer and server. Even though the EAP peer or server may import Channel- Bindings that may include the identity of the EAP authenticator, this information is treated as opaque octets. As a result, within EAP the only relevant identities are the Peer-IDandServer-ID. Channel Bindings are only interpreted by the lower layer. Within EAP, the primary function of the AAA protocol is to maintain the principle of Mode Independence, so that as far asmulticast (phase 2b) security associations between theEAPpeeris concerned, its conversation with the EAP authenticator,andall consequences of that conversation, are identical, regardless of the authenticator mode of operation. 1.4.2. Media Independence One ofauthenticator. The conversation between thegoals of EAPparties isto allowshown in Figure 1. 1.3.1. Examples Existing EAPmethods to function on anylowerlayer meeting the criteria outlined in [RFC3748], Section 3.1. For example, as describedlayers implement phase 0, 2a and 2b in[RFC3748], EAP authentication can be run overdifferent ways: PPP[RFC1661], IEEE 802 wired networks [IEEE-802.1X], and IEEE 802.11 wireless LANs [IEEE-802.11i]. In order to maintain media independence,PPP, defined in [RFC1661] does not support discovery, nor does itis necessaryinclude a Secure Association Protocol. PPPOE PPPOE, defined in [RFC2516], includes support for a Discovery stage (phase 0). In this step, the EAP peer sends a PPPoE Active Discovery Initiation (PADI) packet toavoid consideration of media-specific elements. For example, EAP methods cannot be assumed to have knowledge ofthelower layer over which they are transported, and cannot be restricted to identifiers associatedbroadcast address, indicating the service it is requesting. The Access Concentrator replies with aparticular 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 needPPPOE Active Discovery Offer (PADO) packet containing its name, the service name and an indication of the services offered by the concentrator. The discovery phase is notbe awaresecured. PPPOE, like PPP, does not include a Secure Association Protocol. IKEv2 IKEv2, defined in [RFC4306], handles the establishment of unicast security associations (phase 2a), while thecontentestablishment ofan identifier in order to use it. This enables an EAP method to use media-specific identifiersmulticast security associations (phase 2b) may be handled by a group key management protocol such asMAC addresses without compromising media independence. Channel-BindingsGDOI [RFC3547], GSAKMP [GSAKMP], MIKEY [RFC3830], or GKDP [GKDP]. Several mechanisms have been proposed for discovery of IPsec security gateways. [RFC2230] discusses the use of KX Resource Records (RRs) for IPsec gateway discovery; while KX RRs aretreated as opaque octetssupported byEAP methods, so that handling them doesmany DNS server implementations, they have notrequire media-specific knowledge. 1.4.3. Method Independence By enabling pass-through, authenticatorsyet been widely deployed. Alternatively, DNS SRV [RFC2782] cansupport any method implemented on the peerbe used for this purpose. Where DNS is used for gateway location, DNS security mechanisms such as DNSSEC ([RFC2535], [RFC2931]), TSIG [RFC2845], andserver, not just locally implemented methods. This allowsSimple Secure Dynamic Update [RFC3007] are available. IEEE 802.11i IEEE 802.11, defined in [IEEE-802.11], handles discovery via theauthenticator to avoid implementing codeBeacon and Probe Request/Response mechanisms. IEEE 802.11 access points periodically announce their Service Set Identifiers (SSIDs) as well as capabilities using Beacon frames. Stations can query foreach EAP method requiredaccess points bypeers. In fact, sincesending apass-through authenticator is not required to implement any EAP methods at all, it cannot be assumedProbe Request tosupport any EAP method-specific code.the broadcast address. Neither Beacon nor Probe Request/Response frames are secured. The 4-way handshake defined in [IEEE-802.11i] enables the derivation of unicast (phase 2a) and multicast/broadcast (phase 2b) secure associations. Since the group key exchange transports a Aboba, et al. Standards Track [Page10]7] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006As a result, as noted in [RFC3748], authenticators must by defaultgroup key from the access point to the station, two 4-way handshakes may becapablerequired in order to support peer-to-peer communications. A proof ofsupporting any EAP method. Thisthe security of the IEEE 802.11i 4-way handshake when used with EAP-TLS [RFC2716], isuseful where thereprovided in [He]. IEEE 802.1X IEEE 802.1X-2004, defined in [IEEE-802.1X] does not support discovery (phase 0), nor does it provide for derivation of unicast or multicast secure associations. 1.4. EAP Key Hierarchy EAP, defined in [RFC3748], isno singlea two-party protocol spoken between the EAPmethod thatpeer and server. Within EAP, keying material isboth mandatory-to-implementgenerated by EAP methods. Part of this keying material may be used by EAP methods themselves andoffers acceptable security forpart 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 themedialower layer. As illustrated inuse. For example,Figure 2, the[RFC3748] mandatory-to-implementEAP method(MD5-Challenge) does not provide dictionary attack resistance, mutual authentication orkeyderivation,derivation has at the 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 asa result is not appropriate forwell as other information associated with it. This information may be used to determine whether access to some service should be granted. The peer stores information necessary to choose which secret to usein wireless LANfor which service. If authentication[RFC4017]. However, despite this itispossible forbased on proof of possession of thepeer and authenticatorprivate key corresponding tointeroperate as long as a suitable EAP method is supported ontheEAP server. 1.4.4. Ciphersuite Independence Ciphersuite Independence ispublic key contained within arequirement for Media Independence. Since lower layer ciphersuites vary between media, media independence requires thatcertificate, the parties store the EAPkeying material needsmethod to belarge enough (with sufficient entropy) to handle any ciphersuite. While EAP methods may negotiateused and theciphersuitetrust anchors usedin protection ofto validate the certificates. The EAPconversation,server also stores theciphersuite used forpeer's identity and theprotection ofpeer stores information necessary to choose which certificate to use for which service. Based on thedata exchanged after EAP authentication has completed is negotiatedlong term credential established between the peer andauthenticator withinthelower layer, outsideserver, EAP methods derive two types ofEAP. For example, within PPP,keys: [1] Keys calculated locally by theciphersuite is negotiated withinEAP method but not exported by theEncryption Control Protocol (ECP) defined in [RFC1968], afterEAPauthentication is completed. Within [IEEE-802.11i],method, such as theAP ciphersuites are advertised inTEKs. [2] Keying material exported by theBeacon and Probe Responses prior toEAPauthentication, andmethod: MSK, EMSK, IV. As noted in [RFC3748] Section 7.10, EAP methods generating keys aresecurely verified during a 4-way handshake exchange. Since the ciphersuites usedrequired toprotect data depend oncalculate and export thelower layer, requiringMSK and EMSK, which must be at least 64 octets in length. EAP methodshave knowledge of lower layer ciphersuites would compromisealso may export theprincipleIV; however, the use ofMedia Independence. Since ciphersuite negotiation occurs inthelower layer, thereIV isno need for ciphersuite negotiation within EAP, anddeprecated. Aboba, et al. Standards Track [Page 8] INTERNET-DRAFT EAPmethods generate keying material that is ciphersuite-independent. Algorithms for deriving TSKs MUST NOT depend on theKey Management Framework 3 April 2006 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---+ | | ^ | EAPmethod, although algorithms for TEK derivation MAY be specific to theMethod | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+ | | | | | | | | | | | EAPmethod. In order to allow a ciphersuiteMethod Key |<->| Long-Term | | | | | Derivation | | Credential | | | | | | | | | | | | | +-+-+-+-+-+-+-+ | Local tobe usable within the| | | | | EAPkeying framework, a specification MUST be provided describing how TSKs suitable for use with the ciphersuite are derived from exported| | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Method | | | | | | | | | | | | | | | | | | | | | | | | | | | +-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+-+ | | | | | TEK | |MSK, EMSK | |IV | | | | | |Derivation | |Derivation | |Derivation | | | | | | | | | |(Deprecated) | | | | | +-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+-+ | | | | ^ | | | | | | | | | | V +-+-|-+-+-+-+-+-+-+-+-|-+-+-+-+-+-|-+-+-+-+-+-+-+-|-+-+-+-+ ---+ | | | | ^ | Peer-ID, | | | Exported | | Server-ID, | Channel | MSK (64+B) | IV (64B) by | | Session-ID, | Bindings | EMSK (64+B) | (Optional) EAPkeying parameters. Advantages of ciphersuite-independence include: Aboba, et al. Standards Track [Page 11] INTERNET-DRAFT| | Key-Lifetime | & Result | | Method | V V V V V Figure 2: EAPKey Management Framework 5 March 2006 Reduced update requirements IfMethod Parameter Import/Export EAP methodswere 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 be usable with all EAP-capable authenticators, since the backend authentication server wouldalsoneed to be updated each time support for a new ciphersuite is added to the authenticator. Reduced EAP method complexity Requiring each EAP method to include ciphersuite-specific code for transient session key derivation would increase method complexity and result in duplicated effort. Simplified configuration The ciphersuite is negotiated between theMAY export method-specific peer andauthenticator outside of EAP. Where the authenticator operates in "pass-through" mode, the EAPserveris notidentifiers (peer-ID and server-ID), aparty to this negotiation, nor is it involved in the data flow between themethod-specific EAPpeerconversation identifier known as the Session-ID, andauthenticator. As a result,theEAP server may not have knowledgelifetime of theciphersuites and negotiation policies implemented byexported keys, known as the Key-Lifetime. EAP methods MAY also support thepeerimport andauthenticator, or be awareexport ofthe ciphersuite negotiated between them. For example, since ECP negotiation occurs after authentication, when run over PPP, theChannel Bindings. New EAPpeermethod specifications MUST define the Peer-ID, Server-ID andserver may not anticipateMethod-ID. The combination of thenegotiated ciphersuitePeer-ID andtherefore this information cannot be provided toServer-ID uniquely specifies theEAP method. 2. Lower Layer Operation 2.1. Overview Where EAP key derivation is supported,endpoints of theconversation typically takes place in three phases: Phase 0: Discovery Phase 1: Authentication 1a:EAPauthentication 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 are handled external to EAP. Phases 0 and 2method exchange when they arehandled by the lower layer protocolprovided. The Peer-ID, Server-ID, andphase 1bMethod-ID for existing EAP methods istypically handled by a AAA protocol. Indefined in Appendix A. Peer-ID As described in [RFC3748] Section 7.3, thediscovery phase (phase 0), peers locate authenticators and discover their capabilities. A peeridentity provided in the EAP-Response/Identity, maylocate an authenticator providing access to a particular network, or abe different from the peermay locate an authenticator behind aidentity Aboba, et al. Standards Track [Page12]9] INTERNET-DRAFT EAP Key Management Framework5 March 2006 bridge with which it desires to establish a Secure Association. Discovery can occur manually or automatically, depending on the lower layer over which EAP runs. The authentication phase (phase 1) may begin once the peer and authenticator discover each other. This phase, if it occurs, always includes3 April 2006 authenticated by the EAPauthentication (phase 1a).method. Where thechosenEAP methodsupports key derivation, in phase 1a EAP keying material is derived on bothauthenticates the peerandidentity, that identity is exported by the method as the Peer-ID. A suitable EAPserver. An additional step (phase 1b) is required in deployments which includepeer name may not always be available. Where an EAP method does not define abackend authentication server, in order to transport keying material frommethod-specific peer identity, thebackend authentication server toPeer-ID is theauthenticator. In order to obeynull string. Server-ID Where the EAP method authenticates theprinciple of Mode Independence, where a backendserver identity, that identity ispresent, all keying material which is requiredexported by thelower layer needs to be transported frommethod as the Server-ID. A suitable EAP serverto the authenticator. Since existing TSK derivation techniques depend solely onname may not always be available. Where an EAP method does not define a method-specific peer identity, theMSK, in existing implementations, thisServer-ID is theonly keying material replicated innull string. Method-ID EAP method specifications deriving keys MUST specify a temporally unique method identifier known as theAAA key transport phase 1b. Successful completion ofMethod-ID. The EAPauthentication and key derivation byMethod-ID uniquely identifies an EAP session of apeer andgiven Type between an EAPserver does not necessarily imply that thepeer and server. The Method-ID iscommitted to joiningtypically constructed from nonces or counters used within thenetwork associated withEAP method exchange. Session-ID The Session-ID uniquely identifies an EAPserver. Rather, this commitment is implied by the creation of a security associationsession betweenthean EAP peer (as identified by the Peer-ID) andauthenticator, as part ofserver (as identified by theSecure Association Protocol (phase 2).Server-ID). TheSecure Association exchange (phase 2) occurs betweenEAP Session-ID consists of thepeer and authenticator in order to manageconcatenation of thecreationExpanded EAP Type Code (including the Type, Vendor-ID anddeletion of unicast (phase 2a)Vendor-Type fields defined in [RFC3748] Section 5.7) andmulticast (phase 2b) security associations betweenthepeer and authenticator.Method-ID. Theconversation betweeninclusion of theparties is shownExpanded Type Code inFigure 2. Existingthe EAPlower layers implement phase 0, 2a and 2b in different ways: PPP PPP, defined in [RFC1661] does not support discovery, nor does it includeSession-ID ensures that each EAP method has aSecure Association Protocol. PPPOE PPPOE, defined in [RFC2516], includes support fordistinct Session-ID space. Since an EAP session is not bound to aDiscovery stage (phase 0). In this step,particular authenticator or specific ports on theEAPpeersends a PPPoE Active Discovery Initiation (PADI) packet toand authenticator, thebroadcast address, indicatingauthenticator port or identity are not included in theserviceSession-ID. Key-Lifetime While EAP itself does not support key lifetime negotiation, it isrequesting. The Access Concentrator repliespossible to specify methods that do. However, systems that rely on such negotiation for exported keys would only function with these methods. As aPPPOE Active Discovery Offer (PADO) packet containing its name, the service name and an indication of the services offered by the concentrator. The discovery phaseresult, it isnot secured. PPPOE, like PPP, does notNOT RECOMMENDED to use this approach as the sole way to determine key lifetimes. Channel Bindings Channel Bindings includea Secure Associationlower layer parameters that are verified for consistency between the EAP peer and server. In order to avoid introducing media dependencies, EAP methods that transport Channel Aboba, et al. Standards Track [Page13]10] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006Protocol. IKEv2 IKEv2, defined in [RFC4306], handlesBinding data MUST treat this data as opaque octets. Typically thederivation of unicast security associations (phase 2a), whileEAP method imports Channel Bindings from thederivation of multicast security associations (phase 2b) is handled in a separate group key management protocol, as described in [RFC4046]. Several mechanisms have been proposed for discovery of IPsec security gateways. [RFC2230] discusseslower layer on theusepeer, and transmits them securely to the EAP server, which exports them to the lower layer or AAA layer. However, transport may occur from EAP server to peer, or may be bi-directional. On the side ofKX Resource Records (RRs) for IPsec gateway discovery; while KX RRsthe exchange (peer or server) where Channel Bindings aresupported by many DNS server implementations, they have not yet been widely deployed. Alternatively, DNS SRV [RFC2782]verified, the lower layer or AAA layer passes the result of the verification (TRUE or FALSE) up to the EAP method. While the verification can beused for this purpose. Where DNS is used for gateway location, DNS security mechanisms such as DNSSEC ([RFC2535], [RFC2931]), TSIG [RFC2845], and Simple Secure Dynamic Update [RFC3007] are available. IEEE 802.11i IEEE 802.11, defined in [IEEE-802.11], handles discovery viadone either by the peer or the server, typically only theBeacon and Probe Request/Response mechanisms. IEEE 802.11 access points periodically announceserver has the knowledge to determine the correctness of the values, as opposed to merely verifying theirService Set Identifiers (SSIDs)equality. 1.4.1. Key Naming Each key created within the EAP key management framework has a name (a unique identifier), as well ascapabilities using Beacon frames. Stations can query for access points by sendingaProbe Requestscope (the parties to whom thebroadcast address. Neither Beacon nor Probe Request/Response frames are secured.key is available). The4-way handshakescope of exported parameters is definedin [IEEE-802.11i] enablesby thederivation of unicast (phase 2a)EAP peer name (if securely exchanged within the method) andmulticast/broadcast (phase 2b) secure associations. Sincethegroup key exchange transportsEAP server name (also only if securely exchanged). Where agroup key frompeer or server name is missing theaccess point tonull string is used. MSK and EMSK Names These parameters are exported by thestation, two 4-way handshakes mayEAP peer and EAP server, and can berequired in orderreferred tosupport peer-to-peer communications. IEEE 802.1X-2004 IEEE 802.1X-2004, defined in [IEEE-802.1X-2004]using the EAP Session-ID and a binary or textual indication of the parameter being referred to. PMK Name This document does notsupport discovery (phase 0), nor does it providespecify a naming scheme forderivation of unicast or multicast secure associations. 2.2. Layering As illustrated in Figure 3, on completion of EAP authentication, EAP methods exporttheMaster Session Key (MSK), Extended Master Session Key (EMSK), Peer-ID, Server-ID, Session-ID and Key-LifetimePMK. The PMK is only identified by the key from which it is derived. Note: IEEE 802.11i names the PMKID for the purposes of being able to refer to it in theEAP peer or authenticator layers. The Initialization Vector (IV)Secure Association protocol; this naming isdeprecated.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 TheEAP peer and authenticator layers MUST NOT modify or cache keying materialTEKs may orparameters (including Channel Bindings) passingmay not be named. Their naming is specified ineither direction betweenthe EAPmethodmethod. TSK Name The TSKs are typically named. Their naming is specified in the lower layerandso that theEAP layer.correct set of transient session keys can be identified for processing a given packet. 1.5. Security Goals The goal of the EAPlayer also MUST NOT cache keying material or parameters (including Channel Bindings) passedconversation is toit, whether byderive fresh session keys between the EAPpeer/authenticatorpeer and authenticator that are known only to those Aboba, et al. Standards Track [Page14]11] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006layer, the lower layer orparties, and for both theAAA layer.EAP peerAuthenticator Auth. Server -------- ------------- ------------ |<----------------------------->| | | Discovery (phase 0) | | |<----------------------------->|<----------------------------->| | EAP auth (phase 1a) | AAA pass-through (optional) | | | | | |<----------------------------->| | | AAA Key transport | | | (optional; phase 1b) | |<----------------------------->| | | Unicast Secure association | | | (phase 2a) | | | | | |<----------------------------->| | | Multicast Secure association | | | (optional; phase 2b) | | | | | Figure 2: Conversation Overview Based on the Method-ID exportedand authenticator to demonstrate that they are authorized to perform their roles either bytheeach other or by a trusted third party (the backend authentication server). Completion of an EAPmethod,method exchange (Phase 1a) supporting key derivation results in the derivation of EAPlayer formskeying material (MSK, EMSK, TEKs) known only to the EAPSession-IDpeer (identified byconcatenatingtheEAP Expanded Type withPeer-ID) and server (identified by theMethod-ID. Together withServer-ID). Both theMSK, IV (deprecated), Peer-ID, Server-ID,EAP peer andKey-Lifetime, theEAPlayer passesserver know theSession-ID downexported keying material tothe lower layer. The Method-IDbe fresh. Key freshness isexported by EAP methods rather thandiscussed in Sections 3.4, 3.5 and 5.7. Completion of theSession-ID so as to preventAAA exchange (Phase 1b) results in the transport of EAPmethodskeying material fromwriting into each other's Session- ID space. The EMSK MUST NOT be provided to an entity outsidethe EAP serveror peer, nor is it permitted(identified by the Server-ID) topass any quantitythe EAP authenticator (identified by the NAS-Identifier) without disclosure toan entity outsideany other party. Both the EAP serveror peer from which the EMSK couldand EAP authenticator know this keying material to becomputed without breaking some cryptographic assumption, such as inverting a one-way function. As notedfresh. Disclosure issues are discussed in[RFC3748]Section7.10: The EMSK is reserved for future use5.6; security properties of AAA protocols are discussed in Sections 5.2-5.8, andMUST remain on5.11. Completion of the Secure Association Protocol (Phase 2) results in the derivation or transport of Transient Session Keys (TSKs) known only to the EAP peer (identified by the Peer-ID) andEAP server where it is derived; it MUST NOT be transported to, or shared with, additional parties, or usedauthenticator (identified by the NAS-Identifier). Both the EAP peer and authenticator know the TSKs toderive any other keys. (This restriction willberelaxed in a future document that specifies howfresh. Both theEMSK can be used.) In orderEAP peer and authenticator demonstrate that they are authorized topreserve theperform their roles. Authorization issues are discussed in Section 5.8 and 5.9; security properties ofkeys derived withinSecure Association Protocols are discussed in Section 3.1. 1.6. EAPmethods, lower layers MUST NOT export keys passed down byInvariants Certain basic characteristics, known as "EAP Invariants", hold true for EAPmethods. This implies thatimplementations on all media: Mode independence Media independence Method independence Ciphersuite independence 1.6.1. Mode Independence EAPkeying material or parameters passed downis typically deployed to support extensible network access authentication in situations where alower layerpeer desires network access via one or more authenticators. Where authenticators arefordeployed standalone, theexclusive use of that lower layerEAP conversation occurs between the peer andMUST NOT be used within another lower layer. This prevents compromiseauthenticator, and the authenticator must locally implement an EAP method acceptable to the peer. However, when utilized in "pass- through" mode, EAP enables deployment ofonenew authentication methods Aboba, et al. Standards Track [Page15]12] INTERNET-DRAFT EAP Key Management Framework5 March 2006 lower layer from compromising other applications using EAP keying parameters. EAP keying material and parameters provided to a lower layer MUST NOT be transported to another entity. For example, EAP keying material and parameters passed down to the EAP peer lower layer MUST NOT leave the peer; EAP keying material and parameters passed down or transported to the EAP authenticator lower layer MUST NOT leave3 April 2006 without requiring development of new code on the authenticator.OnWhile the authenticator may implement some EAPserver, keying material requested bymethods locally andpassed down to the AAA layer may be replicateduse those methods tothe AAA layer on the authenticator. On the authenticator, the AAA layerauthenticate local users, it mayprovide the replicated keying material to the lower layer over whichat the same time act as a pass-through for other users and methods, forwarding EAP packets back and forth between the backend authenticationconversation took place. This enables "mode independence" to be maintained. However,server and theEMSK MUST NOT be transportedpeer. This is accomplished bythe AAA layer. As illustrated in Figure 4, a AAA client receiving transportedencapsulating EAPkeying material and parameters passes them topackets within theEAP authenticatorAuthentication, Authorization andEAP layers, which then provide them toAccounting (AAA) protocol, spoken between the authenticatorlower layer using the same mechanisms that would be used if theand backend authentication server. AAA protocols supporting EAPpeerinclude RADIUS [RFC3579] andauthenticator were conducting a stand-alone conversation. The resulting key state in the lower layerDiameter [RFC4072]. It isindistinguishable between the standalone and pass-through cases, as required by the principlea fundamental property ofmode independence. 2.3. Transient Session Keys Where explicitly supported byEAP that at thelowerEAP method layer,lower layers MAY cachetheexportedconversation between the EAPkeying materialpeer andparameters and/or TSKs. The structure of this key cacheserver isdefinedunaffected by whether thelower layer. So as to enable interoperability, new lower layer specifications MUST describeEAPkey caching behavior. Unless explicitly specified by the lower layer, theauthenticator is operating in "pass-through" mode. EAPpeer, servermethods operate identically in all aspects, including key derivation and parameter import/export, regardless of whether the authenticatorMUST assume that peers and authenticators do not cache exported EAP keying parametersis operating as a pass-through orTSKs. Existingnot. The successful completion of an EAPlower layers and AAA layers handlemethod that supports key derivation results in thecachingexport ofEAPkeying material and parameters on thegeneration of transient session keys in different ways: IEEE 802.1X-2004 IEEE 802.1X-2004, defined in [IEEE-802.1X-2004] does not support caching ofEAPkeying materialpeer and server. Even though the EAP peer orparameters. Onceserver may import Channel-Bindings that may include the identity of the EAPauthentication completes, itauthenticator, this information isassumed thattreated as opaque octets. As a result, within EAPkeying materialthe only relevant identities are the Peer-ID andparametersServer-ID. Channel Bindings arediscarded. PPP PPP, defined in [RFC1661] does not support cachingonly interpreted by the lower layer. Within EAP, the primary function ofEAP keying material or parameters. PPP ciphersuites derive their TSKs Aboba, et al. Standards Track [Page 16] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 directly fromtheMSK, as described in [RFC2716]. This methodAAA protocol isNOT RECOMMENDED, since were PPPtosupport caching, this could result in stale TSKs. As a result, oncemaintain thePPP sessionprinciple of Mode Independence, so that as far as the EAP peer isterminated,concerned, its conversation with the EAPkeying materialauthenticator, andparameters MUST be discarded. Since cachingall consequences of that conversation, are identical, regardless of the authenticator mode of operation. 1.6.2. Media Independence One of the goals of EAPkeying material is not permitted, within PPP thereisno waytohandle TSK rekey withoutallow EAPre-authentication. Perfect Forward Secrecy (PFS) is only possible within PPP ifmethods to function on any lower layer meeting thenegotiated EAP method supports this. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | EAP method | | | | MSK, EMSK, Peer-ID, Channel | | Server-ID, Method-ID Bindings | | IV (deprecated), | | Key-Lifetime | | | | V ^ ^ | +-+-+-+-!-+-+-+-+-+-+-+-+-+-+-+-!-+-+-+-+-!-+-+ | ! ! ! | |criteria outlined in [RFC3748], Section 3.1. For example, as described in [RFC3748], EAP! Peer or Authenticator ! ! | | ! layer ! ! | | ! ! ! | +-+-+-+-!-+-+-+-+-+-+-+-+-+-+-+-!-+-+-+-+-!-+-+ | ! ! ! | |authentication can be run over PPP [RFC1661], IEEE 802 wired networks [IEEE-802.1X], and wireless networks such as 802.11 [IEEE-802.11i] and 802.16 [IEEE-802.16e]. In order to maintain media independence, it is necessary for EAP! layer ! ! | | ! ! ! | | ! Session-ID = ! ! | | ! Expanded-Type || ! ! | | ! Method-ID ! ! | | ! ! ! | +-+-+-+-!-+-+-+-+-+-+-+-+-+-+-+-!-+-+-+-+-!-+-+ | ! ! ! | | Lower ! layer or AAA ! ! | | ! ! ! | | V V ^ | | MSK, Peer-ID, Channel Result | | Server-ID, Bindings | | Session-ID, | | Key-Lifetime, | | IV (deprecated) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 3: Flowto avoid consideration of media-specific elements. For example, EAPparameters Aboba, et al. Standards Track [Page 17] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 Peer Pass-through Authenticator Authentication Server +-+-+-+-+-+-+ +-+-+-+-+-+-+ | | | | |EAP method | |EAP method | | V | | V | +-+-+-!-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-!-+-+-+ | ! | |EAP | EAP | | | ! | | ! | |Peer | Auth.|methods cannot be assumed to have knowledge of the lower layer over which they are transported, and cannot be restricted to identifiers associated with a particular usage environment (e.g. MAC addresses). Aboba, et al. Standards Track [Page 13] INTERNET-DRAFT EAPAuth. | | ! | |EAP ! peer| | | +-----------+ | |EAP !Auth.| | ! | | | ! | ! | | ! | +-+-+-!-+-+-+ +-+-+-+-!-+-+-+-+-+-!-+-+-+-+ +-+-+-!-+-+-+ | ! | | ! | ! | | ! | |EAP !layer| |Key Management Framework 3 April 2006 Note that media independence may be retained within EAP!layer|methods that support Channel-Bindings or method-specific identification. An EAP!layer | |EAP !layer| | ! | | ! | ! | | ! | +-+-+-!-+-+-+ +-+-+-+-!-+-+-+-+-+-!-+-+-+-+ +-+-+-!-+-+-+ | V | | V | ! | | ! | |Lower layer| | Lower layer| AAA ! /IP | | AAA ! /IP | | | | | ! | | ! | +-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-!-+-+-+-+ +-+-+-!-+-+-+ ! ! ! ! +---------<-------+ Figure 4: Flowmethod need not be aware ofEAP Keying Material and Parameters IKEv2 IKEv2, definedthe content of an identifier in[RFC4306] only usesorder to use it. This enables an EAP method to use media-specific identifiers such as MAC addresses without compromising media independence. Channel-Bindings are treated as opaque octets by EAP methods, so that handling them does not require media-specific knowledge. 1.6.3. Method Independence By enabling pass-through, authenticators can support any method implemented on theMSK for authentication purposespeer and server, notkey derivation. The EMSK, IV, Peer-ID, Server-ID or Session-ID are not used. As a result,just locally implemented methods. This allows thekeying material derived within IKEv2authenticator to avoid implementing code for each EAP method required by peers. In fact, since a pass-through authenticator isindependent of thenot required to implement any EAPkeying material and rekey of IPsec SAs canmethods at all, it cannot behandled without requiringassumed to support any EAPre- authentication. Since generationmethod-specific code. As a result, as noted in [RFC3748], authenticators must by default be capable ofkeying materialsupporting any EAP method. This isindependent of EAP, within IKEv2 ituseful where there ispossible to negotiate PFS, regardless of theno single EAP method that isused. IKEv2both mandatory-to-implement and offers acceptable security for the media in use. For example, the [RFC3748] mandatory-to-implement EAP method (MD5-Challenge) does notcache EAP keying material or parameters; once IKEv2provide dictionary attack resistance, mutual authenticationcompletes it is assumed that EAP keying materialor key derivation, andparameters are discarded. The Session-Timeout attribute is therefore interpretedas alimit on the VPN session time, rather than an indication of the MSK key lifetime. IEEE 802.11i IEEE 802.11i enables caching of the MSK, butresult is notthe EMSK, IV, Peer-ID, Server-ID, or Session-ID. More details about the structure of the cache are availableappropriate for use in[IEEE-802.11i]. In IEEE 802.11i, TSKs are derived from the MSK usingwireless LAN authentication [RFC4017]. However, despite this it is possible for the4-way handshake, which includespeer and authenticator to interoperate as long as anonce exchange. This guarantees TSK freshness Aboba, et al. Standards Track [Page 18] INTERNET-DRAFTsuitable EAPKey Management Framework 5 March 2006 even if the MSKmethod isreused. The 4-way handshake also enables TSK rekey withoutsupported on the EAPre-authentication. PFSserver. 1.6.4. Ciphersuite Independence Ciphersuite Independence isonly possible within IEEE 802.11i if the negotiateda requirement for Media Independence. Since lower layer ciphersuites vary between media, media independence requires that EAPmethod supports this. IEEE 802.16e IEEE 802.16e, definedkeying material needs to be large enough (with sufficient entropy) to handle any ciphersuite. While EAP methods may negotiate the ciphersuite used in[IEEE-802.16e] supports cachingprotection of theMSK, but notEAP conversation, theEMSK, IV, Peer-ID, Server-ID or Session-ID. In IEEE 802.16e, TSKs are generated byciphersuite used for theauthenticator without any contribution byprotection of thepeer. The TSKs are encrypted, authenticateddata exchanged after EAP authentication has completed is negotiated between the peer andintegrity protected usingauthenticator within theMSK. As a result, TSK rekeylower layer, outside of EAP. For example, within PPP, the ciphersuite ispossible withoutnegotiated within the Encryption Control Protocol (ECP) defined in [RFC1968], after EAPre-authentication. PFSauthentication isnot possible even ifcompleted. Within [IEEE-802.11i], thenegotiated EAP method supports it. AAA Existing implementations of RADIUS/EAP [RFC3579] or Diameter EAP [RFC4072] do not support caching of EAP keying material or parameters. In existing AAA client, proxy and server implementations, exported EAP keying material (MSK, EMSK and IV) as well as parameters and derived keysAP ciphersuites arenot cached and MUST be presumed lost afteradvertised in theAAA exchange completes. In orderBeacon and Probe Responses prior toavoid key reuse, the AAA layer MUST delete transported keys once theyEAP authentication, and aresent. The AAA layer MUST NOT retain keys that it has previously sent. For example,securely verified during aAAA layer that has transported the MSK MUST delete it, and keys MUST NOT be derived from the MSK from that point forward. 2.4. Authenticator Architecture This specification does not impose constraints on4-way handshake exchange. Aboba, et al. Standards Track [Page 14] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 Since thearchitecture ofciphersuites used to protect data depend on the lower layer, requiring EAPauthenticator or peer. Anymethods have knowledge of lower layer ciphersuites would compromise theauthenticator architectures describedprinciple of Media Independence. Since ciphersuite negotiation occurs in[RFC4118] can be used. For example, itthe lower layer, there ispossibleno need formultiple base stationslower layer ciphersuite negotiation within EAP, anda "controller" (e.g. WLAN switch)EAP methods generate keying material that is ciphersuite-independent. In order tocompriseallow asingleciphersuite to be usable within the EAPauthenticator. In suchkeying framework, asituation,specification MUST be provided describing how TSKs suitable for use with the"base station identity" is irrelevant tociphersuite are derived from exported EAP keying parameters. To maintain Method Independence, algorithms for deriving TSKs MUST NOT depend on the EAPmethod conversation, except perhaps as an opaque blob tomethod, although algorithms for TEK derivation MAY beused in Channel Bindings. Many base stations can sharespecific to thesame authenticator identity. As a result, lower layersEAP method. 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 toidentify EAP peers and authenticators unambiguously, without incorporating implicit assumptions about peer and authenticator architectures. It shouldbeunderstood that an EAP authenticator or peer: [a] may contain one or more physical or logical ports; [b] may advertise itself as one or more "virtual" authenticators or peers; [c] may utilize multiple CPUs; [d] mayupdated each time a new ciphersuite is developed. In addition, backend authentication servers might not be usable with all EAP-capable authenticators, since the backend authentication server would also need to be updated each time supportclustering servicesforload balancing or failover. Aboba, et al. Standards Track [Page 19] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 Botha new ciphersuite is added to the authenticator. Reduced EAP method complexity Requiring each EAP method to include ciphersuite-specific code for transient session key derivation would increase method complexity and result in duplicated effort. Simplified configuration The ciphersuite is negotiated between the peer and authenticatormay have more than one physical or logical port. A peer may simultaneously accessoutside of EAP. Where thenetwork 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. When a single physicalauthenticatoradvertises itself as multiple "virtual authenticators", itoperates in "pass-through" mode, the EAP server ispossible fornot asingle physical port to belongparty tomultiple "virtual authenticators". The situationthis negotiation, nor isillustrated in Figure 5. +-+-+-+-+ | EAP | | Peer | +-+-+-+-+ | | | Peer Ports / | \ / | \ / | \ / | \ / | \ / | \ / | \ / | \ | | | | | | | | | Authenticator Ports +-+-+-+-+ +-+-+-+-+ +-+-+-+-+ | | | | | | | Auth. | | Auth. | | Auth. | | | | | | | +-+-+-+-+ +-+-+-+-+ +-+-+-+-+ \ | / \ | / \ | /it involved in the data flow between the EAPover AAA \ | / (optional) \ | / \ | / \ | / \ | / +-+-+-+-+ |peer and authenticator. As a result, the EAP| |Server | +-+-+-+-+ Figure 5: Relationshipserver may not have knowledge of the ciphersuites and negotiation policies implemented by the peer and authenticator, or be aware of the ciphersuite negotiated between them. For example, since ECP negotiation occurs after authentication, when run over PPP, the EAPpeer, authenticatorpeer and server may not anticipate the negotiated ciphersuite and therefore this information cannot be provided to the EAP method. 2. Lower Layer Operation On completion of EAP authentication, keying material and material and parameters exported by the EAP method are provided to the lower layer and AAA layer (if present). These include the Master Session Key Aboba, et al. Standards Track [Page20]15] INTERNET-DRAFT EAP Key Management Framework5 March3 April 20062.4.1. Authenticator Identification(MSK), Extended Master Session Key (EMSK), Peer-ID, Server-ID, Session-ID and Key-Lifetime. TheEAP method conversationInitialization Vector (IV) isbetweendeprecated. In order to preserve the security of keys derived within EAPpeer and server, as identified by the Peer-ID and Server-ID. The authenticator identity, if considered at allmethods, lower layers MUST NOT export keys passed down bytheEAPmethod, is treated as an opaque blobmethods. This implies that EAP keying material or parameters passed down to a lower layer are for thepurposesexclusive use ofChannel bindings. However, the Secure Association Protocol conversation is between the peer and the authenticator,that lower layer andtherefore the authenticatorMUST NOT be used within another lower layer. This prevents compromise of one lower layer from compromising other applications using EAP keying parameters. EAP keying material andpeer identities are relevantparameters provided tothat exchange,a lower layer MUST NOT be transported to another entity. For example, EAP keying material anddefineparameters passed down to thescope of use ofEAP peer lower layer MUST NOT leave the peer; EAP keying material and parameters passed down or transported to thelower layer. Since anEAP authenticatormay have multiple ports,lower layer MUST NOT leave theauthenticator identifiers used withinauthenticator. On theSecure Association Protocol exchange SHOULD be distinct from any port identifier (e.g. MAC address). Similarly, where a peer may have multiple ports, and sharing ofEAP server, keying material requested by andparameters between peer ports ofpassed down to thesame link type is allowed,AAA layer may be replicated to thepeer identifier used withinAAA layer on theSecure Association Protocol exchange SHOULD also be distinct from any port identifier. Whereauthenticator. On thepeer and authenticator identify themselves withinauthenticator, thelowerAAA layerusing a port identifier such as a linkprovides the replicated keying material to the lower layeraddress, this creates a number of problems: [1] It may notover which the EAP authentication conversation took place. This enables "mode independence" to beobviousmaintained. The EMSK MUST NOT be provided to an entity outside the EAP server or peer, nor is it permitted to pass any quantity to an entity outside the EAP server or peer from whichauthenticator ports are associated with which authenticators. [2] It may notthe EMSK could be computed without breaking some cryptographic assumption, such as inverting a one-way function. The EMSK MUST NOT beobvious totransported by theauthenticator which peer ports are associated with which peers. [3] It may not be obvious toAAA layer. As noted in [RFC3748] Section 7.10: The EMSK is reserved for future use and MUST remain on the EAP peerwhich "virtual authenticator"and EAP server where it iscommunicating with. [4] It may notderived; it MUST NOT beobvioustransported to, or shared with, additional parties, or used to derive any other keys. The EAP layer as well as the peer and authenticatorwhich "virtual peer" it is communicating with. AAA protocols such as RADIUS [RFC3579]layers MUST NOT modify or cache keying material or parameters (including Channel Bindings) passing in either direction between the EAP method layer andDiameter [RFC4072] provide a mechanism fortheidentification oflower layer or AAAclients; sincelayer. 2.1. Transient Session Keys Where explicitly supported by the lower layer, lower layers MAY cache the exported EAPauthenticatorkeying material andAAA client are always co-resident,parameters and/or TSKs. The structure of thismechanismkey cache isapplicabledefined by the lower layer. So as to Aboba, et al. Standards Track [Page 16] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 enable interoperability, new lower layer specifications MUST describe EAP key caching behavior. Unless explicitly specified by the lower layer, theidentification ofEAPauthenticators. RADIUS [RFC2865] requirespeer, server and authenticator MUST assume thatan Access-Request packet contain one or more of the NAS-Identifier, NAS-IP-Addresspeers andNAS-IPv6-Address attributes. Since a NAS may have more than one IP address, the NAS-Identifier attribute is RECOMMENDED for the unambiguous identification of theauthenticators do not cache exported EAPauthenticator. Aboba, et al. Standards Track [Page 21] INTERNET-DRAFTkeying parameters or TSKs. Existing EAPKey Management Framework 5 March 2006 Fromlower layers and AAA layers handle thepoint of viewcaching ofthe AAA server,EAP keying material andparameters are transported to the EAP authenticator identified bytheNAS-Identifier attribute. Since an EAP authenticator MUST NOT sharegeneration of transient session keys in different ways: IEEE 802.1X-2004 IEEE 802.1X-2004, defined in [IEEE-802.1X] does not support caching of EAP keying material orparameters with another party, if theparameters. Once EAPpeer or AAA server detects use ofauthentication completes, it is assumed that EAP keying material and parametersoutside the scopeare discarded. PPP PPP, definedbyin [RFC1661] does not support caching of EAP keying material or parameters. PPP ciphersuites derive their TSKs directly from theNAS-Identifier,MSK, as described in [RFC2716]. This method is NOT RECOMMENDED, since were PPP to support caching, this could result in stale TSKs. As a result, once the PPP session is terminated, EAP keying material and parameters MUST beconsidered compromised. 2.5. Key Scope Where thediscarded. Since caching of EAPpeer and authenticator cannot unambiguously identify each other they maykeying material is notbe ablepermitted, within PPP there is no way todetermine the scope of transportedhandle TSK rekey without EAPkeying material. Thisre-authentication. Perfect Forward Secrecy (PFS) isparticularly problematiconly possible within PPP if the negotiated EAP method supports this. IKEv2 IKEv2, defined in [RFC4306] only uses the MSK forlower layers whereauthentication purposes and not keycachingderivation. The EMSK, IV, Peer-ID, Server-ID or Session-ID are not used. As a result, the keying material derived within IKEv2 issupported. For example, if the EAP peer cannot identifyindependent of the EAPauthenticator, it willkeying material and rekey of IPsec SAs can beunable to determine whether transportedhandled without requiring EAP re- authentication. Since generation of keying materialhas been shared outsideis independent ofits authorized scope, and therefore needs to be considered compromised. ThereEAP, within IKEv2 it isalso a practical problem because the EAP peer will be unablepossible toutilizenegotiate PFS, regardless of the EAPauthenticator keymethod that is used. IKEv2 does not cachein an efficient way. To avoid these problems,EAP keying material or parameters; once IKEv2 authentication completes it isrecomendedassumed thatlower layers: [1] Specify the lower layer parameters used to identify the authenticator and peer; [2] Communicate the lower layer identities between the peer and authenticator within phase 0; [3] Communicate the lower layer authenticator identity between the authenticatorEAP keying material andbackend server withinparameters are discarded. The Session-Timeout attribute is therefore interpreted as a limit on theNAS-Identifier attribute; [4] IncludeVPN session time, rather than an indication of thelower layer identities within channel bindings (if supported) in phase 1a, ensuring that they are communicated betweenMSK key lifetime. IEEE 802.11i IEEE 802.11i enables caching of theEAP peer and server; [5] Securely verifyMSK, but not thelower layer identities within phase 2a; [6] UtilizeEMSK, IV, Peer-ID, Server-ID, or Session-ID. More details about theadvertised lower layer identities to enablestructure of thepeer and authenticator to verify that keyscache aremaintained within the advertised scope; Absent explicit specification withinavailable in [IEEE-802.11i]. In IEEE 802.11i, TSKs are derived from thelower layer, afterMSK using thecompletion of phase 1b, EAP keying material and parameters are bound to4-way handshake, which includes a nonce exchange. This guarantees TSK freshness even if the MSK is reused. The 4-way handshake also enables TSK rekey without EAPpeer and authenticator, but are not bound to a specific peer or authenticator port.re-authentication. PFS is only possible within Aboba, et al. Standards Track [Page22]17] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006WhileIEEE 802.11i if the negotiated EAPKeying Material passed down tomethod supports this. IEEE 802.16e IEEE 802.16e, defined in [IEEE-802.16e] supports caching of thelower layer isMSK, but notintrinsically bound to particular authenticator and peer ports, Transient Session Keys MAY be bound to particularthe EMSK, IV, Peer-ID, Server-ID or Session-ID. In IEEE 802.16e, TSKs are generated by the authenticatorand peer portswithout any contribution by theSecure Association Protocol. However, a lower layer MAY also permitpeer. The TSKsto be used on multiple peer and/or authenticator ports, providing thatare encrypted, authenticated and integrity protected using the MSK. As a result, TSKfreshnessrekey isguaranteed (suchpossible without EAP re-authentication. PFS is not possible even if the negotiated EAP method supports it. AAA Existing implementations of RADIUS/EAP [RFC3579] or Diameter EAP [RFC4072] do not support caching of EAP keying material or parameters. In existing AAA client, proxy and server implementations, exported EAP keying material (MSK, EMSK and IV) asby keeping replay counter state withinwell as parameters and derived keys are not cached and MUST be presumed lost after theauthenticator).AAA exchange completes. In order tofurther limit theavoid keyscopereuse, thefollowing measuresAAA layer MUST delete transported keys once they aresuggested: [a]sent. ThelowerAAA layerMAY specify additional restrictions on key usage, such as limitingMUST NOT retain keys that it has previously sent. For example, a AAA layer that has transported theuse of EAP keying materialMSK MUST delete it, andparameters on the EAP peer tokeys MUST NOT be derived from theport over whichMSK from that point forward. 2.2. Authenticator Architecture This specification does not impose constraints on the architecture of the EAPconversation was conducted. [b] The backend authentication server andauthenticatorMAY implement additional attributes in order to further restrict the scopeor peer. Any ofEAP keying material. For example, in 802.11, the backend authentication server may providethe authenticatorwith a list of authorized Called or Calling-Station-Ids and/or SSIDsarchitectures described in [RFC4118] can be used. For example, it is possible forwhichmultiple base stations and a "controller" (e.g. WLAN switch) to comprise a single EAPkeying material is valid. [c] Where the backend authentication server provides attributes restrictingauthenticator. In such a situation, thekey scope, it"base station identity" isRECOMMENDED that restrictions be securely communicated by the authenticatorirrelevant to thepeer. This can be accomplished using the Secure Association Protocol, but also can be accomplished via theEAP methodor the lower layer. 2.5.1. Virtual Authenticators When a single physical authenticator advertises itselfconversation, except perhaps asmultiple "virtual authenticators",an opaque blob to be used in Channel Bindings. Many base stations can share the same authenticator identity. As a result, lower layers need to identify EAP peers and authenticators unambiguously, without incorporating implicit assumptions about peer and authenticatormay notarchitectures. It should beable to agree on the scope of theunderstood that an EAPkeying material, creating a security vulnerability. For example, the peerauthenticator or peer: [a] mayassume that the "virtual authenticators" are distinct and do not share a key cache, whereas, depending on the architecture of thecontain one or more physicalauthenticator, a shared key cache mayor logical ports; [b] maynot be implemented. Where EAP keying material is shared between "virtual authenticators" an attacker actingadvertise itself asa peer could authenticate with the "Guest" "virtual authenticator" and derive EAP keying material. If the virtualone or more "virtual" authenticatorsshare a key cache, then the peer canor peers; [c] may utilizethe EAP keying material derivedmultiple CPUs; [d] may support clustering services for load balancing or failover. Both the"Guest" network to obtainEAP peer and authenticator may have more than one physical or logical port. A peer may simultaneously accesstothe"Corporate Intranet" virtual authenticator. Several measures are recommended to address these issues:network via Aboba, et al. Standards Track [Page23]18] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006[d] Authenticators are REQUIRED to cache associated authorizations along with EAP keying material and parameters and to apply authorizations consistently. This ensures that an attacker cannot obtain elevated privileges even where the key cache is shared between "virtual authenticators". [e] It is RECOMMENDED thatmultiple authenticators, or via multiple physicalauthenticators maintain separate key caches for each "virtual authenticator". [f] It is RECOMMENDED thator logical ports on a given authenticator. Similarly, an authenticator may offer network access to multiple peers, each"virtual authenticator" identifyvia a separate physical or logical port. When a single physical authenticator advertises itselfdistinctly to the backend authentication server, suchasby utilizingmultiple "virtual authenticators", it is possible for adistinct NAS-Identifier attribute. This enables the backend authentication serversingle physical port toutilize a separate credentialbelong toauthenticate eachmultiple "virtualauthenticator". 3. Key Management EAP as definedauthenticators". The situation is illustrated in[RFC3748] supports key derivation, but not key management. While EAP methods may derive keying material,Figure 3. +-+-+-+-+ | EAPdoes not provide for the management of exported or derived keys. For example,| | Peer | +-+-+-+-+ | | | Peer Ports / | \ / | \ / | \ / | \ / | \ / | \ / | \ / | \ | | | | | | | | | Authenticator Ports +-+-+-+-+ +-+-+-+-+ +-+-+-+-+ | | | | | | | Auth. | | Auth. | | Auth. | | | | | | | +-+-+-+-+ +-+-+-+-+ +-+-+-+-+ \ | / \ | / \ | / EAPdoes not support negotiation of the key lifetime of exported or derived keys, nor does it support re-key. Althoughover AAA \ | / (optional) \ | / \ | / \ | / \ | / +-+-+-+-+ | EAPmethods may support "fast reconnect" as defined in [RFC3748] Section 7.2.1, re-key of exported keys cannot occur without re- authentication. In order to provide method independence, key management of exported or derived keys SHOULD NOT be provided within| |Server | +-+-+-+-+ Figure 3: Relationship between EAPmethods. 3.1. Secure Association Protocol Since neitherpeer, authenticator and server 2.2.1. Authenticator Identification The EAPnormethod conversation is between the EAPmethods provide key management support, itpeer and server, as identified by the Peer-ID and Server-ID. The authenticator identity, if considered at all by the EAP method, isRECOMMENDED that key management facilities be provided withintreated as an opaque blob for theSecure Association Protocol. This includes: [a] Entity Naming. A basic featurepurposes ofaChannel bindings. However, the Secure Aboba, et al. Standards Track [Page 19] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 Association Protocol conversation is between theexplicit naming of the parties engaged in the exchange. Without explicit identification,peer and theparties engaged inauthenticator, and therefore theexchangeauthenticator and peer identities arenot identifiedrelevant to that exchange, and define the scope of use of the EAP keyingparameters negotiated duringmaterial passed down to theEAP exchange is undefined. As shown in Figure 5, bothlower layer. Where the EAP peer and authenticatormay have more than one physical or virtual port, and as a result SHOULDcannot unambiguously identifythemselves in a manner that is independent of their attached ports. [b] Mutual proof of possessioneach other they may not be able to determine the scope of transported EAP keying material.DuringThis is particularly problematic for lower layers where key caching is supported. For example, if theSecure Association ProtocolEAP peer cannot identify the EAP authenticator, it will be unable to determine whether transported EAP keying material has been shared outside of its authorized scope, and therefore needs to be considered compromised. There is also a practical problem because the EAP peerand authenticator MUST demonstrate possession of the keying material transported betweenwill be unable to utilize thebackend authentication server andEAP authenticator(e.g. MSK),key cache inorder to demonstrate thatan efficient way. Where the peer and authenticatorhave been Aboba, et al. Standards Track [Page 24] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 authorized. Since mutual proof of possession is notidentify themselves within thesamelower layer using a port identifier such asmutual authentication,a link layer address, this creates a number of problems: [1] It may not be obvious to the peercannot verifywhich authenticatorassertions (includingports are associated with which authenticators. [2] It may not be obvious to the authenticatoridentity) as a result of this exchange. [c] Secure capabilities negotiation. In orderwhich peer ports are associated with which peers. [3] It may not be obvious toprotect against spoofing duringthediscovery phase, ensure selection ofpeer which "virtual authenticator" it is communicating with. [4] It may not be obvious to the"best" ciphersuite, and protect against forging of negotiated security parameters,authenticator which "virtual peer" it is communicating with. Since an authenticator may have multiple ports, the authenticator identifier used within the Secure Association ProtocolMUST support secure capabilities negotiation. This includes the secure negotiation of usage modes, session parameters (such as security association identifiers (SAIDs) and key lifetimes), ciphersuitesexchange SHOULD be distinct from any port identifier (e.g. MAC address). Similarly, where a peer may have multiple ports, andrequired filters, including confirmationsharing ofsecurity-relevant capabilities discovered during phase 0. As partEAP keying material and parameters between peer ports ofsecure capabilities negotiation,the same link type is allowed, the peer identifier used within the Secure Association ProtocolMUST support integrityexchange SHOULD also be distinct from any port identifier. AAA protocols such as RADIUS [RFC3579] andreplay protectionDiameter [RFC4072] provide a mechanism for the identification ofall messages. [d] Key namingAAA clients; since the EAP authenticator andselection. Where key cachingAAA client are always co-resident, this mechanism issupported, it may be possible forapplicable to the identification of EAPpeerauthenticators. RADIUS [RFC2865] requires that an Access-Request packet contain one Aboba, et al. Standards Track [Page 20] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 or more of the NAS-Identifier, NAS-IP-Address andauthenticator to shareNAS-IPv6-Address attributes. Since a NAS may have more than onekey of a given type. As a result,IP address, theSecure Association Protocol MUST explicitly nameNAS-Identifier attribute is RECOMMENDED for thekeys used inunambiguous identification of theproofEAP authenticator. From the point ofpossession exchange, so as to prevent confusion when more than one setview of the AAA server, EAP keying materialcould potentially be used asand parameters are transported to thebasis forEAP authenticator identified by theexchange. UseNAS-Identifier attribute. Since an EAP authenticator MUST NOT share EAP keying material or parameters with another party, if the EAP peer or AAA server detects use of EAP keying material and parameters outside thekey naming mechanism described in this document is RECOMMENDED.scope defined by the NAS-Identifier, the keying material MUST be considered compromised. In order tosupportensure that lower layer identifies are securely verified by all parties, it is recommended that lower layers: [a] Specify the lower layer parameters used to identify thecorrect processing of phase 2 security associations,authenticator and peer; [b] Communicate theSecure Association (phase 2) protocol MUST supportlower layer identities between thenaming ofpeer and authenticator within phase2 security associations0; [c] Communicate the lower layer authenticator identity between the authenticator andassociated transient session keys, so thatbackend server within thecorrect set of transient session keys can be identified for processing a given packet. TheNAS-Identifier attribute; [d] Include the lower layer identities within channel bindings (if supported) in phase2 Secure Association Protocol also MUST support transient session key activation and SHOULD support deletion, so1a, ensuring thatestablishment and re-establishment of transient session keys can be synchronizedthey are communicated between theparties.EAP peer and server; [e]Generation of fresh transient session keys (TSKs). WhereSecurely verify the lower layersupports caching of exported EAP keying material,identities within phase 2a; [f] Utilize theEAP peeradvertised lower layermay initiate a new session using keying material that was derived in a previous session. Wereidentities to enable theTSKspeer and authenticator tobe derived fromverify that keys are maintained within the advertised scope; 2.2.2. Virtual Authenticators When aportion ofsingle physical authenticator advertises itself as multiple "virtual authenticators", theexportedEAPkeying material, this would result in reuse of the session keys which could expose the underlying ciphersuitepeer and authenticator may not be able toattack. In lower layers where cachingagree on the scope of the EAP keyingmaterial is supported,material, creating a security vulnerability. For example, theSecure Association Protocol phase is REQUIRED,peer may assume that the "virtual authenticators" are distinct andMUST supportdo not share a key cache, whereas, depending on thederivationarchitecture offresh unicast and multicast TSKs, even whenthe physical authenticator, a shared key cache may or may not be implemented. Where EAP keying materialprovided by the backend authentication serveris shared between "virtual authenticators" an attacker acting as a peer could authenticate with the "Guest" Aboba, et al. Standards Track [Page25]21] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006not fresh. This is typically supported via"virtual authenticator" and derive EAP keying material. If theexchange of nonces or counters, which arevirtual authenticators share a key cache, thenmixed withtheexportedpeer can utilize the EAP keying materialin orderderived for the "Guest" network togenerate fresh unicast (phase 2a) and possibly multicast (phase 2b) session keys. By not usingobtain access to the "Corporate Intranet" virtual authenticator. Several measures are recommended to address these issues: [g] Authenticators are REQUIRED to cache associated authorizations along with EAP keying materialdirectlyand parameters and toprotect data,apply authorizations consistently. This ensures that an attacker cannot obtain elevated privileges even where theSecure Association Protocol protects it against compromise. [f] Key lifetime management.key cache is shared between "virtual authenticators". [h] It is RECOMMENDED that physical authenticators maintain separate key caches for each "virtual authenticator". [i] It is RECOMMENDED that each "virtual authenticator" identify itself distinctly to the backend authentication server, such as by utilizing a distinct NAS-Identifier attribute. Thisincludes explicitenables the backend authentication server to utilize a separate credential to authenticate each "virtual authenticator". 3. Key Management EAP as defined in [RFC3748] supports key derivation, but not keylifetime negotiation or seamless re-key.management. While EAP methods may derive keying material, EAP does notsupport negotiationprovide for the management ofkey lifetimes, norexported or derived keys. Although EAP methods may support "fast reconnect" as defined in [RFC3748] Section 7.2.1, EAP doesitnot support re-key of exported keys withoutre- authentication. As a result,re-authentication. Existing EAP methods do not export theSecure Association Protocol may handle re-key and determination ofKey- Lifetime parameter; in the interest of method independence, keylifetime. Where key caching is supported, secure negotiationmanagement of exported or derived keys SHOULD NOT be provided within EAP methods. 3.1. Secure Association Protocol Since neither EAP nor EAP methods provide keylifetimesmanagement support, it isRECOMMENDED. Lower layersRECOMMENDED thatsupport re-key, but not key caching, may not requirekeylifetime negotiation. To take an example from IKE,management facilities be provided within thedifference between IKEv1 and IKEv2Secure Association Protocol. This includes: [a] Entity Naming. A basic feature of a Secure Association Protocol isthatthe explicit naming of the parties engaged inIKEv1 SA lifetimes were negotiated. In IKEv2, each endthe exchange. Without explicit identification, the parties engaged in the exchange are not identified and the scope of theSAEAP keying parameters negotiated during the EAP exchange isresponsible for enforcing its own lifetime policy onundefined. As shown in Figure 3, both theSApeer andre-authenticator may have more than one physical or virtual port, and as a result SHOULD identify themselves in a manner that is independent of their attached ports. Aboba, et al. Standards Track [Page 22] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 [b] Mutual proof of possession of EAP keying material. During theSA when necessary. [g] Key resynchronization. It is possible forSecure Association Protocol the EAP peerorand authenticatorto reboot or reclaim resources, clearing portions or allMUST demonstrate possession of thekey cache. Therefore, key lifetime negotiation cannot guarantee thatkeying material transported between thekey cache will remain synchronized,backend authentication server and authenticator (e.g. MSK), in order to demonstrate that the peermayand authenticator have been authorized. Since mutual proof of possession is notbe able to determine before attempting to use a key whether it exists withinthe same as mutual authentication, the peer cannot verify authenticatorcache. It is therefore RECOMMENDED forassertions (including theSecure Association Protocol to provideauthenticator identity) as amechanism for key state resynchronization. Since in this situation one or moreresult ofthe parties initially do not possess a key with whichthis exchange. [c] Secure capabilities negotiation. In order to protect against spoofing during theresynchronization exchange, securing this mechanism may be difficult. [h] Key scope synchronization. Sincediscovery phase, ensure selection of theDiscovery phase is handled out-of-band, EAP does not provide a mechanism by which"best" ciphersuite, and protect against forging of negotiated security parameters, thepeer can determineSecure Association Protocol MUST support secure capabilities negotiation. This includes theauthenticator identity.secure negotiation of usage modes, session parameters (such as security association identifiers (SAIDs) and key lifetimes), ciphersuites and required filters, including confirmation of security-relevant capabilities discovered during phase 0. Asa result, wherepart of secure capabilities negotiation, theauthenticator has multiple portsSecure Association Protocol MUST support integrity and replay protection of all messages. [d] Key naming and selection. Where key caching is supported,the EAP peerit maynotbeable to determine the scope of validity of the exported EAP keying material. Similarly, wherepossible for the EAP peerhas multiple ports, theand authenticatormay not be abletodetermine whethershare more than one key of apeer has authorization to usegiven type. As aparticular key. To allow key scope determination,result, the Secure Association ProtocolSHOULD provide a mechanism by whichMUST explicitly name thepeer can determinekeys used in thescopeproof 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. Use of the keycache on each authenticator,naming mechanism described in this document is RECOMMENDED. 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 andby whichassociated transient session keys, so that theauthenticatorcorrect set of transient session keys candeterminebe 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 thescopeparties. [e] Generation of fresh transient session keys (TSKs). Where thekey cache onlower layer supports caching of exported EAP keying material, the EAP peer lower layer may initiate apeer. This includes negotiationnew session using keying material that was derived in a previous session. Were the TSKs to be derived from a portion of the exported EAP keying material, this would result in reuse ofrestrictions on key usage. [i] Direct operation. Sincethephase 2 Secure Association Protocol is concerned withsession keys which could expose theestablishment of security associations betweenunderlying ciphersuite to attack. Aboba, et al. Standards Track [Page26]23] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006the EAP peer and authenticator, including the derivationIn lower layers where caching oftransient session keys, only those parties have "a need to know"EAP keying material is supported, thetransient session keys. TheSecure Association ProtocolMUST operate directly between the peer and authenticator,phase is REQUIRED, and MUSTNOT be passed-through to the backend authentication server, or include additional parties. [j] 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 forsupport the derivation of fresh unicast and multicastkeys in each direction, so as not to require two separate phase 2 exchanges in order to create a bi-directional phase 2 security association. 3.2. Parent-Child Relationships WhenTSKs, even when the keying materialexportedprovided byEAP methods expires, all keying material derived fromthe backend authentication server is not fresh. This is typically supported via the exchange of nonces or counters, which are then mixed with the exported keying materialexpires, includingin order to generate fresh unicast (phase 2a) and possibly multicast (phase 2b) session keys. By not using EAP keying material directly to protect data, theTSKs. When anSecure Association Protocol protects it against compromise. [f] Key lifetime management. This includes explicit key lifetime negotiation or seamless re-key. EAP does not support re-key without re-authenticationtakes place, new keying material is derivedandexported by theexisting EAPmethod, which eventually results in replacement of calculated keys, including the TSKs.methods do not support key lifetime negotiation. As a result,whilethelifetime of calculated keys can be less than or equal thatSecure Association Protocol may handle re-key and determination of theexported keys they are derived from, it cannot be greater.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. For example,when EAP re-authentication occurs, TSKa difference between IKEv1 [RFC2409] and IKEv2 [RFC4306] is that in IKEv1 SA lifetimes were negotiated; in IKEv2, each end of the SA is responsible for enforcing its own lifetime policy on the SA and re-key will also occur. However, this does not prohibit TSK re-key from occurring priorkeying the SA when necessary. [g] Key resynchronization. It is possible for the peer or authenticator toexpirationreboot or reclaim resources, clearing portions or all of the key cache. Therefore, key lifetimeof exported keys. For example, TSK re-keynegotiation cannot guarantee that the key cache will remain synchronized, and the peer mayoccur priornot be able toEAP re-authentication. Failuredetermine before attempting tomutually prove possession of keying material duringuse a key whether it exists within the authenticator cache. It is therefore RECOMMENDED for the Secure Association Protocolexchange needto provide a mechanism for key state resynchronization. Since in this situation one or more of the parties initially do not possess a key with which to protect the resynchronization exchange, securing this mechanism may begrounds for deletion ofdifficult. [h] Key scope synchronization. To support key scope determination, thekeying material by both parties; rate-limitingSecure Association Protocolexchanges could be used to preventSHOULD provide abrute force attack. 3.3. Local Key Lifetimes The Transient EAP Keys (TEKs) are session keys used to protectmechanism by which theEAP conversation. The TEKs are internal topeer can determine theEAP methodscope of the key cache on each authenticator, andare not exported. TEKs are typically created during an EAP conversation, used untilby which theendauthenticator can determine the scope of theconversation and then discarded. However, methods may re-key TEKs during a conversation. When using TEKs within an EAP conversation or across conversations, Aboba, et al. Standards Track [Page 27] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 it is necessary to ensure that replay protection andkeyseparation requirements are fulfilled. For instance, ifcache on areplay counter is used, TEK re-key MUST occur prior to wrapping of the counter. Similarly, TSKs MUST remain cryptographically separate from TEKs despite TEK re-keying or caching.peer. Thisprevents TEK compromise from leading directly to compromiseincludes negotiation of restrictions on key usage. [i] Direct operation. Since theTSKs and vice versa. EAP methods may cache local keying material which may persist for multiple EAP conversations when fast reconnectphase 2 Secure Association Protocol isused [RFC 3748]. For example, EAP methods based on TLS (such as EAP-TLS [RFC2716]) derive and cacheconcerned with theTLS Master Secret, typically for substantial time periods. The lifetimeestablishment ofother local keying material calculated withinsecurity associations between the EAPmethod is defined bypeer and authenticator, including themethod. Note that in general, when using fast reconnect, there is no guaranteederivation of transient session keys, only those parties have "a need tothatknow" theoriginal long-term credentials are still intransient session keys. The Secure Association Protocol MUST Aboba, et al. Standards Track [Page 24] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 operate directly between thepossession ofpeer and authenticator, and MUST NOT be passed-through to thepeer. For instance,backend authentication server, or include additional parties. [j] Bi-directional operation. While some ciphersuites only require acard hold holding the private key for EAP-TLS may have been removed. EAP serverssingle 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 SHOULDalso verify thatprovide for thelong- term credentials are still valid, suchderivation of unicast and multicast keys in each direction, so asby checking that certificate usednot to require two separate phase 2 exchanges in order to create a bi-directional phase 2 security association. 3.2. Key Scope Absent explicit specification within theoriginal authentication has not yet expired. 3.4. Exportedlower layer, after the completion of phase 1b, EAP keying material andCalculated Key Lifetimes Allparameters are bound to the EAPmethods generating keyspeer and authenticator, but arerequirednot bound to a specific peer or authenticator port. While EAP Keying Material passed down to the lower layer is not intrinsically bound togenerate the MSKparticular authenticator andEMSK,peer ports, Transient Session Keys MAY be bound to particular authenticator andmay optionally generatepeer ports by theIV.Secure Association Protocol. However,EAP, defined in [RFC3748], does not support the negotiation of lifetimes for exported keying material sucha lower layer MAY also permit TSKs to be used on multiple peer and/or authenticator ports, providing that TSK freshness is guaranteed (such as by keeping replay counter state within the authenticator). In order to further limit theMSK, EMSK and IV. Several mechanisms exist for managingkeylifetimes:scope the following measures are suggested: [a]AAA attributes. AAA protocolsThe lower layer MAY specify additional restrictions on key usage, such asRADIUS [RFC2865] and Diameter [RFC4072] support the Session-Timeout attribute. The Session-Timeout value representslimiting themaximum lifetimeuse ofthe exported keys,EAP keying material andall keys calculated from it,parameters on theauthenticator. Since existing backend authentication servers do not cache keys exported byEAPmethods, or keys calculated from exported keys, the value ofpeer to theSession-Timeout attribute has no bearingport over which on thekey lifetime within theEAP conversation was conducted. [b] The backend authenticationserver. Onserver and authenticator MAY implement additional attributes in order to further restrict theauthenticator, wherescope of EAPis used for authentication, the Session-Timeout value represents the maximum session time prior to re-authentication, as describedkeying material. For example, in[RFC3580]. Where EAP is used for pre-authentication,802.11, thesession may not start until some future time, orbackend authentication server maynever occur. Nevertheless, the Session-Timeout value representsprovide thetime afterauthenticator with a list of authorized Called or Calling-Station-Ids and/or SSIDs for whichtransportedEAP keyingmaterial, and all keys calculated from it, will have expired on the authenticator. Ifmaterial is valid. [c] Where thesession subsequently starts, re-backend authenticationwillserver provides attributes restricting the key scope, it is RECOMMENDED that restrictions beinitiated oncesecurely communicated by theSession-Time has expired.authenticator to the peer. This can be accomplished using the Secure Association Protocol, but also can be accomplished via the EAP method or the lower layer. Aboba, et al. Standards Track [Page28]25] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006If the session never started, or started and ended, by default keys transported3.3. Parent-Child Relationships When keying material exported byAAA andEAP methods expires, allkeys calculatedkeying material derived fromthem will be expired by the authenticator prior tothefuture time indicated by Session-Timeout. Sinceexported keying material expires, including theTSK lifetimeTSKs. When an EAP re-authentication takes place, new keying material isoften determined by authenticator resources, the backend authentication server has no insight into the TSK derivation process,derived and exported by theprinciple of ciphersuite independence, it is not appropriate for the backend authentication server to manage any aspectEAP method, which eventually results in replacement ofthe TSK derivation process,calculated keys, including theTSK lifetime. [b] Lower layer mechanisms. While AAA attributesTSKs. As a result, while the lifetime of calculated keys cancommunicatebe less than or equal that of themaximumexported keys they are derived from, it cannot be greater. For example, when EAP re-authentication occurs, TSK re- keylifetime,will also occur. However, thisonly servesdoes not prohibit TSK re-key from occurring prior tosynchronizeexpiration of thekeylifetimebetween the backend authentication server andof exported keys. For example, TSK re-key may occur prior to EAP re-authentication. Failure to mutually prove possession of keying material during theauthenticator. Lower layer mechanisms such asSecure Association Protocol exchange need not be grounds for deletion of the keying material by both parties; rate-limiting Secure Association Protocolcan thenexchanges could be used toenable the lifetime of exported and calculatedprevent a brute force attack. 3.4. Local Key Lifetimes The Transient EAP Keys (TEKs) are session keys used tobe negotiated betweenprotect thepeerEAP conversation. The TEKs are internal to the EAP method andauthenticator. Where TSKsareestablished asnot exported. TEKs are typically created during an EAP conversation, used until theresultend of the conversation and then discarded. However, methods may re-key TEKs during aSecure Association Protocol exchange,conversation. When using TEKs within an EAP conversation or across conversations, it isRECOMMENDEDnecessary to ensure thatthe Secure Association Protocol include support for TSK resynchronization. Where the TSK is taken from the MSK, therereplay protection and key separation requirements are fulfilled. For instance, if a replay counter isno needused, TEK re-key MUST occur prior tomanagewrapping of theTSK lifetime as acounter. Similarly, TSKs MUST remain cryptographically separateparameter, sincefrom TEKs despite TEK re-keying or caching. This prevents TEK compromise from leading directly to compromise of theTSK lifetimeTSKs 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 on TLS (such as EAP-TLS [RFC2716]) derive andMSKcache the TLS Master Secret, typically for substantial time periods. The lifetimeare identical. [c] System defaults. Whereof other local keying material calculated within the EAP methoddoes not support the negotiation of the exported key lifetime, and a key lifetime negotiation mechanismisnot provideddefined by thelower lower,method. Note that in general, when using fast reconnect, theremay beis noway for the peerguarantee tolearn the exported key lifetime. In this case it is RECOMMENDEDthat thepeer assume a default value of the exported key lifetime; 8 hours is recommended. Similarly,original long-term credentials are still in thelifetimepossession ofcalculated keys can also be managed asthe peer. For instance, asystem parameter oncard hold holding theauthenticator. [d] Method specific negotiation within EAP. Whileprivate key for EAP-TLS Aboba, et al. Standards Track [Page 26] INTERNET-DRAFT EAPitself does not support lifetime negotiation, it would be possible to specify methods that do. However, systemsKey Management Framework 3 April 2006 may have been removed. EAP servers SHOULD also verify thatrely onthe long- term credentials are still valid, suchnegotiation for exported keys would only function with these methods. As a result, it is NOT RECOMMENDED to use this approachas by checking that certificate used in thesole way to determine key lifetimes.original authentication has not yet expired. 3.5. Exported and Calculated Keycache synchronization Issues arise when attemptingLifetimes All EAP methods generating keys are required tosynchronizegenerate thekey cache onMSK and EMSK, and may optionally generate the IV. However, EAP, defined in [RFC3748], does not itself support thepeer and authenticator. Lifetimenegotiationalone cannot guarantee key cache synchronization. Aboba, et al. Standards Track [Page 29] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 One problem is that the AAA protocol cannot guarantee synchronizationofkeylifetimesbetweenfor exported keying material such as thepeerMSK, EMSK andauthenticator. WhereIV. Several mechanisms exist for managing key lifetimes: [a] AAA attributes. AAA protocols such as RADIUS [RFC2865] and Diameter [RFC4072] support theSecure Association Protocol is not run immediately after EAP authentication,Session-Timeout attribute. The Session-Timeout value represents the maximum lifetime of the exported keys, and all keys calculatedkey lifetimes willfrom it, on the authenticator. Since existing backend authentication servers do notbe knowncache keys exported by EAP methods, or keys calculated from exported keys, thepeer duringvalue of thehiatus. Where EAP pre-authentication occurs, this can leaveSession-Timeout attribute has no bearing on thepeer uncertain whether a subsequent attempt to usekey lifetime within theexported keys will prove successful. However, even wherebackend authentication server. On theSecure Association Protocol is run immediately after EAP, itauthenticator, where EAP isstill possibleused for authentication, theauthenticator to reclaim resources ifSession-Timeout value represents thecreated key state is not immediately utilized. The lower layer may utilize Discovery mechanismsmaximum session time prior toassistre-authentication, as described inthis. For example,[RFC3580]. Where EAP is used for pre-authentication, theauthenticator managessession may not start until some future time, or may never occur. Nevertheless, thekey cache by deletingSession-Timeout value represents theoldest key first (LIFO),maximum time after which transported EAP keying material, and all keys calculated from it, will have expired on therelative creation time ofauthenticator. If thelast key to be deleted couldsession subsequently starts, re- authentication will beadvertised withinitiated once theDiscovery phase, enablingSession-Time has expired. If thepeer to determine whether a given key had been expiredsession never started, or started and ended, by default keys transported by AAA and all keys calculated from them will be expired by the authenticatorkey cache prematurely. 3.6. Key Strength In order to guard against brute force attacks, EAP methods deriving keys needprior to the future time indicated by Session-Timeout. Note that in future additional attributes may becapable of generating keys with an appropriate effective symmetric key strength. In orderspecified toensure that key generation is notcontrol theweakest link, it is RECOMMENDED that EAP methods utilizing public key cryptography choose a public key that has a cryptographic strength meetinglifetime of cached keys; these attributes may modify thesymmetric key strength requirement. As noted in [RFC3766] Section 5, this resultsmeaning of the Session-Timeout attribute in specific circumstances. Since thefollowing required RSA or DH moduleTSK lifetime is often determined by authenticator resources, the backend authentication server has no insight into the TSK derivation process, andDSA subgroup size in bits, for a given levelby the principle ofattack 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 475ciphersuite independence, it is not appropriate for the backend authentication server to manage any aspect of the TSK derivation process, including the TSK lifetime. Aboba, et al. Standards Track [Page30]27] INTERNET-DRAFT EAP Key Management Framework5 March3 April 20063.7. Key Wrap As described in [RFC3579] Section 4.3, known problems exist in[b] Lower layer mechanisms. While AAA attributes can communicate the maximum exported keywrap specified in [RFC2548]. Where the same RADIUS shared secret is used by a PAP authenticator and an EAP authenticator, there is a vulnerability to known plaintext attack. Since RADIUS uses the shared secret for multiple purposes, including per-packet authentication, attribute hiding, considerable information is exposed about the shared secret with each packet. This exposes the shared secret to dictionary attacks. MD5 is used both to compute the RADIUS Response Authenticator and the Message-Authenticator attribute, and some concerns exist relatinglifetime, this only serves to synchronize thesecurity of this hash [MD5Attack]. As discussed in [RFC3579] Section 4.3,key lifetime between thesecurity vulnerabilities of RADIUS are extensive,backend authentication server andtherefore development of an alternative key wrap technique based ontheRADIUS 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 key attributes, to be protected by IPsec or TLS. Where an untrusted AAA intermediary is present (suchauthenticator. Lower layer mechanisms such asa RADIUS proxy or a Diameter agent), and data object security is not used, transported keying material maythe Secure Association Protocol can then berecovered by an attacker in control ofused to enable theuntrusted intermediary. Possession of transported keying material enables decryption of data traffic sentlifetime of exported and calculated keys to be negotiated between the peer anda specificauthenticator.However, as longWhere TSKs are established asEAP keying material or keys derived fromthe result of a Secure Association Protocol exchange, it isonly utilized byRECOMMENDED that the Secure Association Protocol include support for TSK resynchronization. Where the TSK is taken from the MSK, there is no need to manage the TSK lifetime as asingle authenticator, compromise ofseparate parameter, since thetransported keying materialTSK lifetime and MSK lifetime are identical. [c] System defaults. Where the EAP method does notenable an attacker to impersonatesupport thepeer to another authenticator. Vulnerability to an untrusted AAA intermediary can be mitigated by implementationnegotiation ofredirect functionality, as described in [RFC3588]the exported key lifetime, and[RFC4072]. 4. Handoff Vulnerabilities With EAP,anumber of mechanisms arekey lifetime negotiation mechanism is not provided by the lower lower, there may beutilized in orderno way for the peer toreducelearn thelatency of handoff between authenticators. One such mechanism is EAP pre-authentication, in which EAPexported key lifetime. In this case it isutilized to pre-establish EAP keying material on an authenticator prior to arrivalRECOMMENDED that the peer assume a default value of thepeer. Another such mechanism isexported keycaching, in which an EAP peerlifetime; 8 hours is recommended. Similarly, the lifetime of calculated keys canre- attach to an authenticator without having to re-authenticate usingalso be managed as a system parameter on the authenticator. [d] Method specific negotiation within EAP.Yet another mechanism is context transfer,While EAP itself does not support lifetime negotiation, it would be possible to specify methods that do. However, systems that rely on suchasnegotiation for exported keys would only function with these methods. As a result, it isdefined in [IEEE-802.11F] (now deprecated) and [CTP]. These mechanisms introduce new security vulnerabilities,NOT RECOMMENDED to use this approach asdiscussed inthesections that follow. Aboba, et al. Standards Track [Page 31] INTERNET-DRAFT EAPsole way to determine key lifetimes. 3.6. KeyManagement Framework 5 March 2006 4.1. Authorization In a typical network access scenario (dial-in, wireless LAN, etc.) access control mechanisms are typically applied. These mechanisms include user authentication as well as authorization for the offered service. As a part ofcache synchronization Issues arise when attempting to synchronize theauthentication process,key cache on thebackend authentication server determinespeer and authenticator. While theuser's authorization profile. The user authorizations are transmitted byAAA protocol can enable the backend authentication server to provide guidance on theEAP authenticator (also known as the Network Access Server or authenticator) and with thelifetime of transported EAP keyingmaterial, in Phase 1b ofmaterial to theEAP conversation. Typically,authenticator, this does not address theprofile is determined based onproblem of key lifetime synchronization between theuser identity, but a certificate presented bypeer and authenticator. Where theuser may also provide authorization information. The backend authentication server is responsible for making a user authorization decision, answeringEAP method does not export thefollowing questions: [a] Is this a legitimate user for this particular network? [b] Is this user allowedKey-Lifetime parameter, thetypelifetime ofaccess he or she is requesting? [c] Are there any specific parameters (mandatory tunneling, bandwidth, filters, and so on) thattheaccess network shouldEAP keying material may not beawaredefined until completion offor this user? [d] Is this user withinthesubscription rules regarding time of day? [e] Is this userSecure Association Protocol, if ever. This can leave the peer uncertain how long the authenticator will maintain EAP keying material withinhis limits for concurrent sessions? [f] Are there any fraud, credit limit, or other concerns that indicate that access should be denied? Whiletheauthorization decisionkey cache. However, key lifetime negotiation alone cannot guarantee key cache synchronization. Even where the Secure Association Protocol isin principle simple,run Aboba, et al. Standards Track [Page 28] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 immediately after EAP and determines theprocesslifetime of EAP keying material, it iscomplicatedstill possible for the authenticator to reclaim resources. The lower layer may utilize the Discovery phase 0 to improve key cache synchronization. For example, if the authenticator manages the key cache by deleting thedistributed nature ofoldest key first (LIFO), thedecision making. Where brokering entities or proxies are involved, allrelative creation time of theAAA entities inlast key to be deleted could be advertised within thechainDiscovery phase, enabling the peer to determine whether keying material had been prematurely expired from the authenticator key cache. 3.7. Key Strength In order to guard against brute force attacks, EAP methods deriving keys need to be capable of generating keys with an appropriate effective symmetric key strength. In order to ensure that key generation is not the weakest link, it is RECOMMENDED that EAP methods utilizing public key cryptography choose a public key that has a cryptographic strength meeting thehome backend authentication server are involvedsymmetric key strength requirement. As noted in [RFC3766] Section 5, this results in thedecision. For instance, a broker can disallow access even if the home backend authentication server would allow it,following required RSA ora proxy can add authorizations (e.g., bandwidth limits). Decisions can be based on static policy definitionsDH module andprofiles as well as dynamic state (e.g. time of day or limits on the numberDSA subgroup size in bits, for a given level ofconcurrent sessions). In addition to the Accept/Reject decision made by the AAA chain, parametersattack resistance in bits: Attack Resistance RSA orconstraints can be communicated to the authenticator. Aboba, et al. Standards Track [Page 32] INTERNET-DRAFT EAPDH 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.8. KeyManagement Framework 5 March 2006Wrap Thecriteria for Accept/Reject decisions orkey wrap specified in [RFC2548], which is based on an MD5-based stream cipher, has known problems, as described in [RFC3579] Section 4.3. RADIUS uses thereasonsshared secret forchoosing particular authorizations are typically not communicated to the authenticator, onlymultiple purposes, including per-packet authentication and attribute hiding, considerable information is exposed about thefinal result. As a result,shared secret with each packet. This exposes theauthenticator has no wayshared secret toknow what the decision was based on. Was a set of authorization parameters sent because this servicedictionary attacks. MD5 isalways providedused both to compute theuser, or was the decision based on the time/dayRADIUS Response Authenticator and thecapabilities of the requesting authenticator device? 4.2. Correctness WhenMessage- Authenticator attribute, and concerns exist relating to theAAA exchange is bypassed via usesecurity oftechniques such as key caching,thiscreates challengeshash [MD5Collision]. Aboba, et al. Standards Track [Page 29] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 As discussed inensuring that authorization is properly handled. These include: [a] Consistent application of session time limits. Bypassing AAA should not automatically increase the available session time, allowing a user to endlessly extend their network access by changing[RFC3579] Section 4.3, thepointsecurity vulnerabilities ofattachment. [b] AvoidanceRADIUS are extensive, and therefore development ofprivilege elevation. Bypassing AAA shouldan alternative key wrap technique based on the RADIUS shared secret would notresult insubstantially improve security. As auser being granted access to services which they are not entitled to. [c] Consideration of dynamic state. In situations in which dynamic stateresult, [RFC3759] Section 4.2 recommends running RADIUS over IPsec. The same approach isinvolvedtaken inthe access decision (day/time, simultaneous session limit) it should be possibleDiameter EAP [RFC4072], which defines cleartext key attributes, totake this state into account either beforebe protected by IPsec orafter accessTLS. Where an untrusted AAA intermediary isgranted. Note that considerationpresent (such as a RADIUS proxy or a Diameter agent), and data object security is not used, transported keying material may be recovered by an attacker in control ofnetwork-wide state suchthe untrusted intermediary. Possession of transported keying material enables decryption of data traffic sent between the peer and a specific authenticator. However, assimultaneous session limits can typicallylong as EAP keying material or keys derived from it are onlybe taken into accountutilized bythe backend authentication server. [d] Encoding of restrictions. Sinceaauthenticator may not be awaresingle authenticator, compromise of thecriteria consideredtransported keying material does not enable an attacker to impersonate the peer to another authenticator. Vulnerability to an untrusted AAA intermediary can be mitigated bya backend authentication server when allowing access,implementation of redirect functionality, as described inorder[RFC3588] and [RFC4072]. 4. Handoff Vulnerabilities With EAP, several mechanisms are available toensure consistent authorization during a fastreduce the latency in handoffit may be necessarybetween authenticators: [1] EAP pre-authentication. This utilizes EAP toexplicitly encode the restrictions within the authorizations provided by the backend authentication server. [e] State validity. The introductionpre-establish EAP keying material on an authenticator prior to arrival offast handoff should not rendertheauthentication server incapable of keeping track of network- wide state. A handoff mechanism capablepeer. Use ofaddressing these concernspre-authentication within IEEE 802.11 issaiddescribed in [8021XHandoff] and [IEEE-802.11i]. [2] Key caching. This mechanism enables an EAP peer tobe "correct". One conditionre-attach to an authenticator without requiring EAP re-authentication. [3] Context transfer, such as is defined in [IEEE-802.11F] (now deprecated) and [RFC4067]. Use of context transfer forcorrectnesshandoff latency improvement is described in [IEEE-02-758]. [4] Proactive key distribution, such asfollows: For a handoff to be "correct" it MUST establish on the new deviceis described in [IEEE-02-758] and [I-D.irtf-aaaarch-handoff]. The sections that follow discuss thesame context as would have been created hadsecurity vulnerabilities introduced by thenew device completedabove mechanisms. 4.1. Authorization In aAAA conversation with the backend authentication server.typical network access scenario (dial-in, wireless LAN, etc.) access control mechanisms are typically applied. These mechanisms Aboba, et al. Standards Track [Page33]30] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006A properly designed handoff scheme will only succeed if it is "correct"include user authentication as well as authorization for the offered service. As a part of the authentication process, the backend authentication server determines the user's authorization profile. The user authorizations are transmitted by the backend authentication server to the EAP authenticator (also known as the Network Access Server or authenticator) along with the transported EAP keying material, in Phase 1b of the EAP conversation. Typically, the profile is determined based on the user identity, but a certificate presented by the user may also provide authorization information. The backend authentication server is responsible for making a user authorization decision, which requires answering the following questions: [a] Is thisway. Ifasuccessful handoff would establish "incorrect" state, itlegitimate user for this particular network? [b] Is the user allowed the type of access he or she ispreferablerequesting? [c] Are there any specific parameters (mandatory tunneling, bandwidth, filters, and so on) that the access network should be aware of forit to fail,this user? [d] Is the user operating within the time of day subscription rules? [e] Is the user within his limits for concurrent sessions? [f] Are there any fraud, credit limit, or other concerns that indicate that access should be denied? While the authorization decision is inorder to avoid creationprinciple simple, the process is complicated by the distributed nature ofincorrect context. Some backend authentication server and authenticator configurationsthe decision making. Where brokering entities or proxies areincapable of meeting this definitioninvolved, all of"correctness". For example, iftheold and new device differAAA entities intheir capabilities, it may be difficultthe chain from the authenticator tomeet this definition of correctness in a handoff mechanism that bypasses AAA. Backendthe home backend authenticationservers often perform conditional evaluation,server are involved inwhichtheauthorizations returned in an Access-Accept message are contingent ondecision. For instance, a broker can disallow access even if theauthenticatorhome backend authentication server 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 statesuch as the(e.g. time of day or limits on the number ofsimultaneous sessions. For example, in a heterogeneous deployment, the backend authentication server might return different authorizations depending onconcurrent sessions). In addition to theauthenticator makingAccept/Reject decision made by therequest, in orderAAA chain, parameters or constraints can be communicated tomake sure thattherequested service is consistent withauthenticator. The criteria for Accept/Reject decisions or theauthenticator capabilities. If differences betweenreasons for choosing particular authorizations are typically not communicated to thenew and old device would result inAboba, et al. Standards Track [Page 31] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 authenticator, only thebackend authentication server sendingfinal result. As adifferent set of messagesresult, the authenticator has no way to know what thenew device than weredecision was based on. Was a set of authorization parameters sent because this service is always provided to theold device, then ifuser, or was thehandoff mechanism bypasses AAA, thendecision based on thehandoff cannot be carried out correctly. For example, if sometime/day and the capabilities of the requesting authenticatordevices within a deployment support dynamic VLANs while others do not, then attributes present indevice? 4.2. Correctness When theAccess-Request (suchAAA exchange is bypassed via use of techniques such asthe authenticator-IP-Address, authenticator-Identifier, Vendor-Identifier, etc.) couldkey caching, it can beexaminedchallenging todetermine when VLAN attributes will be returned, as described in [RFC3580]. VLAN supportensure that authorization isdefined in [IEEE-802.1Q]. If a handoff bypassingproperly handled. Challenges include: [a] Consistent application of session time limits. Bypassing AAA should not automatically increase thebackend authentication server were to occur between a authenticator supporting dynamic VLANs and another authenticator which does not, thenavailable session time, allowing aguestuserwith access restrictedtoa guest VLAN could be given unrestrictedendlessly extend their network accesstoby changing thenetwork. Similarly,point of attachment. [b] Avoidance of privilege elevation. Bypassing AAA should not result in anetwork whereuser being granted accessis restricted based on the day and time, Service Set Identifier (SSID), Calling-Station-Id or other factors, unless the restrictionsto services which they areencoded within the authorizations, or a partial AAA conversationnot entitled to. [c] Consideration of dynamic state. In situations in which dynamic state isincluded, then a handoff could resultinvolved in theuser bypassingaccess decision (day/time, simultaneous session limit) it should be possible to take this state into account either before or after access is granted. Note that consideration of network-wide state such as simultaneous session limits can typically only be taken into account by the backend authentication server. [d] Encoding of restrictions.In practice, these considerations limitSince a authenticator may not be aware of thesituationscriteria considered by a backend authentication server when allowing access, inwhichorder to ensure consistent authorization during a fast handoffmechanisms bypassing AAA can be expected to be successful. Where the deployed devices implement the same set of services,it may bepossiblenecessary todo successful handoffsexplicitly encode the restrictions withinsuch mechanisms. However, wherethesupported services differ between devices,authorizations provided by the backend authentication server. [e] State validity. The introduction of fast handoffmay not succeed. For example, [RFC2865] section 1.1 states: Aboba, et al. Standards Track [Page 34] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 "A authenticator that doesshould notimplement a given service MUST NOT implement the RADIUS attributes for that service. For example, a authenticator that is unable to offer ARAP service MUST NOT implementrender theRADIUS attributes for ARAP. 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 are known, but not implemented. For attributes that are unknown, [RFC2865] Section 5 states: "A RADIUSauthentication serverMAY ignore Attributes with an unknown Type.incapable of keeping track of network- wide state. ARADIUS client MAY ignore Attributes with an unknown Type." In order to perform a correct handoff, if a new device is provided with RADIUS contexthandoff mechanism capable of addressing these concerns is said to be "correct". One condition for correctness is as follows: For aknown but unavailable service, thenhandoff to be "correct" it MUSTprocess this contextestablish on the new device the sameway itcontext as wouldhandle a RADIUS Access- Accept requesting an unavailable service. This MUST causehave been created had thehandoff to fail. However, if anew deviceis providedcompleted a AAA conversation withRADIUS context that indicates an unknown attribute, then this attribute MAY be ignored. Althoughthe backend authentication server. Aboba, et al. Standards Track [Page 32] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 A properly designed handoff scheme will only succeed if itmay seem somewhat counter-intuitive, failureisindeed the"correct"result wherein this way. If aknown but unsupported servicesuccessful handoff would establish "incorrect" state, it isrequested. Presumably a correctly configuredpreferable for it to fail, in order to avoid creation of incorrect context. Some authenticator and backend authentication serverwould not request that aconfigurations are incapable of meeting this definition of "correctness". For example, if the old and new devicecarry outdiffer in their capabilities, aservicehandoff mechanism that bypasses AAA may find itdoes not implement. This impliesdifficult to meet this definition of correctness. Backend authentication servers often perform conditional evaluation, in which the authorizations returned in an Access-Accept message are contingent on the authenticator or on dynamic state such as the time of day or number of simultaneous sessions. For example, in a heterogeneous deployment, the backend authentication server might return different authorizations depending on the authenticator making the request, in order to make sure thatifthe requested service is consistent with the authenticator capabilities. If differences between the new and old devicewere to complete a AAA conversation that itwouldbe likely to receive different service instructions. In suchresult in the backend authentication server sending acase, failuredifferent set ofthe handoff is the desired result. This will causemessages to the new deviceto go backthan were sent to theAAA server in order to receiveold device, then if theappropriate service definition. In practice, this implies thathandoffmechanisms which bypass AAA are most likely tomechanism bypasses AAA, the handoff cannot besuccessful within a homogeneous device deployment within a single administrative domain.carried out correctly. For example,it would notif some authenticators support dynamic VLANs while others do not, then attributes present in the Access-Request (such as the NAS-IP-Address, NAS-IPv6-Address, NAS-Identifier, etc.) could beadvisableexamined tocarry outdetermine when VLAN attributes will be returned, as described in [RFC3580]. VLAN support is defined in [IEEE-802.1Q]. If afasthandoff bypassingAAAthe backend authentication server were to occur between a authenticatorproviding confidentialitysupporting dynamic VLANs and another authenticatorthatwhich doesnot support this service. The correct result of suchnot, then ahandoff wouldguest user with access restricted to a guest VLAN could be given unrestricted access to the network. Similarly, in afailure, since ifnetwork where access is restricted based on thehandoff were blindly carried out,day and time, Service Set Identifier (SSID), Calling-Station-Id or other factors, unless the restrictions are encoded within the authorizations, or a partial AAA conversation is included, then a handoff could result in the user bypassing the restrictions. In practice, these considerations limit theuser wouldsituations in which fast handoff mechanisms bypassing AAA can bemoved from a secureexpected toan insecure channel without permission frombe successful. Where thebackend authentication server. Thusdeployed devices implement thedefinitionsame set ofa "known but unsupported service" MUST encompass requests for unavailable security services. This includes vendor-specific attributes relatedservices, it may be possible tosecurity,do successful handoffs within suchas those described in [RFC2548].mechanisms. However, where the supported services differ between devices, the handoff may not succeed. For example, [RFC2865] section 1.1 states: Aboba, et al. Standards Track [Page35]33] INTERNET-DRAFT EAP Key Management Framework5 March3 April 20065. Security Considerations"A authenticator that does not implement a given service MUST NOT implement the RADIUS attributes for that service. For example, a authenticator that is unable to offer ARAP service MUST NOT implement the RADIUS attributes for ARAP. 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 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 order toanalyze whetherperform a correct handoff, if a new device is provided with RADIUS context for a known but unavailable service, then it MUST process this context theEAP conversation achieves its security goals,same way it would handle a RADIUS Access- Accept requesting an unavailable service. This MUST cause the handoff to fail. However, if a new device is provided with RADIUS context that indicates an unknown attribute, then this attribute MAY be ignored. Although it may seem somewhat counter-intuitive, failure isfirst necessary to state those goals as well as the underlying security assumptions. The overall goal ofindeed theEAP conversation"correct" result where a known but unsupported service isto derive fresh session keys between the EAP peer and authenticatorrequested. Presumably a correctly configured backend authentication server would not request thatare known only to those parties, and for botha device carry out a service that it does not implement. This implies that if theEAP peer and authenticatornew device were todemonstratecomplete a AAA conversation thatthey are authorizedit would be likely toperform their roles either by each other or byreceive different service instructions. In such atrusted third party (the backend authentication server). The principalscase, failure of theauthentication phase arehandoff is theEAP peer and server. Completion of an EAP method exchange supporting key derivation results indesired result. This will cause thederivation of EAP keying material (MSK, EMSK, TEKs) known onlynew device to go back to theEAP peer (identified by the Peer-ID) and server (identified by the Server-ID). Both the EAP peer and EAPbackend serverknow the exported keying materialin order tobe fresh. The principals ofreceive the appropriate service definition. In practice, this implies that handoff mechanisms which bypass AAAKey transport exchangearethe EAP authenticator and the EAP server. Completion of the AAA exchange results in the transport of EAP keying material from the EAP server (identified by the Server-ID)most likely to be successful within a homogeneous device deployment within a single administrative domain. For example, it would not be advisable tothe EAPcarry out a fast handoff bypassing AAA between a authenticator(identified by the NAS-Identifier) without disclosure to any other party. Both the EAP serverproviding confidentiality andEAPanother authenticatorknowthat does not support thiskeying material to be fresh.service. Theprincipalscorrect result of such a handoff would be a failure, since if theSecure Association Protocol are the EAP peer (identified by the Peer-ID) and authenticator (identified byhandoff were blindly carried out, then theNAS- Identifier). Completion ofuser would be moved from a secure to an insecure channel without permission from theSecure Association Protocol results inbackend authentication server. Thus thederivationdefinition ofTSKs known onlya "known but unsupported service" MUST encompass requests for unavailable security services. This includes vendor-specific attributes related tothesecurity, such as those described in [RFC2548]. Aboba, et al. Standards Track [Page 34] INTERNET-DRAFT EAPpeer and authenticator. BothKey Management Framework 3 April 2006 5. Security Considerations In order to analyze whether the EAPpeer and authenticator know the TSKsconversation achieves its security goals, it is first necessary tobe fresh. 5.1. Terminologydescribe the threat model. The terms "Cryptographic binding", "Cryptographic separation", "Key strength" and "Mutual authentication" are defined in [RFC3748] and are used with the same meaning here.5.2.5.1. Threat Model The EAP threat model is described in [RFC3748] Section 7.1. The security properties of EAP methods (known as "security claims", described in [RFC3784] Section 7.2.1), address these threats. EAP method requirements for applications such as Wireless LAN authentication are described in [RFC4017]. The RADIUS threat modelAboba, et al. Standards Track [Page 36] INTERNET-DRAFT EAP Key Management Framework 5 March 2006is described in [RFC3579] Section 4.1, and responses to these 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 may compromise or steal an EAP authenticator, in an attempt to gain access to other EAP authenticators or obtain long- term secrets. [2] An attacker may compromise an EAP authenticator in an effort to commit fraud. For example, a compromised authenticator may provide incorrect information to the EAP peer and/or server via out-of-band mechanisms (such as via a AAA 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 an authentication method or cryptographic transform. [5] An attacker may attempt to induce an EAP peer, authenticator or server to disclose keying material to an unauthorized party, or utilize keying material outside the context that it was intended for. [6] An attacker may replay packets. [7] An attacker may cause an EAP peer, authenticator or server to reuse an stale key. Use of stale keys may also occur unintentionally. Aboba, et al. Standards Track [Page 35] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 For example, a poorly implemented backend authentication 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 to access information that it does not have rights to. In order to address 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.5.2. Authenticator Compromise In the event that an authenticator is compromised or stolen, an attacker may gain access to the network via that authenticator, orAboba, et al. Standards Track [Page 37] INTERNET-DRAFT EAP Key Management Framework 5 March 2006may obtain the credentials required for that authenticator/AAA client to communicate with one or more backend authentication servers. However, this should not allow the attacker to compromise other authenticators or the backend authentication server, or obtain long- term user credentials. The implications of 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 if one EAP authenticator were compromised, this would enable the compromise of keying material on another authenticator. In order to be able to determine whether keying material has been shared, it is necessary for the identity of the EAP authenticator to be defined and understood by all parties that communicate with it. No AAA Credential Sharing AAA credentials (such as RADIUS shared 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 to impersonate other AAA clients to the backend authentication server, or even to impersonate a backend authentication server to other AAA clients. No Compromise of Long-Term Credentials An attacker obtaining TSKs, TEKs or 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.5.4.Aboba, et al. Standards Track [Page 36] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 5.3. 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 or TLS. RADIUS/EAP [RFC3579] provides for per-packet authentication and integrity protection via use of the Message-Authenticator attribute. [RFC3748] Section 7.2.1 describes the "integrity protection" security claim and [RFC4017] requires use of EAP methods supporting this claim. In order to prevent forgery of Secure Association Protocol frames, per-frame authentication and integrity protection is RECOMMENDED on all messages. [IEEE-802.11i] supports per-frame integrity protectionAboba, et al. Standards Track [Page 38] INTERNET-DRAFT EAP Key Management Framework 5 March 2006and authentication on all messages within the 4-way handshake except the first message. An attack leveraging this ommission is described in [Analysis].5.5.5.4. Downgrade Attacks The ability to negotiate the use of a particular cryptographic algorithm provides resilience against compromise of a particular cryptographic algorithm. This is usually accomplished by including an algorithm identifier in the protocol, and by specifying the algorithm requirements in the protocol specification. In order to prevent downgrade attacks, secure confirmation of the "best" ciphersuite is required. [RFC3748] Section 7.2.1 describes the "protected ciphersuite negotiation" security claim that refers to the ability of an EAP method 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, and relies on MD5 for integrity protection, authentication and confidentiality, despite known weaknesses in the algorithm[MD5Attack].[MD5Collision]. This issue can be addressed via use of 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 [Page 37] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 suite of mandatory-to-implement algorithm MUST be selected. 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.5.5. Unauthorized Disclosure While preserving algorithm independence, confidentiality of all keying material MUST be maintained. To prevent unauthorized disclose of keys, each party in the EAP conversation MUST be authenticated to the other parties with whom it communicates. Keying material MUST be bound to the appropriate context. [RFC3748] Section 7.2.1 describes the "mutual authentication" and "dictionary attack resistance" claims, and [RFC4017] requires EAPAboba, et al. Standards Track [Page 39] INTERNET-DRAFT EAP Key Management Framework 5 March 2006methods satisfying these claims. EAP methods complying with [RFC4017] therefore provide for mutual authentication between the EAP peer 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 backend authentication server communicate directly and credible keywrap is used (see Section3.7),3.8), this ensures that the AAA Key Transport phase achieves its security objectives: mutually authenticating the AAA client/authenticator and backend authentication server and providing EAP keying material to the EAP authenticator and to no other party. [RFC2607] Section 7 describes the security issues ocurring when the authenticator and backend authentication server do not communicate directly. As noted in Section 3.1, the Secure Association Protocol does not by itself provide for mutual authentication between the EAP peer and authenticator, even if mutual possession of EAP keying material is proven.However, whereWhere the NAS/authenticator and backend authentication server communicate directly, the backend authentication server can verify the correspondence between NAS identification attributes, the source address of packets sent by the NAS, and the AAA credentials. As long as the NAS has not shared its AAA credentials with another NAS, this allows the backend authentication server to authenticate the NAS. Using Channel Bindings, the EAP peer can then determine whether the NAS/authenticator has provided the same identifying information to the EAP peer and backend authentication server. Peer and authenticator authorization MUST be performed. Aboba, et al. Standards Track [Page 38] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 Authorization is REQUIRED whenever a peer associates with a new authenticator. Authorization checking prevents an elevation of privilege attack, and ensures that an unauthorized authenticator is detected. Authorizations SHOULD be synchronized between the EAP peer, server, authenticator. Once the EAP conversation exchanges are complete, all of these parties should hold the same view of the authorizations associated the other parties. If peer authorization is restricted, then the peer SHOULD be made aware of the restriction. The AAA exchange provides the EAP authenticator with authorizations relating to the EAP peer. However, neither the EAP nor AAA exchanges provides authorizations to the EAP peer. In order to ensure that all parties hold the same view of the authorizations it is RECOMMENDED that the Secure Association Protocol enable communication of authorizations between the EAP authenticator and peer. In order to enable key binding and authorization of all parties, itAboba, et al. Standards Track [Page 40] INTERNET-DRAFT EAP Key Management Framework 5 March 2006is RECOMMENDED that the parties use a set of identities that are consistent between the conversation 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 backend authentication server provides EAP keying material for use by the EAP authenticator as identified by these attributes, where an EAP authenticator may have multiple ports, it is RECOMMENDED for the EAP authenticator to identify itself using NAS identification attributes during the Secure Association Protocol exchange with the EAP peer. This enables the EAP peer to determine whether EAP keying material has been shared between EAP authenticators as well as to confirm with the backend authentication server that an EAP authenticator proving possession of EAP keying material during the Secure Association Protocol was authorized to obtain it. Typically, the NAS-Identifier attribute is most convenient for this purpose, since a NAS/authenticator may have multiple IP addresses. Similarly, the backend authentication server authorizes the EAP authenticator to provide access toConsistently identifying the EAPpeer identified by the Peer-ID, securely verified duringauthenticator enables the EAPauthentication exchange. In orderpeer to determine whether EAP keying material has been shared between EAPpeers, whereauthenticators as well as to confirm with the backend authentication server that an EAPpeer has multiple ports it is RECOMMENDED for theauthenticator proving possession of EAPpeer to identify itself using the Peer-IDkeying material during the Secure Association Protocolexchange with the EAP authenticator. 5.7.was authorized to obtain it. Identification issues are discussed in Section 2.2 and key scope issues are discussed in Section 3.2. 5.6. 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. [RFC3748] Section 7.2.1 describes the "replay protection" security claim and [RFC4017] requires use of EAP methods supporting this claim. Diameter [RFC3588] provides support for replay protection via use of IPsec or TLS. RADIUS/EAP [RFC3579] protects against replay of keying material via the Request Authenticator. However, some RADIUS packets are not replay protected. In Accounting, Disconnect and CoA-Request packets the Request 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 not depend on a Nonce in either the Request or Response packets. Therefore unless an Event-Timestamp attribute is included or IPsec isAboba, et al. Standards Track [Page 41] INTERNET-DRAFT EAP Key Management Framework 5 March 2006used, the recipient may not be able to determine whether these packets have been replayed. Aboba, et al. Standards Track [Page 39] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 In order to prevent replay of Secure Association Protocol frames, replay protection is REQUIRED on all messages. [IEEE-802.11i] supports replay protection on all messages within the 4-way handshake.5.8.5.7. Key Freshness A session key should be considered compromised if it 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 the intended use. Each session deserves an independent session key; disclosure of one session key MUST NOT aid the attacker in discovering any other session keys. Fresh keys are required even when a long replay counter (that is, one that "will never wrap") is used to ensure that loss of state does not cause the same counter value to be used more than once with the same session key. EAP, AAA and the lower layer each bear responsibility for ensuring the use of fresh, strong session keys: EAP EAP methods need to ensure the freshness and strength of EAP keying material provided as an input to session key derivation. [RFC3748] Section 7.10 states that "EAP methods SHOULD ensure the freshness of the MSK and EMSK, even in 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 the MSK and EMSK." The contribution of nonces enables the EAP peer and server to ensure that exported EAP keying material is fresh. [RFC3748] Section 7.2.1 describes the "key strength" and "session independence" security claims, and and [RFC4017] requires use of EAP methods supporting these claims as well as being capable of providing an equivalent key strength of 128 bits or greater. AAA The AAA protocol needs to ensure that transported keying material is 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 the EAP Type and Method-ID (basedAboba, et al. Standards Track [Page 42] INTERNET-DRAFT EAP Key Management Framework 5 March 2006on the nonces contributed by the peer and server) enables the EAP peer, authenticator and server to distinguish EAP conversations. However, unless the authenticator keeps track of EAP Session-IDs, Aboba, et al. Standards Track [Page 40] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 the authenticator cannot use the Session-ID to guarantee the freshness of EAP keying material. As described in [RFC3580] Section 3.17, When sent in an Access- Accept along with a Termination-Action value of RADIUS-Request, the Session-Timeout attribute specifies the maximum number of seconds of service provided prior to re-authentication. [IEEE-802.11i] also utilizes the Session-Timeout attribute to limit the maximum time that EAP keying material may becache.cached. Therefore the use of the Session-Timeout attribute enables the backend authentication server to limit the exposure of EAP keying material. Lower LayerTheAs described in Section 3.1, the lower layer Secure Association Protocol MUST generate a fresh session key for each session, even if the keying material and parameters provided by EAP methods are cached, or either the peer or authenticator lack a high entropy random number generator. A RECOMMENDED method is for the peer and authenticator to each provide a nonce or counter used in session key derivation. If a nonce is used, it is RECOMMENDED that it be at least 128 bits.5.9.5.8. Elevation of Privilege Parties MUST NOT have access 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 apost-EAP handshakeSecure Association Protocol is used to establish session keys,the post-EAP handshakeit MUST specify the scope for session keys. Transported EAP keying material is permitted to be accessed by the EAP peer, authenticator and server. The EAP peer and server derive the transported keying material during the process of mutually authenticating each other using the selected EAP method. During the 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 and was 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 are permitted to be accessed only by the EAP peer and authenticator (see Section 1.5). As discussed in Section 2.1, PPP Aboba, et al. Standards Track [Page43]41] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006TSKs are permitted to be accessed only by the EAP peerandauthenticator. Since802.11i derive the TSKscan be determinedfromthetransported EAP keying material; 802.16e utilizes transported EAP keying materialandfor TSK keywrap; IKEv2 utilizes transported EAP keying material only to authenticate thecleartextderivation ofthe Secure Association Protocol exchange,TSKs. Where demonstration of authorization depends entirely on possession of transported EAP keying material (such as in PPP, 802.11i and 802.16e), this enables the backendauthenticationserverwill have accessto masquerade as the authenticator, and possibly to obtain the TSKs unlessitthe backend server deletes the transported EAP keying material after sending it.5.10.5.9. 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. In 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 the EMSK.5.11.5.10. Denial of Service Attacks Key caching may result in vulnerability to denial of service attacks. For example, EAP methods that create persistent state may be vulnerable to denial of service attacks on the EAP server by a rogue EAP peer. To address this vulnerability, EAP methods creating persistent state may wish to limit the persistent state created by an EAP peer. For example, for each peer an EAP server may choose to limit persistent state to a few EAP conversations, distinguished by the EAP Session- ID. This prevents a rogue peer from denying access to other peers. Similarly, to conserve resources an authenticator may choose to limit the persistent state corresponding to each peer. This can be accomplished by limiting each peer to persistentsttatestate corresponding to a few EAPconverations,conversations, distinguished by the EAP Session-ID. Aboba, et al. Standards Track [Page 42] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 Depending on the media, creation of new TSKs may or may not imply deletion of previously derived TSKs. Where there is no implied deletion, the authenticator may choose to limit the number of TSKsAboba, et al. Standards Track [Page 44] INTERNET-DRAFT EAP Key Management Framework 5 March 2006and associated state that can be stored for each peer.5.12.5.11. Impersonation Both the RADIUS [RFC2865] and Diameter [RFC3588] protocols are potentially vulnerable to impersonation by a rogue authenticator. WhileAAAboth protocolssuch 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 backend authentication server), the security mechanismsvary according to the AAA protocol.vary. In 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 RADIUSrequestsAccess-Requests are forwarded by a proxy, theNAS-IP-AddressNAS-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 (andtransortedtransported 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 forged as well.As recommended in[RFC3579] Section4.3.7, this vulnerability4.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 incorrect Called-Station-ID [RFC2865], NAS-Identifier [RFC2865], NAS-IP-Address [RFC2865] or NAS-IPv6-Address [RFC3162] attributes via the AAA protocol). This vulnerabilityh can be mitigated by having RADIUS proxies check NAS identification attributes against the source Aboba, et al. Standards Track [Page 43] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 address. While [RFC3588] requires use of the Route-Record AVP, this utilizes FQDNs, so that impersonation detection requires DNSA/AAAAA, AAAA and PTRRRsResource Records (RRs) to be properly configured. As a result,it appears thatDiameter is as vulnerable to this attack as RADIUS, if not more so. ToAboba, et al. Standards Track [Page 45] INTERNET-DRAFT EAP Key Management Framework 5 March 2006address 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].5.13.5.12. Channel Binding 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 lower layer). Where EAP is used in pass-through mode, the EAP peer does not verify the identity of the pass-through authenticator. Within the Secure Association Protocol, the EAP peer and authenticator only demonstrate mutual possession of the transported EAP 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 asAs described in the previous section, it is possible for a proxy to detect a AAA clientcan be detected if it attemptsattempting to impersonate another authenticator (such by sending incorrect Called-Station-ID [RFC2865],NAS-IdentifierNAS- 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 backend authentication server while communicating misleading information to the EAP peer via the lower layer. For example, a compromised authenticator can utilize another authenticator's Called-Station-Id or NAS-Identifier in communicating with the EAP peer via the lowerlayer, or forlayer. Also, a pass-through authenticator acting as a AAA clienttocan 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 by EAP methods that support a protected exchange of channel 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]. Aboba, et al. Standards Track [Page 44] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 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 [I- D.arkko-eap-service-identity-auth].Aboba, et al. Standards Track [Page 46] INTERNET-DRAFT EAP Key Management Framework 5 March 2006It is also possible to achieve Channel Bindings without transporting data over EAP. For example, see[draft-ohba-eap-aaakey-binding].[I-D.draft-ohba-eap-aaakey-binding]. In this approach the authenticator informs the backend server about the Channel Binding parameters using AAA, and the backend server calculates transported keying material based on this parameter set, making it impossible for the peer and authenticator to complete the Secure Association Protocol if there was a mismatch in the parameters. The main difference between these approaches is that Channel Binding support within an EAP method may require upgrading or changing the EAP method, impacting both the peer and the server. Where Channel Bindings are implemented in AAA, the peer, authenticator and the backend server need to be upgraded, but the EAP method need not be modified. 6. IANA Considerations Thisdocumentspecification does notcreaterequest the creation of any newname spacesparameter registries, nor does itallocaterequire anyprotocol parameters.other IANA assignments. 7. References 7.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. 7.2. Informative References [Analysis] He, C. and J. Mitchell, "Analysis of the 802.11i 4-Way Handshake", Proceedings of the 2004 ACM Workshop on Wireless Security, pp. 43-50, ISBN: 1-58113-925-X.[CTP] Loughney, J., Nakhjiri, M., Perkins, C.[GKDP] Dondeti, L., Xiang, J. andR. Koodli, "Context TransferS. Rowles, "GKDP: Group Key Distribution Protocol",draft-ietf-seamoby-ctp-11.txt,Internet draft (work in progress),August 2004.draft-ietf-msec-gkdp-01, March 2006. Aboba, et al. Standards Track [Page47]45] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006[DESMODES] National Institute of Standards[GSAKMP] Harney, H., Meth, U., Colegrove, A., andTechnology, "DES Modes of Operation", FIPS PUB 81, December 1980, <http:// www.itl.nist.gov/fipspubs/fip81.htm>. [FIPSDES] National InstituteG. Gross, "GSAKMP: Group Secure Association Group Management Protocol", Internet draft (work in progress), draft-ietf-msec-gsakmp- sec-10, May 2005. [He] He, C., Sundararajan, M., Datta, A. Derek, A. and J. C. Mitchell, "A Modular Correctness Proof ofStandardsTLS andTechnology, "Data Encryption Standard", FIPS PUB 46, January 1977.IEEE 802.11i", ACM Conference on Computer and Communications Security (CCS '05), November, 2005. [Housley] Housley, R. and B. Aboba, "AAA Key Management",draft-housley- aaa-key-mgmt-01.txt,draft- housley-aaa-key-mgmt-01.txt, Internet draft (work in progress), November 2005.[IEEE-802] Institute of Electrical and Electronics 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][IEEE802.11i] Institute of Electrical and Electronics Engineers, "Supplement toSTANDARD FORStandard for Telecommunications and Information ExchangebetweenBetween Systems - LAN/MAN Specific Requirements - Part 11: Wireless LAN Medium Access Control (MAC) andphysical layerPhysical Layer (PHY)specifications:Specifications: Specification for Enhanced Security", IEEE 802.11i,DecemberJuly 2004. [IEEE-802.11F] Institute of Electrical and Electronics Engineers, "Recommended Practice for Multi-Vendor Access Point Interoperability via an Inter-Access Point Protocol AcrossAboba, et al. Standards Track [Page 48] INTERNET-DRAFT EAP Key Management Framework 5 March 2006Distribution Systems Supporting IEEE 802.11 Operation", IEEE 802.11F, July 2003 (now deprecated). Aboba, et al. Standards Track [Page 46] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 [IEEE-802.16e] Institute of Electrical and Electronics Engineers, "IEEE Standard for Local and Metropolitan Area Networks: Part 16: Air Interface for Fixed and Mobile Broadband Wireless Access Systems: Amendment for Physical and Medium Access Control Layers for Combined Fixed and Mobile Operations in Licensed Bands" IEEE 802.16e, August 2005. [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, 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 for the Extensible Authentication Protocol (EAP)", draft- arkko-eap-service-identity-auth-02.txt (work in progress), May 2005.Aboba, et al. Standards Track [Page 49] INTERNET-DRAFT EAP Key Management Framework 5 March 2006[I-D.ohba-eap-aaakey-binding] Ohba, Y., "AAA-Key Derivation with Channel Binding", draft- ohba-eap-aaakey-binding-00.txt (work in progress), May 2005.[MD5Attack] Dobbertin, H., "The Status of[I-D.irtf-aaaarch-handoff] Arbaugh, W. and B. Aboba, "Handoff Extension to RADIUS", draft-irtf-aaaarch-handoff-04.txt (work in progress), October 2003. [MD5Collision] Klima, V., "Tunnels in Hash Functions: MD5AfterCollisions Within aRecent Attack", CryptoBytes, Vol.2 No.2, 1996. [RFC0793] Postel, J., "Transmission Control Protocol", STD 7, RFC 793, September 1981.Minute", Cryptology ePrint Archive, March 2006, http://eprint.iacr.org/2006/105.pdf Aboba, et al. Standards Track [Page 47] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 [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 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.,and D. Carrel, "ThePPP Triple-DES Encryption Protocol (3DESE)",Internet Key Exchange (IKE)", RFC2420, September2409, November 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. [RFC2535] Eastlake, D., "Domain Name System Security Extensions", RFC 2535, March 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.Aboba, et al. Standards Track [Page 50] INTERNET-DRAFT EAP Key Management Framework 5 March 2006[RFC2716] Aboba, B. and D. Simon, "PPP EAP TLS Authentication Protocol", RFC 2716, October 1999. [RFC2782] Gulbrandsen, A., Vixie, P. and L. Esibov, "A DNS RR for specifying the location of services (DNS SRV)", RFC 2782, February 2000. [RFC2845] Vixie, P., Gudmundsson, O., Eastlake, D. and B. Wellington, "Secret Key Transaction Authentication for DNS (TSIG)", RFC 2845, May 2000. [RFC2865] Rigney, C., Willens, S., Rubens, A. and W. Simpson, "Remote Authentication Dial In User Service (RADIUS)", RFC 2865, June 2000. [RFC2931] Eastlake, D., "DNS Request and Transaction Signatures (SIG(0)s )", RFC 2931, September 2000. [RFC3007] Wellington, B., "Simple Secure Domain Name System (DNS) Dynamic Update", RFC 3007, November 2000.[RFC3078] Pall, G.[RFC3547] Baugher, M., Weis, B., Hardjono, T. andG. 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)",H. Harney, "The Group Domain of Interpretation", RFC3079, March 2001.3547, July 2003. [RFC3579] Aboba, B. and P. Calhoun, "RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Aboba, et al. Standards Track [Page 48] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 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 2004.[RFC4005] Calhoun, P., Zorn, G., Spence, D.[RFC3830] Arkko, J., Carrara, E., Lindholm, F., Naslund, M. andD. Mitton, "Diameter Network Access Server Application",K. Norrman, "MIKEY: Multimedia Internet KEYing", RFC4005,3830, August2005.2004. [RFC4017] Stanley, D., Walker, J. and B. Aboba, "EAP Method Requirements for Wireless LANs", RFC 4017, March 2005.Aboba, et al. Standards Track [Page 51] INTERNET-DRAFT EAP Key Management Framework 5 March 2006[RFC4046] Baugher, M., Canetti, R., Dondeti, L. and F. Lindholm, "Multicast Security (MSEC) Group Key Management Architecture", RFC 4046, April 2005. [RFC4067] Loughney, J., Nakhjiri, M., Perkins, C. and R. Koodli, "Context Transfer Protocol (CXTP)", RFC 4067, July 2005. [RFC4072] Eronen, P., Hiller, T. and G. Zorn, "Diameter Extensible Authentication Protocol (EAP) Application", RFC 4072, August 2005. [RFC4118] Yang, L., Zerfos, P. and E. Sadot, "Architecture Taxonomy for Control and Provisioning of Wireless Access Points (CAPWAP)", RFC 4118, June 2005. [RFC4186] Haverinen, H. and J. Salowey, "Extensible Authentication Protocol Method for Global System for Mobile Communications (GSM) Subscriber Identity Modules (EAP-SIM)", RFC 4186, January 2006. [RFC4187] Arkko, J. and H. Haverinen, "Extensible Authentication Protocol Method for 3rd Generation Authentication and Key Agreement (EAP-AKA)", RFC 4187, January 2006. [RFC4306] Kaufman, C., "Internet Key Exchange (IKEv2) Protocol", RFC 4306, December 2005. Aboba, et al. Standards Track [Page 49] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 [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.Aboba, et al. Standards Track [Page 52] INTERNET-DRAFT EAP Key Management Framework 5 March 2006 AuthorAuthors' 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 Aboba, et al. Standards Track [Page 50] INTERNET-DRAFT EAP Key Management Framework 3 April 2006 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 [Page53]51] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006 Appendix A - 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, and Server-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 is defined in [RC3748]. It does not derive keys, and therefore 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 is defined in [RFC3748]. It does not derive keys and therefore does not define the Key-Lifetime and Method-ID. The Peer-ID and Server-ID are the empty string (zero length). EAP-GTC The EAP-GTC method is defined in [RFC3748]. It does not derive keys and therefore does not define the Key-Lifetime and Method-ID. The Peer-ID and Server-ID are the empty string. EAP-OTP The EAP-OTP method is defined in [RFC3748]. It does not derive keys and therefore does not define the Key-Lifetime and Method-ID. The Peer-ID and Server-ID are the empty string. EAP-TLS EAP-TLS is defined in [RFC2716]. The EAP-TLS Method-Id is the concatenation of the peer and server nonces. The Peer-ID and Server-ID are the contents of the altSubjectName in the peer and server certificates. EAP-TLS does not negotiate a Key-Lifetime. EAP-AKA EAP-AKA is defined in [RFC4187]. The EAP-AKA Method-Id is the contents of the RAND field from the AT_RAND attribute, followed by Aboba, et al. Standards Track [Page54]52] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006AT_RAND attribute, followed bythe contents of the AUTN field in the AT_AUTN attribute. The Peer-ID is the contents of the Identity field from the AT_IDENTITY attribute, using only the Actual Identity Length octets from the beginning, however. Note that the contents are used as they are transmitted, regardless of whether the transmitted identity was a permanent, pseudonym, or fast re- authentication identity. The Server-ID is an empty string. EAP- AKA does not negotiate a key lifetime. EAP-SIM EAP-SIM is defined in [RFC4186]. The EAP-SIM Method-Id is the contents of the RAND field from the AT_RAND attribute, followed by the contents of the NONCE_MT field in the AT_NONCE_MT attribute. The Peer-ID is the contents of the Identity field from the AT_IDENTITY attribute, using only the Actual Identity Length octets from the beginning, however. Note that the contents are used as they are transmitted, regardless of whether the transmitted identity was a permanent, pseudonym, or fast re- authentication identity. The Server-ID is 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. The 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 [Page55]53] INTERNET-DRAFT EAP Key Management Framework5 March3 April 2006 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 (2006). 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 [Page56]54] ----