Re: [MLS] multiple devices per user?

Jon Millican <jmillican@fb.com> Sat, 24 March 2018 23:40 UTC

Return-Path: <prvs=6621c4c866=jmillican@fb.com>
X-Original-To: mls@ietfa.amsl.com
Delivered-To: mls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1C251127023 for <mls@ietfa.amsl.com>; Sat, 24 Mar 2018 16:40:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=fb.com header.b=fI7IDrfc; dkim=pass (1024-bit key) header.d=fb.onmicrosoft.com header.b=ZAAEWz5K
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6r3RJ_B_Wa-c for <mls@ietfa.amsl.com>; Sat, 24 Mar 2018 16:40:37 -0700 (PDT)
Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CA67612025C for <mls@ietf.org>; Sat, 24 Mar 2018 16:40:37 -0700 (PDT)
Received: from pps.filterd (m0044008.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2ONdiU9020962; Sat, 24 Mar 2018 16:40:36 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=facebook; bh=ZD0DXrv8TUqZ6qjPKfHa07pC/mOV2dJMAOB7W4PT5A4=; b=fI7IDrfc5Y700r2GZd8Wit4Qjtoki1yBLN/YGz+6QRMMrFCSFvnPXUIM3mE7vjeakzGC W2xrtWq/+sKbMzmOqo0huilIWQgDWFlNyD31YA3hYuvB10NJfBMb2BrGaimmSOi4aVdm LOCmoZCpK0B2MrCgdUZqHa6u4siDUF9Z4eM=
Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2gwxeq066p-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 24 Mar 2018 16:40:36 -0700
Received: from NAM03-DM3-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.19) with Microsoft SMTP Server (TLS) id 14.3.361.1; Sat, 24 Mar 2018 16:40:34 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZD0DXrv8TUqZ6qjPKfHa07pC/mOV2dJMAOB7W4PT5A4=; b=ZAAEWz5KG66xckAkeVoDklSfuBRfSsao0r2NTmOjJBOq+yaj50rCjmqIOwf7QtfvJlLpL/g1GS5equKJPDQDcBh7/oDdVgMYItOz74cbqPryLa0BDcLunxQJqrhlIH2k132s9j/a/cyHfyyPbPlCUezIT2yQ/lhYxQuHiYvpyHw=
Received: from CY4PR15MB1751.namprd15.prod.outlook.com (10.174.53.141) by CY4PR15MB1654.namprd15.prod.outlook.com (10.175.120.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Sat, 24 Mar 2018 23:40:32 +0000
Received: from CY4PR15MB1751.namprd15.prod.outlook.com ([fe80::c4ba:acd7:6982:b659]) by CY4PR15MB1751.namprd15.prod.outlook.com ([fe80::c4ba:acd7:6982:b659%17]) with mapi id 15.20.0609.012; Sat, 24 Mar 2018 23:40:32 +0000
From: Jon Millican <jmillican@fb.com>
To: Eric Rescorla <ekr@rtfm.com>, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
CC: "mls@ietf.org" <mls@ietf.org>
Thread-Topic: [MLS] multiple devices per user?
Thread-Index: AQHTw8Ae2CgUeIFvK0mYODDXyt5r4qPf+1KAgAAHQoCAAAjpgA==
Date: Sat, 24 Mar 2018 23:40:32 +0000
Message-ID: <B0F25392-0015-4322-8B4D-22E8E2A73375@fb.com>
References: <87efk9m7e9.fsf@fifthhorseman.net> <CABcZeBOAaA2_SRSimo2-x-jCw=YjvDsU7h0kPzU9WroTBBHoKA@mail.gmail.com> <02DC72FA-0C57-4A1B-920D-4B456121CC55@fb.com>
In-Reply-To: <02DC72FA-0C57-4A1B-920D-4B456121CC55@fb.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [82.39.102.11]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; CY4PR15MB1654; 7:2uOGKOALVpYY8CBKKqNy37gtIw4/mcn9vI7PSNLmSyISEmkXMgNm0Dph4pD93EiqxE1al9EFcGOpIAjW1m8oT3TRT/fSw5djKTj++ERrYVq0e99qaqtFepCQfCNc0cUldr6lrx1QBDFIlt+I1r3bWAHG0VZIVJbn31/R0gH47pxLU3NvRqMdwomzXkHOoLxtbgal106BpHomYFuJ+p4QdQBHR7bhT/9g6iZFKoyXx3oT6v2qmBcSpRh9aIbRVIuP; 20:dAWnus4zz2TnRzVcl34oOU2R2x1kAXzr8k3uGU2dHaILM0h0h1SmGzCzYs8yNCbJcIsB2aoR4miUuYqGfimyyFlNXNspGgCdOQKdKXSCHX+8tXQ9P6M8kgmJRyprxLS3tLB773hXAV0kJeGD8N3MI4vSUwfdhyiLSdt2ZjtrJmA=
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: a8c0793a-e76a-41f2-2bab-08d591e0a266
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CY4PR15MB1654;
x-ms-traffictypediagnostic: CY4PR15MB1654:
x-microsoft-antispam-prvs: <CY4PR15MB16545955F13289FFE7E7913ADAAF0@CY4PR15MB1654.namprd15.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(209352067349851)(192374486261705)(67672495146484)(81227570615382)(21748063052155)(211171220733660);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231221)(11241501184)(944501327)(52105095)(10201501046)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:CY4PR15MB1654; BCL:0; PCL:0; RULEID:; SRVR:CY4PR15MB1654;
x-forefront-prvs: 0621E7E436
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(376002)(366004)(39380400002)(39860400002)(346002)(199004)(189003)(76176011)(3846002)(83716003)(81166006)(6306002)(110136005)(14454004)(55236004)(186003)(53936002)(5250100002)(6116002)(3660700001)(25786009)(11346002)(6512007)(2906002)(6506007)(53546011)(26005)(3280700002)(102836004)(6436002)(99286004)(68736007)(236005)(59450400001)(446003)(316002)(4326008)(8936002)(5660300001)(86362001)(81156014)(7736002)(8676002)(478600001)(33656002)(2900100001)(229853002)(66066001)(82746002)(97736004)(6486002)(5890100001)(36756003)(106356001)(6246003)(54896002)(105586002)(2616005); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR15MB1654; H:CY4PR15MB1751.namprd15.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: RJLWthenUS7oIzuWh91GUs4LTawUdLFK+yp3zLMvCdmdzu23xXwCqpKBxsBFqCV5ZDZgvVvSDtjPwRxqQm7PHggnaGesDGZ3O+c9EUFlPxZ9IdF04Ivd5CDB1wBdEIPoUk4H8QZDcZnECy8aXDrnaH1oXzOyqZtZfOQwIcByDgZM1Dxyatr0fpP3wQr7W4uTivTq/IXlAr+AASltpa/yFx0I5TGBUfqBJPiVFSYx6O687sHZ5UAmr1O3D6dwLtszlKH86KuyUa+OKdR8/X08mpqWfeUnUbSFQ9Sa2GAY+nYPGQSyzFvZeTtFeXQM3q5XL9XsXWOlGsmZ4wNWZKhUCg==
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_B0F25392001543228B4D22E8E2A73375fbcom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: a8c0793a-e76a-41f2-2bab-08d591e0a266
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Mar 2018 23:40:32.5162 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR15MB1654
X-OriginatorOrg: fb.com
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-03-24_11:, , signatures=0
X-Proofpoint-Spam-Reason: safe
X-FB-Internal: Safe
Archived-At: <https://mailarchive.ietf.org/arch/msg/mls/kVPHmm5bdTdO8Hzn41Yn-W-FsHU>
Subject: Re: [MLS] multiple devices per user?
X-BeenThere: mls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Messaging Layer Security <mls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mls>, <mailto:mls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mls/>
List-Post: <mailto:mls@ietf.org>
List-Help: <mailto:mls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mls>, <mailto:mls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 24 Mar 2018 23:40:40 -0000

