<?xml version="1.0" encoding="US-ASCII"?>
<?xml-stylesheet type='text/xsl'
             href='http://xml.resource.org/authoring/rfc2629.xslt' ?>
             
<!DOCTYPE rfc SYSTEM "http://xml.resource.org/authoring/rfc2629.dtd" [
<!ENTITY RFC2629 PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2629.xml">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="no" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<rfc category="std" docName="draft-asveren-stir-p-charge-info-00" ipr="trust200902">

  <!-- ***** FRONT MATTER ***** -->

  <front>
      <title abbrev="STIR P-Charge-Info">PASSPorT Extension for P-Charge-Info Header</title>

    
    <author fullname="Tolga Asveren" initials="T." surname="Asveren">
                <organization abbrev="Ribbon">Ribbon Communications</organization>
      <address>
        <postal>
          <city>Freehold</city>
          <region>NJ</region>
          <code>07728</code>
          <country>USA</country>
        </postal>
        <email>tasveren@rbbn.com</email>
      </address>
    </author>
    
    <date year="2018" />

    <!-- Meta-data Declarations -->

    <area>Real-time Applications and Infrastructure</area>

    <workgroup>STIR</workgroup>
	 <keyword>p-charge-info</keyword>

    <abstract>
       <t> 
	   This document extends the PASSporT (Personal Assertion Token)
   specification defined in [RFC8225] to allow the inclusion of
   cryptographically signed assertions of authorization for the values
   populated in the 'Session Initiation Protocol (SIP) P-Charge-Info'
   header, which is used for conveying information about the entity to be 
   charged for a particular real time session.
       </t>
    </abstract>
  </front>

  <middle>
    <section title="Introduction">
    <t>
   PASSporT <xref target="RFC8225">RFC 8225</xref> is a token format based on JSON Web Token (JWT)
   <xref target="RFC7519">RFC 7519</xref> for conveying cryptographically signed information about
   the identities involved in personal communications; it is used with
   STIR <xref target="RFC8224">RFC 8224</xref> to convey a signed assertion of the identity of the
   participants in real-time communications established via a protocol
   like SIP <xref target="RFC3261">RFC 3261</xref>.  This specification extends PASSporT to allow
   cryptographic-signing of the 'SIP P-Charge-Info' header
   [RFCXXX], which is used to provide information about the party to be
   charged for a real time session.
   </t>

   <t>
   'SIP P-Charge-Info' header could be spoofed and abused by unauthorized entities.
   Compromise of the 'SIP P-Charge-Info' header would allow charging fraud.
   </t>
   
   <t>
   Extension mechanisms defined in RFC8225 can be utilized to cyrptographically
   sign the 'SIP P-Charge-Info' header. This would allow a receiving entity to verify 
   the validity of this header.
   </t>
   
   <t>
   This specification documents an extension to PASSporT and the
   associated STIR mechanisms to provide a function to sign the 'SIP 
   P-Charge-Info' header. 
	 </t>

    </section>

      <section title="Requirements Language">
        <t>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 RFC 2119.</t>
      </section>

    

    <section anchor="PASSPorT 'pci' Claim" title="PASSPortT 'pci' Claim">
    <t>  
	This specification defines a new JSON Web Token claim for "pci",
   which provides an assertion for information in 'SIP P-Charge-Info' header.
    </t>
   
   <t>
   The creator of a PASSporT object adds a "ppt" value of "pci" to the
   header of a PASSporT object, in which case the PASSporT claims MUST
   contain a "pci" claim, and any entities verifying the PASSporT object
   will be required to understand the "ppt" extension in order to
   process the PASSporT in question.  A PASSPorT header with the "ppt"
   included will look as follows:
   </t>
   
   <t>
    <figure><artwork><![CDATA[
   {
   "typ":"passport",
     "ppt":"pci",
     "alg":"ES256",
     "x5u":"https://www.example.org/cert.cer"
   }
          ]]></artwork></figure>

   The "pci" claim will provide an assertion 
   for information in the 'SIP P-Charge-Info' header as defined in
   [RFCXXX] .
    </t>
	
   <t>
   After the header and claims PASSporT objects have been constructed,
   their signature is generated normally per the guidance in [RFC8225]. 
   The credentials (i.e., Certificate)
   used to create the signature must have authority over the
   "pci" claim and there is only one authority per claim.
   If P-Charge-Info header is added or by the intermediaries along the
   path, intermediaries must generate a new "pci" header and sign the
   claim with its own authority.
   </t>
   
   <t>
    The following is an example "pci" claim for a 'SIP P-Charge-Info'
   header field with a value of "12125550100"
   <figure><artwork><![CDATA[
    {
     "orig":{"tn":"12155550112"},
     "dest":{["tn":"12125550113"]},
     "iat":1443208345,
     "pci":{["tn": "12125550100"]}
    }
	          ]]></artwork></figure>

   </t>
	
    </section>
	
	<section anchor="Using 'pci' in SIP" title="Using 'pci' in SIP">
	
	<t>
	This section specifies SIP-specific usage for the "pci" PASSporT type
    and its handling in the SIP Identity header field "ppt" parameter
    value.  Other using protocols of PASSporT may define behavior
    specific to their use of the "pci" claim.
	</t>
	
	<section anchor="Authentication Service Behavior" title="Authentication Service Behavior">
	
	<t>
	 An authentication service adds an Identity header field
     containing the "pci" PASSporT type to an SIP request only if it adds
	 a P-Charge-Info header to the request. Whether to add such an Identity header is
	 controlled by local policy.
	 When adding an Identity header field with a PASSporT object
     containing a "pci" claim, SIP authentication services MUST also add a
   "ppt" parameter to that Identity header with a value of "pci".  The
   resulting Identity header field to add to the message
   might look as follows:

     <figure><artwork><![CDATA[
   Identity: eyJhbGciOiJFUzI1NiIsInR5cCI6InBhc3Nwb3J0IiwieDV1I \
   joiaHR0cHM6Ly9jZXJ0LmV4YW1wbGUub3JnL3Bhc3Nwb3J0LmNlciJ9.eyJ \
   kZXN0Ijp7InVyaSI6WyJzaXA6YWxpY2VAZXhhbXBsZS5jb20iXX0sImlhdC \
   I6IjE0NDMyMDgzNDUiLCJvcmlnIjp7InRuIjoiMTIxNTU1NTEyMTIifX0.r \
   q3pjT1hoRwakEGjHCnWSwUnshd0-zJ6F1VOgFWSjHBr8Qjpjlk-cpFYpFYs \
   ojNCpTzO3QfPOlckGaS6hEck7w;info=<https://biloxi.example.org \
   /biloxi.cert>;alg=ES256;ppt="pci"
		]]></artwork></figure>
 
	</t>
	
	</section>
	
	
	<section anchor="Verification Service Behavior" title="Verification Service Behavior">
	
	<t>
	 <xref target="RFC8224">RFC 8224</xref> Section 6.2 Step 5 requires that specifications defining
   "ppt" values describe any additional verifier behavior.  The behavior
   specified for the "pci" value of "ppt" is as follows.

    The verification service MUST extract the value associated with the
   "pci" key in a PASSPorT with a "ppt" value of "pci".  If
   the signature validates, then the verification service can use the
   value of the "pci" claim as validation that P-Charge-Info in the received 
   request is authentic. The verifier MUST also ensure that the generator of Identity header
   is authorized to declare the value used for P-Charge-Info as the party to be charged.
   How this can be achieved is out of the scope of this specification.
	</t>
	
	</section>
	
	<section anchor="Other Behavior" title="Other Behavior">
	<t>
	An entity dropping P-Charge-Info MUST drop the corresponding Identity header
	with "ppt" parameter value of "pci".
	</t>
   </section>
   
	</section>

    <section anchor="IANA" title="IANA Considerations">
	<t>
	 This specification requests that the IANA add a new claim to the JSON
     Web Token Claims registry as defined in <xref target="RFC7519">RFC 7519</xref>.

	 <figure><artwork><![CDATA[
     Claim Name: "pci"

     Claim Description: Party to be charged for a session

     Change Controller: IESG

     Specification Document(s): [RFCThis]
          ]]></artwork></figure>
	</t>
	
    </section>

    <section anchor="Security" title="Security Considerations">
    <t>
	This specification describes a security feature, and is primarily
    concerned with increasing security for information regarding the party
    to be charged for a real time session.
	</t>
	
	<t>
	A malicious entity may add a P-Charge-Info value and a corresponding 
	Identity header for charge abuse. This would be detected either because
	the signature validation fails or because the malicious entity does not have authority
	to declare the value of P-Charge-Info as the party to be charged.
	</t>
	
	<t>
	A malicious entity may drop the P-Charge-Info and the corresponding Identity header.
	This would cause infoirmation about the actual party to cherge not being present
	for a receiver entity which otherwise would use it for billing purposes. One way to avoid
	this type of attack would be, for example, to enforce presence of P-Charge-Info header 
	by the billing entity and reject the session if there is none. This check may be 
	performed only for certain sessions based on origination and/or destination
	identity for the call.
	</t>

    </section>

    <section anchor="acknowledgements" title="Acknowledgements">
    <t>
	</t>
    </section>


	
  </middle>
  

  <!--  *****BACK MATTER ***** -->

  <back>

    <references title="Informative References">
	<?rfc include="reference.RFC.2119.xml"?>  
	<?rfc include="reference.RFC.3261.xml"?> 
	<?rfc include="reference.RFC.7519.xml"?> 
	<?rfc inclide="reference.RFC.8224.xml"?>
	<?rfc include="reference.RFC.8225.xml"?>  
    </references>

  </back>
</rfc>
