1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725
|
<pre>Network Working Group J. Peterson
Request for Comments: 3893 NeuStar
Category: Standards Track September 2004
<span class="h1">Session Initiation Protocol (SIP)</span>
<span class="h1">Authenticated Identity Body (AIB) Format</span>
Status of this Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2004).
Abstract
<a href="./rfc3261">RFC 3261</a> introduces the concept of adding an S/MIME body to a Session
Initiation Protocol (SIP) request or response in order to provide
reference integrity over its headers. This document provides a more
specific mechanism to derive integrity and authentication properties
from an 'authenticated identity body', a digitally-signed SIP
message, or message fragment. A standard format for such bodies
(known as Authenticated Identity Bodies, or AIBs) is given in this
document. Some considerations for the processing of AIBs by
recipients of SIP messages with such bodies are also given.
<span class="grey">Peterson Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Requirements Notation. . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-2">2</a>. AIB Format . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3">3</a>. Example of a Request with AIB . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-4">4</a>. AIBs for Identifying Third-Parties . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-5">5</a>. Identity in non-INVITE Requests . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-6">6</a>. Identity in Responses . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-7">7</a>. Receiving an AIB . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-8">8</a>. Encryption of Identity . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-9">9</a>. Example of Encryption . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-10">10</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-11">11</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-12">12</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-12.1">12.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-12.2">12.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-13">13</a>. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-14">14</a>. Author's Address . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-15">15</a>. Full Copyright Statement . . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
<a href="./rfc3261#section-23.4">Section 23.4 of RFC 3261</a> [<a href="#ref-1" title=""SIP: Session Initiation Protocol"">1</a>] describes an integrity mechanism that
relies on signing tunneled 'message/sip' MIME bodies within SIP
requests. The purpose of this mechanism is to replicate the headers
of a SIP request within a body carried in that request in order to
provide a digital signature over these headers. The signature on
this body also provides authentication.
The core requirement that motivates the tunneled 'message/sip'
mechanism is the problem of providing a cryptographically verifiable
identity within a SIP request. The baseline SIP protocol allows a
user agent to express the identity of its user in any of a number of
headers. The primary place for identity information asserted by the
sender of a request is the From header. The From header field
contains a URI (like 'sip:alice@example.com') and an optional
display-name (like "Alice") that identifies the originator of the
request. A user may have many identities that are used in different
contexts.
Typically, this URI is an address-of-record that can be de-referenced
in order to contact the originator of the request; specifically, it
is usually the same address-of-record under which a user registers
their devices in order to receive incoming requests. This address-
of-record is assigned and maintained by the administrator of the SIP
service in the domain identified by the host portion of the address-
of-record. However, the From field of a request can usually be set
<span class="grey">Peterson Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
arbitrarily by the user of a SIP user agent; the From header of a
message provides no internal assurance that the originating user can
legitimately claim the given identity. Nevertheless, many SIP user
agents will obligingly display the contents of the From field as the
identity of the originator of a received request (as a sort of caller
identification function), much as email implementations display the
From field as the sender's identity.
In order to provide the recipient of a SIP message with greater
assurance of the identity of the sender, a cryptographic signature
can be provided over the headers of the SIP request, which allows the
signer to assert a verifiable identity. Unfortunately, a signature
over the From header alone is insufficient because it could be cut-
and-pasted into a replay or forwarding attack, and more headers are
therefore needed to correlate a signature with a request. <a href="./rfc3261">RFC 3261</a>
therefore recommends copying all of the headers from the request into
a signed MIME body; however, SIP messages can be large, and many of
the headers in a SIP message would not be relevant in determining the
identity of the sender or assuring reference integrity with the
request, and moreover some headers may change in transit for
perfectly valid reasons. Thus, this large tunneled 'message/sip'
body will almost necessarily be at variance with the headers in a
request when it is received by the UAS, and the burden in on the UAS
to determine which header changes were legitimate, and which were
security violations. It is therefore desirable to find a happy
medium - to provide a way of signing just enough headers that the
identity of the sender can be ascertained and correlated with the
request. 'message/sipfrag' [<a href="#ref-4" title=""Internet Media Type message/sipfrag"">4</a>] provides a way for a subset of SIP
headers to be included in a MIME body; the Authenticated Identity
Body (AIB) format described in <a href="#section-2">Section 2</a> is based on
'message/sipfrag'.
For reasons of end-to-end privacy, it may also be desirable to
encrypt AIBs; procedures for this encryption are given in <a href="#section-8">Section 8</a>.
This document proposes that the AIB format should be used instead of
the existing tunneled 'message/sip' mechanism described in <a href="./rfc3261#section-23.4">RFC 3261,
section 23.4</a>, in order to provide the identity of the caller; if
integrity over other, unrelated headers is required, then the
'message/sip' mechanism should be used.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Requirements Notation</span>
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 <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a> [<a href="#ref-2" title=""Key words for use in RFCs to Indicate Requirement Levels"">2</a>].
<span class="grey">Peterson Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. AIB Format</span>
As a way of sharing authenticated identity among parties in the
network, a special type of MIME body format, the Authenticated
Identity Body (AIB) format, is defined in this section. AIBs allow a
party in a SIP transaction to cryptographically sign the headers that
assert the identity of the originator of a message, and provide some
other headers necessary for reference integrity.
An AIB is a MIME body of type 'message/sipfrag' - for more
information on constructing sipfrags, including examples, see [<a href="#ref-4" title=""Internet Media Type message/sipfrag"">4</a>].
This MIME body MUST have a Content-Disposition [<a href="#ref-3" title=""Communicating Presentation Information in Internet Messages: The Content- Disposition Header Field"">3</a>] disposition-type
of 'aib', a new value defined in this document specifically for
authenticated identity bodies. The Content-Disposition header SHOULD
also contain a 'handling' parameter indicating that this MIME body is
optional (i.e., if this mechanism is not supported by the user agent
server, it can still attempt to process the request).
AIBs using the 'message/sipfrag' MIME type MUST contain the following
headers when providing identity for an INVITE request: From, Date,
Call-ID, and Contact; they SHOULD also contain the To and CSeq
header. The security properties of these headers, and circumstances
in which they should be used, are described in <a href="#section-10">Section 10</a>. AIBs MAY
contain any other headers that help to uniquely identify the
transaction or provide related reference integrity. An example of
the AIB format for an INVITE is:
Content-Type: message/sipfrag
Content-Disposition: aib; handling=optional
From: Alice <sip:alice@example.com>
To: Bob <sip:bob@example.net>
Contact: <sip:alice@pc33.example.com>
Date: Thu, 21 Feb 2002 13:02:03 GMT
Call-ID: a84b4c76e66710
CSeq: 314159 INVITE
Unsigned AIBs MUST be treated by any recipients according to the
rules set out in <a href="#section-7">Section 7</a> for AIBs that do not validate. After the
AIB has been signed, it SHOULD be added to existing MIME bodies in
the request (such as SDP), if necessary by transitioning the
outermost MIME body to a 'multipart/mixed' format.
<span class="grey">Peterson Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Example of a Request with AIB</span>
The following shows a full SIP INVITE request with an AIB:
INVITE sip:bob@example.net SIP/2.0
Via: SIP/2.0/UDP pc33.example.com;branch=z9hG4bKnashds8
To: Bob <sip:bob@example.net>
From: Alice <sip:alice@example.com>;tag=1928301774
Call-ID: a84b4c76e66710
CSeq: 314159 INVITE
Max-Forwards: 70
Date: Thu, 21 Feb 2002 13:02:03 GMT
Contact: <sip:alice@pc33.example.com>
Content-Type: multipart/mixed; boundary=unique-boundary-1
--unique-boundary-1
Content-Type: application/sdp
Content-Length: 147
v=0
o=UserA 2890844526 2890844526 IN IP4 example.com
s=Session SDP
c=IN IP4 pc33.example.com
t=0 0
m=audio 49172 RTP/AVP 0
a=rtpmap:0 PCMU/8000
--unique-boundary-1
Content-Type: multipart/signed;
protocol="application/pkcs7-signature";
micalg=sha1; boundary=boundary42
Content-Length: 608
--boundary42
Content-Type: message/sipfrag
Content-Disposition: aib; handling=optional
From: Alice <sip:alice@example.com>
To: Bob <sip:bob@example.net>
Contact: <sip:alice@pc33.example.com>
Date: Thu, 21 Feb 2002 13:02:03 GMT
Call-ID: a84b4c76e66710
CSeq: 314159 INVITE
--boundary42
Content-Type: application/pkcs7-signature; name=smime.p7s
Content-Transfer-Encoding: base64
<span class="grey">Peterson Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
Content-Disposition: attachment; filename=smime.p7s;
handling=required
ghyHhHUujhJhjH77n8HHGTrfvbnj756tbB9HG4VQpfyF467GhIGfHfYT6
4VQpfyF467GhIGfHfYT6jH77n8HHGghyHhHUujhJh756tbB9HGTrfvbnj
n8HHGTrfvhJhjH776tbB9HG4VQbnj7567GhIGfHfYT6ghyHhHUujpfyF4
7GhIGfHfYT64VQbnj756
--boundary42--
--unique-boundary-1--
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. AIBs for Identifying Third-Parties</span>
There are special-case uses of the INVITE method in which some SIP
messages are exchanged with a third party before an INVITE is sent,
and in which the identity of the third party needs to be carried in
the subsequent INVITE. The details of addressing identity in such
contexts are outside the scope of this document. At a high level, it
is possible that identity information for a third party might be
carried in a supplemental AIB. The presence of a supplemental AIB
within a message would not preclude the appearance of a 'regular' AIB
as specified in this document.
Example cases in which supplemental AIBs might appear include:
The use of the REFER [<a href="#ref-5" title=""The Session Initiation Protocol (SIP) Referred-By Mechanism"">5</a>] method, for example, has a requirement
for the recipient of an INVITE to ascertain the identity of the
referrer who caused the INVITE to be sent.
Third-party call control (3PCC [<a href="#ref-6" title=""Best Current Practices for Third Party Call Control (3pcc) in the Session Initiation Protocol (SIP)"">6</a>]) has an even more complicated
identity problem. A central controller INVITEs one party, gathers
identity information (and session context) from that party, and
then uses this information to INVITE another party. Ideally, the
controller would also have a way to share a cryptographic identity
signature given by the first party INVITEd by the controller to
the second party invited by the controller.
In both of these cases, the Call-ID and CSeq of the original request
(3PCC INVITE or REFER) would not correspond with that of the request
in by the subsequent INVITE, nor would the To or From. In both the
REFER case and the 3PCC case, the Call-ID and CSeq cannot be used to
guarantee reference integrity, and it is therefore much harder to
correlate an AIB to a subsequent INVITE request.
Thus, in these cases some other headers might be used to provide
reference integrity between the headers in a supplemental AIB with
the headers of a 3PCC or REFER-generated INVITE, but this usage is
<span class="grey">Peterson Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
outside of the scope of this document. In order for AIBs to be used
in these third-party contexts, further specification work is required
to determine which additional headers, if any, need to be included in
an AIB in a specific third-party case, and how to differentiate the
primary AIB in a message from a third-party AIB.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Identity in non-INVITE Requests</span>
The requirements for populating an AIB in requests within a dialog
generally parallel those of the INVITE: From, Call-ID, Date, and
Contact header fields are REQUIRED.
Some non-INVITE requests, however, may have different identity
requirements. New SIP methods or extensions that leverage AIB
security MUST identify any special identity requirements in the
Security Considerations of their specification.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Identity in Responses</span>
Many of the practices described in the preceding sections can be
applied to responses as well as requests. Note that a new set of
headers must be generated to populate the AIB in a response. The
From header field of the AIB in the response to an INVITE MUST
correspond to the address-of-record of the responder, NOT to the From
header field received in the request. The To header field of the
request MUST NOT be included. A new Date header field and Contact
header field should be generated for the AIB in a response. The
Call-ID and CSeq should, however, be copied from the request.
Generally, the To header field of the request will correspond to the
address-of-record of the responder. In some architectures where re-
targeting is used, however, this need not be the case. Some
recipients of response AIBs may consider it a cause for security
concern if the To header field of the request is not the same as the
address-of-record in the From header field of the AIB in a response.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Receiving an AIB</span>
When a user agent receives a request containing an AIB, it MUST
verify the signature, including validating the certificate of the
signer, and compare the identity of the signer (the subjectAltName)
with, in the INVITE case, the domain portion of the URI in the From
header field of the request (for non-INVITE requests, other headers
MAY be subject to this comparison). The two should correspond
exactly; if they do not, the user agent MUST report this condition to
its user before proceeding. User agents MAY distinguish between
plausibly minor variations (the difference between 'example.com' and
'sip.example.com') and major variations ('example.com' vs.
<span class="grey">Peterson Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
'example.org') when reporting these discrepancies in order to give
the user some idea of how to handle this situation. Analysis and
comparison of the Date, Call-ID, and Contact header fields as
described in <a href="#section-10">Section 10</a> MUST also be performed. Any discrepancies or
violations MUST be reported to the user.
When the originating user agent of a request receives a response
containing an AIB, it SHOULD compare the identity in the From header
field of the AIB of the response with the original value of the To
header field in the request. If these represent different
identities, the user agent SHOULD render the identity in the AIB of
the response to its user. Note that a discrepancy in these identity
fields is not necessarily an indication of a security breach; normal
re-targeting may simply have directed the request to a different
final destination. Implementors therefore may consider it
unnecessary to alert the user of a security violation in this case.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Encryption of Identity</span>
Many SIP entities that support the use of S/MIME for signatures also
support S/MIME encryption, as described in <a href="./rfc3261#section-23.4.3">RFC 3261, Section 23.4.3</a>.
While encryption of AIBs entails that only the holder of a specific
key can decrypt the body, that single key could be distributed
throughout a network of hosts that exist under common policies. The
security of the AIB is therefore predicated on the secure
distribution of the key. However, for some networks (in which there
are federations of trusted hosts under a common policy), the
widespread distribution of a decryption key could be appropriate.
Some telephone networks, for example, might require this model.
When an AIB is encrypted, the AIB SHOULD be encrypted before it is
signed. Implementations MUST still accept AIBs that have been signed
and then encrypted.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Example of Encryption</span>
The following is an example of an encrypted and signed AIB (without
any of the preceding SIP headers). In a rendition of this body sent
over the wire, the text wrapped in asterisks would be in ciphertext.
Content-Type: multipart/signed;
protocol="application/pkcs7-signature";
micalg=sha1; boundary=boundary42
Content-Length: 568
Content-Disposition: aib; handling=optional
--boundary42
<span class="grey">Peterson Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
Content-Type: application/pkcs7-mime; smime-type=enveloped-data;
name=smime.p7m
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=smime.p7m
handling=required
Content-Length: 231
***********************************************************
* Content-Type: message/sipfrag *
* Content-Disposition: aib; handling=optional *
* *
* From: sip:alice@example.com *
* Call-ID: a84b4c76e66710 *
* Contact: sip:alice@device21.example.com *
* Date: Thu, 21 Feb 2002 13:02:03 GMT *
***********************************************************
--boundary42
Content-Type: application/pkcs7-signature; name=smime.p7s
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=smime.p7s;
handling=required
ghyHhHUujhJhjH77n8HHGTrfvbnj756tbB9HG4VQpfyF467GhIGfHfYT6
4VQpfyF467GhIGfHfYT6jH77n8HHGghyHhHUujhJh756tbB9HGTrfvbnj
n8HHGTrfvhJhjH776tbB9HG4VQbnj7567GhIGfHfYT6ghyHhHUujpfyF4
7GhIGfHfYT64VQbnj756
--boundary42--
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Security Considerations</span>
The purpose of an AIB is to provide an identity for the sender of a
SIP message. This identity is held in the From header field of an
AIB. While other headers are also included, they are provided solely
to assist in detection of replays and cut-and-paste attacks leveraged
to impersonate the caller. The contents of the From header field of
a valid AIB are suitable for display as a "Caller ID" for the sender
of the SIP message.
This document mandates the inclusion of the Contact, Date, Call-ID,
and From header fields within an AIB, and recommends the inclusion of
CSeq and To header fields, when 'message/sipfrag' is used to
represent the identity of a request's sender. If these headers are
omitted, some important security properties of AIB are lost. In
general, the considerations related to the inclusion of various
headers in an AIB are the same as those given in <a href="./rfc3261">RFC 3261</a> for
<span class="grey">Peterson Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
including headers in tunneled 'message/sip' MIME bodies (see <a href="#section-23">Section</a>
<a href="#section-23">23</a> in particular).
The From header field indicates the identity of the sender of the
message; were this header to be excluded, the creator of the AIB
essentially would not be asserting an identity at all. The Date and
Contact headers provide reference integrity and replay protection, as
described in <a href="./rfc3261#section-23.4.2">RFC 3261, Section 23.4.2</a>. Implementations of this
specification MUST follow the rules for acceptance of the Date header
field in tunneled 'message/sip' requests described in <a href="./rfc3261#section-23.4.2">RFC 3261,
Section 23.4.2</a>; this ensures that outdated AIBs will not be replayed
(the suggested interval is that the Date header must indicate a time
within 3600 seconds of the receipt of a message). Implementations
MUST also record Call-IDs received in AIBs, and MUST remember those
Call-IDs for at least the duration of a single Date interval (i.e.,
3600 seconds). Accordingly, if an AIB is replayed within the Date
interval, receivers will recognize that it is invalid because of a
Call-ID duplication; if an AIB is replayed after the Date interval,
receivers will recognize that it is invalid because the Date is
stale. The Contact header field is included to tie the AIB to a
particular device instance that generated the request. Were an
active attacker to intercept a request containing an AIB, and cut-
and-paste the AIB into their own request (reusing the From, Contact,
Date, and Call-ID fields that appear in the AIB), they would not be
eligible to receive SIP requests from the called user agent, since
those requests are routed to the URI identified in the Contact header
field.
The To and CSeq header fields provide properties that are generally
useful, but not for all possible applications of AIBs. If a new AIB
is issued each time a new SIP transaction is initiated in a dialog,
the CSeq header field provides a valuable property (replay protection
for this particular transaction). If, however, one AIB is used for
an entire dialog, subsequent transactions in the dialog would use the
same AIB that appeared in the INVITE transaction. Using a single AIB
for an entire dialog reduces the load on the generator of the AIB.
The To header field usually designates the original URI that the
caller intended to reach, and therefore it may vary from the
Request-URI if re-targeting occurs at some point in the network.
Accordingly, including the To header field in the AIB helps to
identify cut-and-paste attacks in which an AIB sent to a particular
destination is re-used to impersonate the sender to a different
destination. However, the inclusion of the To header field probably
would not make sense for many third-party AIB cases (as described in
<a href="#section-4">Section 4</a>), nor is its inclusion necessary for responses.
<span class="grey">Peterson Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. IANA Considerations</span>
This document defines a new MIME Content-Disposition disposition-type
value of 'aib'. This value is reserved for MIME bodies that contain
an authenticated identity, as described in section <a href="#section-2">Section 2</a>.
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. References</span>
<span class="h3"><a class="selflink" id="section-12.1" href="#section-12.1">12.1</a>. Normative References</span>
[<a id="ref-1">1</a>] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, A.,
Peterson, J., Sparks, R., Handley, M., and E. Schooler, "SIP:
Session Initiation Protocol", <a href="./rfc3261">RFC 3261</a>, June 2002.
[<a id="ref-2">2</a>] Bradner, S., "Key words for use in RFCs to Indicate Requirement
Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-3">3</a>] Troost, R., Dorner, S., and K. Moore, "Communicating
Presentation Information in Internet Messages: The Content-
Disposition Header Field", <a href="./rfc2183">RFC 2183</a>, August 1997.
[<a id="ref-4">4</a>] Sparks, R., "Internet Media Type message/sipfrag", <a href="./rfc3420">RFC 3420</a>,
November 2002.
<span class="h3"><a class="selflink" id="section-12.2" href="#section-12.2">12.2</a>. Informative References</span>
[<a id="ref-5">5</a>] Sparks, R., "The Session Initiation Protocol (SIP) Referred-By
Mechanism", <a href="./rfc3892">RFC 3892</a>, September 2004.
[<a id="ref-6">6</a>] Rosenberg, J., Peterson, J., Schulzrinne, H., and G. Camarillo,
"Best Current Practices for Third Party Call Control (3pcc) in
the Session Initiation Protocol (SIP)", <a href="https://www.rfc-editor.org/bcp/bcp85">BCP 85</a>, <a href="./rfc3725">RFC 3725</a>, April
2004.
<span class="h2"><a class="selflink" id="section-13" href="#section-13">13</a>. Acknowledgements</span>
The author would like to thank Robert Sparks, Jonathan Rosenberg,
Mary Watson, and Eric Rescorla for their comments. Rohan Mahy also
provided some valuable guidance.
<span class="grey">Peterson Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
<span class="h2"><a class="selflink" id="section-14" href="#section-14">14</a>. Author's Address</span>
Jon Peterson
NeuStar, Inc.
1800 Sutter St
Suite 570
Concord, CA 94520
US
Phone: +1 925/363-8720
EMail: jon.peterson@neustar.biz
URI: <a href="http://www.neustar.biz/">http://www.neustar.biz/</a>
<span class="grey">Peterson Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc3893">RFC 3893</a> SIP Authenticated Identity Body (AIB) FormatSeptember 2004</span>
<span class="h2"><a class="selflink" id="section-15" href="#section-15">15</a>. Full Copyright Statement</span>
Copyright (C) The Internet Society (2004).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, 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/S HE
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.
Intellectual Property
The 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 IETF's procedures with respect to rights in IETF Documents can
be found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
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
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
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.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Peterson Standards Track [Page 13]
</pre>
|