STIR | C. Wendt |
Internet-Draft | Comcast |
Intended status: Standards Track | J. Peterson |
Expires: January 9, 2017 | Neustar Inc. |
July 8, 2016 |
Persona Assertion Token
draft-ietf-stir-passport-04
This document defines a token format for verifying with non-repudiation the sender of and authorization to send information related to the originator of personal communications. A cryptographic signature is defined to protect the integrity of the information used to identify the originator of a personal communications session (e.g. the telephone number or URI) and verify the accuracy of this information at the destination. The cryptographic signature is defined with the intention that it can confidently verify the originating persona even when the signature is sent to the destination party over an unsecure channel. The Persona Assertion Token (PASSporT) is particularly useful for many personal communications applications over IP networks and other multi-hop interconnection scenarios where the originating and destination parties may not have a direct trusted relationship.
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 on January 9, 2017.
Copyright (c) 2016 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.
In today's IP-enabled telecommunications world, there is a growing concern about the ability to trust incoming invitations for communications sessions, including video, voice and messaging. [RFC7340] As an example, modern telephone networks provide the ability to spoof the calling party telephone number for many legitimate purposes including providing network features and services on the behalf of a legitimate telephone number. However, as we have seen, bad actors have taken advantage of this ability for illegitimate and fraudulent purposes meant to trick telephone users to believe they are someone they are not. This problem can be extended to many emerging forms of personal communications.
This document defines a common method for creating and validating a token that cryptographically verifies an originating identity, or more generally a URI or application specific identity string representing the originator of personal communications. Through extended profiles other information relevant to the personal communications can also be attached to the token. The primary goal of PASSporT is to provide a common framework for signing persona related information in an extensible way. A secondary goal is to provide this functionality independent of any specific personal communications signaling call logic, so that creation and verification of persona information can be implemented in a flexible way and can be used in many personal communications applications including end-to-end applications that require different signaling protocols. It is anticipated that signaling protocol specific guidance will be provided in other related documents and specifications to specify how to use and transport PASSporT tokens, however this is intentionally out of scope for this document.
Note: As of the authoring of this document, [I-D.ietf-stir-rfc4474bis] provides details of how to use PASSporT within SIP signaling for the signing and verification of telephone numbers.
Tokens are a convenient way of encapsulating information with associated digital signatures. They are used in many applications that require authentication, authorization, encryption, non-repudiation and other use cases. JSON Web Token (JWT) [RFC7519] and JSON Web Signature (JWS) [RFC7515] are designed to provide a compact form for many of these purposes and define a specific method and syntax for signing a specific set of information or "claims" within the token and therefore providing an extensible set of claims. Additionally, JWS provides extensible mechanisms for specifying the method and cryptographic algorithms used for the associated digital signatures.
The PASSporT is constructed based on JWT [RFC7519] and JWS [RFC7515] specifications. JWS defines the use of JSON data structures in a specified canonical format for signing data corresponding to JOSE header, JWS Payload, and JWS Signature. JWT defines specific set of claims that are represented by specified key value pairs which can be extended with custom keys for specific applications.
The JWS token header is a JOSE header [RFC7515] that defines the type and encryption algorithm used in the token.
{ "typ":"passport", "alg":"ES256", "x5u":"https://cert.example.org/passport.cer" }
An example of the header for the case of an ECDSA P-256 digital signature would be the following,
JWS defines the "typ" (Type) Header Parameter to declare the media type of the JWS.
For PASSporT Token the "typ" header MUST minimally include and begin with "passport". This represents that the encoded token is a JWT of type passport.
For PASSporT, the "alg" should be defined as follows, for the creation and verification of PASSporT tokens and their digital signatures ES256 MUST be implemented.
Note that JWA [RFC7518] defines other algorithms that may be utilized or updated in the future depending on cryptographic strength requirements guided by current security best practice.
As defined in JWS, the "x5u" header parameter is used to provide a URI [RFC3986] referring to the resource for the X.509 public key certificate or certificate chain [RFC5280] corresponding to the key used to digitally sign the JWS. Note: The definition of what the URI represents in terms of the actor serving the X.509 public key is out of scope of this document. However, generally this would correspond to an HTTPS or DNSSEC resource with the guidance that it MUST be a TLS protected, per JWS spec.
The token payload claims should consist of the information which needs to be verified at the destination party. This claim should correspond to a JWT claim [RFC7519] and be encoded as defined by the JWS Payload [RFC7515]
The PASSporT defines the use of a number of standard JWT defined headers as well as two new custom headers corresponding to the two parties associated with personal communications, the originator and terminator. These headers or key value pairs are detailed below.
The JSON claim MUST include the "iat" [RFC7519] defined claim issued at. As defined this should be set to a date cooresponding to the origination of the personal communications. The time value should be of the format defined in [RFC7519] Section 2 NumericDate. This is included for securing the token against replay and cut and paste attacks, as explained further in the security considerations in section 7.
Baseline PASSporT defines claims that convey the identity of the origination and destination of personal communications. There are two claims that are required for PASSporT, the "orig" and "dest" claims. Both "orig" and "dest" should have values that are JSON objects that include identities represented by key value pairs, where the key represents an identity type and the value is the identity string. Currently, these identities can be represented as either telephone numbers or Uniform Resource Indicators (URIs). The definition of how telephone numbers or URIs and examples are provided below.
The "orig" JSON object MUST only have one key value pair representing the asserted identity of any type (currently either "tn" or "uri") of the originator of the personal communications signaling.
The "dest" JSON object MUST at least have one key value pair, but could have an arbitrary number of destination identities of any type.
If the originating or destination identity is a telephone number, the key representing the identity should be "tn".
Telephone Number strings for "tn" MUST be canonicalized according to the procedures specified in [I-D.ietf-stir-rfc4474bis] Section 7.2.
If any of the originating or destination identities is of the form URI, as defined in [RFC3986], the key representing the identity should be "uri" URI form of the identity.
We recognize that in the future there may be other standard mechanisms for representing identities. The "orig" and "dest" JSON objects with "tn" and "uri" allow for other identity types with unique keys to represent these forms.
{ "iat":"1443208345", "orig":{"tn":"12155551212"}, "dest":{"uri":"sip:alice@example.com"} }
Single Originator to Single Destination example:
{ "iat":"1443208345", "orig":{"tn":"12155551212"}, "dest":{ "uri":"sip:alice@example.com", "tn":"12125551212", "uri":"sip:bob@example.net" } }
Single Originator to Multiple Destination Identities example:
Some protocols that use PASSporT convey hashes for media security keys within their signaling in order to bind those keys to the identities established in the signaling layers. One example would be the DTLS-SRTP key fingerprints carried in SDP via the "a=fingerprint" attribute; multiple instances of that fingerprint may appear in a single SDP body corresponding to difference media streams offered. The "mky" value of PASSporT contains a hexadecimal key presentation of any hash(es) necessary to establish media security via DTLS-SRTP. This mky value should be formated in a JSON form including the 'alg' and 'dig' keys with the corresponding algorithm and hexadecimal values. Note that per guidance of Section 5 of this document any whitespace and line feeds must be removed. If there is multiple fingerprint values, more than one, the fingerprint values should be constructed as a JSON array denoted by bracket characters. For the 'dig' key value, the hash value should be the hexadecimal value without any colons, in order to provide a more efficient, compact form to be encoded in PASSporT token claim.
An example claim with "mky" claim is as follows:
a=fingerprint:sha-256 02:1A:CC:54:27:AB:EB:9C:53:3F:3E:4B:65: 2E:7D:46:3F:54:42:CD:54:F1:7A:03:A2:7D:F9:B0:7F:46:19:B2 a=fingerprint:sha-256 4A:AD:B9:B1:3F:82:18:3B:54:02:12:DF:3E: 5D:49:6B:19:E5:7C:AB:3E:4B:65:2E:7D:46:3F:54:42:CD:54:F1
For an SDP offer that includes the following fingerprint values,
{ "iat":"1443208345", "orig":{"tn":"12155551212"}, "dest":{"uri":"sip:alice@example.com"}, "mky":[ { "alg":"sha-256", "dig":"021ACC5427ABEB9C533F3E4B652E7D463F5442CD54 F17A03A27DF9B07F4619B2" }, { "alg":"sha-256", "dig":"4AADB9B13F82183B540212DF3E5D496B19E57C AB3E4B652E7D463F5442CD54F1" } ] }
the PASSporT Payload object would be:
The signature of the PASSporT is created as specified by JWS using the private key corresponding to the X.509 public key certificate referenced by the "x5u" header parameter.
PASSporT represents the bare minimum set of claims needed to assert the originating identity and support the secure propoerties discussed in various parts of this document, however there will certainly be both new uses and ways of extending the application and usage of PASSPorT that requires the ability to extend the defined base set of claims to represent other information requiring assertion or validation beyond the identity itself.
For the extension of the base set of claims defined in this document, a new JWS header parameter "ppt" MUST be used with a string that uniquely identifies and points to a profile specification that defines any new claims that would extend the base set of claims of PASSporT.
{ "typ":"passport", "ppt":"foo", "alg":"ES256", "x5u":"https://tel.example.org/passport.cer" }
An example header with an extended PASSporT profile of "foo" is as follows:
Future specifications that define such extensions to the PASSporT mechanism MUST explicitly designate what claims they include beyond the base set of claims from this document, the order in which they will appear, and any further information necessary to implement the extension. All extensions MUST incorporate the baseline JWT elements specified in Section 3; claims may only be appended to the claims object specified; they can never be subtracted or re-ordered. Specifying new claims follows the baseline JWT procedures ([RFC7519] Section 10.1). Note that understanding an extension as a verifier is always optional for compliance with this specification (though future specifications or profiles for deployment environments may make other "ppt" values mandatory). The creator of a PASSporT object cannot assume that verifiers will understand any given extension. Verifiers that do support an extension may then trigger appropriate application-level behavior in the presence of an extension; authors of extensions should provide appropriate extension-specific guidance to application developers on this point.
In order to provide a deterministic representation of the PASSporT Header and Claims, particularly if PASSporT is used across multiple signaling environments, the JSON header object and JSON Claim object MUST be computed as follows.
The JSON object MUST follow the rules for the construction of the thumbprint of a JSON Web Key (JWK) as defined in [RFC7638] Section 3. Each JSON object MUST contain no whitespace or line breaks before or after any syntactic elements and with the required members ordered lexicographically by the Unicode [UNICODE] code points of the member names.
In addition, the JSON header and claim members MUST follow the lexicographical ordering and character and string rules defined in [RFC7638] Section 3.3.
{"iat": 1443208345,"orig":{"tn":"12155551212"},"dest": {"uri":"sip:alice@example.com"},"mky":[{"alg":"sha-256","dig": "021ACC5427ABEB9C533F3E4B652E7D463F5442CD54F17A03A27DF9B07F4619 B2"},{"alg":"sha-256","dig":"4AADB9B13F82183B540212DF3E5D496B19 E57CAB3E4B652E7D463F5442CD54F1"}]}
For the example PASSporT Payload shown in Section 3.2.2.2, the following is the deterministic JSON object form.
JWT [RFC7519] and JWS [RFC7515] are defined to use Base64 and/or UTF8 encoding to the Header, Payload, and Signature sections. However, many personal communications protocols, such as SIP and XMPP, use a "human readable" format to allow for ease of use and ease of operational debugging and monitoring. As such, specifications using PASSporT may provide guidance on whether Base64 encoding or plain text will be used for the construction of the PASSporT Header and Claim sections.
There are a number of security considerations for use of the token for avoidance of replay and cut and paste attacks. PASSporT tokens must be sent along with other application level protocol information (e.g. for SIP an INVITE as defined in [RFC3261]). There should be a link between various information provided in the token and information provided by the application level protocol information.
These would include:
It should be recognized that the use of this token should not, in it's own right, be considered a full solution for absolute non-repudiation of the persona being asserted. This only provides non-repudiation of the signer of PASSporT. If the signer and the persona are not one in the same, which can and often will be the case in telecommunications networks today, protecting the destination party from being spoofed may take some interpretation or additional verification of the link between the PASSporT signature and the persona being asserted.
In addition, the telecommunications systems and specifications that use PASSporT should in practice provide mechanisms for:
Because PASSporT explicity includes claims of identitifiers of parties involved in communications, times, and potentially other call detail, care should be taken outside of traditional protected or private telephony communications paths where there may be concerns about exposing information to either unintended or illegitimately intented actors. These identifiers are often exposed through many communications signaling protocols as of today, but appropriate precautions should be taken.
This section registers the "application/passport" media type [RFC2046] in the "Media Types" registry in the manner described in [RFC6838], which can be used to indicate that the content is a PASSporT defined JWT and JWS.
Particular thanks to members of the ATIS and SIP Forum NNI Task Group including Jim McEchern, Martin Dolly, Richard Shockey, John Barnhill, Christer Holmberg, Victor Pascual Avila, Mary Barnes, and Eric Burger for their review, ideas, and contributions. Also thanks to Henning Schulzrinne, Russ Housley, Alan Johnston, and Richard Barnes for valuable feedback on the technical and security aspects of the document. Additional thanks to Harsha Bellur for assistance in coding the example tokens.
[RFC3261] | Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, A., Peterson, J., Sparks, R., Handley, M. and E. Schooler, "SIP: Session Initiation Protocol", RFC 3261, DOI 10.17487/RFC3261, June 2002. |
[RFC5280] | Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R. and W. Polk, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", RFC 5280, DOI 10.17487/RFC5280, May 2008. |
[RFC7340] | Peterson, J., Schulzrinne, H. and H. Tschofenig, "Secure Telephone Identity Problem Statement and Requirements", RFC 7340, DOI 10.17487/RFC7340, September 2014. |
For PASSporT, there will always be a JWS with the following members:
Note: there will never be a JWS Unprotected Header for PASSporT.
{ "typ":"passport", "alg":"ES256", "x5u":"https://cert.example.org/passport.cer" }
First, an example PASSporT Protected Header is as follows:
{"typ":"passport","alg":"ES256","x5u":"https://cert.example.org/ passport.cer"}
This would be serialized to the form:
eyJ0eXAiOiJwYXNzcG9ydCIsImFsZyI6IkVTMjU2IiwieDV1IjoiaHR0cHM6Ly9j ZXJ0LmV4YW1wbGUub3JnL3Bhc3Nwb3J0LmNlciJ9
Encoding this with UTF8 and BASE64 encoding produces this value:
{ "iat":"1443208345", "orig":{"tn":"12155551212"}, "dest":{"uri":"sip:alice@example.com"} }
Second, an example PASSporT Payload is as follows:
{"iat":"1443208345","orig":{"tn":"12155551212"},"dest": {"uri":"sip:alice@example.com"}}
This would be serialized to the form:
eyJpYXQiOiIxNDQzMjA4MzQ1Iiwib3JpZyI6eyJ0biI6IjEyMTU1NTUxMjEyIn0s ImRlc3QiOnsidXJpIjoic2lwOmFsaWNlQGV4YW1wbGUuY29tIn19
Encoding this with the UTF8 and BASE64 encoding produces this value:
2bbTbLeDIf52Vv0yESUqebUBYrKIuouOfKQME6MD9kfgZ59dMAvvrIC94XsKdzV0 3evDS8wd6CubUqSalM7Dpg
Computing the digital signature of the PASSporT Signing Input ASCII(BASE64URL(UTF8(JWS Protected Header)) || '.' || BASE64URL(JWS Payload))
eyJ0eXAiOiJwYXNzcG9ydCIsImFsZyI6IkVTMjU2IiwieDV1IjoiaHR0cHM6Ly9j ZXJ0LmV4YW1wbGUub3JnL3Bhc3Nwb3J0LmNlciJ9 . eyJpYXQiOiIxNDQzMjA4MzQ1Iiwib3JpZyI6eyJ0biI6IjEyMTU1NTUxMjEyIn0s ImRlc3QiOnsidXJpIjoic2lwOmFsaWNlQGV4YW1wbGUuY29tIn19 . 2bbTbLeDIf52Vv0yESUqebUBYrKIuouOfKQME6MD9kfgZ59dMAvvrIC94XsKdzV0 3evDS8wd6CubUqSalM7Dpg
The final PASSporT token is produced by concatenating the values in the order Header.Payload.Signature with period (',') characters. For the above example values this would produce the following:
-----BEGIN EC PRIVATE KEY----- MHcCAQEEIFeZ1R208QCvcu5GuYyMfG4W7sH4m99/7eHSDLpdYllFoAoGCCqGSM49 AwEHoUQDQgAE8HNbQd/TmvCKwPKHkMF9fScavGeH78YTU8qLS8I5HLHSSmlATLcs lQMhNC/OhlWBYC626nIlo7XeebYS7Sb37g== -----END EC PRIVATE KEY-----
-----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE8HNbQd/TmvCKwPKHkMF9fScavGeH 78YTU8qLS8I5HLHSSmlATLcslQMhNC/OhlWBYC626nIlo7XeebYS7Sb37g== -----END PUBLIC KEY-----