<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
<xep xmlns="">
<header>
  <title>Incident Handling</title>
  <abstract>This specification defines methods for incident reporting among XMPP server deployments using the IODEF format produced by the IETF's INCH Working Group.</abstract>
  
<legal>
<copyright>This XMPP Extension Protocol is copyright © 1999 – 2024 by the <link url="https://xmpp.org/">XMPP Standards Foundation</link> (XSF).</copyright>
<permissions>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.</permissions>
<warranty>## 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. ##</warranty>
<liability>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.</liability>
<conformance>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 &lt;<link url="https://xmpp.org/about/xsf/ipr-policy">https://xmpp.org/about/xsf/ipr-policy</link>&gt; or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).</conformance>
</legal>
  <number>0268</number>
  <status>Deferred</status>
  <type>Standards Track</type>
  <sig>Standards</sig>
  <approver>Council</approver>
  <dependencies>
    <spec>XMPP Core</spec>
  </dependencies>
  <supersedes/>
  <supersededby/>
  <shortname>NOT_YET_ASSIGNED</shortname>
  <discuss>operators</discuss>
  <author>
    <firstname>Artur</firstname>
    <surname>Hefczyc</surname>
    <email>artur.hefczyc@gmail.com</email>
    <jid>artur.hefczyc@tigase.org</jid>
  </author>
  <author>
    <firstname>Florian</firstname>
    <surname>Jensen</surname>
    <email>admin@flosoft.biz</email>
    <jid>admin@im.flosoft.biz</jid>
  </author>
  <author>
    <firstname>Mickaël</firstname>
    <surname>Rémond</surname>
    <email>mickael.remond@process-one.net</email>
    <jid>mremond@process-one.net</jid>
  </author>
  
  <author>
    <firstname>Peter</firstname>
    <surname>Saint-Andre</surname>
    <email>stpeter@stpeter.im</email>
    <jid>stpeter@jabber.org</jid>
    <uri>https://stpeter.im/</uri>
  </author>

  
  <author>
    <firstname>Matthew</firstname>
    <surname>Wild</surname>
    <email>mwild1@gmail.com</email>
    <jid>me@matthewwild.co.uk</jid>
  </author>

  <revision>
    <version>0.6</version>
    <date>2012-05-29</date>
    <initials>psa</initials>
    <remark><p>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.</p></remark>
  </revision>
  <revision>
    <version>0.5</version>
    <date>2012-05-16</date>
    <initials>psa</initials>
    <remark><p>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.</p></remark>
  </revision>
  <revision>
    <version>0.4</version>
    <date>2012-04-17</date>
    <initials>psa</initials>
    <remark><p>Changed the XML format from a custom schema to IODEF (RFC 5070); incremented namespace version from 1 to 2.</p></remark>
  </revision>
  <revision>
    <version>0.3</version>
    <date>2009-11-17</date>
    <initials>psa</initials>
    <remark><p>Added security considerations; defined schema.</p></remark>
  </revision>
  <revision>
    <version>0.2</version>
    <date>2009-06-05</date>
    <initials>mw/psa</initials>
    <remark><p>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.</p></remark>
  </revision>
  <revision>
    <version>0.1</version>
    <date>2009-04-30</date>
    <initials>psa</initials>
    <remark><p>Initial published version.</p></remark>
  </revision>
  <revision>
    <version>0.0.3</version>
    <date>2009-04-30</date>
    <initials>psa</initials>
    <remark><p>Per Council feedback, moved server rosters to a separate specification.</p></remark>
  </revision>
  <revision>
    <version>0.0.2</version>
    <date>2009-04-27</date>
    <initials>psa/fj</initials>
    <remark><p>Refactored XML format; added elements for sub-categories, locations, related incidents, solutions, and suggestions.</p></remark>
  </revision>
  <revision>
    <version>0.0.1</version>
    <date>2009-04-13</date>
    <initials>ah/fj/psa/mr/mw</initials>
    <remark><p>First draft.</p></remark>
  </revision>
