Re: [6tisch] I-D Action: draft-ietf-6tisch-minimal-security-07.txt

Michael Richardson <mcr+ietf@sandelman.ca> Thu, 25 October 2018 17:52 UTC

Return-Path: <mcr+ietf@sandelman.ca>
X-Original-To: 6tisch@ietfa.amsl.com
Delivered-To: 6tisch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0AB7D1277D2; Thu, 25 Oct 2018 10:52:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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 5CUsDO2gfl-B; Thu, 25 Oct 2018 10:52:13 -0700 (PDT)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BBEA8126F72; Thu, 25 Oct 2018 10:52:12 -0700 (PDT)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 4950F20008; Thu, 25 Oct 2018 13:52:09 -0400 (EDT)
Received: by sandelman.ca (Postfix, from userid 179) id C7D72230D; Thu, 25 Oct 2018 13:52:11 -0400 (EDT)
Received: from sandelman.ca (localhost [127.0.0.1]) by sandelman.ca (Postfix) with ESMTP id C45A8269; Thu, 25 Oct 2018 13:52:11 -0400 (EDT)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: =?utf-8?B?R8O2cmFuIFNlbGFuZGVy?= <goran.selander@ericsson.com>
cc: "draft-ietf-6tisch-minimal-security@ietf.org" <draft-ietf-6tisch-minimal-security@ietf.org>, "6tisch@ietf.org" <6tisch@ietf.org>
In-Reply-To: <D3744C7E-8120-4362-BF08-87257AA207FB@ericsson.com>
References: <154027458402.13510.6626746365533128943@ietfa.amsl.com> <CANDGjyfu5frC=yufcAOa9Wbg12-uj+j+pnDmqmgwRgGdWpKsJA@mail.gmail.com> <D3744C7E-8120-4362-BF08-87257AA207FB@ericsson.com>
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 24.5.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature"
Date: Thu, 25 Oct 2018 13:52:11 -0400
Message-ID: <13277.1540489931@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/6tisch/Jp59PBqpoJ9xq3uRw-q8BfTR80A>
Subject: Re: [6tisch] I-D Action: draft-ietf-6tisch-minimal-security-07.txt
X-BeenThere: 6tisch@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discuss link layer model for Deterministic IPv6 over the TSCH mode of IEEE 802.15.4e, and impacts on RPL and 6LoWPAN such as resource allocation" <6tisch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6tisch>, <mailto:6tisch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/6tisch/>
List-Post: <mailto:6tisch@ietf.org>
List-Help: <mailto:6tisch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6tisch>, <mailto:6tisch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Oct 2018 17:52:15 -0000

Göran Selander <goran.selander@ericsson.com> wrote:
    > Now, the PSK in the Constrained Join protocol is used as the OSCORE Master
    > Secret, from which the Sender/Recipient Contexts, including Sender/Recipient
    > Keys, are derived. It is these keys, not the PSK, which are used for
    > authentication and communication security in OSCORE, so they need to be
    > unique and independent in each pledge. Since the Sender/Recipient Contexts
    > are derived from the PSK and the pledge identifier using HKDF, the derived
    > keys are expected to get these good properties as long as the input to HKDF
    > is different for different endpoints. So, having unique PSKs is a sufficient
    > condition. But having unique pledge identifiers is also sufficient, even if
    > the same PSK is used: Pledges may be provisioned directly with the
    > Sender/Recipient Context in a 1-touch fashion without access to the PSK, and
    > can then run the Constrained Join protocol. In fact, this is a quite
    > attractive deployment scheme:

    > * The pledges do not need to implement HKDF or SHA-256.

What I'm hearing is that Pledges may be provisioned (at the factory) with:
     SRContext = HKDF(PSK, PledgeIdentifier, other-stuff)

while the JRC can be provisioned with:
      1) PSK
      2) list of valid PledgeIdentifiers

What does not change is that:
     a) SRContext still must be kept a secret.
     b) SRcontext is still unique per-pledge (so can't be baked directly into firmware!)

So this is easier for the JRC, but does not really change anything in the way
that Pledges have to be "touched".

    > But even if you don’t do that, I propose that you do describe the deployment
    > scheme sketched above, for example in an appendix, and explain in that
    > section why this scheme is secure even though it is not complying with
    > the

I agree that putting it into an appendix would work.
A completely separate document might also a good idea. (An operational BCP)

In particular, leaving it to another document might allow other things that
need to be baked in uniquely to be described.  I am thinking about a
connection to the hash-based signature work that the SUIT WG cares about.

--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-