Re: [dns-privacy] Use of separate caches for plain and secure transports

Christopher Wood <christopherwood07@gmail.com> Mon, 17 December 2018 22:57 UTC

Return-Path: <christopherwood07@gmail.com>
X-Original-To: dns-privacy@ietfa.amsl.com
Delivered-To: dns-privacy@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D7D1112D4E9 for <dns-privacy@ietfa.amsl.com>; Mon, 17 Dec 2018 14:57:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level:
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 q-fRN1XwN1bf for <dns-privacy@ietfa.amsl.com>; Mon, 17 Dec 2018 14:57:02 -0800 (PST)
Received: from mail-it1-x135.google.com (mail-it1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) (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 AE8D812D4E7 for <dns-privacy@ietf.org>; Mon, 17 Dec 2018 14:57:02 -0800 (PST)
Received: by mail-it1-x135.google.com with SMTP id i145so1361091ita.4 for <dns-privacy@ietf.org>; Mon, 17 Dec 2018 14:57:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6V3ghgLxuRklIY2zat8El9cTS/vj0ylnEG9Oui1MCj8=; b=Xx2YT6HxVR+4YyT5n1AWCnbYuR9HU9TKCuR96H1XxCwiI9GCHvimQxW2GXxh2SoSR2 O4EGg7RbRe8s48MNT1GtjN97i3dWKvyOmD9fjT+ilYAxyp1RXUvCKQc7Sap7HaGdnpmL qYJDxjjrAjH58lM6/Y/7OfPqF9paTZI+5j3M/asUOpiyRzUmwwMBwaavj4DcJ1oT+I0a QlimxuSVzQZr4UfOM8l97YRVj8WuKnr+AukbyJukdEQzuW5mqE4en9WjnTTufRy6RR2j YzM6qjrdmH6DUeSNcvAlRJviIqlmktbKmo9jIl420ERwQnX5bKwCHN80ek+BeDG3pVUw V/+A==
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:content-transfer-encoding; bh=6V3ghgLxuRklIY2zat8El9cTS/vj0ylnEG9Oui1MCj8=; b=UfJb4Y6W/PtGo+2QAEabEY1Y71Zo6KcC2EEJHTZRfhcM7y6azYENAkQ/XbKnvsxSBG ai8xjmMUI3tM4mnv7jLQuQzxzHTJmOo0X5sPrUnXQtl9W8aJt5Bvz2D97IO/4lLkerF+ o+9nmBSZdGpTPfgb9gp1n7K2j82HtgCA44Qac1kbL43BEVIfbho+fNjcl2w1+VTr889X QLnsGPzzdbpMrndn/y5//87lO0mWw5x0aQj3iYT2owCE5PQ4kVlTg1KkIEkVS+7RvkOc Oh8J9yHxwIf/wjjk1KqQxCAQjnUdSr6NL+6pKif4R7BB0Rp4sKaLMkMjgGNJZTDuJ7zS 7JVw==
X-Gm-Message-State: AA+aEWZzz7FQ/WYeVqEJyku0z9UlQ2W2PoWG9Qc+/QvH1Lgqy/P4FAJF UTg8wtFiyiVh+GBaG882wl44YthgUrcmpu48wzDNVA==
X-Google-Smtp-Source: AFSGD/UTkI74AAMiGau4lWImGeG9Nrrx3o4wOolKtlAChjDKju8rKxjkDiP9bIufpQRfEYO81bY8Dd1oplSC3xcSUQ8=
X-Received: by 2002:a24:214a:: with SMTP id e71mr967307ita.60.1545087421744; Mon, 17 Dec 2018 14:57:01 -0800 (PST)
MIME-Version: 1.0
References: <20181211054339.GC11647@jurassic.lan.banu.com> <871s6l43za.fsf@fifthhorseman.net> <20181213205828.GB24089@jurassic.lan.banu.com> <87sgz12jw6.fsf@fifthhorseman.net> <yblwoocosh7.fsf@w7.hardakers.net> <e7026ae4-afa2-4ebf-b885-ea085df62ff3@Spark> <87a7l73l9m.fsf@fifthhorseman.net> <fe8eda34-bab0-4edd-800f-f7e004d8ac4f@Spark> <CAHw9_i+xxgAqHgtSwBKE9XGfmyzbzKRftgmgCUZSn_cgedF3zQ@mail.gmail.com>
In-Reply-To: <CAHw9_i+xxgAqHgtSwBKE9XGfmyzbzKRftgmgCUZSn_cgedF3zQ@mail.gmail.com>
From: Christopher Wood <christopherwood07@gmail.com>
Date: Mon, 17 Dec 2018 14:56:50 -0800
Message-ID: <CAO8oSXkj=Jx=8hKuzfFYU5EPS0KGyjKpZ4vA0Pzjpw9ubsRAOg@mail.gmail.com>
To: Warren Kumari <warren@kumari.net>
Cc: Wes Hardaker <wes@hardakers.net>, Daniel Kahn Gillmor <dkg@fifthhorseman.net>, dns-privacy@ietf.org, Mukund Sivaraman <muks@mukund.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/dns-privacy/uM5cAGQVTfJ5iJmyxtqxNy25tls>
Subject: Re: [dns-privacy] Use of separate caches for plain and secure transports
X-BeenThere: dns-privacy@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <dns-privacy.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dns-privacy>, <mailto:dns-privacy-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dns-privacy/>
List-Post: <mailto:dns-privacy@ietf.org>
List-Help: <mailto:dns-privacy-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dns-privacy>, <mailto:dns-privacy-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Dec 2018 22:57:04 -0000

On Mon, Dec 17, 2018 at 1:33 PM Warren Kumari <warren@kumari.net> wrote:
>
>
>
> On Fri, Dec 14, 2018 at 4:05 PM Christopher Wood <christopherwood07@gmail.com> wrote:
>>
>> On Dec 14, 2018, 12:29 PM -0800, Daniel Kahn Gillmor <dkg@fifthhorseman.net>, wrote:
>>
>> On Fri 2018-12-14 11:47:58 -0800, Christopher Wood wrote:
>>
>> On Dec 14, 2018, 10:47 AM -0800, Wes Hardaker <wes@hardakers.net>, wrote:
>>
>> [And, no, we shouldn't go down the road of "privacy requires you disable
>> the cache"]
>>
>>
>> Would you mind elaborating on this comment? As you observe, caches are
>> harmful to privacy. Refusal to disable the cache in any (?)
>> circumstance therefore seems dismissive of user privacy. Perhaps you
>> mean turning it off for every query is not a viable path forward?
>>
>>
>> I hope Wes will answer this question on his own, but i wanted to note
>> that privacy is not only harmed by caches. it can also be helped by
>> caches.
>>
>> A query for any name will typically radiate *less* information into the
>> world if it's answered from a cache, simply because the resolver in
>> question doesn't create additional traffic.
>>
>> In particular, if the cache is already well-populated, and queries are
>> padded appropriately, and the name is relatively likely to be in-cache,
>> then the only parties that know what was looked up are the client and
>> the resolver itself. No authoritative servers or network observers have
>> any additional information to distinguish the query from any other
>> cache-resolved query handled by the resolver.
>>
>> So i don't think caching itself offers a clear benefit or harm for
>> privacy. One advantage of a resolver is that it effectively acts as a
>> mixing/semi-anonymizing agent on behalf of its users. Assuming that the
>> resolver itself is not compromised, it can buffer its users from the
>> authoritative servers.
>>
>>
>> Yes, of course, thanks for clarifying the other piece of this puzzle! This is indeed a benefit. However, I am not convinced this yields a greater net benefit than disabling caching. (I am not aware of any such study or analysis on this problem.) That said, all of this depends entirely upon the threat model, which can vary greatly.
>
>
> If you disable the cache, and can see that there is an (encrypted) input query and then immediately an (encrypted) output query to 208.80.154.238 (ns0.wikimedia.org) you know with very high likelihood what input query was for.

Agreed, though I think leaking the origin through the address is an
issue regardless of whether the cache is shared or not.

> If you have a shared cache, there is a much higher likelihood that the input query gets answered from cache (especially for higher popularity names) and so there is no output query to correlate with. Techniques which refresh the cache before the TTL has expired (al la HAMMER) further thwart correlation attacks.

I agree in principle, yet it seems TTL-based stub cache refresh
mechanisms could be implemented regardless of whether or not there's a
shared resolver cache. (Please correct me if I misunderstood your
point!)

In my opinion, tradeoffs made between enabling or disabling caching
are not well studied. (Thanks to Wes for sharing a pointer to his
paper which scratches the surface of this interesting problem.) We
need more work before we understand these tradeoffs and choose the
"right" answer.

Best,
Chris