</header>

<section1 topic="Introduction" anchor="intro">
  <p>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 <span class="ref"><link url="http://tools.ietf.org/html/rfc5070">RFC 5070</link></span> <note>RFC 5070: The Incident Object Description Exchange Format &lt;<link url="http://tools.ietf.org/html/rfc5070">http://tools.ietf.org/html/rfc5070</link>&gt;.</note> 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 <span class="ref"><link url="http://tools.ietf.org/html/rfc2350">RFC 2350</link></span> <note>RFC 2350: Expectations for Computer Security Incident Response &lt;<link url="http://tools.ietf.org/html/rfc2350">http://tools.ietf.org/html/rfc2350</link>&gt;.</note> and <span class="ref"><link url="http://tools.ietf.org/html/rfc3067">RFC 3067</link></span> <note>RFC 3067: TERENA's Incident Object Description and Exchange Format Requirements &lt;<link url="http://tools.ietf.org/html/rfc3067">http://tools.ietf.org/html/rfc3067</link>&gt;.</note>.)</p>
</section1>

<section1 topic="Interactions" anchor="interactions">
  <p>This document defines several interactions (similar to those in RID, see <span class="ref"><link url="http://tools.ietf.org/html/rfc6045">RFC 6045</link></span> <note>RFC 6045: Real-time Inter-network Defense (RID) &lt;<link url="http://tools.ietf.org/html/rfc6045">http://tools.ietf.org/html/rfc6045</link>&gt;.</note>) between XMPP server deployments with respect to incident handling. These interactions are transported using the XMPP &lt;iq/&gt; stanza as described below, where each element (qualified by the 'urn:xmpp:incident:2' namespace) is used as a wrapper for IODEF data.</p>
  <ol>
    <li><p>The &lt;report/&gt; element (contained in an &lt;iq/&gt; 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 &lt;request/&gt; element). This element is similar to a RID message type of "Report".</p></li>
    <li><p>The &lt;inquiry/&gt; element (contained in an &lt;iq/&gt; stanza of type "get") asks for information about an incident; it is expected that the reply will contain a &lt;report/&gt; element. This element is similar to a RID message type of "IncidentQuery".</p></li>
    <li><p>The &lt;request/&gt; element (contained in an &lt;iq/&gt; 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".</p></li>
    <li><p>The &lt;response/&gt; element (contained in an &lt;iq/&gt; stanza of type "set") provides assistance in resolving an incident. This element is similar to a RID message type of "Result".</p></li>
  </ol>
</section1>

<section1 topic="Report Format and Processing" anchor="report">
  <p>When one server wants to send information about an incident, it sends a incident report to another server. The report consists of an XMPP &lt;iq/&gt; stanza of type "set" containing a &lt;report/&gt; element that in turn contains an IODEF document. An example is shown below.</p>
  <example caption="A report of trouble"><![CDATA[
<iq from='jabber.org' id='vk2x91g47' to='im.flosoft.biz' type='set'>
  <report xmlns='urn:xmpp:incident:2'>
    <Incident xmlns='urn:ietf:params:xml:ns:iodef-1.0'
              purpose='reporting'>
      <IncidentID name='jabber.org'>4BF5D2CE-7C90-4860-BEF2-43A7D777D5FF</IncidentID>
      <StartTime>2009-04-13T19:05:20Z</StartTime>
      <EndTime>2009-04-13T19:27:22Z</EndTime>
      <ReportTime>2009-04-13T19:31:07Z</ReportTime>
      <Description xml:lang='en'>lots of MUC spammers from clueless.lit!</Description>
      <Contact role='admin' type='person'>
        <AdditionalData>
          <jid xmlns='urn:xmpp:incident:2'>stpeter@jabber.org</jid>
        </AdditionalData>
      </Contact>
      <Contact role='admin' type='person'>
        <AdditionalData>
          <jid xmlns='urn:xmpp:jid:0'>stpeter@jabber.org</jid>
        </AdditionalData>
      </Contact>
      <Contact role='ext-type' ext-type='chatroom'>
        <AdditionalData>
          <jid xmlns='urn:xmpp:jid:0'>operators@muc.xmpp.org</jid>
        </AdditionalData>
      </Contact>
      <RelatedActivity>
        <IncidentID name='im.example.com'>133BCE2E-E669-4ECE-B0F8-766B9E65630D</IncidentID>
      </RelatedActivity>
      <Assessment>
        <Impact lang='en' severity='medium' completion='succeeded' type='dos'/>
      </Assessment>
      <EventData>
        <Flow>
          <System category='source'>
            <Node>
              <Address category='ext-category' ext-category='xmpp'>abuser@clueless.lit</Address>
              <Counter type='ext-type' ext-type='xmpp-presence'>123</Counter>
            </Node>
            <Node>
              <Address category='ext-category' ext-category='xmpp'>luser27@clueless.lit</Address>
              <Counter type='ext-type' ext-type='xmpp-presence'>47</Counter>
            </Node>
          </System>
          <System category='target'>
            <Node>
              <Address category='ext-category' ext-category='xmpp'>jdev@conference.jabber.org</Address>
              <Address category='ext-category' ext-category='xmpp'>jabber@conference.jabber.org</Address>
              <NodeRole category='ext-category' ext-category='xmpp-muc'/>
            </Node>
          </System>
        </Flow>
      </EventData>
    </Incident>
  </report>
</iq>
]]></example>
  <p>If the recipient is able to process the report, it MUST return an &lt;iq/&gt; stanza of type "result"; if not, it MUST return an &lt;iq/&gt; stanza of type "error" (error handling will be defined in a future version of this specification).</p>
</section1>

<section1 topic="Inquiry Format and Processing" anchor="inquiry">
  <p>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).</p>
  <example caption="An inquiry about an incident"><![CDATA[
<iq from='tigase.org' id='br6a31m9' to='im.flosoft.biz' type='get'>
  <inquiry xmlns='urn:xmpp:incident:2'>
    <Incident xmlns='urn:ietf:params:xml:ns:iodef-1.0'
              purpose='traceback'>
      <IncidentID name='jabber.org'>4BF5D2CE-7C90-4860-BEF2-43A7D777D5FF</IncidentID>
    </Incident>
  </inquiry>
</iq>
]]></example>
  <p>If the recipient is able to process the inquiry, it MUST return an &lt;iq/&gt; stanza of type "result" and then send a report about the incident using an &lt;iq/&gt; stanza of type "set" as defined above; if not, it MUST return an &lt;iq/&gt; stanza of type "error" (error handling will be defined in a future version of this specification).</p>
</section1>

<section1 topic="Request Format and Processing" anchor="request">
  <p>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).</p>
  <p>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 &lt;Expectation/&gt; element).</p>
  <example caption="A request for assistance"><![CDATA[
<iq from='jabber.org' id='kq62vx31' to='clueless.lit' type='get'>
  <request xmlns='urn:xmpp:incident:2'>
    <Incident xmlns='urn:ietf:params:xml:ns:iodef-1.0'
              purpose='mitigation'>
      <IncidentID name='jabber.org'>4BF5D2CE-7C90-4860-BEF2-43A7D777D5FF</IncidentID>
      <StartTime>2009-04-13T19:05:20Z</StartTime>
      <EndTime>2009-04-13T19:27:22Z</EndTime>
      <ReportTime>2009-04-13T19:31:07Z</ReportTime>
      <Description xml:lang='en'>lots of MUC spammers from clueless.lit!</Description>
      <Contact role='admin' type='person'>
        <AdditionalData>
          <jid xmlns='urn:xmpp:incident:2'>stpeter@jabber.org</jid>
        </AdditionalData>
      </Contact>
      <Contact role='admin' type='person'>
        <AdditionalData>
          <jid xmlns='urn:xmpp:jid:0'>stpeter@jabber.org</jid>
        </AdditionalData>
      </Contact>
      <Contact role='ext-type' ext-type='chatroom'>
        <AdditionalData>
          <jid xmlns='urn:xmpp:jid:0'>operators@muc.xmpp.org</jid>
        </AdditionalData>
      </Contact>
      <RelatedActivity>
        <IncidentID name='im.example.com'>133BCE2E-E669-4ECE-B0F8-766B9E65630D</IncidentID>
      </RelatedActivity>
      <Assessment>
        <Impact lang='en' severity='medium' completion='succeeded' type='dos'/>
      </Assessment>
      <EventData>
        <Flow>
          <System category='source'>
            <Node>
              <Address category='ext-category' ext-category='xmpp'>abuser@clueless.lit</Address>
              <Counter type='ext-type' ext-type='xmpp-presence'>123</Counter>
            </Node>
            <Node>
              <Address category='ext-category' ext-category='xmpp'>luser27@clueless.lit</Address>
              <Counter type='ext-type' ext-type='xmpp-presence'>47</Counter>
            </Node>
          </System>
          <System category='target'>
            <Node>
              <Address category='ext-category' ext-category='xmpp'>jdev@conference.jabber.org</Address>
              <Address category='ext-category' ext-category='xmpp'>jabber@conference.jabber.org</Address>
              <NodeRole category='ext-category' ext-category='xmpp-muc'/>
            </Node>
          </System>
        </Flow>
        <Expectation action='block-host'/>
      </EventData>
    </Incident>
  </request>
</iq>
]]></example>
  <p>If the recipient is able to process the report, it MUST return an &lt;iq/&gt; stanza of type "result"; if not, it MUST return an &lt;iq/&gt; stanza of type "error" (error handling will be defined in a future version of this specification).</p>
