Re: [secdir] secdir review of draft-ietf-6tisch-architecture-21

Mališa Vučinić <malisa.vucinic@inria.fr> Fri, 12 July 2019 09:04 UTC

Return-Path: <malisa.vucinic@inria.fr>
X-Original-To: secdir@ietfa.amsl.com
Delivered-To: secdir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5FC7E12049A; Fri, 12 Jul 2019 02:04:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.898
X-Spam-Level:
X-Spam-Status: No, score=-6.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FROM_EXCESS_BASE64=0.001, RCVD_IN_DNSWL_HI=-5, 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 EF70-0wOCNBJ; Fri, 12 Jul 2019 02:04:17 -0700 (PDT)
Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (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 50740120462; Fri, 12 Jul 2019 02:04:15 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="5.63,481,1557180000"; d="scan'208";a="391553283"
Received: from wifi-eduroam-84-247.paris.inria.fr ([128.93.84.247]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jul 2019 11:04:13 +0200
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Mališa Vučinić <malisa.vucinic@inria.fr>
In-Reply-To: <23847.47989.166847.374951@fireball.acr.fi>
Date: Fri, 12 Jul 2019 11:04:13 +0200
Cc: "Pascal Thubert (pthubert)" <pthubert@cisco.com>, "draft-ietf-6tisch-architecture.all@ietf.org" <draft-ietf-6tisch-architecture.all@ietf.org>, "secdir@ietf.org" <secdir@ietf.org>, Michael Richardson <mcr+ietf@sandelman.ca>, "iesg@ietf.org" <iesg@ietf.org>, Thomas Watteyne <thomas.watteyne@inria.fr>, David Mandelberg <david@mandelberg.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <42437526-EFD8-47F7-994C-A914049EB6A3@inria.fr>
References: <2cced16c-d1df-88c2-eb21-7452b42f081a@mandelberg.org> <MN2PR11MB35651735463F27A247B4B0F0D8E00@MN2PR11MB3565.namprd11.prod.outlook.com> <23825.24715.882644.180316@fireball.acr.fi> <MN2PR11MB35655F77D328CD9B27029413D8E30@MN2PR11MB3565.namprd11.prod.outlook.com> <23846.21029.236657.158497@fireball.acr.fi> <23847.47989.166847.374951@fireball.acr.fi>
To: Tero Kivinen <kivinen@iki.fi>
X-Mailer: Apple Mail (2.3445.104.11)
Archived-At: <https://mailarchive.ietf.org/arch/msg/secdir/Zct4JVhvoCw2q8cRDsSsQhQNd8A>
Subject: Re: [secdir] secdir review of draft-ietf-6tisch-architecture-21
X-BeenThere: secdir@ietf.org
X-Mailman-Version: 2.1.29
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: <https://mailarchive.ietf.org/arch/browse/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: Fri, 12 Jul 2019 09:04:22 -0000

Hello Tero,

My understanding of this attack that you describe is that the attacker:

(1) can force the joined node to drop out of the network
(2) can force the pledge (ex. joined node) to select it as JP

(1) can be relaxed by assuming that the joined node can for any reason drop out of network. Another way to do this would be the selective jamming attack as discussed in draft-tiloca-6tisch-robust-scheduling. So this holds.

For (2), my understanding is that we have consensus that the protection is the existing mechanism specified in RFC8180 making the pledge wait for MAX_EB_DELAY before selecting a JP in order to have at least NUM_NEIGHBOURS_TO_WAIT distinct JP candidates, with legitimate ones advertising a value of ASN that is higher than that replayed by the attacker. What seems missing is a note in the minimal-security draft that the pledge MUST remain listening on the initial channel after receiving the first EB, in order not to enable the attacker to desync it from the network.

Did I get that wrong?

Mališa

> On 12 Jul 2019, at 00:43, Tero Kivinen <kivinen@iki.fi> wrote:
> 
> Tero Kivinen writes:
>> I am now back from my eclipse trip, so I will try to answer some of
>> these emails appeared while I was on vacation. 
> 
> And, now when I was thinking this more, I think there is actually
> bigger issue, as the first step of joining is done in clear, without
> any protection, so attacker does can simply act as man in the middle
> and convert ASNs as it feels like on the second run.
> 
> I.e., attacker first allows JN to join network normally and stores all
> packets JN sends and the associated ASN. When it finds packet with ASN
> z it wants to attack it forces JN to drop out of network (note, this
> packet it wants to attack can be much later, it does not have to be
> any of the first frames).
> 
> Then it sends a beacon with ASN of x, where x is close to the ASN of
> packet it wants to attack. JN then packet out to JRC with ASN of x +
> n1, the attacker can ack it, and then take that packet and replay that
> to the JRC at ASN of y (where x != y, and y > x). When JRC sends reply
> packet at y + m, the attacker can reply it back to JN with ASN x + n2
> and JN will accept it. Now JN has properly rejoined the network (both
> JN and JRC have authenticated themselves) and JN has keys K1, but
> thinks ASN is x instead of y. Next packet it sends will be encrypted
> with K1 and with ASN of x + n3. If x + n3 happens to be the ASN
> of z the attacker gets two frames encrypted with same key k1 and nonce
> generated from ASN z. If first try goes wrong it can allow JN to
> replay until x + n3 > z, and then it can start over again and adjust
> the starting value of x so it is better guess of how long JN will take
> when sending frames out... 
> 
> So I do not think we can do anything in the JN <-> JRC protocol to
> protect against this, the only real way to protect against this, is to
> send L2 authenticated (but not encrypted) frame after authentication
> phase from the JN to JRC containing random cookie, and require that
> JRC to echo it back to JN in similar authenticated but not encrypted
> frame.
> 
> I.e., make sure the joining process is (I leave out acks in this
> picture):
> 
> JN				JRC
> --				---
> security level 0
> joining request ->
> 
> 				<-- security level 0
> 				    joining reply
> 
> take L2 key K1 in use
> security level 1-3
> cookie request ->
> 
> 				<-- security level 1-3
> 				    cookie reply with same
> 				    cookie than in request.
> 
> And after this the JN is ready to start sending encrypted frames. 
> -- 
> kivinen@iki.fi
> 
> -- 
> MailScanner believes this is threat-free - www.ucg.ac.me
>