view Side-By-Side changes
KITTEN WG N. Williams Internet-Draft Sun Expires:DecemberAugust 28,2006 June 26, 20062008 February 25, 2008 Clarifications and Extensions to the GSS-API for the Use of Channel Bindingsdraft-ietf-kitten-gssapi-channel-bindings-02.txtdraft-ietf-kitten-gssapi-channel-bindings-03.txt Status of this Memo 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 onDecemberAugust 28,2006.2008. Copyright Notice Copyright (C) TheInternet Society (2006).IETF Trust (2008). Williams Expires August 28, 2008 [Page 1] Internet-Draft GSS-API Channel Bindings February 2008 Abstract This document clarifies and generalizes theGSS-APIGeneric Security Services Application Programming Interface (GSS-API) "channel bindings"facility. This document also specifies the formatfacility, and imposes requirements on future GSS-API mechanisms and programming language bindings of thevarious types of channel bindings. Williams Expires December 28, 2006 [Page 1] Internet-Draft GSS-API Channel Bindings June 2006GSS-API. Table of Contents 1. Conventions used in this document . . . . . . . . . . . . . . . 3 2.Introduction . . . . . . . . . . . . .New Requirements for GSS-API Mechanisms . . . . . . . . . . . . 4 3. Generic Structure for GSS-API Channel Bindings . . . . . . . . 53.1. Proper Mechanism Use of Channel Bindings . . . . . . . . . 54.Channel Bindings for SSHv2 . . . . . . . . . .Security Considerations . . . . . . . .6 4.1. GSS_Make_sshv2_channel_bindings(). . . . . . . . . . . . 64.1.1. C-Bindings .5. Normative References . . . . . . . . . . . . . . . . . . . . . 75. Channel Bindings for TLS . . . . . . .Author's Address . . . . . . . . . . . .8 5.1. GSS_Make_tls_channel_bindings(). . . . . . . . . . . . . 85.1.1. C-Bindings . . . . . . . . . . . .Intellectual Property and Copyright Statements . . . . . . . . . . 96.Williams Expires August 28, 2008 [Page 2] Internet-Draft GSS-API Channel Bindings February 2008 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]. Williams Expires August 28, 2008 [Page 3] Internet-Draft GSS-API Channel Bindings February 2008 2. New Requirements forIPsec . . . . . . . . . . . . . . . . . . 10 6.1. GSS_Make_ipsec_channel_bindings() . . . . . . . . . . . . 10 6.1.1. C-Bindings . . . . . . . . . . . . . . . . . . . . . . 11 7. Security Considerations . . . . . . . . . . . . . . . . . . . 12 8. Normative . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Appendix A. Acknowledgments . . . . . . . . . . . . . . . . . . . 13 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . . 14 Intellectual Property and Copyright Statements . . . . . . . . . . 15 Williams Expires December 28, 2006 [Page 2] Internet-Draft GSS-API Channel Bindings June 2006 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]. Williams Expires December 28, 2006 [Page 3] Internet-DraftGSS-APIChannel Bindings June 2006 2. Introduction The concept of "channel bindings" andMechanisms Given theabstract constructionpublication ofchannel bindings for several types of channels are described in [I-D.ietf-nfsv4-channel-bindings] To actually use channel bindings in GSS-API aplications additional details are requiredRFC5056 we now assert thatare given below. First the structure given to channel bindings data in [RFC2744] is generalized toallof the GSS-API, not just its C-Bindings. Then the actual construction ofnew GSS-API mechanisms that support channelbindingsbinding MUST conform toSSHv2, TLS and IPsec channels is given.[RFC5056]. Williams ExpiresDecemberAugust 28,20062008 [Page 4] Internet-Draft GSS-API Channel BindingsJune 2006February 2008 3. Generic Structure for GSS-API Channel Bindings The base GSS-API v2, update 1 specification[RFC2743]describes[RFC2743] provides a facility for channel binding. It models channel bindings as an OCTET STRING and leaves it to the GSS-API v2, update 1 C-Bindings specification to specify the structure of the contents of the channel bindings OCTET STRINGs. The C-Bindings specification [RFC2744]then defines, in terms of C, what shouldbehave been a generic structure for channel bindings. The Kerberos V GSS mechanism [RFC1964]then defines a method for encoding GSS channel bindings in a way that is independent of theC-Bindings!C-Bindings -- otherwise the mechanism's channel binding facility would not be useable with other language bindings. In other words, the structure of GSS channel bindings given in [RFC2744] is actually generic, rather than specific to the C programming language. Here, then, is a generic re-statement of this structure, in pseudo- ASN.1: GSS-CHANNEL-BINDINGS := SEQUENCE { initiator-address-type INTEGER, initiator-address OCTET STRING, acceptor-address-type INTEGER, acceptor-address OCTET STRING, application-data OCTET STRING, } The values for the address fields are described in [RFC2744].Language-specificNew language-specific bindings of the GSS-APIshouldSHOULD specify alanguage- specificlanguage-specific formulation of this structure.3.1. Proper Mechanism Use of Channel Bindings As described in [I-D.ietf-nfsv4-channel-bindings], GSS mechanisms should exchange integrity protected proofs of channel bindings, where the proof is obtained by runningWhere astrong hashlanguage binding of the GSS-API models channel bindingsdata (encodedasper some mechanism-specific, such as in [RFC1964]) and a binary value to representOCTET STRINGs (or theinitiator->acceptor, and opposite, direction. The encoding of channellanguage's equivalent), then the implementation MUST assume that the given bindingsused in [RFC1964], withcorrespond only to theadditionapplication-data field ofa binary valueGSS-CHANNEL-BINDINGS asdescribedshown above,and the substitution of stronger hash functions (or even the identity function) for MD5 is a reasonable, genericrather than some encoding ofGSS-CHANNEL-BINDINGS that any future GSSGSS-CHANNEL-BINDINGS. GSS-API mechanismscan use.MAY use the [RFC1964] encoding of channel bindings. Williams ExpiresDecemberAugust 28,20062008 [Page 5] Internet-Draft GSS-API Channel BindingsJune 2006 4. Channel Bindings for SSHv2 The SSHv2 channel bindings are constructed as an octet string for the 'application-data' field of the channel bindings by concatenating the following values and in this order: 1. The ASCII string "GSS SSHv2 CB:" 2. Four octet network byte order length of the SSHv2 session ID 3. The SSHv2 session IDFebruary 2008 4.Any additional application-provided data, encoded as the DER encoding of an ASN.1 OCTET STRING 4.1. GSS_Make_sshv2_channel_bindings() Inputs: o session_id OCTET STRING, o additional_app_data OCTET STRING Outputs: o major_status INTEGER, o minor_status INTEGER, o channel_bindings_app_data OCTET STRING Return major_status codes: o GSS_S_COMPLETE indicates no error. o GSS_S_FAILURE indicates failureSecurity Considerations For general security considerations relating toconstruct thechannel bindingsas a result, perhaps, of a memory management, or similar failure. This function constructs ansee [RFC5056]. Language bindings that use OCTET STRING (or equivalent) foruse as the value of the application-data field of the GSS-CHANNEL-BINDINGS structure described above. Williams Expires December 28, 2006 [Page 6] Internet-Draft GSS-API Channel Bindings June 2006 4.1.1. C-Bindings OM_uint32 gss_make_sshv2_channel_bindings( OM_uint32 *minor_status, const gss_buffer_t session_id, const gss_buffer_t additional_app_data, gss_buffer_t channel_bindings_app_data ); Williams Expires December 28, 2006 [Page 7] Internet-Draft GSS-API Channel Bindings June 2006 5. Channel Bindings for TLS The TLSchannel bindingsare constructed as an octet string for the 'application-data' field of the channel bindings by concatenating the following values and in this order: 1. The ASCII string "GSS TLSv1.0 CB:" 2. The output ofwill not support theTLS PRF as applied to a constant octet string (TBD) (numberuse ofoctets also to be determined). 3. Any additional application-provided data, encodednetwork addresses asthe DER encoding of an ASN.1 OCTET STRING 5.1. GSS_Make_tls_channel_bindings() Inputs: o prf_output OCTET STRING, o additional_app_data OCTET STRING Outputs: o major_status INTEGER, o minor_status INTEGER, o channel_bindings_app_data OCTET STRING Return major_status codes: o GSS_S_COMPLETE indicates no error. o GSS_S_FAILURE indicates failure to construct thechannelbindings as a result, perhaps, of a memory management, or similar failure.bindings. Thisfunction constructs an OCTET STRING for useshould not cause any security problems, as thevalue of the application-data fielduse ofthe GSS-CHANNEL-BINDINGS structure described above. Williams Expires December 28, 2006 [Page 8] Internet-Draft GSS-API Channel Bindings June 2006 5.1.1. C-Bindings OM_uint32 gss_make_tls_channel_bindings( OM_uint32 *minor_status, const gss_buffer_t prf_octets, const gss_buffer_t additional_app_data, gss_buffer_t channel_bindings_app_data ); Williams Expires December 28, 2006 [Page 9] Internet-Draft GSS-API Channel Bindings June 2006 6. Channel Bindings for IPsec The IPsec channel bindings are constructednetwork addresses asan octet string for the 'application-data' field of thechannel bindingsby concatenating the following values and in this order: 1. The ASCII string "GSS IPsec CB:" 2. The transform ID for encryption, as a 16-bit big-endian word 3. The transform ID for integrity protection, as 16-bit in big- endian word 4. Length (four octet, network byte order) and value of the local IKE ID (may be a PUBLICKEY ID[I-D.ietf-btns-core]) 5. Length (four octet, network byte order) and value of the peer IKE (may be a PUBLICKEY ID [I-D.ietf-btns-core] 6. Any additional application-provided data, encoded as the DER encoding of an ASN.1 OCTET STRING See also: [I-D.ietf-btns-connection-latching] Note that traffic selectors areis notincluded. Inclusion of confidentiality/integrity algorithms protects against MITMs that can compromise weaker algorithmsgenerally secure. However, it is important thatpolicy might permit, for the same peers, for other traffic. 6.1. GSS_Make_ipsec_channel_bindings() Inputs: o encr_alg INTEGER, o integ_alg INTEGER, o initiator_id OCTET_STRING, o acceptor_id OCTET_STRING, o additional_app_data OCTET STRING Outputs: Williams Expires December 28, 2006 [Page 10] Internet-Draft GSS-API Channel Bindings June 2006 o major_status INTEGER, o minor_status INTEGER, o channel_bindings_app_data OCTET STRING Return major_status codes: o GSS_S_COMPLETE indicates no error. o GSS_S_FAILURE indicates failure to construct the"end-point channelbindings as a result, perhaps, of a memory management, or similar failure. This function constructs an OCTET STRING for usebindings" not be modelled asthe value of the application-data fieldnetwork addresses, otherwise such channel bindings may not be useable with all language bindings of theGSS-CHANNEL-BINDINGS structure described above. 6.1.1. C-Bindings OM_uint32 gss_make_ipsec_channel_bindings( OM_uint32 *minor_status, OM_uint32 encr_alg, OM_uint32 integ_alg, const gss_buffer_t initiator_id, const gss_buffer_t acceptor_id, const gss_buffer_t additional_app_data, gss_buffer_t channel_bindings_app_data );GSS-API. Williams ExpiresDecemberAugust 28,20062008 [Page11]6] Internet-Draft GSS-API Channel BindingsJune 2006 7. Security Considerations For general security considerations relating to channel bindings see [I-D.ietf-nfsv4-channel-bindings] 8. Normative [I-D.ietf-btns-connection-latching] Williams, N., "IPsec Channels: Connection Latching", draft-ietf-btns-connection-latching-00 (work in progress), February 2006. [I-D.ietf-btns-core] Williams, N., "Better-Than-Nothing-Security: An Unauthenticated Mode of IPsec", draft-ietf-btns-core-00 (work in progress), February 2006. [I-D.ietf-nfsv4-channel-bindings] Williams, N., "On the Use of Channel Bindings to Secure Channels", draft-ietf-nfsv4-channel-bindings-03 (work in progress),February2005.2008 5. Normative References [RFC1964] Linn, J., "The Kerberos Version 5 GSS-API Mechanism", RFC 1964, June 1996. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. [RFC2743] Linn, J., "Generic Security Service Application Program Interface Version 2, Update 1", RFC 2743, January 2000. [RFC2744] Wray, J., "Generic Security Service API Version 2 : C-bindings", RFC 2744, January 2000.Williams Expires December 28, 2006 [Page 12] Internet-Draft GSS-API Channel Bindings June 2006 Appendix A. Acknowledgments The author would like to thank Mike Eisler for his work on[RFC5056] Williams, N., "On the Use of ChannelConjunction Mechanism I-D and for bringing the problem to a head, Sam Hartman for pointing out that channel bindings provide a general solutionBindings tothe channel binding problem, Jeff Altman for his suggestion of using the TLS finished messages as the TLS channel bindings, Bill Sommerfeld, for his help in developing channel bindings for IPsec, and Radia Perlman for her most helpful comments.Secure Channels", RFC 5056, November 2007. Williams ExpiresDecemberAugust 28,20062008 [Page13]7] Internet-Draft GSS-API Channel BindingsJune 2006February 2008 Author's Address Nicolas Williams Sun Microsystems 5300 Riata Trace Ct Austin, TX 78727 US Email: Nicolas.Williams@sun.com Williams ExpiresDecemberAugust 28,20062008 [Page14]8] Internet-Draft GSS-API Channel BindingsJune 2006February 2008 Full Copyright Statement Copyright (C) The IETF Trust (2008). 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. 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, THE IETF TRUST 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. Intellectual PropertyStatementThe 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.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 iscurrentlyprovided by theInternet Society.IETF Administrative Support Activity (IASA). Williams ExpiresDecemberAugust 28,20062008 [Page15]9] ----