Re: [IPsec] I-D Action: draft-ietf-ipsecme-qr-ikev2-05.txt

Paul Wouters <paul@nohats.ca> Wed, 02 January 2019 02:38 UTC

Return-Path: <paul@nohats.ca>
X-Original-To: ipsec@ietfa.amsl.com
Delivered-To: ipsec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E2FD7124B0C for <ipsec@ietfa.amsl.com>; Tue, 1 Jan 2019 18:38:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nohats.ca
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 864iv-RkRcG8 for <ipsec@ietfa.amsl.com>; Tue, 1 Jan 2019 18:38:16 -0800 (PST)
Received: from mx.nohats.ca (mx.nohats.ca [193.110.157.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5FC1D124BAA for <ipsec@ietf.org>; Tue, 1 Jan 2019 18:38:16 -0800 (PST)
Received: from localhost (localhost [IPv6:::1]) by mx.nohats.ca (Postfix) with ESMTP id 43TwFs53lSz1Kg; Wed, 2 Jan 2019 03:38:09 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nohats.ca; s=default; t=1546396689; bh=PW7wDzZEPRLcFsQpnhsR8iTSY45ODUrdycnl1Fi4ocU=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=VPZ2c1G8BJ7xdLPiKtngSKSSGl6eVfd3XKfQOm9T+9jFSpQF5L211j3maH/VDRNS3 EtZKv4MQ+kddhvM9zHZ8tCPIPasICxIn0JJvaJIpvFcPBkm0/NzUot5T81cOOKe8Iw T7PX/JJkYXZ9RQUoOGBDag1GySscbenPCmcng/Ag=
X-Virus-Scanned: amavisd-new at mx.nohats.ca
Received: from mx.nohats.ca ([IPv6:::1]) by localhost (mx.nohats.ca [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id J8KePzXqCQXD; Wed, 2 Jan 2019 03:38:07 +0100 (CET)
Received: from bofh.nohats.ca (bofh.nohats.ca [76.10.157.69]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.nohats.ca (Postfix) with ESMTPS; Wed, 2 Jan 2019 03:38:07 +0100 (CET)
Received: by bofh.nohats.ca (Postfix, from userid 1000) id E30AF31940C; Tue, 1 Jan 2019 21:38:05 -0500 (EST)
DKIM-Filter: OpenDKIM Filter v2.11.0 bofh.nohats.ca E30AF31940C
Received: from localhost (localhost [127.0.0.1]) by bofh.nohats.ca (Postfix) with ESMTP id D9A3C4187620; Tue, 1 Jan 2019 21:38:05 -0500 (EST)
Date: Tue, 01 Jan 2019 21:38:05 -0500
From: Paul Wouters <paul@nohats.ca>
To: Valery Smyslov <smyslov.ietf@gmail.com>
cc: IPsecme WG <ipsec@ietf.org>, "Scott Fluhrer (sfluhrer)" <sfluhrer@cisco.com>, pkampana@cisco.com
In-Reply-To: <523914FE74054C1CB4C095B3E7D1BB46@chichi>
Message-ID: <alpine.LRH.2.21.1901012134150.32137@bofh.nohats.ca>
References: <154575066894.24030.13252361041324294083@ietfa.amsl.com> <004601d49c65$23561120$6a023360$@gmail.com> <alpine.LRH.2.21.1812272300570.29618@bofh.nohats.ca> <012b01d49e79$93c68780$bb539680$@gmail.com> <alpine.LRH.2.21.1812301419280.29481@bofh.nohats.ca> <523914FE74054C1CB4C095B3E7D1BB46@chichi>
User-Agent: Alpine 2.21 (LRH 202 2017-01-01)
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"; format="flowed"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipsec/zevbwaihRAzUe0APWupB4WiQ3f0>
Subject: Re: [IPsec] I-D Action: draft-ietf-ipsecme-qr-ikev2-05.txt
X-BeenThere: ipsec@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IPsec protocols <ipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipsec>, <mailto:ipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipsec/>
List-Post: <mailto:ipsec@ietf.org>
List-Help: <mailto:ipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipsec>, <mailto:ipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Jan 2019 02:38:19 -0000

On Tue, 1 Jan 2019, Valery Smyslov wrote:

> first, I believe this discussion must be public, so I've added

Sure.

>>  information,
>>  like TS? I think we need to be more clear. So how about:
>>
>>   An attacker with a Quantum Computer that can read the decrypted
>>   IKE SA from the initial exchanges has access to all the
>>   configuration parameters exchanged via the IKE SA including
>>   all negotiated IPsec SAs information with the exception of the
>>   cryptographics keys used by those IPsec SAs which are protected
>>   by the PPK. IKE SA information available to such an attacker
>>   includes the traffic selectors that can expose the network
>>   architecture and IP address ranges that are in use. Deployments
>>   that are concerned with this MUST initiate a childless IKE SA
>>   [RFC6023] using PPKs and immediately rekey the IKE SA so it gains
>>   PPK protection before sending any other IKE messages such as
>>   CREATE_CHILD_SA or Informational exchange. If other sensitive
>>   information such as third party cryptographic keys for other
>>   protocols are transmited via IKE, implementations MUST rekey
>>   the IKE SA before sending those payloads over IKE to ensure this
>>   information is protected by the PPK.
>
> I think that the text is OK, however I'd replace "third party cryptographic keys"
> with just "cryptographic keys". In G-IKEv2 the keys transferred are not "thirs party".
> But I'd rather hear more from my co-authors and the WG.

Sounds good to me.

>>  It replaces the two old paragraphs? On the other hand, perhaps instead
>>  of this being hidden in the Security Considerations section, it deserves
>>  its own regular section?
>
> Not sure. It was a WG's decision that the information exchanged over IKE SA 
> is less important, so we can live with the ability for an attacker to recover 
> it.
> That's why the text is in the Security Considerations.

Okay.

>>  I wonder if we need to talk about RFC 4739 here? like:
>>
>>   If multiple authentication exchanges [RFC 4739] are required
>>   for the IKE SA, the IKE SA MUST rekey before sending the second
>>   IKE_AUTH exchange in response to the initial IKE_AUTH's
>>   ANOTHER_AUTH_FOLLOWS
>>   payload to avoid exposing the second authentication form to a quantum
>>   capable attacker.
>>
>>  But this would really complicate the state machine?
>
> You can't do it. There is a single IKE_AUTH exchange with multiple messages
> (like in EAP case). You can't do any rekeys until the IKE_AUTH exchange
> (which in case of RFC4739 includes multiple authentications) completes.

We can't, you prefer not to?

You _can_ protect the identities of the second authentication if you
would first rekey. I agree it is tricky in a state machine because right
now it is easy to state an unauthenticated IKE SA can never rekey. But
it is possible. It might not be worth the complication.

Paul