Re: [IPsec] Ben Campbell's Yes on draft-ietf-ipsecme-rfc7321bis-05: (with COMMENT)

Eric Rescorla <ekr@rtfm.com> Mon, 19 June 2017 15:17 UTC

Return-Path: <ekr@rtfm.com>
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 9A67913152E for <ipsec@ietfa.amsl.com>; Mon, 19 Jun 2017 08:17:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
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 muFMZHIInLEW for <ipsec@ietfa.amsl.com>; Mon, 19 Jun 2017 08:17:33 -0700 (PDT)
Received: from mail-yw0-x22b.google.com (mail-yw0-x22b.google.com [IPv6:2607:f8b0:4002:c05::22b]) (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 00575128BC8 for <ipsec@ietf.org>; Mon, 19 Jun 2017 08:17:32 -0700 (PDT)
Received: by mail-yw0-x22b.google.com with SMTP id l75so41724261ywc.3 for <ipsec@ietf.org>; Mon, 19 Jun 2017 08:17:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qdULphOEt1tlB2T9fGQH3S1l90Q7LMra1lGUPrOwgA8=; b=TuraigA5eNl0IARAWSagd+rIrVJncjpgSZ71vQWqFrVDrFYGBHKKmtIVu3TaurGJ8U 87cdUNJ7M3vVoFWKxWPF0GF+qZm/hBW/8Sv6BEXLSjYOCbnP8M4SSJr8lyBM0oU5Fr18 UoL1Lyfo5YtIMjevyRkG9dyHX5SmtmgPsAK50+41e53c5d7Laz3RMINfZkXW/SCu03/e ZNvQD4b3apYaKv3ZyeuQd4HxCgrbKDg6C4i3L+0Eprme2c+iz9z94T7lXNLherHNVQ2f F9a18/KL5pbKYeYWrERxNDcMMBSN36eMk/QCiqC1+0WpRU13GQPnZCpd6C/kxIk/FSAs SC6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qdULphOEt1tlB2T9fGQH3S1l90Q7LMra1lGUPrOwgA8=; b=oMqnsmVl1n58CW2aInPoFvBNtAT3bY75l9vyED27NZBzDfCTrewhJZQKFN82Gk3wcT hx7+HwFRqW/jDMmxN8oChv8lMaAX+GQrB0ejaP7/zKraU72xwUdJHY4PmAJdiwbCkulc sWrR8ZeXDoi0cXM4CtHSORKGFFHW1/CTiPocCeg62Q32iRnGSBJN1BOqqsPiVkQhlrod BcSi3kFP1CPZbPeW/e1yttywSTCym/iVdbr76vWpoD3XyV7qlbFJfHpoQrfKsLDMOsMx ViGvNqnd+ww8+QFssrtW4SCwd0iOzZxSNxFJcIxKrIshCmCgCxTYJAC+GWDC3pMy/S39 mu0g==
X-Gm-Message-State: AKS2vOy0e/QK3ufWBMb9Asswj+iJI3vg+8bZtqFsDU+j5XaSrtV+6VY3 98AAZf86+hg4+Xg9boa2S0VSAfdQbxQhf+c=
X-Received: by 10.129.71.213 with SMTP id u204mr5168379ywa.270.1497885452202; Mon, 19 Jun 2017 08:17:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.13.215.144 with HTTP; Mon, 19 Jun 2017 08:16:51 -0700 (PDT)
In-Reply-To: <alpine.LRH.2.21.1706191026150.5777@bofh.nohats.ca>
References: <148962889979.14189.965850110922865986.idtracker@ietfa.amsl.com> <alpine.LRH.2.20.999.1703161300150.32675@bofh.nohats.ca> <22739.38728.808538.27709@fireball.acr.fi> <alpine.LRH.2.21.1706191026150.5777@bofh.nohats.ca>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 19 Jun 2017 08:16:51 -0700
Message-ID: <CABcZeBM2ky_8fL9ya5bQfZy2L7NQCGyPQC6Y_FHDgCtBobF7nw@mail.gmail.com>
To: Paul Wouters <paul@nohats.ca>
Cc: Tero Kivinen <kivinen@iki.fi>, draft-ietf-ipsecme-rfc7321bis@ietf.org, Ben Campbell <ben@nostrum.com>, ipsecme-chairs@ietf.org, IPsecME WG <ipsec@ietf.org>, The IESG <iesg@ietf.org>, david.waltermire@nist.gov
Content-Type: multipart/alternative; boundary="001a114c6ec04b62fb055251a287"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipsec/GDX_kb-K1Rkqm2MzSNRJkX6Do5I>
Subject: Re: [IPsec] Ben Campbell's Yes on draft-ietf-ipsecme-rfc7321bis-05: (with COMMENT)
X-BeenThere: ipsec@ietf.org
X-Mailman-Version: 2.1.22
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: Mon, 19 Jun 2017 15:17:36 -0000

On Mon, Jun 19, 2017 at 7:45 AM, Paul Wouters <paul@nohats.ca> wrote:

> On Thu, 23 Mar 2017, Tero Kivinen wrote:
>
> Paul Wouters writes:
>>
>>> -3: I wonder why "... is not to be used..." is not "... MUST NOT be
>>>> used...". But the section goes on to say if you do it anyway, you MUST
>>>> NOT use certain cryptosuites. So, does "... is not to be used..." mean
>>>> "SHOULD NOT"? Or is this one of those "MUST NOT BUT WE KNOW YOU WILL"
>>>> sort of requirements?
>>>>
>>>
>>> It is indeed. I think a SHOULD NOT would actually be appropriate ?
>>>
>>
>> We do not want to make the implementation of the manual keying MUST
>> NOT, as it is still useful in testing and similar situations, but we
>> do not want anybody using it in any real world use cases. As this
>> document is mostly about the implementation and tries to stay out from
>> the issues about what should be used (as explained in the 2nd
>> paragraph of the section 1.3).
>>
>> On the other hand section 1.3 is really about the use of the manual
>> keying, not about the implementation of manual keying, so that
>> confuses things (we do have some other cases were we say things DES
>> MUST NOT be used).
>>
>> I think the text needs to be clarified about this bit more, especially
>> we do not want to say that ENCR_AES_CBC MUST be used, as there are
>> other algorithms which can also be used (MUST be used would indicate
>> no other algorithm is possible).
>>
>
> Here is a suggestion:
>
> OLD text:
>
> 3.  Manual Keying
>
>    Manual Keying is not to be used as it is inherently dangerous.
>    Without any keying protocol, it does not offer Perfect Forward
>    Secrecy ("PFS") protection.  Deployments tend to never be
>    reconfigured with fresh session keys.  It also fails to scale and
>    keeping SPI's unique amongst many servers is impractical.  This
>    document was written for deploying ESP/AH using IKE ([RFC7296]) and
>    assumes that keying happens using IKEv2.
>
>    If manual keying is used anyway, ENCR_AES_CBC MUST be used, and
>    ENCR_AES_CCM, ENCR_AES_GCM and ENCR_CHACHA20_POLY1305 MUST NOT be
>    used as these algorithms require IKE.
>
> NEW text:
>
> 3.  Manual Keying
>
> Manual Keying SHOULD NOT be used as it is inherently dangerous.
> Without any keying protocol, it does not offer Perfect Forward
> Secrecy ("PFS") protection. Without IKE, another entity needs to
> ensure refreshing of session keys, tracking SPI uniqueness and
> ensuring nonces or IVs are not used more then once. This document
> was written for deploying ESP/AH using IKE ([RFC7296]) and assumes
> that keying happens using IKE version 2 or higher.
>
> If manual keying is used anyway, AEAD algorithms MUST NOT be used,
> as these algorithms require additional input provided by IKE and
> are compromised if a counter is accidentally re-used, such as when
> a counter overflows, or when a device reboots without remembering
> the previously used counters. As of publication of this document,
> ENCR_AES_CBC is the only non-AEAD Mandatory-To-Implement encryption
> algorithm suitable for Manual Keying.


It's not AEAD that's the problem here. After all, it's perfectly possible
to do AEAD
with CBC-HMAC. Rather, it's CTR mode.

-Ekr


>
>
> - Table in section 6:
>>>> I'm boggled by the first entry being labeled "MUST/MUST NOT". I don't
>>>> see
>>>> anything in the text to explain the "MUST" part--did I miss something?
>>>>
>>>
>>>
>>> First paragraph under the table:
>>>
>>>     AUTH_NONE has been downgraded from MAY in RFC7321 to MUST NOT.  The
>>>     only reason NULL is acceptable is when authenticated encryption
>>>     algorithms are selected from Section 5.  In all other cases, NULL
>>>     MUST NOT be selected.
>>>
>>
>> It does not make it easier that there is typo in that paragraph, and
>> it talks about NULL, when it should be talking about AUTH_NONE...
>>
>
> Queued up (NULL -> AUTH_NONE)
>
> Paul
>
>