No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0027.xml 9.8KB

  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM 'xep.ent'>
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>Current Jabber OpenPGP Usage</title>
  10. <abstract>This document outlines the current usage of OpenPGP for messaging and presence.</abstract>
  12. <number>0027</number>
  13. <status>Obsolete</status>
  14. <type>Historical</type>
  15. <sig>Standards</sig>
  16. <dependencies>
  17. <spec>XMPP Core</spec>
  18. <spec>RFC 4880</spec>
  19. </dependencies>
  20. <supersedes/>
  21. <supersededby/>
  22. <shortname>openpgp</shortname>
  23. <schemaloc>
  24. <ns>jabber:x:encrypted</ns>
  25. <url></url>
  26. </schemaloc>
  27. <schemaloc>
  28. <ns>jabber:x:signed</ns>
  29. <url></url>
  30. </schemaloc>
  31. &temas;
  32. <revision>
  33. <version>1.4</version>
  34. <date>2014-03-14</date>
  35. <initials>editor (mam)</initials>
  36. <remark>Per a vote of the XMPP Council, changed status from Active to Deprecated to Obsolete.</remark>
  37. </revision>
  38. <revision>
  39. <version>1.3</version>
  40. <date>2006-11-29</date>
  41. <initials>psa</initials>
  42. <remark>Removed the unnecessary requirement that the presence status or message body must contain XML character data, since an empty string can be signed.</remark>
  43. </revision>
  44. <revision>
  45. <version>1.2</version>
  46. <date>2004-03-08</date>
  47. <initials>psa</initials>
  48. <remark>Clarified the text in several places; added several more security considerations and known issues.</remark>
  49. </revision>
  50. <revision>
  51. <version>1.1</version>
  52. <date>2004-01-06</date>
  53. <initials>psa</initials>
  54. <remark>Added XML schemas; added security, IANA, and XMPP Registrar considerations.</remark>
  55. </revision>
  56. <revision>
  57. <version>1.0</version>
  58. <date>2002-04-23</date>
  59. <initials>psa</initials>
  60. <remark>Changed status to Active.</remark>
  61. </revision>
  62. <revision>
  63. <version>0.2</version>
  64. <date>2002-04-11</date>
  65. <initials>tjm</initials>
  66. <remark>Merged DW's comments on key usage as well as more known issues.</remark>
  67. </revision>
  68. <revision>
  69. <version>0.1</version>
  70. <date>2002-03-12</date>
  71. <initials>tjm</initials>
  72. <remark>First draft.</remark>
  73. </revision>
  74. </header>
  75. <section1 topic='Introduction' anchor='intro'>
  76. <p>The Jabber community has long acknowledged the need for privacy and security features in a well-rounded instant messaging system. Unfortunately, finding a consensus solution to the problem of end-to-end encryption during the community's younger days was not easy. Eventually, early contributors created a quick solution using OpenPGP (&rfc4880;). This specification documents the OpenPGP solution as it is used today, so that others may interoperate with clients that support it. This document is not intended to present a standard, because more complete solutions are being investigated.</p>
  77. <p>All operations described here are done with standard OpenPGP software such as <link url=''>GnuPG</link>. All program output is US-ASCII armored output with the headers removed. This allows for easy transportation of the program output directly in the XML. All keys are exchanged using OpenPGP key servers, and usually are retrieved when a signed &PRESENCE; stanza is received (key retrieval does not happen in-band).</p>
  78. </section1>
  79. <section1 topic='Signing' anchor='signing'>
  80. <p>Signing enables a sender to verify that they sent a certain block of text. In Jabber, signing uses the 'jabber:x:signed' namespace, and is primarily used with &PRESENCE;, but may also be used with &MESSAGE;. The text that is signed MAY be the empty string. When signing presence, the sender SHOULD sign the XML character data of the &lt;status&gt; element. The sender SHOULD sign presence using the private key whose KeyID corresponds to the public key to be used in encrypting messages (see below).</p>
  81. <example caption='A signed presence stanza'>
  82. &lt;presence from='' to=''&gt;
  83. &lt;status&gt;Online&lt;/status&gt;
  84. &lt;x xmlns='jabber:x:signed'&gt;
  85. iQA/AwUBOjU5dnol3d88qZ77EQI2JACfRngLJ045brNnaCX78ykKNUZaTIoAoPHI
  86. 2uJxPMGR73EBIvEpcv0LRSy+
  87. =45f8
  88. &lt;/x&gt;
  89. &lt;/presence&gt;
  90. </example>
  91. </section1>
  92. <section1 topic='Encrypting' anchor='encrypting'>
  93. <p>Encryption enables the sender to encrypt a message to a specific recipient. This is accomplished using the 'jabber:x:encrypted' namespace in conjunction with &MESSAGE; stanzas. Because a block of text is necessary in order to have something to encrypt, &MESSAGE; stanzas intended to be encrypted have the same restrictions as signing (see above). The data encrypted MUST be the XML character data of the &lt;body&gt; element. The sender SHOULD encrypt the message body using the public key whose KeyID corresponds to the private key used in signing presence (see above).</p>
  94. <example caption='An encrypted message stanza'>
  95. &lt;message to='' from=''&gt;
  96. &lt;body&gt;This message is encrypted.&lt;/body&gt;
  97. &lt;x xmlns='jabber:x:encrypted'&gt;
  98. qANQR1DBwU4DX7jmYZnncmUQB/9KuKBddzQH+tZ1ZywKK0yHKnq57kWq+RFtQdCJ
  99. WpdWpR0uQsuJe7+vh3NWn59/gTc5MDlX8dS9p0ovStmNcyLhxVgmqS8ZKhsblVeu
  100. IpQ0JgavABqibJolc3BKrVtVV1igKiX/N7Pi8RtY1K18toaMDhdEfhBRzO/XB0+P
  101. AQhYlRjNacGcslkhXqNjK5Va4tuOAPy2n1Q8UUrHbUd0g+xJ9Bm0G0LZXyvCWyKH
  102. kuNEHFQiLuCY6Iv0myq6iX6tjuHehZlFSh80b5BVV9tNLwNR5Eqz1klxMhoghJOA
  103. w7R61cCPt8KSd8Vcl8K+StqOMZ5wkhosVjUqvEu8uJ9RupdpB/4m9E3gOQZCBsmq
  104. OsX4/jJhn2wIsfYYWdqkbNKnuYoKCnwrlmn6I+wX72p0R8tTv8peNCwK9bEtL/XS
  105. mhn4bCxoUkCITv3k8a+Jdvbov9ucduKSFuCBq4/l0fpHmPhHQjkFofxmaWJveFfF
  106. 619NXyYyCfoLTmWk2AaTHVCjtKdf1WmwcTa0vFfk8BuFHkdah6kJJiJ7w/yNwa/E
  107. O6CMymuZTr/LpcKKWrWCt+SErxqmq8ekPI8h7oNwMxZBYAa7OJ1rXWKNgL9pDtNI
  108. 824Mf0mXj7q5N1eMHvX1QEoKLAda/Ae3TTEevOyeUK1DEgvxfM2KRZ11RzU+XtIE
  109. My/bJk7EycAw8P/QKyeNlO1fxP58VEd6Gb8NCPqKOYn/LKh1O+c20ZNVEPFM4bNV
  110. XA4hB4UtFF7Ao8kpdlrUqdKyw4lEtnmdemYQ6+iIIVPEarWl9PxOMY90KAnZrSAq
  111. bt9uRY/1rPgelRaWblMKvxgpRO8++Y8VjdEyGgMOXxOiE851Ve72ftGzkSxDH8mW
  112. TgY3pf2aATmBp3lagQ1COkGS/xupovT5AQPA3RzbCxDvc6s6eGYKmVVQVj5vmSj1
  113. WULad5MB9KT1DzCm6FOSy063nWGBYYMWiejRvGLpo1j4eAnj0qOt7rTWmgv3RkYF
  114. Oin0vDOhW7aC
  115. =CvnG&lt;/x&gt;
  116. &lt;/message&gt;
  117. </example>
  118. <p>It is considered polite to include an unencrypted message &lt;body/&gt; explaining that the actual message body is encrypted. This helps if the client experiences an error while decrypting the message, or if the user's a client that does not support encryption (although generally this should not happen, since the signed presence can be used to indicate that a client accepts encrypted messages).</p>
  119. </section1>
  120. <section1 topic='Security Considerations' anchor='security'>
  121. <p>The method defined herein has the following security issues:</p>
  122. <ul>
  123. <li>Key exchange relies on the web of trust model used on the OpenPGP keys network.</li>
  124. <li>There is no mechanism for checking a fingerprint or ownership of a key other than checking the user IDs on a key.</li>
  125. <li>When the recipient is not mentioned in the encrypted body, replay attacks are possible on messages.</li>
  126. <li>Replay of the signed &PRESENCE; status is possible.</li>
  127. <li>It relies on signing or encryption of XML character data; therefore, it does not support signing or encryption of &IQ; stanzas, and it allows signing of the presence &lt;status/&gt; element and encryption of the message &lt;body/&gt; element only. Thus the method is not acceptable when signing or encryption of full stanzas is required.</li>
  128. <li>It does not enable both signing and encryption of a stanza, only signing of the presence status and encryption of the message body.</li>
  129. </ul>
  130. </section1>
  131. <section1 topic='Other Known Issues' anchor='issues'>
  132. <p>In addition to the security considerations listed above, there are several other known issues with this method:</p>
  133. <ul>
  134. <li>It is limited to PGP keys and does not support X.509 certificates, Kerberos, RSA keys, etc.</li>
  135. <li>It does not include feature negotiation; instead, signed &PRESENCE; is used as an indicator of support. Because of the lack of negotiation it is possible for encrypted &MESSAGE; elements to be stored offline and then read by a client that cannot support them.</li>
  136. <li>It is verbose (the example encrypted &MESSAGE; is "Hi").</li>
  137. </ul>
  138. </section1>
  139. <section1 topic='IANA Considerations' anchor='iana'>
  140. <p>This document requires no interaction with &IANA;.</p>
  141. </section1>
  142. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  143. <p>The &REGISTRAR; shall register the 'jabber:x:encrypted' and 'jabber:x:signed' namespaces as a result of this document.</p>
  144. </section1>
  145. <section1 topic='XML Schemas' anchor='schemas'>
  146. <section2 topic='jabber:x:encrypted' anchor='schemas-encrypted'>
  147. <code><![CDATA[
  148. <?xml version='1.0' encoding='UTF-8'?>
  149. <xs:schema
  150. xmlns:xs=''
  151. targetNamespace='jabber:x:encrypted'
  152. xmlns='jabber:x:encrypted'
  153. elementFormDefault='qualified'>
  154. <xs:annotation>
  155. <xs:documentation>
  156. The protocol documented by this schema is defined in
  157. XEP-0027:
  158. </xs:documentation>
  159. </xs:annotation>
  160. <xs:element name='x' type='xs:string'/>
  161. </xs:schema>
  162. ]]></code>
  163. </section2>
  164. <section2 topic='jabber:x:signed' anchor='schemas-signed'>
  165. <code><![CDATA[
  166. <?xml version='1.0' encoding='UTF-8'?>
  167. <xs:schema
  168. xmlns:xs=''
  169. targetNamespace='jabber:x:signed'
  170. xmlns='jabber:x:signed'
  171. elementFormDefault='qualified'>
  172. <xs:annotation>
  173. <xs:documentation>
  174. The protocol documented by this schema is defined in
  175. XEP-0027:
  176. </xs:documentation>
  177. </xs:annotation>
  178. <xs:element name='x' type='xs:string'/>
  179. </xs:schema>
  180. ]]></code>
  181. </section2>
  182. </section1>
  183. </xep>