<?xmlversion="1.0" encoding="utf-8"?> <?xml-stylesheet type='text/xsl' href='http://xml2rfc.tools.ietf.org/authoring/rfc2629.xslt' ?>version='1.0' encoding='utf-8'?> <!DOCTYPE rfc SYSTEM"rfc2629.dtd"> <?rfc toc="yes"?> <?rfc tocompact="yes"?> <?rfc tocdepth="4"?> <?rfc tocindent="yes"?> <?rfc symrefs="yes"?> <?rfc sortrefs="yes"?> <?rfc comments="yes"?> <?rfc inline="yes"?> <?rfc compact="yes"?> <?rfc subcompact="no"?>"rfc2629-xhtml.ent"> <rfc number="8747" consensus="true" xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-ace-cwt-proof-of-possession-11"ipr="trust200902">ipr="trust200902" obsoletes="" updates="" submissionType="IETF" xml:lang="en" tocInclude="true" tocDepth="4" symRefs="true" sortRefs="true" version="3"> <!-- xml2rfc v2v3 conversion 2.38.0 --> <front> <title abbrev="Proof-of-Possession Key for CWTs">Proof-of-Possession Key Semantics for CBOR Web Tokens (CWTs)</title> <seriesInfo name="RFC" value="8747"/> <author fullname="Michael B. Jones"initials="M.B."initials="M." surname="Jones"> <organization>Microsoft</organization> <address> <email>mbj@microsoft.com</email><uri>http://self-issued.info/</uri><uri>https://self-issued.info/</uri> </address> </author> <author initials="L." surname="Seitz" fullname="Ludwig Seitz"><organization>RISE SICS</organization><organization>Combitech</organization> <address> <postal><street>Scheelevaegen 17</street> <city>Lund</city> <code>223 70</code><street>Djaeknegatan 31</street> <city ascii="Malmo">Malmö</city> <code>211 35</code> <country>Sweden</country> </postal><email>ludwig@ri.se</email><email>ludwig.seitz@combitech.se</email> </address> </author> <author initials="G." surname="Selander" fullname="Göran Selander"> <organization>Ericsson AB</organization> <address> <postal><street>Färögatan 6</street><city>Kista</city> <code>164 80</code> <country>Sweden</country> </postal> <email>goran.selander@ericsson.com</email> </address> </author> <author fullname="Samuel Erdtman" initials="S." surname="Erdtman"> <organization>Spotify</organization> <address> <email>erdtman@spotify.com</email> </address> </author> <author fullname="Hannes Tschofenig" initials="H." surname="Tschofenig"> <organization>Arm Ltd.</organization> <address> <postal><street></street><street/> <code>6060</code> <city>Hall in Tirol</city> <country>Austria</country> </postal> <email>Hannes.Tschofenig@arm.com</email> </address> </author> <dateday="31" month="October" year="2019"/>month="March" year="2020"/> <area>Security</area> <workgroup>ACE</workgroup> <keyword>CBOR Web Token</keyword> <keyword>CWT</keyword> <keyword>Proof-of-Possession</keyword> <keyword>Holder-of-Key</keyword> <abstract> <t> This specification describes how to declare in a CBOR Web Token (CWT) (which is defined by RFC 8392) that the presenter of the CWT possesses a particular proof-of-possession key. Being able to prove possession of a key is also sometimes described as being the holder-of-key. This specification provides equivalent functionality to "Proof-of-Possession Key Semantics for JSON Web Tokens (JWTs)" (RFC 7800) but using Concise Binary Object Representation (CBOR) and CWTs rather than JavaScript Object Notation (JSON) and JSON Web Tokens (JWTs). </t> </abstract> </front> <middle> <sectiontitle="Introduction" anchor="Introduction">anchor="Introduction" numbered="true" toc="default"> <name>Introduction</name> <t> This specification describes how a CBOR Web Token (CWT) <xreftarget="RFC8392"/>target="RFC8392" format="default"/> can declare that the presenter of the CWT possesses a particular proof-of-possession (PoP) key. Proof of possession of a key is also sometimes described as being the holder-of-key. This specification provides equivalent functionality to "Proof-of-Possession Key Semantics for JSON Web Tokens (JWTs)" <xreftarget="RFC7800"/>target="RFC7800" format="default"/> but using Concise Binary Object Representation (CBOR) <xreftarget="RFC7049"/>target="RFC7049" format="default"/> and CWTs <xreftarget="RFC8392"/>target="RFC8392" format="default"/> rather than JavaScript Object Notation (JSON) <xreftarget="RFC8259"/>target="RFC8259" format="default"/> and JSON Web Tokens (JWTs) <xreftarget="JWT"/>.target="RFC7519" format="default"/>. </t> </section> <sectiontitle='Terminology' anchor='Terminology'>anchor="Terminology" numbered="true" toc="default"> <name>Terminology</name> <t> The key words"MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY","<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and"OPTIONAL""<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as described inBCP 14BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here. </t> <t> This specification uses terms defined in the CBOR Web Token (CWT) <xreftarget="RFC8392"/>,target="RFC8392" format="default"/>, CBOR Object Signing and Encryption (COSE) <xreftarget="RFC8152"/>,target="RFC8152" format="default"/>, and Concise Binary Object Representation (CBOR) <xreftarget="RFC7049"/>target="RFC7049" format="default"/> specifications. </t> <t> These terms are defined by this specification: </t><t> <list style="hanging"> <t hangText="Issuer"> <vspace/><dl newline="true" spacing="normal"> <dt>Issuer</dt> <dd> Party that creates the CWT and binds the claims about the subject to the proof-of-possession key.</t> <t hangText="Presenter"> <vspace/></dd> <dt>Presenter</dt> <dd> <t> Party that proves possession of a private key (for asymmetric key cryptography) or secret key (for symmetric key cryptography) to a recipient of a CWT.<vspace/></t> <t> In the context of OAuth, this party is also called the OAuth Client. </t><t hangText="Recipient"> <vspace/></dd> <dt>Recipient</dt> <dd> <t> Party that receives the CWT containing the proof-of-possession key information from the presenter.<vspace/></t> <t> In the context of OAuth, this party is also called the OAuth Resource Server. </t></list> </t></dd> </dl> <t> This specification provides examples in CBOR extended diagnostic notation, as defined inAppendix G of<xreftarget="RFC8610"/>.target="RFC8610" sectionFormat="of" section="G"/>. The examples include line breaks for readability. </t> </section> <sectiontitle='Representationsanchor="PoP" numbered="true" toc="default"> <name>Representations for Proof-of-PossessionKeys' anchor="PoP">Keys</name> <t> By including a<spanx style="verb">cnf</spanx><tt>cnf</tt> (confirmation) claim in a CWT, the issuer of the CWT declares that the presenter possesses a particular key and that the recipient can cryptographically confirm that the presenter has possession of that key. The value of the<spanx style="verb">cnf</spanx><tt>cnf</tt> claim is a CBOR map (which is defined inSection 2.1 of<xreftarget="RFC7049"/>)target="RFC7049" sectionFormat="of" section="2.1"/>) and the members of that map identify the proof-of-possession key. </t> <t> The presenter can be identified in one of several ways by the CWT, depending upon the application requirements. For instance, some applications may use the CWT<spanx style="verb">sub</spanx><tt>sub</tt> (subject) claim <xreftarget="RFC8392"/>,target="RFC8392" format="default"/> to identify the presenter. Other applications may use the<spanx style="verb">iss</spanx><tt>iss</tt> (issuer) claim <xreftarget="RFC8392"/>target="RFC8392" format="default"/> to identify the presenter. In some applications, the subject identifier might be relative to the issuer identified by the<spanx style="verb">iss</spanx><tt>iss</tt> claim. The actual mechanism used is dependent upon the application. The case in which the presenter is the subject of the CWT is analogous to Security Assertion Markup Language (SAML) 2.0 <xreftarget="OASIS.saml-core-2.0-os"/>target="OASIS.saml-core-2.0-os" format="default"/> SubjectConfirmation usage. </t> <sectiontitle="Confirmation Claim" anchor="Confirmation">anchor="Confirmation" numbered="true" toc="default"> <name>Confirmation Claim</name> <t> The<spanx style="verb">cnf</spanx><tt>cnf</tt> claim in the CWT is used to carry confirmation methods. Some of them use proof-of-possessionkeyskeys, while others do not. This design is analogous to the SAML 2.0 <xreftarget="OASIS.saml-core-2.0-os"/>target="OASIS.saml-core-2.0-os" format="default"/> SubjectConfirmation element in which a number of different subject confirmation methods can be included (including proof-of-possession key information). </t> <t> The set of confirmation members that a CWT must contain to be considered valid is context dependent and is outside the scope of this specification. Specific applications of CWTs will require implementations to understand and process some confirmation members in particular ways. However, in the absence of such requirements, all confirmation members that are not understood by implementationsMUST<bcp14>MUST</bcp14> be ignored. </t> <t>This specification<xref target="CnfReg" format="default"/> establishes the IANA "CWT Confirmation Methods" registry forthese members in <xref target="CnfReg"/>CWT <tt>cnf</tt> member values and registers the members defined by this specification. Other specifications can register other members used for confirmation, including other members for conveying proof-of-possession keys using different key representations. </t> <t> The<spanx style="verb">cnf</spanx><tt>cnf</tt> claim valueMUST<bcp14>MUST</bcp14> represent only a single proof-of-possession key. At most one of the<spanx style="verb">COSE_Key</spanx><tt>COSE_Key</tt> and<spanx style="verb">Encrypted_COSE_Key</spanx><tt>Encrypted_COSE_Key</tt> confirmation values defined in <xreftarget="fig:cborMappings"/>target="fig_cborMappings" format="default"/> may be present. Note that if an application needs to represent multiple proof-of-possession keys in the same CWT, one way for it to achieve this is to use other claimnames, innames (in addition to<spanx style="verb">cnf</spanx>,<tt>cnf</tt>) to hold the additional proof-of-possession key information. These claims could use the same syntax and semantics as the<spanx style="verb">cnf</spanx><tt>cnf</tt> claim. Those claims would be defined by applications or other specifications and could be registered in the IANA "CBOR Web Token (CWT) Claims" registry <xreftarget="IANA.CWT.Claims"/>.target="IANA.CWT.Claims" format="default"/>. </t><t> <figure align="center" anchor="fig:cborMappings" title="Summary<table anchor="fig_cborMappings"> <name>Summary of thecnf names, keys,<tt>cnf</tt> Names, Keys, andvalue types"> <artwork><![CDATA[ /--------------------+-----+-------------------------------\ | Name | Key |Valuetype | |--------------------+-----+-------------------------------| | COSE_Key | 1 | COSE_Key | | Encrypted_COSE_Key | 2 | COSE_EncryptTypes</name> <thead> <tr> <th>Name</th> <th>Key</th> <th>Value type</th> </tr> </thead> <tbody> <tr> <td>COSE_Key</td> <td>1</td> <td>COSE_Key</td> </tr> <tr> <td>Encrypted_COSE_Key</td> <td>2</td> <td>COSE_Encrypt orCOSE_Encrypt0 | | kid | 3 | binary string | \--------------------+-----+-------------------------------/ ]]></artwork> </figure> </t>COSE_Encrypt0</td> </tr> <tr> <td>kid</td> <td>3</td> <td>binary string</td> </tr> </tbody> </table> </section> <sectiontitle="Representationanchor="PrivatePoP" numbered="true" toc="default"> <name>Representation of an Asymmetric Proof-of-PossessionKey" anchor="PrivatePoP">Key</name> <t> When the key held by the presenter is an asymmetric private key, the<spanx style="verb">COSE_Key</spanx><tt>COSE_Key</tt> member is a COSE_Key <xreftarget="RFC8152"/>target="RFC8152" format="default"/> representing the corresponding asymmetric public key. The following example demonstrates such a declaration in the CWT Claims Set of a CWT: </t><figure> <artwork><![CDATA[<sourcecode type="cbor"><![CDATA[ { /iss/ 1 : "coaps://server.example.com", /aud/ 3 : "coaps://client.example.org", /exp/ 4 : 1879067471, /cnf/ 8 :{ /COSE_Key/ 1 :{ /kty/ 1 : /EC2/ 2, /crv/ -1 : /P-256/ 1, /x/ -2 : h'd7cc072de2205bdc1537a543d53c60a6acb62eccd890c7fa27c9 e354089bbe13', /y/ -3 : h'f95e1d4b851a2cc80fff87d8e23f22afb725d535e515d020731e 79a3b4e47120' } } }]]></artwork> </figure>]]></sourcecode> <t> The COSE_KeyMUST<bcp14>MUST</bcp14> contain the required key members for a COSE_Key of that key type andMAY<bcp14>MAY</bcp14> contain other COSE_Key members, including the<spanx style="verb">kid</spanx><tt>kid</tt> (Key ID) member. </t> <t> The<spanx style="verb">COSE_Key</spanx><tt>COSE_Key</tt> memberMAY<bcp14>MAY</bcp14> also be used for a COSE_Key representing a symmetric key, provided that the CWT is encrypted so that the key is not revealed to unintended parties. The means of encrypting a CWT is explained in <xreftarget="RFC8392"/>.target="RFC8392" format="default"/>. If the CWT is not encrypted, the symmetric keyMUST<bcp14>MUST</bcp14> be encrypted as described in <xreftarget="SymmetricPoP"/>.target="SymmetricPoP" format="default"/>. This procedure is equivalent to the one defined insection 3.3 of<xreftarget="RFC7800"/>.target="RFC7800" sectionFormat="of" section="3.3"/>. </t> </section> <sectiontitle="Representationanchor="SymmetricPoP" numbered="true" toc="default"> <name>Representation of an Encrypted Symmetric Proof-of-PossessionKey" anchor="SymmetricPoP">Key</name> <t> When the key held by the presenter is a symmetric key, the<spanx style="verb">Encrypted_COSE_Key</spanx><tt>Encrypted_COSE_Key</tt> member is an encrypted COSE_Key <xreftarget="RFC8152"/>target="RFC8152" format="default"/> representing the symmetric key encrypted to a key known to the recipient using COSE_Encrypt or COSE_Encrypt0. </t> <t> The following example illustrates a symmetric key that could subsequently be encrypted for use in the<spanx style="verb">Encrypted_COSE_Key</spanx><tt>Encrypted_COSE_Key</tt> member: </t><figure> <artwork><![CDATA[<sourcecode type="cbor"><![CDATA[ { /kty/ 1 : /Symmetric/ 4, /alg/ 3 : /HMAC 256-256/ 5, /k/ -1 : h'6684523ab17337f173500e5728c628547cb37df e68449c65f885d1b73b49eae1' }]]></artwork> </figure>]]></sourcecode> <t> The COSE_Key representation is used as the plaintext when encrypting the key. </t> <t> The following example CWT Claims Set of a CWT illustrates the use of an encrypted symmetric key as the<spanx style="verb">Encrypted_COSE_Key</spanx><tt>Encrypted_COSE_Key</tt> member value: </t><figure> <artwork><![CDATA[<sourcecode type="cbor"><![CDATA[ { /iss/ 1 : "coaps://server.example.com", /sub/ 2 : "24400320", /aud/ 3: "s6BhdRkqt3", /exp/ 4 : 1311281970, /iat/ 5 : 1311280970, /cnf/ 8 : { /Encrypted_COSE_Key/ 2 : [ /protected header/ h'A1010A' /{ \alg\ 1:10 \AES-CCM-16-64-128\}/, /unprotected header/ { / iv / 5: h'636898994FF0EC7BFCF6D3F95B'}, /ciphertext/ h'0573318A3573EB983E55A7C2F06CADD0796C9E584F1D0E3E A8C5B052592A8B2694BE9654F0431F38D5BBC8049FA7F13F' ] } }]]></artwork> </figure>]]></sourcecode> <t> The example above was generated with the key: </t><figure> <artwork><![CDATA[<artwork name="" type="" align="left" alt=""><![CDATA[ h'6162630405060708090a0b0c0d0e0f10' ]]></artwork></figure></section> <sectiontitle="Representationanchor="KidPoP" numbered="true" toc="default"> <name>Representation of a Key ID for a Proof-of-PossessionKey" anchor="KidPoP">Key</name> <t> The proof-of-possession key can also be identified using a Key ID instead of communicating the actual key, provided the recipient is able to obtain the identified key using the Key ID. In this case, the issuer of a CWT declares that the presenter possesses a particular key and that the recipient can cryptographically confirm the presenter's proof of possession of the key bythe presenter byincluding a<spanx style="verb">cnf</spanx><tt>cnf</tt> claim in the CWT whose value is a CBOR mapwith the CBOR mapcontaining a<spanx style="verb">kid</spanx><tt>kid</tt> member identifying the key. </t> <t> The following example demonstrates such a declaration in the CWT Claims Set of a CWT: </t><figure> <artwork><![CDATA[<sourcecode type="cbor"><![CDATA[ { /iss/ 1 : "coaps://as.example.com", /aud/ 3 : "coaps://resource.example.org", /exp/ 4 : 1361398824, /cnf/ 8 : { /kid/ 3 : h'dfd1aa976d8d4575a0fe34b96de2bfad' } }]]></artwork> </figure>]]></sourcecode> <t> The content of the<spanx style="verb">kid</spanx><tt>kid</tt> value is application specific. For instance, some applications may choose to use a cryptographic hash of the public key value as the<spanx style="verb">kid</spanx><tt>kid</tt> value. </t> <t> Note that the use of a Key ID to identify a proof-of-possession key needs to be carefully circumscribed, as described below and in <xreftarget="Operational"/>.target="Operational" format="default"/>. In cases where the Key ID is not a cryptographic value derived from the key or where not all of the parties involved are validating the cryptographic derivation, implementers should expectcollisions,collisions where different keys are assigned the same Key ID. Recipients of a CWT with a PoP key linked through only a Key ID should be prepared to handle such situations. </t> <t> In the world of constrained Internet of Things (IoT) devices, there is frequently a restriction on the size of Key IDs, either because of table constraints or a desire to keep message sizes small. </t> <t>Note that the value of a Key ID for a specific key is not necessarily the same for different parties. When sending a COSE encrypted message with a shared key, the Key ID may be different on both sides of the conversation, with the appropriate one being included in the message based on the recipient of the message. </t> </section><!-- <section title="Representation of a URL for a Proof-of-Possession Key" anchor="jkuPoP"> <t> The proof-of-possession key can be passed by reference instead of being passed by value. This is done using the <spanx style="verb">jku</spanx> member. Its value is a URI <xref target="RFC3986"/> that refers to a resource for a set of JSON-encoded public keys represented as a JWK Set <xref target="JWK" />, one of which is the proof-of-possession key. If there are multiple keys in the referenced JWK Set document, a <spanx style="verb">kid</spanx> member MUST also be included with the referenced key's JWK also containing the same <spanx style="verb">kid</spanx> value. </t> <t> The protocol used to acquire the resource MUST provide integrity protection. An HTTP GET request to retrieve the JWK Set MUST use TLS <xref target="RFC5246"/> and the identity of the server MUST be validated, as per Section 6 of <xref target="RFC6125">RFC 6125</xref>. </t> <t> The following example demonstrates such a declaration in the CWT Claims Set of a CWT: </t> <figure> <artwork><![CDATA[ { "iss": "https://server.example.com", "sub": "17760704", "aud": "https://client.example.org", "exp": 1440804813, "cnf":{ "jku": "https://keys.example.net/pop-keys.json", "kid": "2015-08-28" } } ]]></artwork> </figure> </section> --><sectiontitle="Specificsanchor="NotSpecified" numbered="true" toc="default"> <name>Specifics Intentionally NotSpecified" anchor="NotSpecified">Specified</name> <t> Proof of possession is often demonstrated by having the presenter sign a value determined by the recipient using the key possessed by the presenter. This value is sometimes called a "nonce" or a "challenge". There are, however, also other means to demonstrate freshness of the exchange and to link the proof-of-possession key to the participating parties, as demonstrated by various authentication and key exchange protocols. </t> <t> The means of communicating the nonce and the nature of its contents are intentionally not described in this specification, as different protocols will communicate this information in different ways. Likewise, the means of communicating the signed nonce is also not specified, as this is also protocol specific. </t> <t> Note that other means of proving possession of the key exist, which could be used in conjunction with a CWT's confirmation key. Applications making use of such alternate means are encouraged to register them in the IANA"CWT"CBOR Web Token (CWT) Confirmation Methods" registry established in <xreftarget="CnfReg"/>.target="CnfReg" format="default"/>. </t> </section> </section> <section anchor="Security"title="Security Considerations">numbered="true" toc="default"> <name>Security Considerations</name> <t> All the security considerations that are discussed in <xreftarget="RFC8392"/>target="RFC8392" format="default"/> also apply here. In addition, proof of possession introduces its own unique security issues. Possessing a key is only valuable if it is kept secret. Appropriate means must be used to ensure that unintended parties do not learn private key or symmetric key values. </t> <t> Applications utilizing proof of possessionSHOULD<bcp14>SHOULD</bcp14> also utilize audience restriction, as described inSection 3.1.3 of<xreftarget="RFC8392"/>, astarget="RFC8392" sectionFormat="of" section="3.1.3"/>, because it provides additional protections. Audience restriction can be used by recipients to reject messages intended for different recipients. (Of course, applications not using proof of possession can also benefit from using audience restriction to reject messages intended for different recipients.) </t> <t> CBOR Web Tokens with proof-of-possession keys are used in context of an architecture, such as the ACE OAuth Framework <xreftarget="I-D.ietf-ace-oauth-authz"/>,target="I-D.ietf-ace-oauth-authz" format="default"/>, in which protocols are used by a presenter to request these tokens and to subsequently use them with recipients. Proof of possession only provides the intended security gains when the proof is known to be current and not subject to replay attacks; security protocols using mechanisms such as nonces and timestamps can be used to avoid the risk of replay when performing proof of possession for a token. Note that a discussion of the architecture or specific protocols thatCWTCWTs with proof-of-possessiontokenskeys are used with is beyond the scope of this specification. </t> <t> As is the case with other information included in a CWT, it is necessary to apply data origin authentication and integrity protection (via a keyed message digest or a digital signature). Data origin authentication ensures that the recipient of the CWT learns about the entity that created theCWTCWT, since this will be important for any policy decisions. Integrity protection prevents an adversary from changing any elements conveyed within the CWT payload. Special care has to be applied when carrying symmetric keys inside the CWT since those not only require integrity protection but also confidentiality protection. </t> <t> As described in Section6 (Key Identification)<xref target="RFC7515" section="6" sectionFormat="bare">Key Identification</xref> and AppendixD (Notes<xref target="RFC7515" section="D" sectionFormat="bare">Notes on KeySelection)Selection</xref> of <xreftarget="JWS"/>,target="RFC7515"/>, it is important to make explicit trust decisions about the keys. Proof-of-possession signatures made with keys not meeting the application's trust criteriaMUST NOT<bcp14>MUST NOT</bcp14> be relied upon. </t> </section> <section anchor="Privacy"title="Privacy Considerations">numbered="true" toc="default"> <name>Privacy Considerations</name> <t> A proof-of-possession key can be used as a correlation handle if the same key is used on multiple occasions. Thus, for privacy reasons, it is recommended that different proof-of-possession keys be used when interacting with different parties. </t> </section> <section anchor="Operational"title="Operational Considerations">numbered="true" toc="default"> <name>Operational Considerations</name> <t> The use of CWTs with proof-of-possession keys requires additional information to be shared between the involved parties in order to ensure correct processing. The recipient needs to be able to use credentials to verify the authenticity and integrity of the CWT. Furthermore, the recipient may need to be able to decrypt either the whole CWT or the encrypted parts thereof (see <xreftarget="SymmetricPoP"/>).target="SymmetricPoP" format="default"/>). This requires the recipient to know information about the issuer. Likewise, there needs to be agreement between the issuer and the recipient about the claims being used (which is also true of CWTs in general). </t> <t> When an issuer creates a CWT containing a Key ID claim, it needs to make sure that it does not issue another CWT with different claims containing the same Key ID within the lifetime of the CWTs, unless intentionally desired. Failure to do so may allow one party to impersonate another party, with the potential to gain additional privileges. A case where such reuse of a Key ID would be intentional is when a presenter obtains a CWT with different claims (e.g., extended scope) for the samerecipient,recipient but wants to continue using an existing security association (e.g., a DTLS session) bound to the key identified by the Key ID. Likewise, if PoP keys are used for multiple different kinds of CWTs in an application and the PoP keys are identified by Key IDs, care must be taken to keep the keys for the different kinds of CWTs segregated so that an attacker cannot cause the wrong PoP key to be used by using a valid Key ID for the wrong kind of CWT. Using an audience restriction for the CWT would be one strategy to mitigate this risk. </t> </section> <section anchor="IANA"title="IANA Considerations">numbered="true" toc="default"> <name>IANA Considerations</name> <t> The following registration procedure is used for all the registries established by this specification. </t> <t> Values are registered on a Specification Required <xreftarget="RFC8126"/>target="RFC8126" format="default"/> basis after a three-week review period on thecwt-reg-review@ietf.org<cwt-reg-review@ietf.org> mailing list, on the advice of one or moreDesignated Experts.designated experts. However, to allow for the allocation of values prior to publication, theDesignated Expertsdesignated experts may approve registration once they are satisfied that such a specification will be published.[[ Note to the RFC Editor: The name of the mailing list should be determined in consultation with the IESG and IANA. Suggested name: cwt-reg-review@ietf.org. ]]</t> <t> Registration requests sent to the mailing list for review should use an appropriate subject (e.g., "Request to Register CWT Confirmation Method: example"). Registration requests that are undetermined for a period longer than 21 days can be brought directly to IANA's attention (using the iana@iana.org mailing list) for resolution. </t> <t> DesignatedExpertsexperts should determine whether a registration request contains enough information for the registry to be populated with the new values and whether the proposed new functionality already exists. In the case of an incomplete registration or an attempt to register already existing functionality, theDesignated Expertsdesignated experts should ask for corrections or reject the registration. </t> <t> It is suggested that multipleDesignated Expertsdesignated experts be appointed who are able to represent the perspectives of different applications using this specification in order to enable broadly informed review of registration decisions. In cases where a registration decision could be perceived as creating a conflict of interest for a particularExpert,expert, thatExpertexpert should defer to the judgment of the otherExperts.experts. </t> <section anchor="ClaimsRegistry"title="CBORnumbered="true" toc="default"> <name>CBOR Web Token ClaimsRegistration">Registration</name> <t> This specification registers the<spanx style="verb">cnf</spanx><tt>cnf</tt> claim in the IANA "CBOR Web Token (CWT) Claims" registry <xreftarget="IANA.CWT.Claims"/>target="IANA.CWT.Claims" format="default"/>, established by <xreftarget="RFC8392"/>.target="RFC8392" format="default"/>. </t> <sectionanchor='ClaimsContents' title='Registry Contents'> <t> <?rfc subcompact="yes"?> <list style='symbols'> <t>anchor="ClaimsContents" numbered="true" toc="default"> <name>Registry Contents</name> <ul spacing="normal"> <li> Claim Name:<spanx style="verb">cnf</spanx> </t> <t><tt>cnf</tt> </li> <li> Claim Description: Confirmation</t> <t></li> <li> JWT Claim Name:<spanx style="verb">cnf</spanx> </t> <t><tt>cnf</tt> </li> <li> Claim Key:TBD (maybe 8) </t> <t>8 </li> <li> Claim Value Type(s): map</t> <t></li> <li> Change Controller: IESG</t> <t></li> <li> Specification Document(s): <xreftarget="Confirmation"/>target="Confirmation" format="default"/> of[[ this document ]] </t> </list> </t>RFC 8747 </li> </ul> </section><?rfc subcompact="no"?></section> <sectiontitle="CWTanchor="CnfReg" numbered="true" toc="default"> <name>CWT Confirmation MethodsRegistry" anchor="CnfReg">Registry</name> <t> This specification establishes the IANA "CWT Confirmation Methods" registry for CWT<spanx style="verb">cnf</spanx><tt>cnf</tt> member values. The registry records the confirmation method member and a reference to the specification that defines it. </t> <sectiontitle="Registration Template" anchor="CnfTemplate"> <t> <list style='hanging'> <t hangText='Confirmationanchor="CnfTemplate" numbered="true" toc="default"> <name>Registration Template</name> <dl newline="true" spacing="normal"> <dt>Confirmation MethodName:'> <vspace/>Name:</dt> <dd> The human-readable name requested (e.g., "kid").</t> <t hangText='Confirmation</dd> <dt>Confirmation MethodDescription:'> <vspace/>Description:</dt> <dd> Brief description of the confirmation method (e.g., "Key Identifier").</t> <t hangText='JWT</dd> <dt>JWT Confirmation MethodName:'> <vspace/>Name:</dt> <dd> Claim Name of the equivalent JWT confirmation method value, as registered in the "JSON Web Token Claims" subregistry in the "JSON Web Token (JWT)" registry <xreftarget="IANA.JWT.Claims"/>.target="IANA.JWT" format="default"/>. CWT claims should normally have a corresponding JWT claim. If a corresponding JWT claim would not make sense, theDesignated Expertsdesignated experts can choose to accept registrations for which the JWT Claim Name is listed as "N/A".</t> <t hangText='Confirmation Key:'> <vspace/></dd> <dt>Confirmation Key:</dt> <dd> CBOR map key value for the confirmation method.</t> <t hangText='Confirmation</dd> <dt>Confirmation ValueType(s):'> <vspace/>Type(s):</dt> <dd> CBOR types that can be used for the confirmation method value.</t> <t hangText='Change Controller:'> <vspace/></dd> <dt>Change Controller:</dt> <dd> For Standards Track RFCs, list the "IESG". For others, give the name of the responsible party.</t> <t hangText='Specification Document(s):'> <vspace/></dd> <dt>Specification Document(s):</dt> <dd> Reference to the document or documents that specify the parameter, preferably including URIs that can be used to retrieve copies of the documents. An indication of the relevant sections may also be included but is not required. Note that theDesignated Expertsdesignated experts and IANA must be able to obtain copies of the specification document(s) to perform their work.</t> </list> </t></dd> </dl> </section> <sectiontitle="Initialanchor="CnfContents" numbered="true" toc="default"> <name>Initial RegistryContents" anchor="CnfContents"> <t> <?rfc subcompact="yes"?> <list style='symbols'> <t>Contents</name> <ul spacing="compact"> <li> Confirmation Method Name:<spanx style="verb">COSE_Key</spanx> </t> <t><tt>COSE_Key</tt> </li> <li> Confirmation Method Description: COSE_Key Representing Public Key</t> <t></li> <li> JWT Confirmation Method Name:<spanx style="verb">jwk</spanx> </t> <t><tt>jwk</tt> </li> <li> Confirmation Key: 1</t> <t></li> <li> Confirmation Value Type(s): COSE_Key structure</t> <t></li> <li> Change Controller: IESG</t> <t></li> <li> Specification Document(s): <xreftarget="PrivatePoP"/>target="PrivatePoP" format="default"/> of[[ this document ]] </t> </list> </t> <t> <list style='symbols'> <t>RFC 8747 </li> </ul> <ul spacing="compact"> <li> Confirmation Method Name:<spanx style="verb">Encrypted_COSE_Key</spanx> </t> <t><tt>Encrypted_COSE_Key</tt> </li> <li> Confirmation Method Description: Encrypted COSE_Key</t> <t></li> <li> JWT Confirmation Method Name:<spanx style="verb">jwe</spanx> </t> <t><tt>jwe</tt> </li> <li> Confirmation Key: 2</t> <t></li> <li> Confirmation Value Type(s): COSE_Encrypt or COSE_Encrypt0 structure (with an optional corresponding COSE_Encrypt or COSE_Encrypt0 tag)</t> <t></li> <li> Change Controller: IESG</t> <t></li> <li> Specification Document(s): <xreftarget="SymmetricPoP"/>target="SymmetricPoP" format="default"/> of[[ this document ]] </t> </list> </t> <t> <list style='symbols'> <t>RFC 8747 </li> </ul> <ul spacing="compact"> <li> Confirmation Method Name:<spanx style="verb">kid</spanx> </t> <t><tt>kid</tt> </li> <li> Confirmation Method Description: Key Identifier</t> <t></li> <li> JWT Confirmation Method Name:<spanx style="verb">kid</spanx> </t> <t><tt>kid</tt> </li> <li> Confirmation Key: 3</t> <t></li> <li> Confirmation Value Type(s): binary string</t> <t></li> <li> Change Controller: IESG</t> <t></li> <li> Specification Document(s): <xreftarget="KidPoP"/>target="KidPoP" format="default"/> of[[ this document ]] </t> </list> </t> <!-- <t> <list style='symbols'> <t> Confirmation Method Name: <spanx style="verb">jku</spanx> </t> <t> Confirmation Method Description: JWK Set URL </t> <t> JWT Confirmation Method Name: <spanx style="verb">jku</spanx> </t> <t> Confirmation Key: TBD </t> <t> Confirmation Value Type(s): text string </t> <t> Change Controller: IESG </t> <t> Specification Document(s): <xref target="jkuPoP"/> of [[ this document ]] </t> </list> </t> -->RFC 8747 </li> </ul> </section><?rfc subcompact="no"?></section> </section> </middle> <back><references title="Normative References"> <?rfc include='http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml' ?> <?rfc include='http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7049.xml' ?> <?rfc include='http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8126.xml' ?> <?rfc include='http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8152.xml' ?> <?rfc include='http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml' ?> <?rfc include='http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8392.xml' ?><displayreference target="I-D.ietf-ace-oauth-authz" to="ACE-OAUTH"/> <displayreference target="RFC7515" to="JWS"/> <displayreference target="RFC7519" to="JWT"/> <references> <name>References</name> <references> <name>Normative References</name> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7049.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8126.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8152.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8392.xml"/> <reference anchor="IANA.CWT.Claims" target="http://www.iana.org/assignments/cwt"> <front> <title>CBOR Web Token Claims</title> <author> <organization>IANA</organization> </author> <date/> </front> </reference> </references><references title="Informative References"> <?rfc include='http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8259.xml' ?> <?rfc include='http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7800.xml' ?> <?rfc include='http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8610.xml' ?> <reference anchor="JWS" target="http://www.rfc-editor.org/info/rfc7515"> <front> <title>JSON Web Signature (JWS)</title> <author fullname="Michael B. Jones" initials="M.B." surname="Jones"> <organization>Microsoft</organization> <address> <email>mbj@microsoft.com</email> <uri>http://self-issued.info/</uri> </address> </author> <author fullname="John Bradley" initials="J." surname="Bradley"> <organization abbrev="Ping Identity">Ping Identity</organization> <address> <email>ve7jtb@ve7jtb.com</email> </address> </author> <author fullname="Nat Sakimura" initials="N." surname="Sakimura"> <organization abbrev="NRI">Nomura Research Institute</organization> <address> <email>n-sakimura@nri.co.jp</email> </address> </author> <date month="May" year="2015"/> </front> <seriesInfo name="RFC" value="7515" /> <seriesInfo name="DOI" value="10.17487/RFC7515"/> </reference> <reference anchor="JWT" target='http://www.rfc-editor.org/info/rfc7519'> <front> <title>JSON Web Token (JWT)</title> <author fullname="Michael B. Jones" initials="M.B." surname="Jones"> <organization>Microsoft</organization> <address> <email>mbj@microsoft.com</email> <uri>http://self-issued.info/</uri> </address> </author> <author fullname="John Bradley" initials="J." surname="Bradley"> <organization abbrev="Ping Identity">Ping Identity</organization> <address> <email>ve7jtb@ve7jtb.com</email> </address> </author> <author fullname="Nat Sakimura" initials="N." surname="Sakimura"> <organization abbrev="NRI">Nomura Research Institute</organization> <address> <email>n-sakimura@nri.co.jp</email> </address> </author> <date month="May" year="2015"/> </front> <seriesInfo name="RFC" value="7519"/> <seriesInfo name="DOI" value="10.17487/RFC7519"/> </reference> <!-- <?rfc include='http://xml2rfc.tools.ietf.org/public/rfc/bibxml2/reference.OASIS.saml-core-2.0-os.xml' ?> --><references> <name>Informative References</name> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8259.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7800.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8610.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7515.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7519.xml"/> <reference anchor="OASIS.saml-core-2.0-os"target="http://docs.oasis-open.org/security/saml/v2.0/">target="http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf"> <front> <title>Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0</title> <author fullname="Scott Cantor" initials="S." surname="Cantor"> <organization>Internet2</organization> <address> <email>cantor.2@osu.edu</email> </address> </author> <author fullname="John Kemp" initials="J." surname="Kemp"> <organization>Nokia</organization> <address> <email>John.Kemp@nokia.com</email> </address> </author> <author fullname="Rob Philpott" initials="R." surname="Philpott"> <organization>RSA Security</organization> <address> <email>rphilpott@rsasecurity.com</email> </address> </author> <author fullname="Eve Maler" initials="E." surname="Maler"> <organization>Sun Microsystems</organization> <address> <email>eve.maler@sun.com</email> </address> </author> <date year="2005" month="March"/> </front> <seriesInfo name="OASIS Standard" value="saml-core-2.0-os"/><format type="PDF" target="http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf"/></reference> <referenceanchor="IANA.JWT.Claims"anchor="IANA.JWT" target="http://www.iana.org/assignments/jwt"> <front> <title>JSON Web TokenClaims</title>(JWT)</title> <author> <organization>IANA</organization> </author> <date/> </front> </reference><?rfc include="http://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.draft-ietf-ace-oauth-authz-21"?><xi:include href="https://www.rfc-editor.org/refs/bibxml3/reference.I-D.draft-ietf-ace-oauth-authz-21.xml"/> </references> </references> <sectiontitle='Acknowledgements' anchor='Acknowledgements' numbered="no">anchor="Acknowledgements" numbered="false" toc="default"> <name>Acknowledgements</name> <t> Thanks to the following people for their reviews of the specification:Roman Danyliw, Christer Holmberg, Benjamin Kaduk, Mirja Kühlewind, Yoav Nir, Michael Richardson, Adam Roach, Éric Vyncke, and Jim Schaad.<contact fullname="Roman Danyliw"/>, <contact fullname="Christer Holmberg"/>, <contact fullname="Benjamin Kaduk"/>, <contact fullname="Mirja Kühlewind"/>, <contact fullname="Yoav Nir"/>, <contact fullname="Michael Richardson"/>, <contact fullname="Adam Roach"/>, <contact fullname="Éric Vyncke"/>, and <contact fullname="Jim Schaad"/>. </t><t>Ludwig Seitz<t><contact fullname="Ludwig Seitz"/> andGöran Selander<contact fullname="Göran Selander"/> worked on this document as part of the CelticPlus projects CyberWI and CRITISEC, with funding from Vinnova.</t></section> <section title="Document History" anchor="History"> <t> [[ to be removed by the RFC Editor before publication as an RFC ]] </t> <t>-11 <list style='symbols'> <t> Addressed remaining IESG review comment by Mirja Kühlewind. </t> </list> </t> <t>-10 <list style='symbols'> <t> Addressed IESG review comments by Adam Roach and Éric Vyncke. </t> </list> </t> <t>-09 <list style='symbols'> <t> Addressed Gen-ART review comments by Christer Holmberg and SecDir review comments by Yoav Nir. </t> </list> </t> <t>-08 <list style='symbols'> <t> Addressed remaining Area Director review comments by Benjamin Kaduk. </t> </list> </t> <t>-07 <list style='symbols'> <t> Addressed Area Director review by Benjamin Kaduk. </t> </list> </t> <t> -06 <list style='symbols'> <t> Corrected nits identified by Roman Danyliw. </t> </list> </t> <t> -05 <list style='symbols'> <t> Added text suggested by Jim Schaad describing considerations when using the Key ID confirmation method. </t> </list> </t> <t> -04 <list style='symbols'> <t> Addressed additional WGLC comments by Jim Schaad and Roman Danyliw. </t> </list> </t> <t> -03 <list style='symbols'> <t> Addressed review comments by Jim Schaad, see https://www.ietf.org/mail-archive/web/ace/current/msg02798.html </t> <t> Removed unnecessary sentence in the introduction regarding the use any strings that could be case-sensitive. </t> <t> Clarified the terms Presenter and Recipient. </t> <t> Clarified text about the confirmation claim. </t> </list> </t> <t> -02 <list style='symbols'> <t> Changed "typically" to "often" when describing ways of performing proof of possession. </t> <t> Changed b64 to hex encoding in an example. </t> <t> Changed to using the RFC 8174 boilerplate instead of the RFC 2119 boilerplate. </t> </list> </t> <t> -01 <list style='symbols'> <t> Now uses CBOR diagnostic notation for the examples. </t> <t> Added a table summarizing the "cnf" names, keys, and value types. </t> <t> Addressed some of Jim Schaad's feedback on -00. </t> </list> </t> <t> -00 <list style='symbols'> <t> Created the initial working group draft from draft-jones-ace-cwt-proof-of-possession-01. </t> </list> </t></section> </back> </rfc>