-
Notifications
You must be signed in to change notification settings - Fork 0
/
draft-muffett-end-to-end-secure-messaging-01-vs-00.diff
1247 lines (939 loc) · 44.3 KB
/
draft-muffett-end-to-end-secure-messaging-01-vs-00.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
*** text/draft-muffett-end-to-end-secure-messaging-00.txt 2021-05-19 05:57:48.000000000 +0100
--- text/draft-muffett-end-to-end-secure-messaging-01.txt 2021-05-24 14:05:16.000000000 +0100
***************
*** 4,15 ****
individual submission A. Muffett
Internet-Draft Security Researcher
! Intended status: Informational 7 May 2021
! Expires: 8 November 2021
Functional Definition of End-to-End Secure Messaging
! draft-muffett-end-to-end-secure-messaging-00
Abstract
--- 4,15 ----
individual submission A. Muffett
Internet-Draft Security Researcher
! Intended status: Informational 24 May 2021
! Expires: 25 November 2021
Functional Definition of End-to-End Secure Messaging
! draft-muffett-end-to-end-secure-messaging-01
Abstract
***************
*** 33,39 ****
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 8 November 2021.
Copyright Notice
--- 33,39 ----
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 25 November 2021.
Copyright Notice
***************
*** 53,97 ****
! Muffett Expires 8 November 2021 [Page 1]
Internet-Draft e2esm May 2021
Table of Contents
! 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1. Comments . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2. Notational Conventions . . . . . . . . . . . . . . . . . 3
! 2. Requirements for an End-to-End Secure Messenger . . . . . . . 3
! 3. Principles . . . . . . . . . . . . . . . . . . . . . . . . . 3
! 3.1. Equality of Participation . . . . . . . . . . . . . . . . 3
! 3.2. Transparency of Participation . . . . . . . . . . . . . . 4
! 3.3. Integrity of Participation . . . . . . . . . . . . . . . 4
! 3.3.1. Retransmission Exception . . . . . . . . . . . . . . 4
! 3.3.2. Non-Participation . . . . . . . . . . . . . . . . . . 4
! 3.4. Closure of Conversation . . . . . . . . . . . . . . . . . 4
! 3.4.1. Public Conversations and Self-Subscription . . . . . 4
! 3.5. Management and Visibility of Participant Clients and
! Devices . . . . . . . . . . . . . . . . . . . . . . . . . 4
! 4. Definitions . . . . . . . . . . . . . . . . . . . . . . . . . 5
! 4.1. Participant . . . . . . . . . . . . . . . . . . . . . . . 5
! 4.2. Conversation . . . . . . . . . . . . . . . . . . . . . . 5
! 4.3. Plaintext Content and Sensitive Metadata (PCASM) . . . . 5
! 4.3.1. Content PCASM . . . . . . . . . . . . . . . . . . . . 5
! 4.3.2. Size PCASM . . . . . . . . . . . . . . . . . . . . . 5
! 4.3.3. Descriptive PCASM . . . . . . . . . . . . . . . . . . 6
! 4.3.4. Conversation Metadata (OPTIONAL) . . . . . . . . . . 6
! 4.3.5. Non-PCASM . . . . . . . . . . . . . . . . . . . . . . 6
! 4.4. Backdoor . . . . . . . . . . . . . . . . . . . . . . . . 7
! 4.4.1. Why call this a "backdoor"? . . . . . . . . . . . . . 7
! 5. Scope of a Participant in E2ESM . . . . . . . . . . . . . . . 8
! 6. Rationale . . . . . . . . . . . . . . . . . . . . . . . . . . 8
! 7. See Also . . . . . . . . . . . . . . . . . . . . . . . . . . 9
! 8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 9
! 9. Security Considerations . . . . . . . . . . . . . . . . . . . 9
! 10. Informative References . . . . . . . . . . . . . . . . . . . 9
! Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 10
1. Introduction
--- 53,125 ----
! Muffett Expires 25 November 2021 [Page 1]
Internet-Draft e2esm May 2021
Table of Contents
! 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1. Comments . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2. Notational Conventions . . . . . . . . . . . . . . . . . 3
! 2. Requirements for an End-to-End Secure Messenger . . . . . . . 4
! 3. Definitions . . . . . . . . . . . . . . . . . . . . . . . . . 4
! 3.1. Message and Platform . . . . . . . . . . . . . . . . . . 4
! 3.2. Plaintext Content and Sensitive Metadata (PCASM) . . . . 4
! 3.2.1. Content PCASM . . . . . . . . . . . . . . . . . . . . 5
! 3.2.2. Size PCASM . . . . . . . . . . . . . . . . . . . . . 5
! 3.2.3. Analytic PCASM . . . . . . . . . . . . . . . . . . . 5
! 3.2.4. Conversation Metadata (OPTIONAL) . . . . . . . . . . 5
! 3.3. Entity . . . . . . . . . . . . . . . . . . . . . . . . . 5
! 3.4. Sender and Recipient . . . . . . . . . . . . . . . . . . 5
! 3.5. Participants and Non-Participants . . . . . . . . . . . . 6
! 3.6. Conversation, Group, De-/Centralised . . . . . . . . . . 6
! 3.7. Backdoor . . . . . . . . . . . . . . . . . . . . . . . . 6
! 4. Principles . . . . . . . . . . . . . . . . . . . . . . . . . 6
! 4.1. Transparency of Participation . . . . . . . . . . . . . . 6
! 4.2. Integrity of Participation . . . . . . . . . . . . . . . 7
! 4.2.1. Retransmission Exception . . . . . . . . . . . . . . 7
! 4.3. Equality of Participation . . . . . . . . . . . . . . . . 7
! 4.4. Closure of Conversation . . . . . . . . . . . . . . . . . 7
! 4.4.1. Public Conversations and Self-Subscription . . . . . 7
! 4.5. Management of Participant Clients and Devices . . . . . . 7
! 5. Rationales . . . . . . . . . . . . . . . . . . . . . . . . . 8
! 5.1. Why: Content PCASM . . . . . . . . . . . . . . . . . . . 8
! 5.2. Why: Size PCASM . . . . . . . . . . . . . . . . . . . . . 8
! 5.3. Why: Analytic PCASM . . . . . . . . . . . . . . . . . . . 8
! 5.4. Why: Conversation Metadata as OPTIONAL PCASM . . . . . . 8
! 5.5. Why: Entity and Participant . . . . . . . . . . . . . . . 8
! 5.6. Why: Backdoor . . . . . . . . . . . . . . . . . . . . . . 9
! 5.7. Why: Transparency of Participation . . . . . . . . . . . 10
! 5.8. Why: Integrity of Participation . . . . . . . . . . . . . 10
! 5.9. Why: Equality of Participation . . . . . . . . . . . . . 11
! 5.10. Why: Closure of Conversation . . . . . . . . . . . . . . 11
! 5.11. Why: Management of Participant Clients and Devices . . . 11
! 6. OPTIONAL Features of E2ESM . . . . . . . . . . . . . . . . . 12
! 6.1. Disappearing Messages . . . . . . . . . . . . . . . . . . 12
! 6.2. Mutual Identity Verification . . . . . . . . . . . . . . 12
! 7. Examples of PCASM . . . . . . . . . . . . . . . . . . . . . . 12
! 7.1. Content PCASM . . . . . . . . . . . . . . . . . . . . . . 12
! 7.2. Size PCASM . . . . . . . . . . . . . . . . . . . . . . . 13
! 7.3. Analytic PCASM . . . . . . . . . . . . . . . . . . . . . 13
! 7.4. Conversation Metadata as OPTIONAL PCASM . . . . . . . . . 13
! 7.5. Non-PCASM . . . . . . . . . . . . . . . . . . . . . . . . 14
! 8. Worked Example . . . . . . . . . . . . . . . . . . . . . . . 14
!
!
!
! Muffett Expires 25 November 2021 [Page 2]
!
! Internet-Draft e2esm May 2021
!
!
! 9. See Also . . . . . . . . . . . . . . . . . . . . . . . . . . 15
! 10. Live Drafts . . . . . . . . . . . . . . . . . . . . . . . . . 15
! 11. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 15
! 12. Security Considerations . . . . . . . . . . . . . . . . . . . 15
! 13. Informative References . . . . . . . . . . . . . . . . . . . 15
! Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 16
1. Introduction
***************
*** 106,132 ****
central server. So therefore E2ESM is often narrowly regarded in
terms of "end-to-end encryption".
-
-
-
- Muffett Expires 8 November 2021 [Page 2]
-
- Internet-Draft e2esm May 2021
-
-
Other architectural approaches exist - for instance [RicochetRefresh]
which implements closed distribution by using secure point-to-point
[RFC7686] networking to literally restrict the distribution of
! plaintext content to relevant participants.
Therefore we describe E2ESM in terms of functional behaviours of the
! software rather than in terms of implementation goals and
technologies.
1.1. Comments
Comments are solicited and should be addressed to the working group's
! mailing list TODO and/or the author(s).
1.2. Notational Conventions
--- 134,152 ----
central server. So therefore E2ESM is often narrowly regarded in
terms of "end-to-end encryption".
Other architectural approaches exist - for instance [RicochetRefresh]
which implements closed distribution by using secure point-to-point
[RFC7686] networking to literally restrict the distribution of
! content to relevant participants.
Therefore we describe E2ESM in terms of functional behaviours of the
! software rather than in terms of its implementation goals and
technologies.
1.1. Comments
Comments are solicited and should be addressed to the working group's
! mailing list and/or the author(s).
1.2. Notational Conventions
***************
*** 136,353 ****
14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
2. Requirements for an End-to-End Secure Messenger
Software which functions as an End-to-End Secure Messenger MUST
satisfy the following principles, and MUST satisfy these principles
in respect of the provided definitions for all forms of communication
! and data-sharing that the software offers.
Any software that does not satisfy these requirements is not an End-
to-End Secure Messenger, and it does not implement End-to-End Secure
Messaging, nor does it implement End-to-End Encrypted Messaging.
! 3. Principles
! For a series of one or more "messages" each which are composed of
! "plaintext content and sensitive metadata" (PCASM) and which
! constitute a "conversation" amongst a set of "participants", to
! provide E2ESM will require:
! 3.1. Equality of Participation
! All participants MUST be peers who MUST have equal access to any
! given message's PCASM.
! Muffett Expires 8 November 2021 [Page 3]
Internet-Draft e2esm May 2021
! 3.2. Transparency of Participation
! The existence of all current conversation participants MUST be
! visible at the current time to all current conversation participants.
! 3.3. Integrity of Participation
! Excusing the "retransmission exception", PCASM of any given message
! MUST only be available to the fixed set of conversation participants
! from whom, to whom, and at the time when it was sent.
! 3.3.1. Retransmission Exception
! If a participant that can access an "original" message intentionally
! "retransmits" (e.g. quotes, forwards) that message to create a new
! message within the E2ESM software, then the original message's PCASM
! MAY become available to a new, additional, and possibly different set
! of conversation participants, via that new message.
! 3.3.2. Non-Participation
! It follows that for any given message, all entities that exist
! outside of the above-defined sets of participants will be "non-
! participants" in respect of that message.
! 3.4. Closure of Conversation
! The set of participants in a conversation SHALL NOT be increased
! except by the intentional action of one or more existing
participants.
! 3.4.1. Public Conversations and Self-Subscription
! Existing participants MAY publicly share links, data, or other
! mechanisms to enable non-participant entities to subscribe themselves
! as conversation participants. This MAY be considered legitimate
! "intentional action" to increase the set of participants in the
! group.
! 3.5. Management and Visibility of Participant Clients and Devices
! E2ESM software MUST provide each participant entity with means to
! review or revoke access for clients or devices that can access future
! PCASM.
- E2ESM software MUST provide each participant entity with
- notifications and/or complete logs of changes to the set of clients
- or devices that can or could access message PCASM.
! Muffett Expires 8 November 2021 [Page 4]
Internet-Draft e2esm May 2021
! 4. Definitions
! These principles MUST be measured with respect to the following
! definitions:
! 4.1. Participant
! A participant is any entity - human, machine, software bot,
! conversation archiver, or other, that is bounded by the extent of
! that entity's [TrustedComputingBase].
! 4.2. Conversation
! A conversation is a sequence of one or more messages over a period of
! time amongst a constant or evolving set of participants.
! 4.3. Plaintext Content and Sensitive Metadata (PCASM)
! The PCASM of a message is defined as any of:
! 4.3.1. Content PCASM
! Content PCASM is any data that can offer better than 50-50 certainty
! regarding the value of any given bit of the plaintext message
! content. ("content")
! Content PCASM would include, non-exclusively:
! 1. The content is "Hello, world."
! 2. The content starts with the word "Hello"
! 3. The top bit of the first byte of the content in ASCII encoding,
! is zero
- 4. The MD5 hash of the content is 080aef839b95facf73ec599375e92d47
- 5. The Salted-MD5 Hash of the content is : ...
- 4.3.2. Size PCASM
! For block encryption of content, Size PCASM is the unpadded size of
! the content.
! For stream encryption of content, Size PCASM is currently undefined.
- For transport encryption of content, precise Size PCASM SHOULD NOT be
- observable.
! Muffett Expires 8 November 2021 [Page 5]
! Internet-Draft e2esm May 2021
! 4.3.3. Descriptive PCASM
! Descriptive PCASM is data that describes the "content".
! Descriptive PCASM would include, non-exclusively:
! 1. The content contains the substring "ello"
! 2. The content does not contain the word "Goodbye"
! 3. The content contains a substring from amongst the following set:
! ...
! 4. The content does not contain a substring from amongst the
! following set: ...
! 5. The hash of the content exists amongst the following set of
! hashes: ...
! 6. The hash of the content does not exist amongst the following set
! of hashes: ...
! 7. The content was matched by a machine-learning classifier with the
! following training set: ...
- 4.3.4. Conversation Metadata (OPTIONAL)
- Whether per-conversation "group" metadata, such as "group titles",
- "group topics", "group icons", or "group participant lists"
- constitute PCASM, is an OPTIONAL choice for the E2ESM software, but
- that choice MUST be made apparent to participants.
- 4.3.5. Non-PCASM
! Information which would not be PCASM would include, non-exclusively:
! 1. The content is sent from Alice
- 2. The content is sent to Bob
! 3. The content is between 1 and 16 bytes long
! 4. The content was sent at the following date and time: ...
! 5. The content was sent from the following IP address: ...
! 6. The content was sent from the following geolocation: ...
! Muffett Expires 8 November 2021 [Page 6]
Internet-Draft e2esm May 2021
! 7. The content was composed using the following platform: ...
! 4.4. Backdoor
! A "backdoor" is any intentional or unintentional mechanism, in
! respect of a given message and that message's set of participants,
! where some PCASM of that message MAY become available to a non-
! participant without the intentional action of a participant.
! 4.4.1. Why call this a "backdoor"?
In software engineering there is a perpetual tension between the
concepts of "feature" versus "bug" - and occasionally "misfeature"
--- 156,474 ----
14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
+
+
+
+
+
+
+
+
+
+ Muffett Expires 25 November 2021 [Page 3]
+
+ Internet-Draft e2esm May 2021
+
+
2. Requirements for an End-to-End Secure Messenger
Software which functions as an End-to-End Secure Messenger MUST
satisfy the following principles, and MUST satisfy these principles
in respect of the provided definitions for all forms of communication
! and data-sharing that the software offers. The software MAY comprise
! either a complete application, or a clearly defined subset of
! functionality within a larger application.
Any software that does not satisfy these requirements is not an End-
to-End Secure Messenger, and it does not implement End-to-End Secure
Messaging, nor does it implement End-to-End Encrypted Messaging.
! 3. Definitions
! These definitions are drafted in respect of many examples of software
! commonly held to offer (or have offered) end-to-end security; these
! examples include:
!
! 1. Signal Messenger
!
! 2. WhatsApp Messenger
!
! 3. Ricochet Messenger
!
! 4. PGP-Encrypted Email (in limited circumstances)
!
! Further context for several of these definitions can also be found in
! the rationales section, below.
!
! 3.1. Message and Platform
!
! A "message" is information of 0 or more bits, to be communicated.
!
! Messages possess both plaintext "content", and also "metadata" which
! describes the content.
! A "platform" is a specific instance of software which exists for the
! purpose of exchanging messages.
! 3.2. Plaintext Content and Sensitive Metadata (PCASM)
+ The "PCASM" of a message is defined as the "plaintext content and
+ sensitive metadata" of that message, comprising any or all of:
!
! Muffett Expires 25 November 2021 [Page 4]
Internet-Draft e2esm May 2021
! 3.2.1. Content PCASM
! Content PCASM is any data that can offer better than 50-50 certainty
! regarding the value of any bit of the content.
! 3.2.2. Size PCASM
! For block encryption of content, Size PCASM is the unpadded size of
! the content.
! For stream encryption of content, Size PCASM is currently undefined
! (TBD)
! For transport encryption of content, exact Size PCASM SHOULD NOT be
! observable or inferable.
! 3.2.3. Analytic PCASM
! Analytic PCASM is data which analyses, describes, reduces, or
! summarises the "content".
! 3.2.4. Conversation Metadata (OPTIONAL)
! Conversation Metadata MAY exist "outside" of messages and describe
! the conversation context.
!
! Whether conversation metadata constitutes PCASM, is an OPTIONAL
! choice for E2ESM software, but that choice MUST be apparent to
participants.
! 3.3. Entity
! An "entity" is a human, machine, software bot, conversation archiver,
! or other, which sends and/or receives messages.
! Entities are bounded by the extent of their Trusted Computing Base
! ("TCB"), including all systems that they control and/or utilise.
! 3.4. Sender and Recipient
!
! A "sender" is an entity which composes and sends messages.
!
! A "recipient" is an entity which receives messages and MAY be able to
! access the PCASM of those messages.
!
! For each message there will be one sender and one or more recipients.
!
! Muffett Expires 25 November 2021 [Page 5]
Internet-Draft e2esm May 2021
! 3.5. Participants and Non-Participants
! The union set of sender and recipients for any given message are the
! "participants" in that message.
! It follows that for any given message, all entities that exist
! outside of the participant set will be "non-participants" in respect
! of that message.
! 3.6. Conversation, Group, De-/Centralised
! A "conversation" is a sequence of one or more messages, and the
! responses or replies to them, over a period of time, amongst a
! constant or evolving set of participants.
! A given platform MAY distinguish between and support more than one
! conversation at any given time.
! In "centralised" E2ESM such as WhatsApp or Signal, the software MAY
! offer collective "group" conversation contexts that provide
! prefabricated sets of recipients for the client to utilise when a
! message is composed or sent.
! In "decentralised" E2ESM such as PGP-Encrypted Email or (somewhat)
! Ricochet, the recipients of each message are individually determined
! by each sender at the point of composition; however "group" metadata
! may also exist, in terms of (e.g.) email addressees or subject lines.
! 3.7. Backdoor
! A "backdoor" is any intentional or unintentional mechanism, in
! respect of a given message and that message's set of participants,
! where some PCASM of that message MAY become available to a non-
! participant without the intentional action of a participant.
! 4. Principles
! For a series of one or more "messages" each which are composed of
! "plaintext content and sensitive metadata" (PCASM) and which
! constitute a "conversation" amongst a set of "participants", to
! provide E2ESM will require:
! 4.1. Transparency of Participation
! In the nature of "closed distribution lists", the participants in a
! message MUST be frozen into an immutable set at the moment when the
! message is composed or sent.
! Muffett Expires 25 November 2021 [Page 6]
! Internet-Draft e2esm May 2021
+ The complete set of all recipients MUST be visible to the sender at
+ the moment of message composition or sending.
+ The complete set of participants in a message MUST be visible to all
+ other participants.
! 4.2. Integrity of Participation
! Excusing the "retransmission exception", PCASM of any given message
! MUST only be available to the fixed set of conversation participants
! from whom, to whom, and at the time when it was sent.
+ 4.2.1. Retransmission Exception
! If a participant that can access an "original" message intentionally
! "retransmits" (e.g. quotes, forwards) that message to create a new
! message within the E2ESM software, then the original message's PCASM
! MAY become available to a new, additional, and possibly different set
! of conversation participants, via that new message.
! 4.3. Equality of Participation
! All participants MUST be peers who MUST have equal means of access to
! the PCASM of any message; see also "Integrity of Participation".
! 4.4. Closure of Conversation
! The set of participants in a conversation SHALL NOT be increased
! except by the intentional action of one or more existing
! participants.
! 4.4.1. Public Conversations and Self-Subscription
! Existing participants MAY publicly share links, data, or other
! mechanisms to enable non-participant entities to subscribe themselves
! as conversation participants. This MAY be considered legitimate
! "intentional action" to increase the set of participants in the
! group.
! 4.5. Management of Participant Clients and Devices
! Where there exists centralised E2ESM software that hosts
! participants:
! 1. The E2ESM software MUST provide each participant entity with
! means to review or revoke access for clients or devices that can
! access future PCASM.
! Muffett Expires 25 November 2021 [Page 7]
! Internet-Draft e2esm May 2021
! 2. The E2ESM software MUST provide each participant entity with
! notifications and/or complete logs of changes to the set of
! clients or devices that can or could access message PCASM.
! 5. Rationales
! This explanatory section regarding the principles has been broken out
! for clarity and argumentation purposes.
! 5.1. Why: Content PCASM
!
! Content PCASM MUST be protected as it comprises that which is
! "closed" from general distribution.
!
! 5.2. Why: Size PCASM
!
! Exact size PCASM MUST be protected as it MAY offer insight into
! Content PCASM.
!
! 5.3. Why: Analytic PCASM
!
! Analytic PCASM MUST be protected as it MAY offer insight into Content
! PCASM.
!
! 5.4. Why: Conversation Metadata as OPTIONAL PCASM
!
! Conversational Metadata MAY offer insight into Content PCASM, however
! the abstractions of transport mechanism, group management, or
! platform choice, MAY render this irrelevant.
+ For example an PGP-Encrypted email distribution list named
+ "[email protected]" would leak its implicit topic and
+ participant identities to capable observers.
+ 5.5. Why: Entity and Participant
+ The term "participant" in this document exists to supersede the more
+ vague notion of "end" in the phrase "end-to-end".
+
+ Entities, and thus participants, are defined in terms of their
+ [TrustedComputingBase] to acknowledge that an entity MAY legitimately
+ store, forward, or access messages by means that are outside of the
+ E2ESM software.
! It is important to note that the concept of "entity" as defined by
! their TCB, is the foundation for all other trust in E2ESM. This
! develops from the basic definitions of a [TrustedComputingBase] and
! from the concepts of "trust-to-trust" discussed in [RoleOfTrust].
!
!
!
! Muffett Expires 25 November 2021 [Page 8]
Internet-Draft e2esm May 2021
! Failure of a participant to maintain integrity or control over their
! TCB should not be considered a failure of an E2ESM that connects it
! to other participants.
! For example: if a participant accesses their E2ESM software via
! remote desktop software, and their RDP session is hijacked by a third
! party; of if they back-up their messages in cleartext to cloud
! storage leading somehow to data exfiltration, neither of these would
! be a failure of E2ESM. This would instead be a failure of the
! participant's [TrustedComputingBase].
! Further: it would be obviously possible to burden an E2ESM with
! surfacing potential integrity issues of any given participant to
! other participants, e.g. "patch compliance". But to require such in
! this standard would risk harming the privacy of the participant
! entity. See also: "Mutual Identity Verification" in "OPTIONAL
! Features of E2ESM"
! 5.6. Why: Backdoor
In software engineering there is a perpetual tension between the
concepts of "feature" versus "bug" - and occasionally "misfeature"
***************
*** 355,361 ****
- that it is not feasible to firmly and completely ascribe
"intention" to any hardware or software mechanism.
! The information security community have experienced a historical
spectrum of mechanisms which have assisted non-participant access to
PCASM. These have variously been named as "export-grade key
restrictions" (TLS, then Logjam), "side channel attacks" (Spectre and
--- 476,482 ----
- that it is not feasible to firmly and completely ascribe
"intention" to any hardware or software mechanism.
! The information security community has experienced a historical
spectrum of mechanisms which have assisted non-participant access to
PCASM. These have variously been named as "export-grade key
restrictions" (TLS, then Logjam), "side channel attacks" (Spectre and
***************
*** 372,377 ****
--- 493,511 ----
of access is clearly the "front door"; and any other access mechanism
is a "back door".
+
+
+
+
+
+
+
+
+ Muffett Expires 25 November 2021 [Page 9]
+
+ Internet-Draft e2esm May 2021
+
+
If the term "back door" is considered innately pejorative,
alternative, uncertain constructions such as "illegitimate access
feature", "potentially intentional data-access weakness", "legally-
***************
*** 384,421 ****
already allow for the term to be prefixed with "intentional" or
"unintentional".
! Muffett Expires 8 November 2021 [Page 7]
Internet-Draft e2esm May 2021
! Thus it seems appropriate to use this term in this context, not least
! because it is also not far removed from the similar and established
! term "side channel".
! 5. Scope of a Participant in E2ESM
! The term "participant" in this document exists to supercede the more
! vague notion of "end" in the phrase "end-to-end".
! Participants are defined in terms of an entity's
! [TrustedComputingBase] to acknowledge that an entity MAY legitimately
! store, forward, or access messages by means that are outside of the
! E2ESM software.
! For example: if a participant accesses their E2ESM software via
! remote desktop software, and their RDP session is hijacked by a third
! party; of if they back-up their messages in cleartext to cloud
! storage leading somehow to data exfiltration, neither of these would
! be a failure of E2ESM. This would instead be a failure of the
! participant's [TrustedComputingBase].
! 6. Rationale
Consider FooBook, a hypothetical example company which provides
messaging services for conversations between entities who use it.
--- 518,754 ----
already allow for the term to be prefixed with "intentional" or
"unintentional".
+ Thus it seems appropriate to use this term in this context, not least
+ because it is also not far removed from the similar and established
+ term "side channel".
+
+ 5.7. Why: Transparency of Participation
+
+ The "ends" of "end to end" are the participants; for a message to be
+ composed to be exclusively accessible to that set of participants,
+ all participants must be visible.
+
+ For "virtual peer-to-peer" E2ESM solutions such as "Email with PGP"
+ or (to a limited extent) "Ricochet", the set of participants is fixed
+ by the author at the time of individual message composition, and MUST
+ be visible to all participants.
+
+ For "centralised" E2ESM solutions such as Signal or WhatsApp, the set
+ of participants is a "group context" shared amongst all participants
+ and at the time of individual message composition it MUST be
+ inherited into a set of "fixed" per-participant access capabilities
+ by the author.
+
+ 5.8. Why: Integrity of Participation
+ Inherent in the term "end to end secure messenger" is the intention
+ that PCASM will only be available to the participants ("ends") at the
+ time the message was composed.
+ If this was not the intention we would deduce that an E2ESM would
+ automatically make past content available to newly-added conversation
+ participants, thereby breaking forward secrecy. This is not a
+ characteristic of any E2ESM, but it is characteristic of several non-
+ E2ESM. Therefore the converse is true.
!
!
!
!
! Muffett Expires 25 November 2021 [Page 10]
Internet-Draft e2esm May 2021
! 5.9. Why: Equality of Participation
! Without equality of participation it would be allowed for a person to
! deploy a standalone cleartext chat server, available solely over TLS-
! encrypted links, declare themselves to be "participants" in every
! conversation from its outset, access all message PCASM on that basis,
! and yet call themselves an E2ESM.
! So this is an "anti-cheating" clause: all participant access to PCASM
! MUST be via the same mechanisms for all participants without favour
! or privilege, and in particular PCASM MUST NOT be available via other
! means, e.g. raw block-device access, raw filestore, raw database
! access, or network sniffing.
! 5.10. Why: Closure of Conversation
! If a conversation is not "only extensible from within" then it would
! be possible for participants to be injected into the conversation
! thereby defeating the closure of message distribution.
!
! A subtle centralised vs: decentralised edge-case is as follows:
! consider a PGP-encrypted email distribution list. Would it break
! "closure of conversation" for a non-participant email administrator
! to simply add new users to the maillist?
!
! Answer: no, because in this case the maillist is functioning as a
! "platform" for multiple "conversation" threads, and mere addition of
! of a new "transport-level" maillist member would not include them as
! a participant in ongoing E2ESM conversations; such inclusion would be
! a future burden upon existing participants.
!
! However: similar external injection of a new entity into a
! centralised WhatsApp or Signal "group" would be clearly a breach of
! "closure of conversation".
!
! 5.11. Why: Management of Participant Clients and Devices
!
! There is little benefit in requiring conversations to be closed
! against "participant injection" if a non-participant may obtain PCASM
! access by forcing a platform to silently add extra means of PCASM
! access to an existing participant on behalf of that non-participant.
!
! Therefore to be an E2ESM the platform MUST provide the described
! management of participant clients and devices.
!
!
!
!
!
!
!
! Muffett Expires 25 November 2021 [Page 11]
!
! Internet-Draft e2esm May 2021
!
!
! 6. OPTIONAL Features of E2ESM
!
! 6.1. Disappearing Messages
!
! "Disappearing", "expiring", "exploding", "ephemeral" or other forms
! of time-limited access to PCASM are strongly RECOMMENDED but not
! obligatory mechanisms for E2ESM, not least because they are
! impossible to implement in a way that cannot be circumvented by e.g.
! screenshots.
!
! 6.2. Mutual Identity Verification
!
! Some manner of "shared key" which mutually assures participant
! identity and communications integrity are strongly RECOMMENDED but
! not obligatory mechanisms for E2ESM.
!
! The benefits of such mechanisms are limited to certain perspectives
! of certain platforms.
!
! For instance: in Ricochet the identity key of a user is the absolute
! source of truth for their identity, and excusing detection of
! typographic errors there is nothing which can be added to that in
! order to further assure their "identity".
!
! Similarly WhatsApp provides each participant with a "verifiable
! security QR code" and "security code change notifications", but these
! codes do not "leak" the number of "WhatsApp For Web" clients which
! are bound to that phone.
!
! Participant-client information of this kind MAY be a highly private
! aspect of that participant's TCB, and SHOULD be treated sensitively
! by platforms.
!
! 7. Examples of PCASM
!
! For an example message with content ("content") of "Hello, world.",
! for the purposes of this example encoded as an ASCII string of length
! 13 bytes without terminator character.
!
! 7.1. Content PCASM
!
! Examples of Content PCASM would include, non-exclusively:
!
! 1. The content is "Hello, world."
!
! 2. The content starts with the word "Hello"
!
! 3. The top bit of the first byte of the content, is zero
!
!
!
! Muffett Expires 25 November 2021 [Page 12]
!
! Internet-Draft e2esm May 2021
!
!
! 4. The MD5 hash of the content is 080aef839b95facf73ec599375e92d47
!
! 5. The Salted-MD5 Hash of the content is : ...
!
! 7.2. Size PCASM