%ents; ]>
Incident Handling This specification defines methods for incident reporting among XMPP server deployments using the IODEF format produced by the IETF's INCH Working Group. &LEGALNOTICE; 0268 Deferred Standards Track Standards Council XMPP Core NOT_YET_ASSIGNED operators Artur Hefczyc artur.hefczyc@gmail.com artur.hefczyc@tigase.org Florian Jensen admin@flosoft.biz admin@im.flosoft.biz Mickaël Rémond mickael.remond@process-one.net mremond@process-one.net &stpeter; &mwild; 0.6 2012-05-29 psa

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.

0.5 2012-05-16 psa

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.

0.4 2012-04-17 psa

Changed the XML format from a custom schema to IODEF (RFC 5070); incremented namespace version from 1 to 2.

0.3 2009-11-17 psa

Added security considerations; defined schema.

0.2 2009-06-05 mw/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.

0.1 2009-04-30 psa

Initial published version.

0.0.3 2009-04-30 psa

Per Council feedback, moved server rosters to a separate specification.

0.0.2 2009-04-27 psa/fj

Refactored XML format; added elements for sub-categories, locations, related incidents, solutions, and suggestions.

0.0.1 2009-04-13 ah/fj/psa/mr/mw

First draft.

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 &rfc5070; 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 &rfc2350; and &rfc3067;.)

This document defines several interactions (similar to those in RID, see &rfc6045;) 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.

  1. 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".

  2. 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".

  3. 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".

  4. 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.

4BF5D2CE-7C90-4860-BEF2-43A7D777D5FF 2009-04-13T19:05:20Z 2009-04-13T19:27:22Z 2009-04-13T19:31:07Z lots of MUC spammers from clueless.lit! stpeter@jabber.org stpeter@jabber.org operators@muc.xmpp.org 133BCE2E-E669-4ECE-B0F8-766B9E65630D
abuser@clueless.lit
123
luser27@clueless.lit
47
jdev@conference.jabber.org
jabber@conference.jabber.org
]]>

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).

4BF5D2CE-7C90-4860-BEF2-43A7D777D5FF ]]>

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).

4BF5D2CE-7C90-4860-BEF2-43A7D777D5FF 2009-04-13T19:05:20Z 2009-04-13T19:27:22Z 2009-04-13T19:31:07Z lots of MUC spammers from clueless.lit! stpeter@jabber.org stpeter@jabber.org operators@muc.xmpp.org 133BCE2E-E669-4ECE-B0F8-766B9E65630D
abuser@clueless.lit
123
luser27@clueless.lit
47
jdev@conference.jabber.org
jabber@conference.jabber.org
]]>

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).

4BF5D2CE-7C90-4860-BEF2-43A7D777D5FF 2009-04-13T19:05:20Z 2009-04-13T19:27:22Z 2009-04-13T19:31:07Z lots of MUC spammers from clueless.lit! stpeter@jabber.org stpeter@jabber.org operators@muc.xmpp.org 133BCE2E-E669-4ECE-B0F8-766B9E65630D
abuser@clueless.lit
123
luser27@clueless.lit
47
jdev@conference.jabber.org
jabber@conference.jabber.org
2009-04-13T19:47:11Z Account disabled
]]>

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 &miletemplate;.

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 &xep0045; room. Since there are many different chatroom technologies, the address of the chatroom shall be specified as the child of an &ADDITION; 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 &rfc6122; or its successor.

This specification defines several extended NodeRole categories, i.e., new enumerated values for the NodeRole@category attribute:

  • "xmpp" -- the network role of an XMPP service or core router as defined by &rfc6120; and &rfc6121;
  • "xmpp-bytestreams" -- the network role of an XMPP SOCKS5 byestreams service as defined by &xep0065;
  • "xmpp-muc" -- the network role of an XMPP multi-user chat service as defined by XEP-0045
  • "xmpp-pubsub" -- the network role of an XMPP pubsub service as defined by &xep0060;

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;.

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 &xep0267;.

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 &IANA; to register various IODEF extensions, in accordance with draft-ietf-mile-template.

This specification defines the following XML namespace:

  • urn:xmpp:incident:2
  • urn:xmpp:jid:0

Upon advancement of this specification from a status of Experimental to a status of Draft, the ®ISTRAR; shall add the foregoing namespace to the registry located at &NAMESPACES;, as described in Section 4 of &xep0053;.

Note: Registration of the 'urn:xmpp:jid:0' namespace might be moved to a separate specification.

&NSVER;
]]>

Note: This schema and associated text might be moved to a separate specification.

]]>