Network Working Group V. Smyslov Internet-Draft ELVIS-PLUS Intended status: Standards TrackOctober 22, 2014P. Wouters Expires:April 25,July 17, 2015 Red Hat January 13, 2015 The NULL Authentication Method in IKEv2 Protocoldraft-ietf-ipsecme-ikev2-null-auth-01draft-ietf-ipsecme-ikev2-null-auth-02 Abstract This documentintroducesspecifies the NULLauthentication methodAuthentication Method and the ID_NULL Identification Payload ID Type for the IKEv2 Protocol. Thismethod provides a wayallows two IKE peers toomitestablish single-side authenticated or mutual un-authenticated IKE sessions for those use cases where a peerauthentication in the IKEv2. It mayis unwilling or unable to authenticate itself. This ensures IKEv2 can be used for Opportunistic Security (also known as Opportunsitic Encryption) topreserve anonymity of or in the situations, where no trust relationship exists betweendefend against Pervasive Monitoring attacks without theparties.need to sacrifice anonimity. Status of this Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at http://datatracker.ietf.org/drafts/current/. 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." This Internet-Draft will expire onApril 25,July 17, 2015. Copyright Notice Copyright (c)20142015 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1. Conventions Used in This Document . . . . . . . . . . . . 3 2. Using the NULL Authentication Method . . . . . . . . . . . . . 4 2.1. Authentication Payload . . . . . . . . . . . . . . . . . . 4 2.2. Identity Payload . . . . . . . . . . . . . . . . . . . . . 4 2.3. INITIAL_CONTACT Notification . . . . . . . . . . . . . . .45 3. Security Considerations . . . . . . . . . . . . . . . . . . . 6 3.1. Audit trail and peer identification . . . . . . . . . . . 6 3.2. Resource management and robustness . . . . . . . . . . . . 6 3.3. IKE configuration selection . . . . . . . . . . . . . . . 7 3.4. Networking topology changes . . . . . . . . . . . . . . . 7 3.5. Priviledged IKE operations . . . . . . . . . . . . . . . . 8 4. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . .79 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . .810 6. References . . . . . . . . . . . . . . . . . . . . . . . . . . 11 6.1. Normative References . . . . . . . . . . . . . . . . . . . 11 6.2. Informative References . .9 Author's Address. . . . . . . . . . . . . . . . 11 Authors' Addresses . . . . . . . . .10. . . . . . . . . . . . . . . 12 1. Introduction The Internet Key Exchange Protocol version 2 (IKEv2), specified in[IKEv2],[RFC7296], provides a way for two parties to perform an authenticated key exchange.Mutual authentication is mandatory in the IKEv2, so that each party must be authenticated by the other. HoweverWhile the authenticationmethods,methods used by thepeers, need notpeers can be different, there is no method for one or both parties to remain unauthenticated and anonymous. This document extends thesame.authentication methods to support unauthenticated key exchanges. In some situations mutual authentication is undesirable, superfluous or impossible.For example:The following three examples illustratate these un- authenticated use cases: oUserA user wants togetestablish an anonymousaccesssecure connection tosomea server. In this situationhe/shethe user should be able to authenticate theserver, butserver without presenting or authenticating toleave out his/herthe server with their ownauthentication to preserve anonymity. In thisidentity. This caseone-wayuses a single-sided authentication of theresponder is desirable.responder. oSensor,A sensor thatsleeps most of the time, butperiodically wakesup, makes some measurmentup from a suspended state wants to send a measurement (e.g. temperature)and sends the resultstosomea collecting server. The sensor must be authenticated by the server to ensure authenticity of the measurment, but theserver needsensor does notbe authenticated byneed to authenticate thesensor. In thisserver. This caseone-wayuses a single-sided authentication of theinitiator is sufficient.initiator. o Two peers without any trust relationshipwantwish toget some level of securitydefend against widespread pervasive monitoring attacks as described intheir communications.[RFC7258]. Without a trustrelationship theyrelationship, the peers cannotprevent active Man-in-the-Middle attacks, but itauthenticate each other. Opportunistic Security [RFC7435] states that un- authenticated encrypted communication is prefered over cleartext communication. The peers want to use IKE to setup an un- authenticated encrypted connection, that gives them protection against pervasive monitoring attacks. An attacker that is able and willing to send packets can stillpossiblelaunch an Man-in-the-Middle attack toprevent passive eavesdropping with opportunistic encryption. In thisobtain access to the decrypted communication. This casethey can use unauthenticateduses a fully anonymous un-authenticated key exchange. To meet these needsthethis document introduces the NULL authentication method,which is a "dummy" method, that provides no authentication.and the ID_NULL identity type. This allows an IKE peer to explicitly indicateto the other sidethat it is unwilling or unable to certify its identity. 1.1. Conventions Used in This Document The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119]. 2. Using the NULL Authentication Method InIKEv2IKEv2, each peer independently selects the method to authenticate itself to the other side.It means that any of the peersA peer may choose toomit itsrefrain from authentication by using the NULLauthentication method.Authentication Method. Ifit is not acceptable fora peer that requires authentiation receives an AUTH payload containing theother peer,NULL Authentication Method type, it MUST return an AUTHENTICATION_FAILED notification.Note, that when theIf an initiator uses EAP, the responder MUST NOT use the NULLauthentication methodAuthentication Method (in conformance with the section 2.16 of[IKEv2]).[RFC7296]). The NULLauthentication methodAuthentication Method affects how the Authentication and the Identity payloads are formed in the IKE_AUTH exchange. 2.1. Authentication PayloadDespite the fact that theThe NULLauthentication method provides no authentication, theAuthentication Method still requires a properly formed AUTH payloadmust stillto be present in the IKE_AUTH exchangemessages and must be properly formed,messages, asitthe AUTH payload cryptographically links the IKE_SA_INIT exchange messages with the other messages sent over this IKE SA.WithWhen using the NULLauthentication methodAuthentication Method, the content of the AUTH payloadMUST beis computed using the syntaxforof pre-shared secret authentication, described in Section 2.15 of[IKEv2].[RFC7296]. The values SK_pi and SK_prMUST beare used as shared secrets for the content of the AUTH payloads generated by the initiator and the responder respectively.Note,Note that this isexactlyidentical to how the content of the two last AUTH payloads iscalculatedgenerated fornon-key generatingthe non-key-generating EAPmethodmethods (see Section 2.16 of[IKEv2][RFC7296] for details). The KEv2 Authentication Method value for thetheNULLauthentication methodAuthentication Method is<TBA by IANA>.13. 2.2. Identity PayloadThe NULL authentication method provides no authentication ofWhen a remote peer is not authenticated, any ID presented in theparty using it. For that reasonIdentification Data field of theIdentity payload contentIdentification Payload cannot beverified by the peervalidated and MUST beignored by the IKE. This specification definesignored. A new Identification Payload ID Type- ID_NULL, whichisintendedintroduced tobe usedavoid the need of sending a bogus ID Type with placeholder data. Furthermore, sending a traditional ID field might unwittingly compromise theNULL authentication method to explicitely indicate anonymityanonimity of the peer. This specification defines a new ID TypeMUST NOTof ID_NULL, which SHOULD only be used withauthentication methods, that provide real authentication.the NULL Authentication Method. The Identification Datain Identity payload forfield of theID_NULL typeIdentification Payload MUST beabsent and theempty. The IKEv2 Identification Payload ID Type for ID_NULL isset to <TBA by IANA>.13. 2.3. INITIAL_CONTACT Notification The identity of the peer which uses the NULLauthentication methodAuthentication Method cannot be used to distinguishbetweedbetween IKE SAs created by differentpeers, because the peers may use the same identity (for example all endpoints which use identity of type ID_NULL).peers. For that reason the INITIAL_CONTACTnotificationnotifications MUST be ignoredif it is present by the partyfor IKE SAs using the NULLauthentication method. To find out staleAuthentication Method. When a new IKESAs in this situation,SA is established using the NULL Authentication Method, implementationsshouldMAY perform a Liveness Check on all other IKE SAswiththat were established using thesame peer idenity asNULL Authentication Method. To mitigate thenewly created IKE SA. 3. Security Considerations IKEv2 protocol provides mutual authenticationpotential impact of sending Liveness Check messages on a large number of IKE SAs, implementations are advised not to blindly perform Liveness Check on every such SA, but to take into considerations additional information, that may indicate that thepeers. If one peer usesparticular SA is alive. This information may include theNULL authentication method, then this peer cannot be authenticated byrecent receipt of cryptographically protected message on theother side, and it makes authentication in IKEv2 to be one-way.IKE SA or any of its Child SAs, or a successfull Liveness Check that was performed recently. 3. Security Considerations If both peers use the NULL Authenticationmethod,Method, the entire key exchange becomesunauthenticated, thatunauthenticated. This makesit susceptiblethe IKE session vulnerable to activeattacks. For that reason completely unauthenticatedMan-in-the-Middle Attacks. Un-authenticated IKESA must be usedsessions MUST onlyifattempted when authenticated IKE sessions are not possible for the remote host and the only alternativeiswould be to send plaintext.The identity of the peer usingSee [RFC7435] for details. Implementations SHOULD use the ID_NULL Identity Type with the NULLauthenticated method cannot be verified byAuthenticated Method. If an un-authenticated remote IKE peer presents an Identity Type different from ID_NULL, theother side and, therefore,Identification Payload data MUST NOT be usedneither for authorization purposes, norforpolicy decisions. All peers who useanything except logging. Using an ID Type other than ID_NULL with the NULLAuthenticatedAuthentication Method compromises the client's anonimity. This should beconsidered by theavoided for regular operation but could be temporarilly enabled, for example to aid with troubleshooting diagnostics. Sending an unverifiable identification for any otherpartypurpose is strongly discouraged as"guests" and getit leads to a false sense of security, IKE implementations without theleast possible privileges.NULL Authentication Method have always performed mutual authentication and were not designed for use with un-authenticated IKE peers. Implementations might have made assumptions that areadvisedno longer valid. Furthermore, the host itself might have made trust assumptions or may not be aware of the network topology changes that resulted from IPsec SAs from un-authenticated IKE peers. 3.1. Audit trail and peer identification An established IKE session is no longer guaranteed to provide a verifiable (authenticated) entity known tousetheID_NULL Identity Type withsystem or network. Implementations that add the NULLauthenticated method. If endpoint receives a requestAuthentication Method should audit their implementation for any assumptions that depend on IKE peers being "friendly", "trusted" or "identifiable". 3.2. Resource management and robustness Section 2.6 of [RFC7296] provides guidance for mitigation of "Denial of Service" attacks by issuing COOKIES in response tocreateresource consumption of half-open IKE SAs. Furthermore, [DDOS-PROTECTION] offers additional counter-meassures in anunauthenticatedattempt to distinguish attacking IKESApackets from legitimate IKE peers. These defense mechanisms do not take into account IKE systems that allow un-authenticated IKE peers. An attacker using theIP address, whichNULL Authentication Method isconfigured ona fully legitimate IKE peer that is only distinguished from authenticated IKE peers by theendpointAuthenticaion Method While implementations should have been written to account for abusive authenticated clients, any omission or error in handling abusive clients may have gone unnoticed because abusive clients has been a rare or non-existent problem. When enabling un-authenticated IKE peers, these implementation omissions and errors will beauthenticated, the request SHOULDfound and abused by attackers. For example, an un-authenticated IKE peer could send an abusive amount of Liveness probes or Delete requests. 3.3. IKE configuration selection Combining authenticated and un-authenticated IKE peers on a single host can berejected. Ifdangerous, assuming the authenticated IKE peerusesgains more or different access from non-authenticated peers (otherwise, why not only allow un-authentcated peers). An un-authenticated IKE peer MUST NOT be able to reach resources only meant for authenticated IKE peers and MUST NOT be able to replace the IPsec SAs of an authenticated IKE peer. If an IKE peer receives an IKE_AUTH exchange requesting a NULL Authentication Method from an IP address that matches a configured connection for an authenticatedmethod, thenIKE session, it MUST reject thecontent of itsIKE_AUTH exchange by sending an AUTHENTICATION_FAILED notification. 3.4. Networking topology changes When a host relies on packet filters or firewall software to protect itself, establishing an IKE SA and installing an IPsec SA might accidentally circument these packet filters and firewall restrictions, as the encrypted ESP (protocol 50) or ESPinUDP (UDP port 4500) packets do not match the packet filters defined. IKE peers supporting un-authenticated IKE MUST pass all decrypted traffic through the same packet filters and security mechanisms as plaintext traffic. TrafficSelector payloads mustSelectors and narrowing allow two IKE peers to mutually agree on a traffic range for an IPsec SA. An un-authenticated peer MUST NOT betreated with care. In particular, implementations are advised notallowed totrust blindlyuse this mechanism to steal traffic thatthe publican IKE peer intended to be for another host. This is especially problematic when supporting anonymous IKE peers behind NAT, as such IKE peers build an IPsec SA using their pre-NAT IPaddressesaddress that are different from the source IP of their IKE packets. A rogue IKE peerput into TS payload are really belongcould use malicious Traffic Selectors toit. Itobtain access to traffic that the host never intended to hand out. Implementations SHOULD restrict and isolate all anonymous IKE peers from each other and itself and only allow it access to itself and possibly its intended network ranges. One of the ways to achive that isRECOMMENDED for security gatewaysto always assign internal IP addresses tounauthenticated clientsun-authenticated IKE clients, as described in Section 2.19 of[IKEv2].[RFC7296]. Implementations may also use other techniques, such as internal NAT and connection tracking. Implementations MAY force un-authenticated IKE peers to single host-to-host IPsec SAs. 3.5. Priviledged IKE operations Some IKE features are not appropriate for un-authenticated IKE peers and should be restricted or forbidden. 4. Acknowledgments Theauthorauthors would like to thankPaul Wouters,Yaron Sheffer and Tero Kivinen for their reviews and valuable comments. 5. IANA Considerations This document defines a newvalueentry in the "IKEv2 Authentication Method" registry:<TBA>13 NULL Authentication MethodItThis document also defines a newvalueentry in the "IKEv2 Identification Payload ID Types" registry:<TBA>13 ID_NULL 6. References 6.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.[IKEv2][RFC7296] Kaufman, C., Hoffman, P., Nir, Y., Eronen, P., and T. Kivinen, "Internet Key Exchange Protocol Version 2 (IKEv2)",draft-kivinen-ipsecme-ikev2-rfc5996bis-04STD 79, RFC 7296, October 2014. 6.2. Informative References [RFC7258] Farrell, S. and H. Tschofenig, "Pervasive Monitoring Is an Attack", BCP 188, RFC 7258, May 2014. [RFC7435] Dukhovni, V., "Opportunistic Security: Some Protection Most of the Time", RFC 7435, December 2014. [DDOS-PROTECTION] Nir, Y., "Protecting Internet Key Exchange (IKE) Implementations from Distributed Denial of Service Attacks", draft-ietf-ipsecme-ddos-protection-00 (work in progress),JuneOctober 2014.Author's AddressAuthors' Addresses Valery Smyslov ELVIS-PLUS PO Box 81 Moscow (Zelenograd) 124460 Russian Federation Phone: +7 495 276 0211 Email: svan@elvis.ru Paul Wouters Red Hat Email: pwouters@redhat.com