</section1>

<section1 topic="Response Format and Processing" anchor="response">
  <p>When one server provides assistance in resolving an incident, it sends a response to another server (not necessarily the server where the incident occurred).</p>
  <p>Here, the server where the attack originated informs the server where the attack occurred that it has disabled the offending accounts (via the IODEF &lt;HistoryItem/&gt; element).</p>
  <example caption="A response to a request for assistance"><![CDATA[
<iq from='clueless.list' id='ic1fa53v' to='jabber.org' type='set'>
  <response xmlns='urn:xmpp:incident:2'>
    <Incident xmlns='urn:ietf:params:xml:ns:iodef-1.0'
              purpose='mitigation'>
      <IncidentID name='jabber.org'>4BF5D2CE-7C90-4860-BEF2-43A7D777D5FF</IncidentID>
      <StartTime>2009-04-13T19:05:20Z</StartTime>
      <EndTime>2009-04-13T19:27:22Z</EndTime>
      <ReportTime>2009-04-13T19:31:07Z</ReportTime>
      <Description xml:lang='en'>lots of MUC spammers from clueless.lit!</Description>
      <Contact role='admin' type='person'>
        <AdditionalData>
          <jid xmlns='urn:xmpp:incident:2'>stpeter@jabber.org</jid>
        </AdditionalData>
      </Contact>
      <Contact role='admin' type='person'>
        <AdditionalData>
          <jid xmlns='urn:xmpp:jid:0'>stpeter@jabber.org</jid>
        </AdditionalData>
      </Contact>
      <Contact role='ext-type' ext-type='chatroom'>
        <AdditionalData>
          <jid xmlns='urn:xmpp:jid:0'>operators@muc.xmpp.org</jid>
        </AdditionalData>
      </Contact>
      <RelatedActivity>
        <IncidentID name='im.example.com'>133BCE2E-E669-4ECE-B0F8-766B9E65630D</IncidentID>
      </RelatedActivity>
      <Assessment>
        <Impact lang='en' severity='medium' completion='succeeded' type='dos'/>
      </Assessment>
      <EventData>
        <Flow>
          <System category='source'>
            <Node>
              <Address category='ext-category' ext-category='xmpp'>abuser@clueless.lit</Address>
              <Counter type='ext-type' ext-type='xmpp-presence'>123</Counter>
            </Node>
            <Node>
              <Address category='ext-category' ext-category='xmpp'>luser27@clueless.lit</Address>
              <Counter type='ext-type' ext-type='xmpp-presence'>47</Counter>
            </Node>
          </System>
          <System category='target'>
            <Node>
              <Address category='ext-category' ext-category='xmpp'>jdev@conference.jabber.org</Address>
              <Address category='ext-category' ext-category='xmpp'>jabber@conference.jabber.org</Address>
              <NodeRole category='ext-category' ext-category='xmpp-muc'/>
            </Node>
          </System>
        </Flow>
        <Expectation action='block-host'/>
      </EventData>
      <History>
        <HistoryItem action='blockquote'>
          <DateTime>2009-04-13T19:47:11Z</DateTime>
          <Description>Account disabled</Description>
        </HistoryItem>
      </History>
    </Incident>
  </response>
</iq>
]]></example>
  <p>If the recipient is able to process the report, it MUST return an &lt;iq/&gt; stanza of type "result"; if not, it MUST return an &lt;iq/&gt; stanza of type "error" (error handling will be defined in a future version of this specification).</p>