I should mention that this third option – at least in the context of MLS – is currently something of a half-baked idea. It’s an approach that should work in a hypothetical ART-based protocol, but we haven’t dug into it enough to figure out whether it will fit into the proposed constraints for MLS.

On 24/03/2018, 23:08, "Jon Millican" <jmillican@fb.com<mailto:jmillican@fb.com>> wrote:

I’d like to second Ekr’s points here. To provide a concrete use case, in Facebook Messenger, we want Secret Conversations to work for a user as soon as they log in on a new device. This somewhat blurs the boundary between device loss/recovery and concurrent use as it is used for both situations; but we don’t want to require existing device to authorise new devices as – to be perfectly frank – we’re not convinced that most people would actually do this, and it puts a potential usability barrier in the way of people using the E2E mode. While Wire is fully E2E, I believe that they similarly allow logging into a new device without any interaction with old devices. As far as I’m aware, neither service synchronises decryption keys between devices, and we instead just treat each new device as effectively a new group participant.

However there is a third option that we alluded to in the ART paper, that sits somewhere between your options 0 and 1.

2) Give each user as a separate ART subtree. The leaves of the group thread tree would then simply be the roots of each user’s subtree. You can then use this to mask the number of devices each user has, but without synchronising their private key material. The same algorithms would apply to the subtrees, so we’d get FS and PCS with respect to each device – including when they’re added and removed.

