Abstract: | This specification defines methods for incident reporting among XMPP server deployments. |
Authors: | Artur Hefczyc, Florian Jensen, Mickaël Rémond, Peter Saint-Andre, Matthew Wild |
Copyright: | © 1999 - 2011 XMPP Standards Foundation. SEE LEGAL NOTICES. |
Status: | Deferred |
Type: | Standards Track |
Version: | 0.3 |
Last Updated: | 2009-11-17 |
WARNING: Consideration of this document has been Deferred by the XMPP Standards Foundation. Implementation of the protocol described herein is not recommended.
1. Introduction
2. Incident Reports
3. Incident Solutions
4. Processing of Incident Reports
5. Security Considerations
6. IANA Considerations
7. XMPP Registrar Considerations
7.1. Protocol Namespaces
7.2. Protocol Versioning
8. XML Schema
Appendices
A: Document Information
B: Author Information
C: Legal Notices
D: Relation to XMPP
E: Discussion Venue
F: Requirements Conformance
G: Notes
H: Revision History
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 format for sharing incident reports among XMPP server deployments. (For some related considerations, see RFC 2350 [1], RFC 3067 [2], and RFC 5070 [3].)
An incident report consists of an XMPP <message/> stanza containing an <incident/> child element that includes an 'id' attribute whose value is a UUID as described in RFC 4122 [4]. An example is shown below. A server deployment SHOULD send incident reports only to peer servers that it trusts, for example peers that are in its "server roster" as described in Server Rosters [5].
<message from='jabber.org' to='im.flosoft.biz'> <incident xmlns='urn:xmpp:incident:0' id='BA51A035-7710-4558-9BBF-34838A4C5B24'> <description> <discuss> <admin>stpeter@jabber.org</admin> <muc>operators@conference.jabber.org</muc> </discuss> <info> <category>muc</category> <type>presence</type> <type>long-messages</type> </info> <locs> <loc>jdev@conference.jabber.org</loc> <loc>jabber@conference.jabber.org</loc> </locs> <rels> <rel>133BCE2E-E669-4ECE-B0F8-766B9E65630D</rel> </rels> <severity>2</severity> <source> <jids> <jid>abuser@abuse.lit</jid> <jid>loser@abuse.lit</jid> </jids> </source> <text xml:lang='en'>lots of MUC spammers from abuse.lit!</text> <time> <begin>2009-04-13T19:05:20Z</begin> <end>2009-04-13T19:27:22Z</end> <report>2009-04-13T19:31:07Z</report> </time> </description> </incident> </message>
The defined children of the <description/> element are as follows:
Element Name | Description |
---|---|
<discuss/> | The JID of the server admin who generated the incident report (<admin/>), as well as a Multi-User Chat [6] room where the incident can be discussed (<muc/>). |
<info/> | Structured information about the incident. The defined values of the <category/> and <type/> elements shall be provided via a registry. It is envisioned that the <category/> values shall be "muc" for Multi-User Chat [7] incidents, "pubsub" for Publish-Subscribe [8] incidents, "reg" for account registration (In-Band Registration [9]) incidents, and "stanzas" for general XMPP incidents. |
<locs/> | The place or places on the XMPP network where the incident has occurred (such as a multi-user chat room, a publish-subscribe service, or a general XMPP server), each contained in a separate <loc/> element. |
<rels/> | The IDs of one or more incidents to which this incident might be related, each contained in a separate <rel/> element. |
<severity/> | The seriousness of the problem, from 5 (least serious) to 1 (most serious). |
<source/> | The IPv4 or IPv6 address (optionally including port) and JabberID where the incident originated (multiple instance of each source type can be included). |
<text/> | A natural-language description of the event. This element SHOULD possess an 'xml:lang' attribute. Multiple <text/> elements MAY be included, each with a different 'xml:lang' value. |
<time/> | The time when the incident began and ended (include an empty <end/> element if the incident is still happening) and, optionally, was reported. The dates MUST conform to the DateTime profile specified in XMPP Date and Time Profiles [10] |
If the reporting entity determines a solution to the problem or a receiving entity has a suggested solution to the problem, it SHOULD send out a revised incident report containing a <solution/> element (alternatively, the reporting entity can include a solution in its initial report). The solution element can include any of the elements defined for the <description/> element, such as the <ip/> element (since the XMPP server of a source JID might know the IP address and port of the connected entity).
<message from='jabber.org' to='im.flosoft.biz'> <incident xmlns='urn:xmpp:incident:0' id='BA51A035-7710-4558-9BBF-34838A4C5B24'> <description> ... </description> <solution> <source> <ips> <ip>192.0.2.1:53667</ip> </ips> </source> <text xml:lang='en'>iptables -A INPUT -s 192.0.2.1 -j DROP</text> </solution> </incident> </message>
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 technology is designed to help mitigate attacks on the XMPP network. However, incident reporting is itself vulnerable to the following attacks:
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [12].
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 [13] shall add the foregoing namespace to the registry located at <http://xmpp.org/registrar/namespaces.html>, as described in Section 4 of XMPP Registrar Function [14].
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.
<?xml version='1.0' encoding='UTF-8'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='urn:xmpp:incident:0' xmlns='urn:xmpp:incident:0' elementFormDefault='qualified'> <xs:element name='incident'> </xs:element> <xs:simpleType name='empty'> <xs:restriction base='xs:string'> <xs:enumeration value=''/> </xs:restriction> </xs:simpleType> </xs:schema>
Series: XEP
Number: 0268
Publisher: XMPP Standards Foundation
Status:
Deferred
Type:
Standards Track
Version: 0.3
Last Updated: 2009-11-17
Approving Body: XMPP Council
Dependencies: XMPP Core
Supersedes: None
Superseded By: None
Short Name: NOT_YET_ASSIGNED
Source Control:
HTML
This document in other formats:
XML
PDF
Email:
artur.hefczyc@gmail.com
JabberID:
artur.hefczyc@tigase.org
Email:
admin@flosoft.biz
JabberID:
admin@im.flosoft.biz
Email:
mickael.remond@process-one.net
JabberID:
mremond@process-one.net
Email:
stpeter@jabber.org
JabberID:
stpeter@jabber.org
URI:
https://stpeter.im/
Email:
mwild1@gmail.com
JabberID:
mwild1@jaim.at
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) 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 <http://xmpp.org/about/discuss.shtml> 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 2350: Expectations for Computer Security Incident Response <http://tools.ietf.org/html/rfc2350>.
2. RFC 3067: TERENA's Incident Object Description and Exchange Format Requirements <http://tools.ietf.org/html/rfc3067>.
3. RFC 5070: The Incident Object Description Exchange Format <http://tools.ietf.org/html/rfc5070>.
4. RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace <http://tools.ietf.org/html/rfc4122>.
5. XEP-0267: Server Rosters <http://xmpp.org/extensions/xep-0267.html>.
6. XEP-0045: Multi-User Chat <http://xmpp.org/extensions/xep-0045.html>.
7. XEP-0045: Multi-User Chat <http://xmpp.org/extensions/xep-0045.html>.
8. XEP-0060: Publish-Subscribe <http://xmpp.org/extensions/xep-0060.html>.
9. XEP-0077: In-Band Registration <http://xmpp.org/extensions/xep-0077.html>.
10. XEP-0082: XMPP Date and Time Profiles <http://xmpp.org/extensions/xep-0082.html>.
11. XEP-0205: Best Practices to Discourage Denial of Service Attacks <http://xmpp.org/extensions/xep-0205.html>.
12. 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/>.
13. 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 <http://xmpp.org/registrar/>.
14. XEP-0053: XMPP Registrar Function <http://xmpp.org/extensions/xep-0053.html>.
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/
Added security considerations; defined schema.
(psa)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.
(mw/psa)Initial published version.
(psa)Per Council feedback, moved server rosters to a separate specification.
(psa)Refactored XML format; added elements for sub-categories, locations, related incidents, solutions, and suggestions.
(psa/fj)First draft.
(ah/fj/psa/mr/mw)END