</section1>

<section1 topic="Definition of IODEF Extensions" anchor="iodef">
  <p>This document defines the following IODEF extensions, described in accordance with the guidelines in <span class="ref"><link url="http://tools.ietf.org/html/draft-ietf-mile-template">Guidelines for Defining Extensions to IODEF</link></span> <note>Guidelines for Defining Extensions to IODEF &lt;<link url="http://tools.ietf.org/html/draft-ietf-mile-template">http://tools.ietf.org/html/draft-ietf-mile-template</link>&gt;. Work in progress.</note>.</p>
  <section2 topic="Contact" anchor="iodef-contact">
    <p>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 <span class="ref"><link url="https://xmpp.org/extensions/xep-0045.html">Multi-User Chat (XEP-0045)</link></span> <note>XEP-0045: Multi-User Chat &lt;<link url="https://xmpp.org/extensions/xep-0045.html">https://xmpp.org/extensions/xep-0045.html</link>&gt;.</note> room. Since there are many different chatroom technologies, the address of the chatroom shall be specified as the child of an &lt;AdditionalData/&gt; element. For XMPP chatrooms, the address is the XML character data of a &lt;jid/&gt; element qualified by the 'urn:xmpp:jid:0' namespace.</p>
    <p>Note: Definition of the &lt;jid/&gt; element might be moved to a separate specification.</p>
  </section2>
  <section2 topic="Address" anchor="iodef-address">
    <p>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 <span class="ref"><link url="http://tools.ietf.org/html/rfc6122">RFC 6122</link></span> <note>RFC 6122: Extensible Messaging and Presence Protocol (XMPP): Address Format &lt;<link url="http://tools.ietf.org/html/rfc6122">http://tools.ietf.org/html/rfc6122</link>&gt;.</note> or its successor.</p>
  </section2>
  <section2 topic="NodeRole" anchor="iodef-noderole">
    <p>This specification defines several extended NodeRole categories, i.e., new enumerated values for the NodeRole@category attribute:</p>
    <ul>
      <li>"xmpp" -- the network role of an XMPP service or core router as defined by <span class="ref"><link url="http://tools.ietf.org/html/rfc6120">RFC 6120</link></span> <note>RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core &lt;<link url="http://tools.ietf.org/html/rfc6120">http://tools.ietf.org/html/rfc6120</link>&gt;.</note> and <span class="ref"><link url="http://tools.ietf.org/html/rfc6121">RFC 6121</link></span> <note>RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence &lt;<link url="http://tools.ietf.org/html/rfc6121">http://tools.ietf.org/html/rfc6121</link>&gt;.</note></li>
      <li>"xmpp-bytestreams" -- the network role of an XMPP SOCKS5 byestreams service as defined by <span class="ref"><link url="https://xmpp.org/extensions/xep-0065.html">SOCKS5 Bytestreams (XEP-0065)</link></span> <note>XEP-0065: SOCKS5 Bytestreams &lt;<link url="https://xmpp.org/extensions/xep-0065.html">https://xmpp.org/extensions/xep-0065.html</link>&gt;.</note></li>
      <li>"xmpp-muc" -- the network role of an XMPP multi-user chat service as defined by <span class="ref"><link url="https://xmpp.org/extensions/xep-0045.html">Multi-User Chat (XEP-0045)</link></span> <note>XEP-0045: Multi-User Chat &lt;<link url="https://xmpp.org/extensions/xep-0045.html">https://xmpp.org/extensions/xep-0045.html</link>&gt;.</note></li>
      <li>"xmpp-pubsub" -- the network role of an XMPP pubsub service as defined by <span class="ref"><link url="https://xmpp.org/extensions/xep-0060.html">Publish-Subscribe (XEP-0060)</link></span> <note>XEP-0060: Publish-Subscribe &lt;<link url="https://xmpp.org/extensions/xep-0060.html">https://xmpp.org/extensions/xep-0060.html</link>&gt;.</note></li>
    </ul>
  </section2>
  <section2 topic="AdditionalData" anchor="iodef-additionaldata">
    <p>This specification defines an AdditionalData element of &lt;jid/&gt; 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.</p>
    <p>Note: Definition of the &lt;jid/&gt; element might be moved to a separate specification.</p>
  </section2>
