Re: [Add] Draft Posting: CNAME Discovery of Local DoH Resolvers

Puneet Sood <puneets@google.com> Sat, 04 July 2020 00:39 UTC

Return-Path: <puneets@google.com>
X-Original-To: add@ietfa.amsl.com
Delivered-To: add@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B8BDB3A092E for <add@ietfa.amsl.com>; Fri, 3 Jul 2020 17:39:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.6
X-Spam-Level:
X-Spam-Status: No, score=-17.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] 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 u7iimxIzEiFV for <add@ietfa.amsl.com>; Fri, 3 Jul 2020 17:39:24 -0700 (PDT)
Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) (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 180083A0927 for <add@ietf.org>; Fri, 3 Jul 2020 17:39:23 -0700 (PDT)
Received: by mail-vs1-xe32.google.com with SMTP id e15so17893599vsc.7 for <add@ietf.org>; Fri, 03 Jul 2020 17:39:23 -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=RvjbMuFVcbQJtl9luD6PbsC2gO3GPoIb+UBHp3QDsRY=; b=e/X8Gepzq8LhTPBNQ4ecsNVMHKjITrm178ogYU3u/WcWXzjhbyWzCgIJHhpWP81nDZ joGZMrRAHcUXkVE6536jWFI7DmEZraHwhjBkQyps3tiaI+YXdM/AQG+PU2REIlmyN9hf TfgS66eFbSIUk+RLriulPQz8lMEqSYpXxhq6YWqeH1wU3BJl2UYlkN92m+KmxE8LcqaB 6440ltLHkhrxoIVTFPh5mdSEqOzrNnejoXqUEUtFGVrli4Eu/S5mgYFOjzkxAZFS5Mac z7nMXZ7BnB4GOPgrlWNnMUDnbxi7W3Ip4hJRy1uAadmtxF0qc/6F1x9zESkRnaJO5PMq 9Pjg==
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=RvjbMuFVcbQJtl9luD6PbsC2gO3GPoIb+UBHp3QDsRY=; b=mOy/3bdrIfReMMsHtdnmov6H+uL33mkNfZtbii+Fu2fuSSFDc+u8TUZIV+UwHm3PnC 6MkBKD9I+YwUfQhiyv9Gbd7GEM2qBVqeLQ2TqNX4fBpGIuGYUoHSJNoQnwtleento4qi CD7NlEg1ErDoksqdKPrbohOo9O2WpAv/cY5/Tbnd950vfzAYF0qJspiC2wcyWVO0s1c9 MCSjX4fv0RcrAtx9SxM5dfpgIaa8mo3zN3a8XuBfaBgbni6ED1k+4JErRXkW059AKsyx OvK+h7il6EJ0RxKIOZQX8UGYgIcLP1bMoMA2pqHCbjWnGS8Idy/c5PZbVvDSlpoAJdMK Mfcg==
X-Gm-Message-State: AOAM531fDlEWMiBv4GIUqhVQWK9STMEU98IKgioJZlY8EyuxnhoaWyTW S2IJlwTxGbVIsFrKQRI3R9gPRqq2Iz+on42MMVgLNQ==
X-Google-Smtp-Source: ABdhPJx6+u5yYsn4FnEe8NrTMk3N9+OfNS7Rhwg06r6xvxRs98b7ZFmqp7Kf2olE10ktkUVS/uI1fJNGDd4Fhgxsunw=
X-Received: by 2002:a67:6851:: with SMTP id d78mr26578380vsc.136.1593823162681; Fri, 03 Jul 2020 17:39:22 -0700 (PDT)
MIME-Version: 1.0
References: <CABcZeBPTkWeB40wpTowKvEJ-gXA3AL2e-BE+C_FC7Js7-D0DZQ@mail.gmail.com> <1AB2782B-87C0-4991-8703-AE2C98411AFC@apple.com> <CABcZeBOyAb3HrX0ABM2ZFuz-_Vn+0sPk_88e2OwQ5U-DRjAxXQ@mail.gmail.com> <2013869.BjYadG0qc2@linux-9daj> <CABcZeBOoOQ1drRepe9oHCyFrgnRxomKBkno7b1CDcfRJAZqkHg@mail.gmail.com>
In-Reply-To: <CABcZeBOoOQ1drRepe9oHCyFrgnRxomKBkno7b1CDcfRJAZqkHg@mail.gmail.com>
From: Puneet Sood <puneets@google.com>
Date: Fri, 03 Jul 2020 20:39:10 -0400
Message-ID: <CA+9_gVti4RO_0iz8kniwx7yJDi7iFRTNkYmGmfp434muAhMU_Q@mail.gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Cc: Paul Vixie <paul@redbarn.org>, ADD Mailing list <add@ietf.org>, Tommy Pauly <tpauly@apple.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/add/8_16qoZLvu_SyIzW5hD4VdPNGTE>
Subject: Re: [Add] Draft Posting: CNAME Discovery of Local DoH Resolvers
X-BeenThere: add@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Applications Doing DNS <add.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/add>, <mailto:add-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/add/>
List-Post: <mailto:add@ietf.org>
List-Help: <mailto:add-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/add>, <mailto:add-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Jul 2020 00:39:26 -0000

On Fri, Jun 26, 2020 at 8:48 PM Eric Rescorla <ekr@rtfm.com> wrote:
>
>
>
> On Fri, Jun 26, 2020 at 5:04 PM Paul Vixie <paul@redbarn.org> wrote:
>>
>> On Friday, 26 June 2020 22:08:05 UTC Eric Rescorla wrote:
>> > ... Other than inelegance, what's problematic about the CNAME approach?
>>
>> inelegance is permanent, accretive, and earns compound interest. we ought not
>> dismiss inelegance as the basis for reluctance. inelegance is not inevitable
>> nor is it automatically acceptable.
>>
>> > ...
>> >
>> > The scenario you seem to be interested in is one in which the user joins
>> > the network and then learns that the associated Do53 resolver supports DoH
>> > and then connects to it with whatever coordinates that resolver (or DHCP or
>> > whatever) provides. That clearly is not useful in the 3552 threat model
>> > which assumes that the attacker entirely controls the network because the
>> > attacker can just send their own resolver coordinates. That isn't to say
>> > that there aren't more limited but still realistic threat models where this
>> > would be useful, but I think you should start by describing those.
>>
>> as we describe them, we should also describe their scale, their age, and their
>> likely lifespan. the 3552 threat model, while it does use the term
>> 'pervasive', is nowhere near as common as the SASE (secure access service
>> edge) operations model, nor will it ever be. if apps who want to do their own
>> DNS treat any DoH failure as an attack, and start an arms race of spy-vs-spy
>> bypass along the lines of Tor, that's going to feel problematic to any of us
>> whose privately owned securely operated edge networks have a local-only DNS
>> policy.
>>
>> RESINFO could probably get better results by using TXT, because of long tail
>> problems. but ultimately we have to pick a default assumption that we can act
>> on when secure resolver discovery fails. "OMG it's a 3552 attack" is not the
>> only interpretation we could think of for this. it's entirely possible that
>> the most engineering solution to the discovery problem is to fail hard when
>> the middlebox prevents authenticated policy negotiation, to force middlebox
>> upgrades. i know that "tough love" is a hard sell, but "assume 3552 attack" is
>> also a form of tough love.
>
>
> Hi Paul,
>
> I think this response perhaps conflates two somewhat different issues,
> namely CNAME versus authenticated policy propagation.
>
> Ignoring the question of CNAME for the moment, if a device joins a
> network and gets its configuration from that network (e.g., via DHCP),
> then it is trusting that network to provide the configuration. So, the
> question then becomes what benefit is obtained if that network
> supplies a Do[TH] server rather than a Do53 server. In the 3552 model,
> we assume the attacker has complete control of the network and can
> therefore supply its own server, so it's not clear what the security
> benefit is. Conversely, if the network is totally secure and trusted,
> then it's *also* not clear what the security benefit is.
>
> So, if we are to have unauthenticated discovery of Do[TH] servers,
> then we must have some other threat model. For instance we might
> think that the attacker can read all packets but for some reason
> can't impersonate the DHCP server. What I'm saying is that we should
> start by laying out what that threat model is and then we can define
> what, if any, technical measures add security benefit in that threat
> model. That would be true even if we knew that there weren't
> middleboxes which tampered with new record types.

>From RFC 3552, the threat model for unauthenticated discovery would be
passive attacks described in section 3.2. There is benefit to
upgrading from Do53 to Do[TH] even if the network between the client
and the DHCP server is secure - specifically when the DNS resolver is
further away on the network. This could be because the network
operator is running the DNS resolver further away (e.g. DHCP could be
on the home router for a typical home user) or the DNS resolver
specified by the ISP is operated by a third-party on a different
network.

-Puneet

>
>
> Two more points, if I may:
>
> 1. Where this interfaces with the question of CNAME versus RESINFO
> is that RESINFO is much more flexible, but (as above) it's not
> clear we can securely make use of this flexibility.
>
> 2. It's worth nothing that there are scenarios where the device
> can get authenticated network configuration (for instance, if
> the device is managed and has had some sort of authentication key
> installed). The comments above do not apply to this scenario
> but rather to the scenario where you have a naive device joining
> a network.
>
> -Ekr
> --
> Add mailing list
> Add@ietf.org
> https://www.ietf.org/mailman/listinfo/add