As XMPP technologies have been deployed more widely, the open XMPP network has become a more significant target for attacks. This specification defines ways for XMPP server deployments to share information with each other and therefore to handle such attacks in a more real-time fashion. In particular, it defines a way to use the IODEF format (defined in RFC 5070 [1] and produced by the IETF's INCH Working Group) as the basis for sharing incident reports among XMPP server deployments. (For some related considerations, see RFC 2350 [2] and RFC 3067 [3].)
This document defines several interactions (similar to those in RID, see RFC 6045 [4]) between XMPP server deployments with respect to incident handling. These interactions are transported using the XMPP <iq/> stanza as described below, where each element (qualified by the 'urn:xmpp:incident:2' namespace) is used as a wrapper for IODEF data.
The <report/> element (contained in an <iq/> stanza of type "set") describes the nature of an incident and also flags the 'status' of the incident as "new", "updated", or "resolved"; it is sent from one server to another for informative purposes but without requesting assistance (for which see the <request/> element). This element is similar to a RID message type of "Report".
The <inquiry/> element (contained in an <iq/> stanza of type "get") asks for information about an incident; it is expected that the reply will contain a <report/> element. This element is similar to a RID message type of "IncidentQuery".
The <request/> element (contained in an <iq/> stanza of type "get") asks for assistance in resolving an incident, e.g., by requesting that the server take some action. This element is similar to a RID message type of "Investigation" or "TraceRequest".
The <response/> element (contained in an <iq/> stanza of type "set") provides assistance in resolving an incident. This element is similar to a RID message type of "Result".
When one server wants to send information about an incident, it sends a incident report to another server. The report consists of an XMPP <iq/> stanza of type "set" containing a <report/> element that in turn contains an IODEF document. An example is shown below.
If the recipient is able to process the report, it MUST return an <iq/> stanza of type "result"; if not, it MUST return an <iq/> stanza of type "error" (error handling will be defined in a future version of this specification).
When one server wants to find out more information about an incident, it sends an inquiry to another server (not necessarily the server where the incident occurred).
If the recipient is able to process the inquiry, it MUST return an <iq/> stanza of type "result" and then send a report about the incident using an <iq/> stanza of type "set" as defined above; if not, it MUST return an <iq/> stanza of type "error" (error handling will be defined in a future version of this specification).
When one server wants to ask for assistance in resolving an incident, it sends a request to another server (not necessarily the server where the incident occurred).
Here, the server where the attack occurred requests that the server where the attack originated will disable the offending accounts (via the "block-host" value for the 'action' attribute of the IODEF <Expectation/> element).
If the recipient is able to process the report, it MUST return an <iq/> stanza of type "result"; if not, it MUST return an <iq/> stanza of type "error" (error handling will be defined in a future version of this specification).
When one server provides assistance in resolving an incident, it sends a response to another server (not necessarily the server where the incident occurred).
Here, the server where the attack originated informs the server where the attack occurred that it has disabled the offending accounts (via the IODEF <HistoryItem/> element).
If the recipient is able to process the report, it MUST return an <iq/> stanza of type "result"; if not, it MUST return an <iq/> stanza of type "error" (error handling will be defined in a future version of this specification).
This document defines the following IODEF extensions, described in accordance with the guidelines in Guidelines for Defining Extensions to IODEF [5].
This specification defines an extended Contact role of "chatroom", i.e., a new enumerated value for the Contact@role attribute. This value specifies a text conference where discussion of the incident can take place, e.g., an IRC channel or an XMPP Multi-User Chat (XEP-0045) [6] room. Since there are many different chatroom technologies, the address of the chatroom shall be specified as the child of an <AdditionalData/> element. For XMPP chatrooms, the address is the XML character data of a <jid/> element qualified by the 'urn:xmpp:jid:0' namespace.
Note: Definition of the <jid/> element might be moved to a separate specification.
This specification defines an extended Address category of "xmpp", i.e., a new enumerated value for the Address@category attribute. This value specifies the JabberID of a network entity, in conformance with RFC 6122 [7] or its successor.
This specification defines several extended NodeRole categories, i.e., new enumerated values for the NodeRole@category attribute:
This specification defines an AdditionalData element of <jid/> qualified by the 'urn:xmpp:jid:0' namespace. The XML character data of this element is a JabberID (i.e., an XMPP address) that conforms to RFC 6122 or its successor.
Note: Definition of the <jid/> element might be moved to a separate specification.
The <jid/> element qualified by the 'urn:xmpp:incident:2' namespace is a "JID slot" as described in rfc6122bis [12].
Note: Definition of the <jid/> element might be moved to a separate specification.
It is RECOMMENDED for a server deployment to exchange incident reports only with peer servers that it trusts, for example peers that are in its "server roster" as described in Server Buddies (XEP-0267) [13].
This technology is designed to help mitigate attacks on the XMPP network. However, incident reporting is itself vulnerable to the following attacks:
Use of the XMPP channel is convenient for communication among XMPP servers; however, if a denial of service attack is severe enough then that channel itself might be unusable.
Unless explicitly configured to do so, a receiving server SHOULD NOT automatically modify its configuration based on receipt of an incident report, even from a trusted server, but instead SHOULD prompt the human administrators so that they can take appropriate action.
A receiving server MAY accept incident reports from peers that are not on its "trust list", but SHOULD treat such reports with caution and provide them to the human administrator(s) of the server.
A receiving server MAY forward reports that it receives to other servers it trusts.
This document might require interaction with the Internet Assigned Numbers Authority (IANA) [15] to register various IODEF extensions, in accordance with draft-ietf-mile-template.
This specification defines the following XML namespace:
Upon advancement of this specification from a status of Experimental to a status of Draft, the XMPP Registrar [16] shall add the foregoing namespace to the registry located at <https://xmpp.org/registrar/namespaces.html>, as described in Section 4 of XMPP Registrar Function (XEP-0053) [17].
Note: Registration of the 'urn:xmpp:jid:0' namespace might be moved to a separate specification.
If the protocol defined in this specification undergoes a revision that is not fully backwards-compatible with an older version, the XMPP Registrar shall increment the protocol version number found at the end of the XML namespaces defined herein, as described in Section 4 of XEP-0053.
Note: This schema and associated text might be moved to a separate specification.
This document in other formats: XML PDF
This XMPP Extension Protocol is copyright © 1999 – 2024 by the XMPP Standards Foundation (XSF).
Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.
## NOTE WELL: This Specification is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.
This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at <https://xmpp.org/about/xsf/ipr-policy> or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).
The HTML representation (you are looking at) is maintained by the XSF. It is based on the YAML CSS Framework, which is licensed under the terms of the CC-BY-SA 2.0 license.
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 6120) and XMPP IM (RFC 6121) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
There exists a special venue for discussion related to the technology described in this document: the <operators@xmpp.org> mailing list.
The primary venue for discussion of XMPP Extension Protocols is the <standards@xmpp.org> discussion list.
Discussion on other xmpp.org discussion lists might also be appropriate; see <https://xmpp.org/community/> for a complete list.
Errata can be sent to <editor@xmpp.org>.
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
1. RFC 5070: The Incident Object Description Exchange Format <http://tools.ietf.org/html/rfc5070>.
2. RFC 2350: Expectations for Computer Security Incident Response <http://tools.ietf.org/html/rfc2350>.
3. RFC 3067: TERENA's Incident Object Description and Exchange Format Requirements <http://tools.ietf.org/html/rfc3067>.
4. RFC 6045: Real-time Inter-network Defense (RID) <http://tools.ietf.org/html/rfc6045>.
5. Guidelines for Defining Extensions to IODEF <http://tools.ietf.org/html/draft-ietf-mile-template>. Work in progress.
6. XEP-0045: Multi-User Chat <https://xmpp.org/extensions/xep-0045.html>.
7. RFC 6122: Extensible Messaging and Presence Protocol (XMPP): Address Format <http://tools.ietf.org/html/rfc6122>.
8. RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core <http://tools.ietf.org/html/rfc6120>.
9. RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence <http://tools.ietf.org/html/rfc6121>.
10. XEP-0065: SOCKS5 Bytestreams <https://xmpp.org/extensions/xep-0065.html>.
11. XEP-0060: Publish-Subscribe <https://xmpp.org/extensions/xep-0060.html>.
12. Extensible Messaging and Presence Protocol (XMPP): Address Format <https://datatracker.ietf.org/doc/draft-ietf-xmpp-6122bis/>. Work in progress.
13. XEP-0267: Server Buddies <https://xmpp.org/extensions/xep-0267.html>.
14. XEP-0205: Best Practices to Discourage Denial of Service Attacks <https://xmpp.org/extensions/xep-0205.html>.
15. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>.
16. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see <https://xmpp.org/registrar/>.
17. XEP-0053: XMPP Registrar Function <https://xmpp.org/extensions/xep-0053.html>.
Note: Older versions of this specification might be available at https://xmpp.org/extensions/attic/
Aligned document with the IETF guidelines for defining extensions to IODEF; defined several more IODEF NodeRole categories; added schema for the JID element; noted that the JID element might be moved to a separate specification.
Simplified the processing model to send reports only in IQ-sets (not in IQ-results); filled out the sections on inquiries, requests, and responses; corrected the schema and examples.
Changed the XML format from a custom schema to IODEF (RFC 5070); incremented namespace version from 1 to 2.
Added security considerations; defined schema.
Added more detailed information about the solution element; removed the suggestion element since the solution element can be used by both reporting entities and receiving entities; added notes about processing of incident reports by receiving entities.
Initial published version.
Per Council feedback, moved server rosters to a separate specification.
Refactored XML format; added elements for sub-categories, locations, related incidents, solutions, and suggestions.
First draft.
@report{hefczyc2009xep0268, title = {Incident Handling}, author = {Hefczyc, Artur and Jensen, Florian and Rémond, Mickaël and Saint-Andre, Peter and Wild, Matthew}, type = {XEP}, number = {0268}, version = {0.6}, institution = {XMPP Standards Foundation}, url = {https://xmpp.org/extensions/xep-0268.html}, date = {2009-04-13/2012-05-29}, }
END