</section1>

<section1 topic="Internationalization Considerations" anchor="i18n">
  <p>The &lt;jid/&gt; element qualified by the 'urn:xmpp:incident:2' namespace is a "JID slot" as described in <span class="ref"><link url="https://datatracker.ietf.org/doc/draft-ietf-xmpp-6122bis/">rfc6122bis</link></span> <note>Extensible Messaging and Presence Protocol (XMPP): Address Format &lt;<link url="https://datatracker.ietf.org/doc/draft-ietf-xmpp-6122bis/">https://datatracker.ietf.org/doc/draft-ietf-xmpp-6122bis/</link>&gt;. Work in progress.</note>.</p>
  <p>Note: Definition of the &lt;jid/&gt; element might be moved to a separate specification.</p>
</section1>

<section1 topic="Security Considerations" anchor="security">
  <p>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 <span class="ref"><link url="https://xmpp.org/extensions/xep-0267.html">Server Buddies (XEP-0267)</link></span> <note>XEP-0267: Server Buddies &lt;<link url="https://xmpp.org/extensions/xep-0267.html">https://xmpp.org/extensions/xep-0267.html</link>&gt;.</note>.</p>
  <p>This technology is designed to help mitigate attacks on the XMPP network. However, incident reporting is itself vulnerable to the following attacks:</p>
  <ul>
    <li>False reports could lead a server to deny service to legitimate users or peer servers (see also <span class="ref"><link url="https://xmpp.org/extensions/xep-0205.html">Best Practices to Discourage Denial of Service Attacks (XEP-0205)</link></span> <note>XEP-0205: Best Practices to Discourage Denial of Service Attacks &lt;<link url="https://xmpp.org/extensions/xep-0205.html">https://xmpp.org/extensions/xep-0205.html</link>&gt;.</note>). To help mitigate such attacks, a server SHOULD treat with caution any incident reports that it might receive from untrusted entities.</li>
    <li>If traffic between two servers is not protected using Transport Layer Security (TLS), a passive eavesdropper could gain access to incident reports and therefore adjust its behavior in response. To prevent such attacks, servers SHOULD use TLS.</li>
  </ul>
  <p>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.</p>
  <p>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.</p>
  <p>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.</p>
  <p>A receiving server MAY forward reports that it receives to other servers it trusts.</p>
</section1>

<section1 topic="IANA Considerations" anchor="iana">
  <p>This document might require interaction with the <span class="ref"><link url="http://www.iana.org/">Internet Assigned Numbers Authority (IANA)</link></span> <note>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 &lt;<link url="http://www.iana.org/">http://www.iana.org/</link>&gt;.</note> to register various IODEF extensions, in accordance with <cite>draft-ietf-mile-template</cite>.</p>
</section1>

<section1 topic="XMPP Registrar Considerations" anchor="registrar">
  <section2 topic="Protocol Namespaces" anchor="registrar-ns">
    <p>This specification defines the following XML namespace:</p>
    <ul>
      <li>urn:xmpp:incident:2</li>
      <li>urn:xmpp:jid:0</li>
    </ul>
    <p>Upon advancement of this specification from a status of Experimental to a status of Draft, the <span class="ref"><link url="https://xmpp.org/registrar/">XMPP Registrar</link></span> <note>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 &lt;<link url="https://xmpp.org/registrar/">https://xmpp.org/registrar/</link>&gt;.</note> shall add the foregoing namespace to the registry located at &lt;<link url="https://xmpp.org/registrar/namespaces.html">https://xmpp.org/registrar/namespaces.html</link>&gt;, as described in Section 4 of <span class="ref"><link url="https://xmpp.org/extensions/xep-0053.html">XMPP Registrar Function (XEP-0053)</link></span> <note>XEP-0053: XMPP Registrar Function &lt;<link url="https://xmpp.org/extensions/xep-0053.html">https://xmpp.org/extensions/xep-0053.html</link>&gt;.</note>.</p>
    <p>Note: Registration of the 'urn:xmpp:jid:0' namespace might be moved to a separate specification.</p>
  </section2>
  <section2 topic="Protocol Versioning" anchor="registrar-versioning">
    <p>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 <cite>XEP-0053</cite>.</p>
  </section2>
</section1>

<section1 topic="XML Schemas" anchor="schemas">
  <section2 topic="Incident Namespace" anchor="schemas-incident">
    <code><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>

<xs:schema
    xmlns:xs='http://www.w3.org/2001/XMLSchema'
    targetNamespace='urn:xmpp:incident:2'
    xmlns='urn:xmpp:incident:2'
    elementFormDefault='qualified'>

  <xs:import namespace='urn:ietf:params:xml:ns:iodef-1.0'/>

  <xs:element name='inquiry' type='IODEFContainerType'/>
  <xs:element name='report' type='IODEFContainerType'/>
  <xs:element name='request' type='IODEFContainerType'/>
  <xs:element name='response' type='IODEFContainerType'/>

  <xs:complexType name="IODEFContainerType">
    <xs:sequence xmlns:i='urn:ietf:params:xml:ns:iodef-1.0'>
      <xs:element ref='i:Incident' minOccurs='1' maxOccurs='1'/>
    </xs:sequence>
  </xs:complexType>

</xs:schema>
]]></code>
  </section2>
  <section2 topic="JID Namespace" anchor="schemas-jid">
    <p>Note: This schema and associated text might be moved to a separate specification.</p>
    <code><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>

<xs:schema
    xmlns:xs='http://www.w3.org/2001/XMLSchema'
    targetNamespace='urn:xmpp:jid:0'
    xmlns='urn:xmpp:jid:0'
    elementFormDefault='qualified'>

  <xs:element name='jid' type='xs:string'/>

</xs:schema>
]]></code>
  </section2>
</section1>

</xep>
