rfc4478.txt 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. Network Working Group Y. Nir
  2. Request for Comments: 4478 Check Point
  3. Category: Experimental April 2006
  4. Repeated Authentication in Internet Key Exchange (IKEv2) Protocol
  5. Status of This Memo
  6. This memo defines an Experimental Protocol for the Internet
  7. community. It does not specify an Internet standard of any kind.
  8. Discussion and suggestions for improvement are requested.
  9. Distribution of this memo is unlimited.
  10. Copyright Notice
  11. Copyright (C) The Internet Society (2006).
  12. Abstract
  13. This document extends the Internet Key Exchange (IKEv2) Protocol
  14. document [IKEv2]. With some IPsec peers, particularly in the remote
  15. access scenario, it is desirable to repeat the mutual authentication
  16. periodically. The purpose of this is to limit the time that security
  17. associations (SAs) can be used by a third party who has gained
  18. control of the IPsec peer. This document describes a mechanism to
  19. perform this function.
  20. 1. Introduction
  21. In several cases, such as the remote access scenario, policy dictates
  22. that the mutual authentication needs to be repeated periodically.
  23. Repeated authentication can usually be achieved by simply repeating
  24. the Initial exchange by whichever side has a stricter policy.
  25. However, in the remote access scenario it is usually up to a human
  26. user to supply the authentication credentials, and often Extensible
  27. Authentication Protocol (EAP) is used for authentication, which makes
  28. it unreasonable or impossible for the remote access gateway to
  29. initiate the IKEv2 exchange.
  30. This document describes a new notification that the original
  31. Responder can send to the original Initiator with the number of
  32. seconds before the authentication needs to be repeated. The
  33. Initiator SHOULD repeat the Initial exchange before that time is
  34. expired. If the Initiator fails to do so, the Responder may close
  35. all Security Associations.
  36. Nir Experimental [Page 1]
  37. RFC 4478 Repeated Authentication in IKEv2 April 2006
  38. Repeated authentication is not the same as IKE SA rekeying, and need
  39. not be tied to it. The key words "MUST", "MUST NOT", "SHOULD",
  40. "SHOULD NOT", and "MAY" in this document are to be interpreted as
  41. described in [RFC2119].
  42. 2. Authentication Lifetime
  43. The Responder in an IKEv2 negotiation MAY be configured to limit the
  44. time that an IKE SA and the associated IPsec SAs may be used before
  45. the peer is required to repeat the authentication, through a new
  46. Initial Exchange.
  47. The Responder MUST send this information to the Initiator in an
  48. AUTH_LIFETIME notification either in the last message of an IKE_AUTH
  49. exchange, or in an INFORMATIONAL request, which may be sent at any
  50. time.
  51. When sent as part of the IKE SA setup, the AUTH_LIFETIME notification
  52. is used as follows:
  53. Initiator Responder
  54. ------------------------------- -----------------------------
  55. HDR, SAi1, KEi, Ni -->
  56. <-- HDR, SAr1, KEr, Nr, [CERTREQ]
  57. HDR, SK {IDi, [CERT,] [CERTREQ,]
  58. [IDr,] AUTH, SAi2, TSi, TSr} -->
  59. <-- HDR, SK {IDr, [CERT,] AUTH,
  60. SAr2, TSi, TSr,
  61. N(AUTH_LIFETIME)}
  62. The separate Informational exchange is formed as follows:
  63. <-- HDR, SK {N(AUTH_LIFETIME)}
  64. HDR SK {} -->
  65. The AUTH_LIFETIME notification is described in Section 3.
  66. The original Responder that sends the AUTH_LIFETIME notification
  67. SHOULD send a DELETE notification soon after the end of the lifetime
  68. period, unless the IKE SA is deleted before the lifetime period
  69. elapses. If the IKE SA is rekeyed, then the time limit applies to
  70. the new SA.
  71. An Initiator that received an AUTH_LIFETIME notification SHOULD
  72. repeat the Initial exchange within the time indicated in the
  73. notification. The time is measured from the time that the original
  74. Initiator receives the notification.
  75. Nir Experimental [Page 2]
  76. RFC 4478 Repeated Authentication in IKEv2 April 2006
  77. A special case is where the notification is sent in an Informational
  78. exchange, and the lifetime is zero. In that case, the original
  79. responder SHOULD allow a reasonable time for the repeated
  80. authentication to occur.
  81. The AUTH_LIFETIME notification MUST be protected and MAY be sent by
  82. the original Responder at any time. If the policy changes, the
  83. original Responder MAY send it again in a new Informational.
  84. The new Initial exchange is not altered. The initiator SHOULD delete
  85. the old IKE SA within a reasonable time of the new Auth exchange.
  86. 3. AUTH_LIFETIME Notification
  87. The AUTH_LIFETIME message is a notification payload formatted as
  88. follows:
  89. 1 2 3
  90. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  91. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  92. ! Next Payload !C! RESERVED ! Payload Length !
  93. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  94. ! Protocol ID ! SPI Size ! Notify Message Type !
  95. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  96. ! Lifetime !
  97. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  98. o Payload Length is 12.
  99. o Protocol ID (1 octet) MUST be 0.
  100. o SPI size is 0 (SPI is in message header).
  101. o Notify Message type is 16403 by IANA.
  102. o Lifetime is the amount of time (in seconds) left before the
  103. peer should repeat the Initial exchange. A zero value
  104. signifies that the Initial exchange should begin immediately.
  105. It is usually not reasonable to set this value to less than 300
  106. (5 minutes) since that is too cumbersome for a user.
  107. It is also usually not reasonable to set this value to more
  108. than 86400 (1 day) as that would negate the security benefit of
  109. repeating the authentication.
  110. 4. Interoperability with Non-Supporting IKEv2 Implementations
  111. IKEv2 implementations that do not support the AUTH_LIFETIME
  112. notification will ignore it and will not repeat the authentication.
  113. In that case the original Responder will send a Delete notification
  114. for the IKE SA in an Informational exchange. Such implementations
  115. may be configured manually to repeat the authentication periodically.
  116. Nir Experimental [Page 3]
  117. RFC 4478 Repeated Authentication in IKEv2 April 2006
  118. Non-supporting Responders are not a problem because they will simply
  119. not send these notifications. In that case, there is no requirement
  120. that the original Initiator re-authenticate.
  121. 5. Security Considerations
  122. The AUTH_LIFETIME notification sent by the Responder does not
  123. override any security policy on the Initiator. In particular, the
  124. Initiator may have a different policy regarding re-authentication,
  125. requiring more frequent re-authentication. Such an Initiator can
  126. repeat the authentication earlier then is required by the
  127. notification.
  128. An Initiator MAY set reasonable limits on the amount of time in the
  129. AUTH_LIFETIME notification. For example, an authentication lifetime
  130. of less than 300 seconds from SA initiation may be considered
  131. unreasonable.
  132. 6. IANA Considerations
  133. The IANA has assigned a notification payload type for the
  134. AUTH_LIFETIME notifications from the IKEv2 Notify Message Types
  135. registry.
  136. 7. Normative References
  137. [IKEv2] Kaufman, C., "Internet Key Exchange (IKEv2) Protocol", RFC
  138. 4306, December 2005.
  139. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
  140. Requirement Levels", BCP 14, RFC 2119, March 1997.
  141. Author's Address
  142. Yoav Nir
  143. Check Point Software Technologies
  144. EMail: ynir@checkpoint.com
  145. Nir Experimental [Page 4]
  146. RFC 4478 Repeated Authentication in IKEv2 April 2006
  147. Full Copyright Statement
  148. Copyright (C) The Internet Society (2006).
  149. This document is subject to the rights, licenses and restrictions
  150. contained in BCP 78, and except as set forth therein, the authors
  151. retain all their rights.
  152. This document and the information contained herein are provided on an
  153. "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
  154. OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
  155. ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
  156. INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
  157. INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
  158. WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  159. Intellectual Property
  160. The IETF takes no position regarding the validity or scope of any
  161. Intellectual Property Rights or other rights that might be claimed to
  162. pertain to the implementation or use of the technology described in
  163. this document or the extent to which any license under such rights
  164. might or might not be available; nor does it represent that it has
  165. made any independent effort to identify any such rights. Information
  166. on the procedures with respect to rights in RFC documents can be
  167. found in BCP 78 and BCP 79.
  168. Copies of IPR disclosures made to the IETF Secretariat and any
  169. assurances of licenses to be made available, or the result of an
  170. attempt made to obtain a general license or permission for the use of
  171. such proprietary rights by implementers or users of this
  172. specification can be obtained from the IETF on-line IPR repository at
  173. http://www.ietf.org/ipr.
  174. The IETF invites any interested party to bring to its attention any
  175. copyrights, patents or patent applications, or other proprietary
  176. rights that may cover technology that may be required to implement
  177. this standard. Please address the information to the IETF at
  178. ietf-ipr@ietf.org.
  179. Acknowledgement
  180. Funding for the RFC Editor function is provided by the IETF
  181. Administrative Support Activity (IASA).
  182. Nir Experimental [Page 5]