Re: [dns-privacy] [EXTERNAL] Re: Review request: draft-btw-dprive-rfc8484-clarification

"Konda, Tirumaleswar Reddy" <TirumaleswarReddy_Konda@McAfee.com> Fri, 11 September 2020 05:40 UTC

Return-Path: <tirumaleswarreddy_konda@mcafee.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 823883A1432 for <dns-privacy@ietfa.amsl.com>; Thu, 10 Sep 2020 22:40:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mcafee.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 2jIDRzXX6ud4 for <dns-privacy@ietfa.amsl.com>; Thu, 10 Sep 2020 22:39:58 -0700 (PDT)
Received: from us-smtp-delivery-140.mimecast.com (us-smtp-delivery-140.mimecast.com [216.205.24.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 792393A1424 for <dns-privacy@ietf.org>; Thu, 10 Sep 2020 22:39:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mcafee.com; s=mimecast20190606; t=1599802797; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sAr3iG/qAvr3ZHPLbKINmivOuLtloNcLxzEg4A2PoPw=; b=aLvCKsueq3tdZ0p6Ag+U3+/JRwX47dlr5nf6CmZVBnlJ0VuFcnrsEl/Wbj+dfzqjulWbb5 fYWU/RAfF35Ax0b9KES9jkd0hWy50RqLDUBWqByM4YwmNQXnIS6SyaVaGY4ZFhMaKS1ogm n34A201oidAR7EMAtXbLXwy2rucLcVI=
Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2172.outbound.protection.outlook.com [104.47.55.172]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-103-FjI7vqOxPl2PcLSMyFs8dQ-1; Fri, 11 Sep 2020 01:39:55 -0400
X-MC-Unique: FjI7vqOxPl2PcLSMyFs8dQ-1
Received: from MWHPR16MB1535.namprd16.prod.outlook.com (2603:10b6:320:27::22) by MWHPR16MB1583.namprd16.prod.outlook.com (2603:10b6:320:2a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Fri, 11 Sep 2020 05:39:53 +0000
Received: from MWHPR16MB1535.namprd16.prod.outlook.com ([fe80::2c78:9d07:93df:7231]) by MWHPR16MB1535.namprd16.prod.outlook.com ([fe80::2c78:9d07:93df:7231%12]) with mapi id 15.20.3370.016; Fri, 11 Sep 2020 05:39:53 +0000
From: "Konda, Tirumaleswar Reddy" <TirumaleswarReddy_Konda@McAfee.com>
To: Ben Schwartz <bemasc=40google.com@dmarc.ietf.org>, Neil Cook <neil.cook=40noware.co.uk@dmarc.ietf.org>
CC: "Winfield, Alister" <Alister.Winfield@sky.uk>, DNS Privacy Working Group <dns-privacy@ietf.org>
Thread-Topic: [dns-privacy] [EXTERNAL] Re: Review request: draft-btw-dprive-rfc8484-clarification
Thread-Index: AQHWhiwscciY/xv4J0imEUovZmppualgYJqAgAAPkwCAABcTgIACZErw
Date: Fri, 11 Sep 2020 05:39:53 +0000
Message-ID: <MWHPR16MB153572F70A9CACA49FE01D76EA240@MWHPR16MB1535.namprd16.prod.outlook.com>
References: <6e071da2-4281-d525-03ba-4d6dfc843a76@innovationslab.net> <CAHbrMsB7T+5Y=2n4LfcXwyAZQSnK4x72R44_2mCDsLhh_zD9Vw@mail.gmail.com> <8C6ABDA8-9A0E-44BB-AE23-43F97AF29730@noware.co.uk> <CAHbrMsD2y0o+uV9eiAb32_=6ZYwAUoS_zM5+T97SxnHzxB05bQ@mail.gmail.com> <0799B139-E353-4EC7-9340-87CE00C465AA@noware.co.uk> <CAHbrMsC=kOYUL_Ei1uSnWJ3hGxu=7c10eRofXJ=w5sQzcbu6mA@mail.gmail.com> <3A9BCDDD-883D-470E-A547-79839149F8EE@sky.uk> <CAHbrMsDVZMNNhwqTUexRL3R=HoEfDTWsoXnr=bdTaWyTXV_=rw@mail.gmail.com> <C8137D01-5903-4CFA-A315-67D7012EC583@noware.co.uk> <CAHbrMsAbGci08qR+NL9Csdej_VFpfZxSdHXfwAM6azB-DryQQQ@mail.gmail.com>
In-Reply-To: <CAHbrMsAbGci08qR+NL9Csdej_VFpfZxSdHXfwAM6azB-DryQQQ@mail.gmail.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
dlp-product: dlpe-windows
dlp-version: 11.5.0.60
dlp-reaction: no-action
x-originating-ip: [49.37.199.141]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0732749b-2be2-4f32-612b-08d856151bd2
x-ms-traffictypediagnostic: MWHPR16MB1583:
x-microsoft-antispam-prvs: <MWHPR16MB158301B953462920D12F83DDEA240@MWHPR16MB1583.namprd16.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: +W+OQqEU13prZ2VnqKsSu2+mjpNTpmayQp0/F7CWYA/yQLM5PeyafduDa6kp+/KVkGbS7RNTeVBAwS/i+xAg8iYL2Pr4RRuF50BkTRRhtPz1NdAlBSx5hMwVYTTbLilXiOhFsAjLi5XkjtavVOZToEAUM98M3K6wVt7FDTGMaBB/a75mT20FgQD1BDyX8VOf9EsHR8fDP/2zwwmI4j3hhfqYzOXwf3XijapgAyIAd7piSSedQJ1VUfai9PnxF3W/5d6JtxiXockwatVqUOmhr+j1o/Pn1OFY1U2LRGUFNrfqritfS5VZ5+fYN+QWPhv5SsG2BoWc+s80+xrhDvg0FEaj9+6StoNOaOhi+MKWO+AhTgLWMjqNKozMFhikMX8lPl2CxOaJn3URVbAxNVimZg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR16MB1535.namprd16.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(39860400002)(136003)(346002)(376002)(32952001)(83380400001)(53546011)(110136005)(33656002)(54906003)(8676002)(2906002)(66574015)(5660300002)(76116006)(86362001)(9686003)(26005)(7696005)(6506007)(316002)(71200400001)(186003)(66556008)(478600001)(52536014)(8936002)(66476007)(66446008)(55016002)(64756008)(66946007)(4326008)(85282002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: zoCIDiVbGwLO8waxnI2F9gGXagY5YpxuLeKnUzws3NsyboX+KVr2V/J3p8W+Yqh/E7mNrVyA/F94Gcs5+0aNncyasQeRwcew4gvuvif1yaZvmamQQjp0I6pd5nY4ORXF28eBTe7gDOFjyaKRTXRiT+FWIwHNZFE5ZihhECmRdl298rd420Q0s6+o9siF8fvJaPmB17N1ntH5N6R0S8UXzEcWR5Te7LiptRCD4EYrezqxyKqj02WRrZpPJJqKK7Sk33H2yX9yOgma8drzcaPMULIVcvTNSuD3P1dAh3mKSAx1xE4yy/rpXd4ctJ6/x79anezPbOAxrOWuHXRqX/SlsoOklGPDfPiuEFs4tgTolvSQ00woA2gIZgSk50BRL8jGJGf2LloPoFdw9aZw2Q5ZM6yLTth4MfSWK/R3X6JoUxZMu+sTrWpVGDH/0cCQQba4anozPZgcGK+UeJkrKIF2o+rQQXErD6vyWG8Ye77BGetZ+fIeBxnPaTQURhgDb/MHxy5qbMcFqYhpTo8MfJa9Q1JVsw+CqwTMDuQTjiQU0dNB7DXARgMoRy2dFnkDQ0FLONQQrGaKWb9Cd3IoHXzEjz3LWwnlyDQI5kT1ZUclvP4KX9NYKzxXhS8i3d2LXw358StQ4NFx0H1kHDcM4q3fPw==
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-OriginatorOrg: mcafee.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MWHPR16MB1535.namprd16.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 0732749b-2be2-4f32-612b-08d856151bd2
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2020 05:39:53.1880 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4943e38c-6dd4-428c-886d-24932bc2d5de
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Quq1xPFcwi4/ObtQ18mv/OfU8KbB4/qkWFEXruXVilkeef9H1z4dMny99H3fVebgtDf/kGs1xjWnOMt5bdtCqWzl2NeziA0n6spISc0PL4gopyP45OK+wdO7aCtZtu75
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR16MB1583
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA40A35 smtp.mailfrom=tirumaleswarreddy_konda@mcafee.com
X-Mimecast-Spam-Score: 0.001
X-Mimecast-Originator: mcafee.com
Content-Type: multipart/alternative; boundary="_000_MWHPR16MB153572F70A9CACA49FE01D76EA240MWHPR16MB1535namp_"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/dns-privacy/1xxrafrIWYIefpbPIhvtWkdHaKE>
Subject: Re: [dns-privacy] [EXTERNAL] Re: Review request: draft-btw-dprive-rfc8484-clarification
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: Fri, 11 Sep 2020 05:40:01 -0000

Please see inline [TR]

From: dns-privacy <dns-privacy-bounces@ietf.org> On Behalf Of Ben Schwartz
Sent: Wednesday, September 9, 2020 10:24 PM
To: Neil Cook <neil.cook=40noware.co.uk@dmarc.ietf.org>
Cc: Winfield, Alister <Alister.Winfield@sky.uk>; DNS Privacy Working Group <dns-privacy@ietf.org>
Subject: Re: [dns-privacy] [EXTERNAL] Re: Review request: draft-btw-dprive-rfc8484-clarification



On Wed, Sep 9, 2020 at 11:31 AM Neil Cook <neil.cook=40noware.co.uk@dmarc.ietf.org<mailto:40noware.co.uk@dmarc.ietf.org>> wrote:



On 9 Sep 2020, at 15:35, Ben Schwartz <bemasc=40google.com@dmarc.ietf.org<mailto:bemasc=40google.com@dmarc.ietf.org>> wrote:


  1.  Caching at the CPE reduces upstream resolver load by quite a lot more than you might imagine not actually a big problem but it’s nice to avoid adding compute if there is a cheaper solution trivially available.
It sounds like the key goal here is caching at the CPE; the other goals could be served by client-specific logic at the central resolver.  Do ISP-provided CPEs normally operate a DNS cache?  My understanding was that they are usually mostly-stateless forwarders.


Yes lots of ISP-provided CPEs do caching. There is a draft in the ADD WG that describes this for at least 3 large ISPs in Europe.

There are other reasons for wanting to do DoH in the CPE, such as performing DNS filtering on the CPE.

This could equally be by client-specific logic on the central resolver, as demonstrated by NextDNS.

BTW I’d interested in how “client-specific logic at the central resolver” solves the connection count issue?

It doesn't, but caching does, hence my conclusion that caching is the focus.
* How does the server know which CPE to redirect the client to?

I’m are assuming here that this is an ISP running both elements so knowing how to map the incoming IP to the name its currently using / was told to use is relatively trivial.

Trivial, perhaps, but not necessarily secure.  An adversary in the network could alter the IP headers to change the apparent client location, causing the client to be redirected to an attacker-controlled CPE, thus defeating the integrity assurances of DoH.

Possible, but I’m not sure this is a practical attack. The attacker would need to be able to also change all the IP headers in the return packets to their original values (that’s hard enough to do for legit purposes).


Sure, but if you assume we don't have a sophisticated active adversary in the network, then we don't need authenticated encryption, and we can solve this without involving the client at all.

[TR] The DNS server hosted on the CPE will only be reachable by endpoints connected to the home network and not accessible to the outside world. If an attacker changes the rules to accept external connections to the DNS server hosted on the CPE managed by the ISP, it can take remediation measures like block internet access to the compromised router or revoke DNS server certificate or block unsolicited incoming traffic to the DNS server on the compromised CPE.

An on-path attacker can change the IP headers but will not succeed establishing encrypted DNS session to the DNS server on the attacker-controlled CPE.

-Tiru

Also, the attacker has to have compromised an ISP-managed CPE, and that CPE still needs to be running on an ISP-managed network connection.

Maybe.  As Alister noted, in some models the subscriber can acquire a DV cert for the name without reaching inside the CPE.


Neil