SIP Anonymous Rejection: Rejecting Anonymous Requests in the Session Initiation Protocol (SIP)
A SIP response code that says a call was refused because the caller hid their identity.
Rosenberg, J., "Rejecting Anonymous Requests in the Session Initiation Protocol (SIP)", RFC 5079, DOI 10.17487/RFC5079, December 2007, <https://www.rfc-editor.org/info/rfc5079>.
@misc{rfc5079,
series = {Request for Comments},
number = 5079,
howpublished = {RFC 5079},
publisher = {RFC Editor},
doi = {10.17487/RFC5079},
url = {https://www.rfc-editor.org/info/rfc5079},
author = {J. Rosenberg},
title = {{Rejecting Anonymous Requests in the Session Initiation Protocol (SIP)}},
pagetotal = 8,
year = 2007,
month = dec,
} RFC text
Contents
Network Working Group J. Rosenberg Request for Comments: 5079 Cisco Category: Standards Track December 2007 Rejecting Anonymous Requests in the Session Initiation Protocol (SIP) 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. Abstract The Session Initiation Protocol (SIP) allows for users to make anonymous calls. However, users receiving such calls have the right to reject them because they are anonymous. SIP has no way to indicate to the caller that the reason for call rejection was that the call was anonymous. Such an indication is useful to allow the call to be retried without anonymity. This specification defines a new SIP response code for this purpose. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3. Server Behavior . . . . . . . . . . . . . . . . . . . . . . . . 3 4. UAC Behavior . . . . . . . . . . . . . . . . . . . . . . . . . 4 5. 433 (Anonymity Disallowed) Definition . . . . . . . . . . . . . 4 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 4 7. Security Considerations . . . . . . . . . . . . . . . . . . . . 5 8. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 5 9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 6 9.1. Normative References . . . . . . . . . . . . . . . . . . . 6 9.2. Informative References . . . . . . . . . . . . . . . . . . 6 1. Introduction The Session Initiation Protocol (SIP) [RFC3261] allows for users to make anonymous calls. In RFC 3261, this is done by including a From header field whose display name has the value of "Anonymous". Greater levels of anonymity were subsequently defined in [RFC3323], which introduces the Privacy header field. The Privacy header field allows a requesting User Agent (UA) to ask for various levels of anonymity, including user level anonymity, header level anonymity, and session level anonymity. [RFC3325] additionally defined the P-Asserted-Identity header field, used to contain an asserted identity. RFC 3325 also defined the 'id' value for the Privacy header field, which is used to request the network to remove the P-Asserted-Identity header field. Though users need to be able to make anonymous calls, users that receive such calls retain the right to reject the call because it is anonymous. SIP does not provide a response code that allows the User Agent Server (UAS), or a proxy acting on its behalf, to explicitly indicate that the request was rejected because it was anonymous. The closest response code is 403 (Forbidden), which doesn't convey a specific reason. While it is possible to include a reason phrase in a 403 response that indicates to the human user that the call was rejected because it was anonymous, that reason phrase is not useful for automata and cannot be interpreted by callers that speak a different language. An indication that can be understood by an automaton would allow for programmatic handling, including user interface prompts, or conversion to equivalent error codes in the Public Switched Telephone Network (PSTN) when the client is a gateway. To remedy this, this specification defines the 433 (Anonymity Disallowed) response code. 2. Terminology The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119]. 3. Server Behavior A server (generally acting on behalf of the called party, though this need not be the case) MAY generate a 433 (Anonymity Disallowed) response when it receives an anonymous request, and the server refuses to fulfill the request because the requestor is anonymous. A request SHOULD be considered anonymous when the identity of the originator of the request has been explicitly withheld by the originator. This occurs in any one of the following cases: o The From header field contains a URI within the anonymous.invalid domain. o The From header field contains a display name whose value is either 'Anonymous' or 'anonymous'. Note that display names make a poor choice for indicating anonymity, since they are meant to be consumed by humans, not automata. Thus, language variations and even misspelling can cause an automaton to miss a hint in the display name. Despite these problems, a check on the display name is included here because RFC 3261 explicitly calls out the usage of the display name as a way to declare anonymity. o The request contained a Privacy header field whose value indicates that the user wishes its identity withheld. Values meeting this criteria are 'id' [RFC3325] or 'user'. o The From header field contains a URI that has an explicit indication that it is anonymous. One such example of a mechanism that would meet this criteria is [coexistence]. This criteria is true even if the request has a validated Identity header field [RFC4474], which can be used in concert with anonymized From header fields. Lack of a network-asserted identity (such as the P-Asserted-Identity header field), in and of itself, SHOULD NOT be considered an indication of anonymity. Even though a Privacy header field value of 'id' will cause the removal of a network-asserted identity, there is no way to differentiate this case from one in which a network- asserted identity was not supported by the originating domain. As a consequence, a request without a network-asserted identity is considered anonymous only when there is some other indication of this, such as a From header field with a display name of 'Anonymous'. In addition, requests where the identity of the requestor cannot be determined or validated, but it is not a consequence of an explicit action on the part of the requestor, are not considered anonymous. For example, if a request contains a non-anonymous From header field, along with the Identity and Identity-Info header fields [RFC4474], but the certificate could not be obtained from the reference in the Identity-Info header field, it is not considered an anonymous request, and the 433 response code SHOULD NOT be used. 4. UAC Behavior A User Agent Client (UAC) receiving a 433 (Anonymity Disallowed) MUST NOT retry the request without anonymity unless it obtains confirmation from the user that this is desirable. Such confirmation could be obtained through the user interface, or by accessing user- defined policy. If the user has indicated that this is desirable, the UAC MAY retry the request without requesting anonymity. Note that if the UAC were to automatically retry the request without anonymity in the absence of an indication from the user that this treatment is desirable, then the user's expectations would not be met. Consequently, a user might think it had completed a call anonymously when it is not actually anonymous. Receipt of a 433 response to a mid-dialog request SHOULD NOT cause the dialog to terminate, and SHOULD NOT cause the specific usage of that dialog to terminate [RFC5057]. A UAC that does not understand or care about the specific semantics of the 433 response will treat it as a 400 response. 5. 433 (Anonymity Disallowed) Definition This response indicates that the server refused to fulfill the request because the requestor was anonymous. Its default reason phrase is "Anonymity Disallowed". 6. IANA Considerations This section registers a new SIP response code according to the procedures of RFC 3261. RFC Number: RFC 5079 Response Code Number: 433 Default Reason Phrase: Anonymity Disallowed 7. Security Considerations The fact that a request was rejected because it was anonymous does reveal information about the called party -- that the called party does not accept anonymous calls. This information may or may not be sensitive. If it is, a UAS SHOULD reject the request with a 403 instead. In the Public Switched Telephone Network (PSTN), the Anonymous Call Rejection (ACR) feature is commonly used to prevent unwanted calls from telemarketers (also known as spammers). Since telemarketers frequently withhold their identity, anonymous call rejection has the desired effect in many (but not all) cases. It is important to note that the response code described here is likely to be ineffective in blocking SIP-based spam. The reason is that a malicious caller can include a From header field and display name that is not anonymous, but is meaningless and invalid. Without a Privacy header field, such a request will not appear anonymous and thus not be blocked by an anonymity screening service. Dealing with SIP-based spam is not a simple problem. The reader is referred to [sipping-spam] for a discussion of the problem. When anonymity services are being provided as a consequence of an anonymizer function acting as a back-to-back user agent (B2BUA) [RFC3323], and the anonymizer receives a 433 response, the anonymizer MUST NOT retry the request without anonymization unless it has been explicitly configured by the user to do so. In essence, the same rules that apply to a UA in processing of a 433 response apply to a network-based anonymization function, and for the same reasons. 8. Acknowledgements This document was motivated based on the requirements in [tispan-req], and has benefited from the concepts in [hautakorpi]. Thanks to Keith Drage, Paul Kyzivat, and John Elwell for their reviews of this document. 9. References 9.1. Normative References [RFC3261] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, A., Peterson, J., Sparks, R., Handley, M., and E. Schooler, "SIP: Session Initiation Protocol", RFC 3261, June 2002. [RFC3323] Peterson, J., "A Privacy Mechanism for the Session Initiation Protocol (SIP)", RFC 3323, November 2002. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. [RFC4474] Peterson, J. and C. Jennings, "Enhancements for Authenticated Identity Management in the Session Initiation Protocol (SIP)", RFC 4474, August 2006. 9.2. Informative References [RFC3325] Jennings, C., Peterson, J., and M. Watson, "Private Extensions to the Session Initiation Protocol (SIP) for Asserted Identity within Trusted Networks", RFC 3325, November 2002. [coexistence] Rosenberg, J., "Coexistence of P-Asserted-ID and SIP Identity", Work in Progress, June 2006. [tispan-req] Jesske, R., "Input Requirements for the Session Initiation Protocol (SIP) in support for the European Telecommunications Standards Institute", Work in Progress, July 2007. [hautakorpi] Hautakorpi, J. and G. Camarillo, "Extending the Session Initiation Protocol Reason Header with Warning Codes", Work in Progress, October 2005. [RFC5057] Sparks, R., "Multiple Dialog Usages in the Session Initiation Protocol", RFC in 5057, November 2007. [sipping-spam] Jennings, C. and J. Rosenberg, "The Session Initiation Protocol (SIP) and Spam", Work in Progress, August 2007. Author's Address Jonathan Rosenberg Cisco Edison, NJ US EMail: jdrosen@cisco.com URI: http://www.jdrosen.net Full Copyright Statement Copyright (C) The IETF Trust (2007). This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights. This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Intellectual 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 procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79. Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr. The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf-ipr@ietf.org.
AI ELI5
On this page
§1The Problem with Rejecting Anonymous Calls
SIP lets users place anonymous calls. In RFC 3261 this is done with a From header field whose display name is "Anonymous". RFC 3323 added the Privacy header field for greater levels of anonymity, and RFC 3325 added the P-Asserted-Identity header field.
People who receive such calls keep the right to reject them for being anonymous. The closest existing response is 403 (Forbidden), which gives no specific reason. A reason phrase can say so to a human, but it is no use to software and cannot be read by a caller who speaks another language.
A code that software can understand allows programmatic handling, such as user interface prompts, or conversion to equivalent error codes in the PSTN when the client is a gateway. RFC 5079 defines the 433 (Anonymity Disallowed) response code for this.
Saying "no" to a hidden caller used to be like a locked door with no sign. 433 puts up a sign that even a robot can read: "we do not take calls from people who hide who they are."
§3When a Server Sends 433
A server, usually acting for the called party, MAY send 433 when it gets an anonymous request and refuses it because the requestor is anonymous. A request SHOULD be treated as anonymous when the originator has explicitly withheld its identity. The RFC lists four cases:
- The
Fromheader field has a URI in theanonymous.invaliddomain. - The
Fromdisplay name isAnonymousoranonymous. The RFC admits this is a weak signal, because display names are meant for humans and language variations or misspellings can fool software, but RFC 3261 names it as a way to declare anonymity. - The request has a
Privacyheader field with the valueidoruser. - The
FromURI carries an explicit indication of anonymity. This holds even if the request has a validatedIdentityheader field from RFC 4474.
The server looks for clues that the caller hid on purpose, like a name that says "Anonymous" or a request to keep the identity secret. Only then does it use 433.
§3.1What Does Not Count as Anonymous
Some cases look anonymous but are not, and the RFC says 433 should not be used for them. A missing network-asserted identity, such as no P-Asserted-Identity, SHOULD NOT by itself be treated as anonymity. A Privacy value of id removes that header, but a server cannot tell this apart from an origin domain that never supported it. Such a request is anonymous only if there is another sign, such as a display name of Anonymous.
Likewise, a request whose identity cannot be determined or validated, but not because of anything the requestor did, is not anonymous. For example, a request with a normal From and Identity and Identity-Info header fields whose certificate cannot be fetched is not anonymous, and 433 SHOULD NOT be used.
If the caller did not hide anything and the problem is just a broken check on our side, that is not hiding. Only on-purpose hiding counts.
§4What the Caller Does Next
A User Agent Client (UAC) that receives 433 MUST NOT retry the request without anonymity unless the user confirms this is wanted. The confirmation could come from the user interface or from user-defined policy. If the user agrees, the UAC MAY retry without requesting anonymity.
The reason is that silently retrying would break the user's expectations: the user might think the call was made anonymously when it was not.
A 433 to a mid-dialog request SHOULD NOT end the dialog or the specific usage of that dialog (RFC 5057). A UAC that does not understand 433 treats it as a 400 response.
If the door says no, you must ask the person who wanted to stay hidden before trying again with your name showing. A computer must not unmask you on its own.
- Anonymous requestFor example From display name Anonymous.
- 433 Anonymity DisallowedRefused because the requestor is anonymous.
- Retry without anonymityOnly if the user confirms.
§5The 433 Definition and Registration
The definition is short: the 433 response indicates that the server refused to fulfill the request because the requestor was anonymous. Its default reason phrase is "Anonymity Disallowed".
Section 6 registers the code in the SIP response code registry under the procedures of RFC 3261, giving RFC Number RFC 5079, Response Code Number 433 and Default Reason Phrase "Anonymity Disallowed".
The RFC gives the new answer a number, 433, and a name, "Anonymity Disallowed", and writes them in the official list.
§7Security Considerations
Sending 433 reveals that the called party does not accept anonymous calls. If that is sensitive, a UAS SHOULD reject with 403 instead.
In the PSTN, Anonymous Call Rejection is commonly used against telemarketers, who often withhold their identity. The RFC says 433 is likely ineffective against SIP-based spam, because a malicious caller can send a non-anonymous but meaningless and invalid From and display name. Without a Privacy header field, that request will not appear anonymous and will not be blocked.
If an anonymizer acting as a RFC 3323 back-to-back user agent gets a 433, it MUST NOT retry without anonymization unless the user explicitly configured it to do so.
Saying "I do not take hidden calls" tells the caller something about you. And a sneaky caller can just use a fake name instead of hiding, so this does not stop junk calls.