Re: [dane] Start of WGLC for draft-ietf-dane-openpgpkey - *please* review.

Brian Dickson <brian.peter.dickson@gmail.com> Sat, 21 February 2015 23:00 UTC

Return-Path: <brian.peter.dickson@gmail.com>
X-Original-To: dane@ietfa.amsl.com
Delivered-To: dane@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 162B91A010F for <dane@ietfa.amsl.com>; Sat, 21 Feb 2015 15:00:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.399
X-Spam-Level:
X-Spam-Status: No, score=-1.399 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, J_CHICKENPOX_46=0.6, SPF_PASS=-0.001] autolearn=no
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 LvjUFiHhH9Rn for <dane@ietfa.amsl.com>; Sat, 21 Feb 2015 15:00:07 -0800 (PST)
Received: from mail-ig0-x22c.google.com (mail-ig0-x22c.google.com [IPv6:2607:f8b0:4001:c05::22c]) (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 01CCF1A010E for <dane@ietf.org>; Sat, 21 Feb 2015 15:00:07 -0800 (PST)
Received: by mail-ig0-f172.google.com with SMTP id l13so10804313iga.5 for <dane@ietf.org>; Sat, 21 Feb 2015 15:00:06 -0800 (PST)
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 :content-type; bh=ukTl9lAhaeXdFIcASjM3NJmVGXEOBU6riGmd36WVbOo=; b=MygkRaJy5hRv1qWhn+uBqwkgOEWAFU4sVVSZRwuucXxGPVVQRXvTpNdopdUpDOHb5o K2D8iTeJlWPYBt3nAhB2g3wXTbub4wFu8yXH3c3mE1UJtGF+zDY5CmcptDTrW8ap04zn JF4w8tIbnz+hmj1zp3PzWpnbmQCQGWRe4qpHUWBsdwYCgDxZeV4BmMH0GI3iCljxglVo hbQ1NaAX7Wh8xvD2VPRjhvh9KOJzRm3iFxJwWlpt8WUPPJFywfy3+zuDc5fAK5iNMoFf rTI9d3MnOmqYGX2r9n0jUT1KqEj25dJJwYvqLT4QuXUPYeqU0WxEpvw7Hkf1fA2Yp8iK kxVA==
MIME-Version: 1.0
X-Received: by 10.50.25.231 with SMTP id f7mr4809742igg.48.1424559605950; Sat, 21 Feb 2015 15:00:05 -0800 (PST)
Received: by 10.64.80.193 with HTTP; Sat, 21 Feb 2015 15:00:05 -0800 (PST)
In-Reply-To: <20150221225023.GQ1260@mournblade.imrryr.org>
References: <CAHw9_iJPuG23Aok7V_wcAMirua_DPDLHy01tnd+DaUqEeK3NZA@mail.gmail.com> <CAH1iCir+z6QjPQkgjF+jhKM4=ZCXpsQYDWsJqHRJ=20mGHeX9w@mail.gmail.com> <alpine.LFD.2.10.1502211543270.4576@bofh.nohats.ca> <CAH1iCirFVPjM0yyF0jL3V_epkYV3Qz9A_WFTkM5sZ3FNu6sppA@mail.gmail.com> <20150221225023.GQ1260@mournblade.imrryr.org>
Date: Sat, 21 Feb 2015 15:00:05 -0800
Message-ID: <CAH1iCiqeq2K6u43a1VW6g_rbE3q_UsBpy34UZBZXJsDauDzRrQ@mail.gmail.com>
From: Brian Dickson <brian.peter.dickson@gmail.com>
To: "dane@ietf.org" <dane@ietf.org>
Content-Type: multipart/alternative; boundary="047d7bdc05da46334c050fa12177"
Archived-At: <http://mailarchive.ietf.org/arch/msg/dane/GSvHPBwHxWeOXqdlcSiMXmMwnBk>
Subject: Re: [dane] Start of WGLC for draft-ietf-dane-openpgpkey - *please* review.
X-BeenThere: dane@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DNS-based Authentication of Named Entities <dane.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dane>, <mailto:dane-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dane/>
List-Post: <mailto:dane@ietf.org>
List-Help: <mailto:dane-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dane>, <mailto:dane-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Feb 2015 23:00:09 -0000

Thanks Viktor. Obviously, not enough coffee. :-)

Brian

On Sat, Feb 21, 2015 at 2:50 PM, Viktor Dukhovni <ietf-dane@dukhovni.org>
wrote:

> On Sat, Feb 21, 2015 at 02:15:31PM -0800, Brian Dickson wrote:
>
> > If the same NSEC3PARAMs are used, the same input -> same output, i.e. for
> > owner FOO, NSEC3 owner is BAR.  Changing the SALT and leaving the alg and
> > iterations unchanged, means FOO now hashes to BAR_PRIME.
> >
> > If everyone used the same SALT, alg, and iterations, the attacker would
> > be able to add to her dictionary by attacking each hashed value once.
>
> This is not the case.  Even with the same salt everywhere, the same
> relative names yield different NSEC3 hashes in different domains.
>
>     $ ldns-nsec3-hash -t 10 -s deadbeef  www.example.com
>     posh7b8ariqtee5s9bji4jvlhmj5qtbn.
>
>     $ ldns-nsec3-hash -t 10 -s deadbeef  www.example.net
>     mj2fbsp4rqaqd2u1d1jhlr3scqeqi11i.
>
> That's because the hash covers the full domain name, not just some
> "prefix" labels.  So NSEC3 hashes are already effectively "salted"
> with the zone name.  What "salts" do is allow each domain to further
> impede off-line dictionary attacks (via per-domain rainbow tables)
> by periodically changing the salt.
>
>
> > However, if everyone used random SALT, even with same alg and iterations,
> > the dictionary of hashed values becomes worthless, and the attacker needs
> > to maintain a dictionary of unhashed values, and need to hash the entire
> > dictionary to find matches on each subsequent zone.
>
> No, it is OK for everyone to use the same salt, because that salt
> is combined with their unique domain name.  For high value domains,
> what is perhaps useful is to change the salt periodically.
>
> For example, everyone could use the calendar YYYYMM (year + month)
> as the salt.  And the attacker would need a new rainbow table for
> each domain every month.  The fact that the salt is the same
> everywhere would not be helpful to the attacker.  Of course knowing
> future values of the salt would make it possible to start computing
> the rainbow tables sooner, so the problem with YYYYMM is predictability,
> rather than use by multiple domains.
>
> --
>         Viktor.
>
> _______________________________________________
> dane mailing list
> dane@ietf.org
> https://www.ietf.org/mailman/listinfo/dane
>