Abstract: | Specifies a OpenPGP for XMPP (XEP-0373) profile for the Instant Messaging (IM) use case. |
Authors: | Florian Schmaus, Dominik Schürmann, Vincent Breitmoser |
Copyright: | © 1999 - 2016 XMPP Standards Foundation. SEE LEGAL NOTICES. |
Status: | Experimental |
Type: | Standards Track |
Version: | 0.1.1 |
Last Updated: | 2016-06-04 |
WARNING: This Standards-Track document is Experimental. Publication as an XMPP Extension Protocol does not imply approval of this proposal by the XMPP Standards Foundation. Implementation of the protocol described herein is encouraged in exploratory implementations, but production systems are advised to carefully consider whether it is appropriate to deploy implementations of this protocol before it advances to a status of Draft.
1. Introduction
2. OX Instant Messaging Profile
2.1. Discovering Support
2.2. OpenPGP Secured Instant Messaging
2.3. OpenPGP Key Handling
2.3.1. Choosing Public Keys
2.3.2. OpenPGP Secret Key Synchronization
3. Business Rules
3.1. Always Use <signcrypt/>
3.2. Provide Hints
4. IANA Considerations
5. XMPP Registrar Considerations
5.1. Protocol Namespaces
6. XML Schema
7. Acknowledgements
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
This XMPP extension protocol specifies a profile of OpenPGP for XMPP (XEP-0373) [1] for OpenPGP secured Instant Messaging (IM).
Unlike similar XEPs, e.g., OMEMO, this XEP does not provide Forward Secrecy (FS), but as an advantage in return, allows users to read their archived conversations (respectively their encrypted data) later on. Of course, only as long as they still possess the according secret key. FS and being able to decrypt archived messages are mutually exclusive, i.e., one can not have both. The authors therefore consider this XEP complementary to similar ones which also provide end-to-end encryption but with a different feature set.
If an entity supports exchanging OpenPGP encrypted and signed instant messages over XMPP, i.e., what is specified herein, it MUST advertise that fact by announcing a Service Discovery (XEP-0030) [2] feature of 'urn:xmpp:openpgp:im:0'. It thus includes this feature in response to a service discovery request.
<iq type='get' from='juliet@example.org/balcony' to='romeo@example.org/orchard' id='disco1'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq>
<iq type='result' from='romeo@example.org/orchard' to='juliet@example.org/balcony' id='disco1'> <query xmlns='http://jabber.org/protocol/disco#info'> ... <feature var='urn:xmpp:openpgp:im:0'/> ... </query> </iq>
Because of possible downgrade attacks, users should be given an option to force the usage of the protocol defined herein no matter if the remote announces support or not.
In order to establish a OpenPGP secured IM communication, IM clients first need to determine the public key of their interlocutor(s). OpenPGP historically provides public keyservers which can be used for key retrieval. Additional there are methods to store OpenPGP key information in the Domain Name System (DNS). This specification does not restrict the mechanism of key discovery and retrieval, but compliant clients MUST support the public key announcement as described in XEP-0373 § 4.
After the required public keys have been discovered, XMPP clients engage in an OpenPGP secured IM conversation by exchanging <openpgp/> extension elements. They MUST use the <signcrypt/> OpenPGP content element specified in XEP-0373 § 3.1.
The child elements of the OpenPGP content element's <payload/> can be seen as stanza extension elements which are encrypted and signed. After the <openpgp/> element and the including <signcrypt/>, element was verified, they SHOULD be processed similar as if they had been direct extension elements of the stanza. For example, direct child elements found in <payload/> in the context of IM could be:
But just as with stanza extension elements, child elements of <payload/> can be any extension element. The example above uses the <body/> element as defined in RFC 6121. Note that it uses 'jabber:client' as namespace, but since the same <body/> element is also defined in the 'jabber:server' namespace, recipients MUST accept both.
Clients MUST expect multiple public keys to be announced for a single remote entity. In this case all keys MUST be used for encryption.
Clients MAY want to use the mechanism in XEP-0373 § 5 to synchronize their secret key(s) over multiple devices. Thus, they should query the user's PEP service for an eventually stored encrypted secret key.
Only <signcrypt/> MUST be used for the IM use case. Encrypted but unsigned messages (<crypt/>) do not provide an advantage over unencrypted ones since the sender can not be verified. As result of this rule, the user interface of IM clients implementing the protocol defined herein MUST NOT provide an option for the user to select between sign+crypt, sign or crypt. This also increases the usability.
In the IM use case every <message/> equipped with <openpgp/> SHOULD include an unencrypted <body/> explaining that the actual message is encrypted. Furthermore the message SHOULD contain a 'store' hint as defined in Message Processing Hints (XEP-0334) [6] § 4.4
<message to='juliet@example.org'> <body>This message is encrypted using OpenPGP.</body> <store xmlns='urn:xmpp:hints'/> <openpgp xmlns='urn:xmpp:openpgp:0'> BASE64_OPENPGP_MESSAGE_CONTAINING__CONTENT_ELEMENT </openpgp> </message>
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [7].
The XMPP Registrar [8] includes 'urn:xmpp:openpgp:0' in its registry of protocol namespaces (see <http://xmpp.org/registrar/namespaces.html>).
This XEP does not define a Schema, since it exclusively uses elements from XEP-0373 and other XEPs.
Please refer to the Acknowledgements section of XEP-0373, since the two XEPs where designed together.
Series: XEP
Number: 0374
Publisher: XMPP Standards Foundation
Status:
Experimental
Type:
Standards Track
Version: 0.1.1
Last Updated: 2016-06-04
Approving Body: XMPP Council
Dependencies: XMPP Core, XEP-0030, XEP-0373
Supersedes: None
Superseded By: None
Short Name: oxim
Source Control:
HTML
This document in other formats:
XML
PDF
Email:
flo@geekplace.eu
JabberID:
flo@geekplace.eu
Email:
dominik@dominikschuermann.de
JabberID:
dominik@dominikschuermann.de
Email:
look@my.amazin.horse
JabberID:
valodim@stratum0.org
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.
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. XEP-0373: OpenPGP for XMPP <http://xmpp.org/extensions/xep-0373.html>.
2. XEP-0030: Service Discovery <http://xmpp.org/extensions/xep-0030.html>.
3. RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence <http://tools.ietf.org/html/rfc6121>.
4. XEP-0085: Chat State Notifications <http://xmpp.org/extensions/xep-0085.html>.
5. XEP-0071: XHTML-IM <http://xmpp.org/extensions/xep-0071.html>.
6. XEP-0334: Message Processing Hints <http://xmpp.org/extensions/xep-0334.html>.
7. 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/>.
8. 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/>.
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/
Minior editorial fixes.
(fs)Initial published version approved by the XMPP Council.
(XEP Editor (ssw))First draft.
(fs)END