Re: [Emu] [Ace] About securing last exchange CoAP-EAP

Christian Amsüss <christian@amsuess.com> Mon, 11 October 2021 10:16 UTC

Return-Path: <christian@amsuess.com>
X-Original-To: emu@ietfa.amsl.com
Delivered-To: emu@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 65ECE3A09B8; Mon, 11 Oct 2021 03:16:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 qH4aSwqcxe-I; Mon, 11 Oct 2021 03:16:10 -0700 (PDT)
Received: from prometheus.amsuess.com (prometheus.amsuess.com [5.9.147.112]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 274663A098B; Mon, 11 Oct 2021 03:16:09 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by prometheus.amsuess.com (Postfix) with ESMTPS id 0DEF6400D8; Mon, 11 Oct 2021 12:16:07 +0200 (CEST)
Received: from poseidon-mailbox.amsuess.com (poseidon-mailbox.amsuess.com [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 1442C106; Mon, 11 Oct 2021 12:16:05 +0200 (CEST)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:58a:38c7:d462:d25e]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id BFC3510A; Mon, 11 Oct 2021 12:16:04 +0200 (CEST)
Received: (nullmailer pid 1456610 invoked by uid 1000); Mon, 11 Oct 2021 10:16:04 -0000
Date: Mon, 11 Oct 2021 12:16:04 +0200
From: Christian Amsüss <christian@amsuess.com>
To: Rafa Marin-Lopez <rafa@um.es>
Cc: Dan Garcia Carrillo <garciadan@uniovi.es>, EMU WG <emu@ietf.org>, "ace@ietf.org" <ace@ietf.org>
Message-ID: <YWQO5DciOKxuBB3L@hephaistos.amsuess.com>
References: <07cd0942-9ee0-b124-b3a7-649f262d7c9e@uniovi.es> <YRp7k/qFA0dE+/wp@hephaistos.amsuess.com> <78D49A4D-AE9D-4701-9ADF-DAF8ABB317ED@um.es>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="gVxoZt2FxSxTitwa"
Content-Disposition: inline
In-Reply-To: <78D49A4D-AE9D-4701-9ADF-DAF8ABB317ED@um.es>
Archived-At: <https://mailarchive.ietf.org/arch/msg/emu/f1wmDwiH-ocsA6MdIS4e3Hh6ZvA>
Subject: Re: [Emu] [Ace] About securing last exchange CoAP-EAP
X-BeenThere: emu@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "EAP Methods Update \(EMU\)" <emu.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/emu>, <mailto:emu-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/emu/>
List-Post: <mailto:emu@ietf.org>
List-Help: <mailto:emu-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/emu>, <mailto:emu-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Oct 2021 10:16:16 -0000

Hi,

sorry for spreading this out over the sub-threads[1], just to get the
pointers right and everything addressed:

On Fri, Sep 03, 2021 at 08:32:59PM +0200, Rafa Marin-Lopez wrote:
> 2) When the CoAP message contains the OSCORE ID that hits the OSCORE
>   context without any key material, we would have to assume this is
>   CoAP-EAP: the OSCORE implementation should not discard or give a
>   fail for this coap message but "pass the control" to CoAP-EAP so
>   that we send a altAccept to the EAP state machine so we get the MSK.

It's not because the context is without key material -- it's because
that context was created by EAP and that software component, rather than
giving a key, gave a "callback" (however it's precisely implemented)
that tells the OSCORE context to rather ask for a key with metadata from
the last message.

(OSCORE appendix B.2 needs something similar to implement, so this
shouldn't be new to OSCORE implementations).

> 3) From the MSK, we derive the OSCORE key material for the OSCORE
>   context with the corresponding ID and update the OSCORE context with
>   this key material 

The key IDs need to be preconfigured for this to work, see [2] -- but
that's best practice anyway.

BR
c

[1]: https://mailarchive.ietf.org/arch/msg/emu/nb8zGGDJ3d4fUaCW8QMkf6rkhVs/
[2]: https://mailarchive.ietf.org/arch/msg/core/AK8Wxy64tXofocdRHm5HNew8dpE/

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom