Re: [secdir] secdir review of draft-kuegler-ipsecme-pace-ikev2

Nico Williams <nico@cryptonector.com> Thu, 14 April 2011 17:59 UTC

Return-Path: <nico@cryptonector.com>
X-Original-To: secdir@ietfc.amsl.com
Delivered-To: secdir@ietfc.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfc.amsl.com (Postfix) with ESMTP id 2FEB6E0765 for <secdir@ietfc.amsl.com>; Thu, 14 Apr 2011 10:59:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.852
X-Spam-Level:
X-Spam-Status: No, score=-1.852 tagged_above=-999 required=5 tests=[AWL=0.125, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([208.66.40.236]) by localhost (ietfc.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id onoctf8wJkN4 for <secdir@ietfc.amsl.com>; Thu, 14 Apr 2011 10:59:40 -0700 (PDT)
Received: from homiemail-a29.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by ietfc.amsl.com (Postfix) with ESMTP id 24BA7E065F for <secdir@ietf.org>; Thu, 14 Apr 2011 10:59:40 -0700 (PDT)
Received: from homiemail-a29.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a29.g.dreamhost.com (Postfix) with ESMTP id 8090267407B for <secdir@ietf.org>; Thu, 14 Apr 2011 10:59:39 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=cryptonector.com; h=mime-version :in-reply-to:references:date:message-id:subject:from:to:cc :content-type:content-transfer-encoding; q=dns; s= cryptonector.com; b=uXVFaDS0v8XGl1lyFEBP5tsXRCNKtFAZwi+HtP2LOgvO DJSdkUfx+YzUsMYP9XR2l427biH070HBRJPLL1xBaJr6WanojKztCk2Yt8gBHo+I bRYq37KTgNnWNn6fYWWz6ki8e/xYXqbvX/MKEs9HL5qB/hubMliDrPX8XGas6cE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type:content-transfer-encoding; s= cryptonector.com; bh=qFcqmKuugEpU+1HADCa6Vdri2V0=; b=NpSXcl9dS8t 2nP4VMDa6U2QROFDPd0/qrVCKGQgHkNduoMLMEb+AtO6y6fwVOg/4OVadYFklGZS CDGLqVa8c5/UMcbImFDWCujoxhzaGq57eInQBImQqakSK2h8shdwBzq4zgqOUObi QqAXOs9OvYtjAxQ8BxgR3TmyFqSm7GKs=
Received: from mail-vx0-f172.google.com (mail-vx0-f172.google.com [209.85.220.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a29.g.dreamhost.com (Postfix) with ESMTPSA id 4DD20674074 for <secdir@ietf.org>; Thu, 14 Apr 2011 10:59:39 -0700 (PDT)
Received: by vxg33 with SMTP id 33so1889309vxg.31 for <secdir@ietf.org>; Thu, 14 Apr 2011 10:59:38 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.184.8 with SMTP id eq8mr1473614vdc.214.1302803978724; Thu, 14 Apr 2011 10:59:38 -0700 (PDT)
Received: by 10.52.163.228 with HTTP; Thu, 14 Apr 2011 10:59:38 -0700 (PDT)
In-Reply-To: <9c05d036d0e99a053cf977d3f2c441db.squirrel@www.trepanning.net>
References: <AC6674AB7BC78549BB231821ABF7A9AEB530189991@EMBX01-WF.jnpr.net> <4DA69C8A.7000305@gmail.com> <BANLkTi=3WCvUgtLdNknDog--UniYM1G9Bg@mail.gmail.com> <4DA72605.10506@gmail.com> <BANLkTikXF=S3NugNBErZZGLngyCECh=jTw@mail.gmail.com> <ced915e87f60e86c5db6f21f7e94d1a3.squirrel@www.trepanning.net> <BANLkTimqGh84igi5iVJop6O2reG8WF8s-Q@mail.gmail.com> <9c05d036d0e99a053cf977d3f2c441db.squirrel@www.trepanning.net>
Date: Thu, 14 Apr 2011 12:59:38 -0500
Message-ID: <BANLkTikF_eG3-CfoJi+6fthvt0gg6D=kwQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Dan Harkins <dharkins@lounge.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Cc: "draft-kuegler-ipsecme-pace-ikev2@tools.ietf.org" <draft-kuegler-ipsecme-pace-ikev2@tools.ietf.org>, "secdir@ietf.org" <secdir@ietf.org>
Subject: Re: [secdir] secdir review of draft-kuegler-ipsecme-pace-ikev2
X-BeenThere: secdir@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Security Area Directorate <secdir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/secdir>, <mailto:secdir-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/secdir>
List-Post: <mailto:secdir@ietf.org>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/secdir>, <mailto:secdir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Apr 2011 17:59:41 -0000

On Thu, Apr 14, 2011 at 12:47 PM, Dan Harkins <dharkins@lounge.org> wrote:
> On Thu, April 14, 2011 10:25 am, Nico Williams wrote:
>> In RFC5056 terms, your "unauthenticated Diffie-Hellman" exchange is a
>> "channel".
>>
>> There seems to be a terminology disconnect.  As a result of this
>> disconnect you and others are discarding the work of others (e.g.,
>> SCRAM in this case) without understanding it in the first place.
>
>  I don't think there's a terminology disconnect. Yes, it's a "channel",
> but the important thing is it's not a "secure channel", which is what
> you said above.

I'm distinguishing secure from authenticated.  If the channel can
provide confidentiality and integrity protection then it's secure.  If
it's authenticated that's even better.

>  SCRAM is not resistant to off-line dictionary attack, PACE is. So
> the work of others has not just been ignorantly discarded, it is just
> not appropriate to use in this particular case.

I don't see how the ENONCE in PACE is resistant to off-line dictionary
attacks.  What am I missing?

I stand by my assertion that SCRAM with channel binding to the KE
exchange, and protected by that KE exchange, is protected against
passive attacks, and if the channel is authenticated, then it's also
protected against active attacks.  (Note that I never proposed SCRAM
w/o CB, nor would I have.)

If I'm right that ENONCE is resistant to off-line dictionary attacks
then I stand by my assertion that SCRAM (with CB) is at least as
secure as PACE, and arguably more so.

>  What is needed here is to parlay a low-entropy password into a
> secure secret without anything else. There is no way to "authenticate
> the responder with PKIK" (as you implied in another email) because
> there is nothing else that could be used in accordance with any PKIK RFC.
> Using SCRAM here would be more secure than the broken PSK mode of IKE(v2)
> today but would not be resistant to off-line dictionary attack.

I understand that PKIX credentials will not always be available for
either, much less both of the peers (if they are available for both
then the only thing the password adds is an additional authentication
factor, and is probably an undesirable complication).  However, I
expect that a certificate will often be available for "servers".  As
for SCRAM, again, _with_ CB it's no weaker than PACE.

>  Don't think of this as a username/password protocol. There is no
> real "user". There is just a password and the two side have to prove
> to each other they know it without leaking any information about it
> to each other or an adversary. SCRAM isn't the right tool for this job.

If there's no user and the password is randomly generated then I have
no concerns whatever.

However, everything in the I-D leads me to believe that the password
is intended to be memorable to human users.  For example, why bother
with stringprep if the password is intended to be a randomly generated
string?  Why bother with Unicode at all in that case?  Moreover, the
introduction specifically refers to weak shared secrets, which leads
me to believe that PACE is specifically intended for user
authentication.

So which is it?  Is PACE just an improved PSK mechanism?  Or is PACE a
password-based mechanism as we normally think of them (i.e., for human
users)?

Nico
--