Re: Privacy holes (was: Re: Getting to consensus on packet number encryption)

Ian Swett <ianswett@google.com> Thu, 12 April 2018 23:36 UTC

Return-Path: <ianswett@google.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2141F1277BB for <quic@ietfa.amsl.com>; Thu, 12 Apr 2018 16:36:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.009
X-Spam-Level:
X-Spam-Status: No, score=-2.009 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_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 i_JEoLbZxKCO for <quic@ietfa.amsl.com>; Thu, 12 Apr 2018 16:36:27 -0700 (PDT)
Received: from mail-yb0-x22d.google.com (mail-yb0-x22d.google.com [IPv6:2607:f8b0:4002:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9FD09124D6C for <quic@ietf.org>; Thu, 12 Apr 2018 16:36:27 -0700 (PDT)
Received: by mail-yb0-x22d.google.com with SMTP id g197-v6so3109845ybf.6 for <quic@ietf.org>; Thu, 12 Apr 2018 16:36:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t6vitA2BLW8GMCj6GRlNanf5/yV8MeLxtsmNvKwXQRM=; b=gl6F43wep8mQaDwKFau+pUKEIpO5dLbrHVzhioyjGrnUYNaTpgbtltGCC7vbNu3f65 fpprnxKsHziVGZnwbThTWelob1/31RRRkrGbDtwjGHuRnDI48vD4YxWZUmnjtlG205IH g6BRNZ5+1CN0fTZVdln7svdIBzXOIA5g4UZWxXT8gpJd++vLtIaC6Ou9zVOaKoAbbEzM +D4AyTSJ6VdNEthWH6Gm+aJ2m4PyyU40ahFde26WDsmYlLbJD1dyEhl9zi5f7j9/R9ku m0lcvDMib9JJ9yU96MjX9+2y8Qzd4b7KfPJnyqVRDOjNkOS6ZO8T1YbvJIt8iYQIpClo MN2g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t6vitA2BLW8GMCj6GRlNanf5/yV8MeLxtsmNvKwXQRM=; b=jAutBkJoFNlLxgNsKTOXaCkjAGF5SQkdRaxtg6tHco2GBliVFJ3vRX9XJ3ygxDsYM8 4bHFM2FqiXlWxYt6j9yXz0ekS+LYE5rOesl2RAIx/vfnsWfbDyz8TfFo068agIkkEfbM f9X4VF1S7Xf3N/UKESMWCyRc3LkkrMSw8LGh6q6AHBPfVwqrGwlwM0VERxLCYtqn+0d/ cWB7Ougba44CgOlkyPMY8T3NAmJTa2e3UznlzzIg0T/+aircJ7JutsyU3Q81qkKediV+ dej8cZCaPpb0csncWXsJhkNV3fVN7kQBp82YAGuRuB5gTtYVg8vMPUhUJlIk+63QtBcv WmGg==
X-Gm-Message-State: ALQs6tBsw5Rpp7yxC6BGJnPHLD2X97K5RF4F6j+w8rsbeyTlZSyzfK4G lqFO5y/lFts68aAeqFjMnOID8GVwAB5TJTg5r5V06SYw
X-Google-Smtp-Source: AIpwx4+Hq48XVujDpkmZ5kIyxYMuW6ApjnQjuc6KV/4qCITgVr4hsFPMn+LKj5o+KX6kz8EdDA7QIEmOzFielpw9GNk=
X-Received: by 2002:a25:386:: with SMTP id 128-v6mr2265801ybd.241.1523576186619; Thu, 12 Apr 2018 16:36:26 -0700 (PDT)
MIME-Version: 1.0
References: <7fd34142-2e14-e383-1f65-bc3ca657576c@huitema.net> <BBB8D1DE-25F8-4F3D-B274-C317848DE872@akamai.com> <CAN1APdd=47b2eXkvMg+Q_+P254xo4vo-Tu-YQu6XoUGMByO_eQ@mail.gmail.com> <CAKcm_gMpz4MpdmrHLtC8MvTf5uO9LjD915jM-i2LfpKY384O2w@mail.gmail.com> <HE1PR0702MB3611A67E764EE1C7D1644FAD84AD0@HE1PR0702MB3611.eurprd07.prod.outlook.com> <d8e35569-e939-4064-9ec4-2cccfba2f341@huitema.net> <CACpbDccqKoF-Y1poHMN2cLOK9GOuvtMTPsF-QEen3b30kUo9bg@mail.gmail.com> <CAKcm_gNffwpraF-H2LQBF33vUhYFx0bi_UXJ3N14k4Xj4NmWUw@mail.gmail.com> <40C1F6FE-2B2C-469F-8F98-66329703ED50@mnot.net> <21C36B57-6AE2-40EF-9549-7196D7FA9B45@tik.ee.ethz.ch> <B176FC07-887D-4135-B01E-FE8B4986A5EE@mnot.net> <CAKcm_gOCeocLyrYpOS7Ud332xdz3xHSH0psPN8T6BGRjoL9ptQ@mail.gmail.com> <CY4PR21MB0630FA0EDD343396AD414641B6A40@CY4PR21MB0630.namprd21.prod.outlook.com> <CAN1APde13JTzCvKFFvMd183Fka6QGD1kGBjsa9fcoLrYeA2hsA@mail.gmail.com> <CY4PR21MB0630C0FD4FBECBFEC3C863BBB6A40@CY4PR21MB0630.namprd21.prod.outlook.com> <B0F49097-F77A-4831-B68B-4266AA880A86@tik.ee.ethz.ch> <759C5BE4-DE4C-4A82-929C-B03234B88A37@huitema.net> <CY4PR21MB063098C907E732B0384B2824B6BE0@CY4PR21MB0630.namprd21.prod.outlook.com> <DM5PR2101MB0901E6C75EDCFDA209714D89B3BE0@DM5PR2101MB0901.namprd21.prod.outlook.com> <CY4PR21MB0630A6C5D63C175F390CC650B6BD0@CY4PR21MB0630.namprd21.prod.outlook.com>
In-Reply-To: <CY4PR21MB0630A6C5D63C175F390CC650B6BD0@CY4PR21MB0630.namprd21.prod.outlook.com>
From: Ian Swett <ianswett@google.com>
Date: Thu, 12 Apr 2018 23:36:15 +0000
Message-ID: <CAKcm_gNW7QsWKfa6x_6ua+63RPtTtxfhYTF9LAODyNw8CjVojA@mail.gmail.com>
Subject: Re: Privacy holes (was: Re: Getting to consensus on packet number encryption)
To: pravb=40microsoft.com@dmarc.ietf.org
Cc: IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000006505580569af39ed"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/Ap6TTGtYaHYgFdEbLOmWCP31W_g>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Apr 2018 23:36:30 -0000

Yes, for a powerful adversary, this seems fairly tractable.

Making connection migration look like a new connection would likely help a
lot.

On Wed, Apr 11, 2018 at 3:18 PM Praveen Balasubramanian <pravb=
40microsoft.com@dmarc.ietf.org> wrote:

> Going back to Christian's original question on privacy holes, there is an
> attack for linking IP addresses in the voluntary migration case.
>
> Let's consider the parking lot problem or in general case losing one
> network and roaming to another network. This is the primary use case for
> connection migration. In this case all active QUIC connections that can
> migrate, will do so. When these connections migrate they can change the
> CID, the local port number and packet numbers. However do notice that only
> the local 2-tuple changes for each connection, the server's 2-tuple remains
> the same.
>
> Let's assume a powerful adversary can collect a network sniff of all this
> traffic and builds a massive dataset. The adversary can then run a machine
> learning algorithm to identify time instants where a bunch of connections
> change their local 2-tuple at near the same time instant but continue going
> to the same server side 2-tuples. This will allow the adversary to link two
> IP addresses. The more times the user roams between networks back and forth
> the richer the correlation. The more open connections to different servers,
> the richer the correlation. Geolocation information can minimize the number
> of addresses the adversary needs to correlate.
>
> The fundamental problem seems to be that the substrate is UDP/IP and it is
> in the clear and allows linkability.
>
> -----Original Message-----
> From: QUIC [mailto:quic-bounces@ietf.org] On Behalf Of Christian Huitema
> Sent: Thursday, April 5, 2018 8:34 AM
> To: Mirja Kühlewind <mirja.kuehlewind@tik.ee.ethz.ch>
> Cc: quic@ietf.org
> Subject: Privacy holes (was: Re: Getting to consensus on packet number
> encryption)
>
>
>
> > On Apr 5, 2018, at 2:26 AM, Mirja Kühlewind <
> mirja.kuehlewind@tik.ee.ethz.ch> wrote:
> > ...
> > Timing doesn’t help here either because you still have the same
> destination IP, both port numbers and the fact that a migrated connection
> does not have a handshake. If we want to address the linkability problem,
> we would need to do much more, probably baring more hits on performance.
>
> Mirja,
>
> You rightly point out that the connection ID and the Packet Number are not
> the only elements that provide linkability. There is also of course the UDP
> source port. That one is not much of an issue for servers, but it is an
> issue for clients. We are not spelling that out in the draft. We should,
> because clients can trivially close that hole when doing migration.
>
> I am not sure that the absence of negotiation divulges much data. It marks
> the path as originating from a migration, but it does not tell from where.
> But there might be an ossification issue. We will get that ossification if
> we train middleboxes to believe that connection always start with an
> observable negotiation. So maybe we should explore ways to grease that.
>
> Any other privacy hole that we should fix?
>
> -- Christian Huitema
>