OpenPGP for XMPP Instant Messaging (original) (raw)
- Introduction
- OX Instant Messaging Profile
- Business Rules
- IANA Considerations
- XMPP Registrar Considerations
- XML Schema
- Acknowledgements
Appendices
- Document Information
- Author Information
- Legal Notices
- Relation to XMPP
- Discussion Venue
- Requirements Conformance
- Notes
- Revision History
- Bib(La)Tex Entry
1. Introduction¶
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 Encryption (XEP-0384) [2], 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.
2. OX Instant Messaging Profile¶
2.1 Discovering Support¶
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) [3] feature of 'urn:xmpp:openpgp:im:0'. It thus includes this feature in response to a service discovery request.
Example 1. Service Discovery information request¶
Example 2. Service Discovery information response¶
... ...
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.
2.2 OpenPGP Secured Instant Messaging¶
In order to establish an 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 OpenPGP for XMPP (XEP-0373) [1]§ 4.
After the required public keys have been discovered, XMPP clients engage in an OpenPGP secured IM conversation by exchanging extension elements. They MUST use the OpenPGP content element specified inOpenPGP for XMPP (XEP-0373) [1]§ 3.1.
The child elements of the OpenPGP content element's can be seen as stanza extension elements which are encrypted and signed. After the element and the including , 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 in the context of IM could be:
- Message bodies (RFC 6121 [4] § 5.2.3):
- Chat State Notifications (XEP-0085) [5]:
- XHTML-IM (XEP-0071) [6]:
But just as with stanza extension elements, child elements of can be any extension element. The example above uses the element as defined in RFC 6121. Note that it uses 'jabber:client' as namespace, but since the same element is also defined in the 'jabber:server' namespace, recipients MUST accept both.
2.3 OpenPGP Key Handling¶
2.3.1 Choosing Public Keys¶
Clients MUST expect multiple public keys to be announced for a single remote entity. In this case all keys MUST be used for encryption.
2.3.2 OpenPGP Secret Key Synchronization¶
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.
3. Business Rules¶
3.1 Always Use ¶
Only MUST be used for the IM use case. Encrypted but unsigned messages () 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.
3.2 Provide Hints¶
In the IM use case every equipped with SHOULD include an unencrypted explaining that the actual message is encrypted. Furthermore the message SHOULD contain a 'store' hint as defined in Message Processing Hints (XEP-0334) [7] § 4.4 and a "this message contains an encrypted body text" hint in form of an extension element as specified byExplicit Message Encryption (XEP-0380) [8].
Example 3. An encrypted and signed message with hints.¶
This message is encrypted using OpenPGP. BASE64_OPENPGP_MESSAGE_CONTAINING_CONTENT_ELEMENT4. IANA Considerations¶
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [9].
5. XMPP Registrar Considerations¶
6. XML Schema¶
This XEP does not define a Schema, since it exclusively uses elements fromOpenPGP for XMPP (XEP-0373) [1] and other XEPs.
7. Acknowledgements¶
Please refer to theAcknowledgements section of OpenPGP for XMPP (XEP-0373) [1] since the two XEPs where designed together.
Appendices
Appendix A: Document Information¶
Series
Number
0374
Publisher
Status
Type
Version
0.2.0
Last Updated
2018-01-25
Approving Body
Dependencies
Supersedes
None
Superseded By
None
Short Name
oxim
Source Control
This document in other formats:XML PDF
Appendix B: Author Information¶
Florian Schmaus
JabberID
Dominik Schürmann
JabberID
Vincent Breitmoser
JabberID
Appendix C: Legal Notices¶
Copyright
This XMPP Extension Protocol is copyright © 1999 – 2024 by the XMPP Standards Foundation (XSF).
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.
Disclaimer of 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. ##
Limitation of 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.
IPR 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 <https://xmpp.org/about/xsf/ipr-policy> or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).
Visual Presentation
The HTML representation (you are looking at) is maintained by the XSF. It is based on the YAML CSS Framework, which is licensed under the terms of the CC-BY-SA 2.0 license.
Appendix D: Relation to XMPP¶
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.
Appendix E: Discussion Venue¶
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 <https://xmpp.org/community/> for a complete list.
Errata can be sent to <editor@xmpp.org>.
Appendix F: Requirements Conformance¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.
Appendix G: Notes¶
Appendix H: Revision History¶
Note: Older versions of this specification might be available at https://xmpp.org/extensions/attic/
- Version 0.2.0 (2018-01-25)¶
Defer due to lack of activity.
XEP Editor (jwi) - Version 0.1.2 (2017-01-20)¶
Make use of XEP-0380: Explicit Message Encryption.
fs - Version 0.1.1 (2016-06-04)¶
Minior editorial fixes.
fs - Version 0.1 (2016-05-10)¶
Initial published version approved by the XMPP Council.
XEP Editor (ssw) - Version 0.0.1 (2016-03-25)¶
First draft.
fs
Appendix I: Bib(La)TeX Entry
@report{schmaus2016oxim, title = {OpenPGP for XMPP Instant Messaging}, author = {Schmaus, Florian and Schürmann, Dominik and Breitmoser, Vincent}, type = {XEP}, number = {0374}, version = {0.2.0}, institution = {XMPP Standards Foundation}, url = {https://xmpp.org/extensions/xep-0374.html}, date = {2016-03-25/2018-01-25}, }
END