Re: [DNSOP] my dnse vision

Phillip Hallam-Baker <hallam@gmail.com> Mon, 10 March 2014 17:36 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80A461A0648 for <dnsop@ietfa.amsl.com>; Mon, 10 Mar 2014 10:36:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
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 PGUDmkvLkKs9 for <dnsop@ietfa.amsl.com>; Mon, 10 Mar 2014 10:36:20 -0700 (PDT)
Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) by ietfa.amsl.com (Postfix) with ESMTP id 792491A04AC for <dnsop@ietf.org>; Mon, 10 Mar 2014 10:36:20 -0700 (PDT)
Received: by mail-la0-f41.google.com with SMTP id gl10so4869005lab.14 for <dnsop@ietf.org>; Mon, 10 Mar 2014 10:36:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gON/Uigyx/LYDstxUZspFFT2mdOncYbcUNN1x/1A0EE=; b=s8Pz0ZhY2+D+5LHT6I69aS7EjjEJinJwyWU/E1fR7AWZ/sDBhdbddfmvW5kU8I2gzN Wj+4Gt2MJ7Lw/DVS031onQOKZ9bGxOEuLMB43BVVvTUnH3EKproqmsrzbTHuSD8rE7WZ zcCVHc0+01OR4CTeiwZ6Cm2rlBlSevoTDK9v6af5xtGp4gSL6wrA/cxrfBctAXnUuPEI CWxqN8S9iHioQ4+ctfmnBhYegFpTCSwGtEK1JG6lNJesLg/1Aawk5h0o7XCKw9MB8VIP glvl0YKboDg/fTVCtvQLAPqIU5Sd3uxFUfrp/k2Aov8WT3DiFMy5oY+whzlR5tIRtpEB PWxg==
MIME-Version: 1.0
X-Received: by 10.112.22.196 with SMTP id g4mr2348913lbf.47.1394472974453; Mon, 10 Mar 2014 10:36:14 -0700 (PDT)
Received: by 10.112.37.168 with HTTP; Mon, 10 Mar 2014 10:36:14 -0700 (PDT)
In-Reply-To: <alpine.LSU.2.00.1403101654150.18502@hermes-1.csi.cam.ac.uk>
References: <201403051107.s25B7ext069332@givry.fdupont.fr> <02410136-DFE2-42C8-A91E-AA84641AFFCF@ogud.com> <20140305144213.GA19170@laperouse.bortzmeyer.org> <alpine.LSU.2.00.1403051637160.18502@hermes-1.csi.cam.ac.uk> <20140306145020.GA5976@laperouse.bortzmeyer.org> <alpine.LSU.2.00.1403101654150.18502@hermes-1.csi.cam.ac.uk>
Date: Mon, 10 Mar 2014 13:36:14 -0400
Message-ID: <CAMm+LwjSdvpKKm-nWbx0AUavcGyANkT+mw-FLQQp_R1nEtf==Q@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Tony Finch <dot@dotat.at>
Content-Type: multipart/alternative; boundary=14dae9473ba34a903304f4440aef
Archived-At: http://mailarchive.ietf.org/arch/msg/dnsop/Rrx978rTAufX2AZMdLyKAIBvXaY
Cc: "dnsop@ietf.org" <dnsop@ietf.org>
Subject: Re: [DNSOP] my dnse vision
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 10 Mar 2014 17:36:23 -0000

On Mon, Mar 10, 2014 at 1:11 PM, Tony Finch <dot@dotat.at> wrote:

> Stephane Bortzmeyer <bortzmeyer@nic.fr> wrote:
> >
> > The only place where server authentication could be useful is between
> > a stub and the first resolver.
>
> I don't think it is as simple as that.
>
> There are good reasons for using a recursive resolver that is close to
> you, e.g. to avoid untrustworthy shared resolvers. However the more people
> do this the more demand there will be for intercepting iterative queries
> between resolvers and authorities. You need to authenticate authoritative
> servers to protect against active interception.
>

What we are talking about here is cryptographically binding the request and
response under a key.

Since we are going to encrypt we have already agreed to spend the cycles
needed for key setup. So adding a 128 bit MAC only costs us 16 bytes and a
trivial number of cycles.

The benefits we get are significant. First off it means that if the
recursive is being used in discovery-only mode it can simply pass data from
the authoritative to the stub without checking the DNSSEC chain.

Secondly in the case we have a trusted resolver that is validating the
DNSSEC chain as a proxy for the stub, it means that an attacker can't
meddle with responses as a way to DoS the resolver, possibly causing it to
abort DNSSEC checking completely.


The problem comes in that unlike the stub-resolver interaction where we can
do one key exchange with a service and keep the relationship going for the
life of the device (i.e. years), a resolver has to maintain relationships
with thousands to millions of authoritative servers and we probably can't
rely on these for more than a month or two at a time.

So the key exchange to do the encryption is a bigger cost. It is certainly
justified if we are connecting to the VeriSign or GoDaddy authoritative
servers or for any of the big services. But thats a harder case to make on
the long tail.


What might make sense is to support a symmetric, secure after first use key
exchange as an alternative to using a full public key exchange. We could
further deter intercept as follows:

Resolver is connecting to an authoritative to make a request
really-obvious.com to answer a query from a stub (i.e. this is not a
pre-fetch).

Resolver has no session key on file so it sends the request in plaintext.
It can however be alerted to support for the security protocol in the
DNSSEC information for the zone. So assume that there is some flag there
that tells us that we can make a query as follows:


Resolver:
      really-obvious.com ? A
      TICKET = {NULL, key}

Authoritative [Encrypt, Sign under Key]
      really-obvious.com/A = 10.1.2.3
      key-exchanger.example.com/PVT  WitnessValue
      TICKET = {TID, key2}


The ticket returned by the Authoritative  {TID, key2} may be used to secure
further requests until a full key agreement has been achieved.

If/when the resolver performs a key exchange, it presents the Witness value
and original key to the key exchange service. This allows the service to
detect an attempt at an active attack.



-- 
Website: http://hallambaker.com/