Network Working Group | H. Marques |
Internet-Draft | pEp Foundation |
Intended status: Informational | B. Hoeneisen |
Expires: September 12, 2019 | Ucom.ch |
March 11, 2019 |
pretty Easy privacy (pEp): Mapping of Privacy Rating
draft-marques-pep-rating-01
In many Opportunistic Security scenarios end-to-end encryption is automatized for Internet users. In addition, it is often required to provide the users with easy means to carry out authentication.
Depending on several factors, each communication channel to different peers may have a different Privacy Status, e.g., unencrypted, encrypted and encrypted as well as authenticated. Even each message from/to a single peer may have a different Privacy Status.
To display the actual Privacy Status to the user, this document defines a Privacy Rating scheme and its mapping to a traffic-light semantics. A Privacy Status is defined on a per-message basis as well as on a per-identity basis. The traffic-light semantics (as color rating) allows for a clear and easily understandable presentation to the user in order to optimize the User Experience (UX).
This rating system is most beneficial to Opportunistic Security scenarios and is already implemented in several applications of pretty Easy privacy (pEp).
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on September 12, 2019.
Copyright (c) 2019 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
In many Opportunistic Security [RFC7435] scenarios end-to-end encryption is automatized for Internet users. In addition, it is often required to provide the users with easy means to carry out authentication.
Depending on several factors, each communication channel to different identities may have a different Privacy Status, e.g.
Even each message from or to a single peer may have a different Privacy Status.
To display the actual Privacy Status to the user, this document defines a Privacy Rating scheme and its mapping to a traffic-light semantics, i.e., a mapping to different color codes as used in a traffic-light:
Note: While “yellow” color is used in the context of traffic-lights (e.g., in North America), in other parts of the world (e.g., the UK) this is generally referred to as “orange” or “amber” lights. For the scope of this document, “yellow”, “amber”, and “orange” refer to the same semantics.
A Privacy Status is defined on a per-message basis as well as on a per-identity basis. The traffic-light semantics (as color rating) allows for a clear and easily understandable presentation to the user in order to optimize the User Experience (UX). To serve also (color-)blind Internet users or those using monochrome displays, the traffic light color semantics may also be presented by simple texts and symbols for signaling the corresponding Privacy Status.
The proposed definitions are already implemented and used in applications of pretty Easy privacy (pEp) [I-D.birk-pep]. This document is targeted to applications based on the pEp framework and Opportunistic Security [RFC7435]. However, it may be also used in other applications as suitable.
Note: The pEp [I-D.birk-pep] framework proposes to automatize the use of end-to-end encryption for Internet users of email and other messaging applications and introduces methods to easily allow authentication.
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in [RFC2119].
To rate messages (cf. also Appendix A.1), the following 13 Rating codes are defined as scalar values (decimal):
Rating code | Rating label |
---|---|
-3 | under attack |
-2 | broken |
-1 | mistrust |
0 | undefined |
1 | cannot decrypt |
2 | have no key |
3 | unencrypted |
4 | unencrypted for some |
5 | unreliable |
6 | reliable |
7 | trusted |
8 | trusted and anonymized |
9 | fully anonymous |
For an Internet user to understand what the available Privacy Status is, the following colors (traffic-light semantics) are defined:
Color code | Color label |
---|---|
-1 | red |
0 | no color |
1 | yellow |
2 | green |
Corresponding User Experience (UX) implementations use a surjective mapping of the Rating Codes into the Color Codes (in traffic light semantics) as follows:
Rating codes | Color code | Color label |
---|---|---|
-3 to -1 | -1 | red |
0 to 5 | 0 | no color |
6 | 1 | yellow |
7 to 9 | 2 | green |
This mapping is used in current pEp implementations to signal the Privacy Status (cf. Section 6.2).
The red color MUST only be used in three cases:
No specific (or a gray color) MUST be shown in the following cases:
By consequence that means, that the pEp propositions don’t strictly follow the TOFU (cf. [RFC7435]) approach, in order to avoid signaling trust without peers verifying their channel first.
In current pEp implementations (cf. Section 6) only rating code 7 is achieved.
The rating codes 8 and 9 are reserved for future use in pEp implementations which also secure meta-data (rating code 8), by using a peer-to-peer framework like GNUnet [GNUnet], and/or allow for fully anonymous communications (rating code 9), where sender and receiver don’t know each other, but trust between the endpoints could be established nevertheless.
The same Color Codes (red, no color, yellow and green) as for messages (cf. Section 3.2) MUST be applied for identities (peers), so that a user can easily understand, which identities private communication is possible with.
The green color code MUST be applied to an identity whom the pEp handshake [I-D.marques-pep-handshake] was successfully carried out with.
The yellow color code MUST be set whenever a public key could be obtained to securely encrypt messages to an identity, although a MITM attack cannot be excluded.
The no color code MUST be used for the case that no public key is available to engage in private communications with an identity.
The red color code MUST only be used when an identity is marked as mistrusted.
[[ It’s not yet clear if there are proper cases where it makes sense to set an identity automatically to the red color code, as it appears to be difficult to detect attacks (e.g., secret key leakage) at the other endpoint with certainty. ]]
[[ TODO ]]
This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [RFC7942]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist.
According to [RFC7942], “[…] this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit.”
The following software implementing the pEp protocols (to varying degrees) already exists:
pEp for Android, iOS and Outlook are provided by pEp Security, a commercial entity specializing in end-user software implementing pEp while Enigmail/pEp is pursued as community project, supported by the pEp Foundation.
All software is available as Free Software and published also in source form.
The authors would like to thank the following people who have provided feedback or significant contributions to the development of this document: Leon Schumacher and Volker Birk
This work was initially created by pEp Foundation, and then reviewed and extended with funding by the Internet Society’s Beyond the Net Programme on standardizing pEp. [ISOC.bnet]
[I-D.birk-pep] | Marques, H. and B. Hoeneisen, "pretty Easy privacy (pEp): Privacy by Default", Internet-Draft draft-birk-pep-03, March 2019. |
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997. |
[RFC4949] | Shirey, R., "Internet Security Glossary, Version 2", FYI 36, RFC 4949, DOI 10.17487/RFC4949, August 2007. |
[RFC7435] | Dukhovni, V., "Opportunistic Security: Some Protection Most of the Time", RFC 7435, DOI 10.17487/RFC7435, December 2014. |
This section provides excerpts of the running code from the pEp reference implementation pEp engine (C99 programming language).
From the reference implementation by the pEp foundation, src/message_api.h:
typedef enum _PEP_rating { PEP_rating_undefined = 0, PEP_rating_cannot_decrypt, PEP_rating_have_no_key, PEP_rating_unencrypted, PEP_rating_unencrypted_for_some, PEP_rating_unreliable, PEP_rating_reliable, PEP_rating_trusted, PEP_rating_trusted_and_anonymized, PEP_rating_fully_anonymous, PEP_rating_mistrust = -1, PEP_rating_b0rken = -2, PEP_rating_under_attack = -3 } PEP_rating;
[[ RFC Editor: This section is to be removed before publication ]]
[[ RFC Editor: This section should be empty and is to be removed before publication ]]