Re: [dane] Feature creep for draft-ietf-dane-smime

Viktor Dukhovni <viktor1dane@dukhovni.org> Fri, 07 February 2014 02:02 UTC

Return-Path: <viktor1dane@dukhovni.org>
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 7AAE11A058F for <dane@ietfa.amsl.com>; Thu, 6 Feb 2014 18:02:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 o-TLaTUw_9UM for <dane@ietfa.amsl.com>; Thu, 6 Feb 2014 18:02:03 -0800 (PST)
Received: from mournblade.imrryr.org (mournblade.imrryr.org [38.117.134.19]) by ietfa.amsl.com (Postfix) with ESMTP id 7F2091A0587 for <dane@ietf.org>; Thu, 6 Feb 2014 18:02:03 -0800 (PST)
Received: by mournblade.imrryr.org (Postfix, from userid 1034) id DD7012AB23D; Fri, 7 Feb 2014 02:02:01 +0000 (UTC)
Date: Fri, 07 Feb 2014 02:02:01 +0000
From: Viktor Dukhovni <viktor1dane@dukhovni.org>
To: dane@ietf.org
Message-ID: <20140207020201.GJ278@mournblade.imrryr.org>
References: <41938fd202ba460285b59132c29ac826@BY2PR09MB029.namprd09.prod.outlook.com> <20140206195322.GD278@mournblade.imrryr.org> <11698F58-B554-4CC8-872F-D2A3BF08986C@kirei.se> <20140206215742.GF278@mournblade.imrryr.org> <07a801cf23a1$a5b62c00$f1228400$@augustcellars.com> <E52467C0-3B6A-45D6-AFAB-6A103E587350@vpnc.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <E52467C0-3B6A-45D6-AFAB-6A103E587350@vpnc.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Subject: Re: [dane] Feature creep for draft-ietf-dane-smime
X-BeenThere: dane@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: dane@ietf.org
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: Fri, 07 Feb 2014 02:02:05 -0000

On Thu, Feb 06, 2014 at 05:26:55PM -0800, Paul Hoffman wrote:

> Why are we trying to make the names any more difficult to walk
> through than they would be for SMTP? The use of the hash was *purely*
> to allow longer LHSs, not to prevent enumeration. Enumeration has
> never been considered a serious problem for SMTP, and we should
> not be complicating our protocol to prevent it. Hash-of-LHS is
> simple and not prone to any misunderstanding.

SMTP does not yield an efficient offline attack.  There exist
popular milters that attempt to thwart "directory harvesting
attacks".

Once there's a hash, it should at least (at no extra cost) include
the domain, to make the attack require per-domain computations.

However, what I forgot to take into account is that with DNSSEC
what the attacker learns are the NSEC3 hashes of the email address
query domain, so a single dictionary is already not an option
because the NSEC3 RRs need to be cracked and these are already
salted with the domain and additional salt value.

So the offline attack is already a per-domain attack even without
salting of the hashed label.  Thus perhaps including the domain is
not essential (but no reason not to).  What could offer much better
protection is O(100,000) iterations (i.e., O(0.1) CPU second to
compute a lookup key).  An interactive user may not notice, but a
legititmate bulk email engine sending encrypted mail may run into
noticeable latency.

I am not strongly advocating for this, more thinking out loud, in
case the issue resonates with the group.

-- 
	Viktor.