This option could be quite flexible, so you could then make a number of the design choices discussed application-specific. E.g. if you want to require new devices on an account to be enrolled by others, then you can do this without surfacing any warnings. Otherwise you could choose to notify that the user’s leaf changed: or even the full list of each user’s devices if you wished.

Jon

On 24/03/2018, 22:43, "MLS on behalf of Eric Rescorla" <mls-bounces@ietf.org<mailto:mls-bounces@ietf.org> on behalf of ekr@rtfm.com<mailto:ekr@rtfm.com>> wrote:



On Sat, Mar 24, 2018 at 10:32 PM, Daniel Kahn Gillmor <dkg@fifthhorseman.net<mailto:dkg@fifthhorseman.net>> wrote:
In the BoF at IETF 101, I expressed my concern about the way that
multiple devices fits in the architectural requirements.  I'm repeating
those concerns on-list here in the hopes of raising on-list discussion,
and trying to flesh them out here in more detail.

I see two use cases that might come under the "multi-device" rubric:

 a) device loss/recovery

 b) actual concurrent use (e.g. laptop + desktop + mobile)

i'll focus here mainly on (b), since i think (a) is a distinct
situation.

Privacy Considerations
----------------------

It's not clear to me that any user has a situation where they *want* to
indicate to other users of the group which device they're using.

Really? Because this kind of status reporting is actually a reasonably common
feature of IM systems.


Security Considerations
-----------------------

When the user has multiple devices, there are two possible approaches:

 0) sharing decryption-capable keys across devices (peers see a single
    key for each user)

 1) distinct per-device decryption-capable keys (peers see multiple keys
    per user)

One potential argument is that option (1) might provide
"transparency" -- or visibility of a key change in the event of an
adversary who tries to change the keys of a client.  but i don't think
this argument works.

The reason for #1 isn't transparency, it's that there are use cases in
which users want to add a new device without an existing device being
online, and these are incompatible with type #0 designs.



Furthermore, it's not clear what a group conversation participant can
*do*, security-wise, in the event of recieving such a message from
another participant -- is this actually a new phone, or is it a wiretap
injection?  should i ask the user about it?  should i take action?  what
ction?

Generally, I wouldn't expect them to take any action at all. It's a user's
responsibility to ensure that the right number of devices are registered
to their account, just as its common for the number of Web browsers
one has attached to ones Gmail account.


To avoid UX warning fatigue, i'm wary about introducing more of these
events than are strictly necessary (scenario (a) above probably
represents a "necessary" event, sadly, but "i just got a new phone"
doesn't seem necessary).

And finally, we presumably want any sort of device change to be
authorized from an already-known device for the same user.

This was not in fact my assumption, for the reason indicated above

-Ekr