Re: [Lwip] [IPsec] Number of fixed SPI

Paul Wouters <paul@nohats.ca> Fri, 24 March 2017 22:30 UTC

Return-Path: <paul@nohats.ca>
X-Original-To: lwip@ietfa.amsl.com
Delivered-To: lwip@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 824CA12894E; Fri, 24 Mar 2017 15:30:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.001] 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 PFETb67k912K; Fri, 24 Mar 2017 15:30:08 -0700 (PDT)
Received: from mx.nohats.ca (mx.nohats.ca [IPv6:2a03:6000:1004:1::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 C161B12894A; Fri, 24 Mar 2017 15:30:08 -0700 (PDT)
Received: from localhost (localhost [IPv6:::1]) by mx.nohats.ca (Postfix) with ESMTP id 3vqdQk4y4JzD36; Fri, 24 Mar 2017 23:30:06 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nohats.ca; s=default; t=1490394606; bh=ZY9Rj3/s8nv5KOqnyAQhyhhUTLu+Z82wWXX5PFGchSU=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=GK/5UnmP7P2YwSBAIzhUGiqB/elQEvRdTSGPuKHl3oOXHZjmaXdqIKRXCF3+2gZsI 0vUvhSzqgmQhl1vpze9BIXwJI7e+5iQkeKQWHgyOeP1hngbv92OFrfTdeEruweTBSx 76TZrYlA3Jf3Mz3YpWMZhV37fhg8PwJDGHHkeRxY=
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 G22T8nwgSciJ; Fri, 24 Mar 2017 23:30:05 +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; Fri, 24 Mar 2017 23:30:05 +0100 (CET)
Received: by bofh.nohats.ca (Postfix, from userid 1000) id DEA9731C858; Fri, 24 Mar 2017 18:30:04 -0400 (EDT)
DKIM-Filter: OpenDKIM Filter v2.11.0 bofh.nohats.ca DEA9731C858
Received: from localhost (localhost [127.0.0.1]) by bofh.nohats.ca (Postfix) with ESMTP id C8022420ACA1; Fri, 24 Mar 2017 18:30:04 -0400 (EDT)
Date: Fri, 24 Mar 2017 18:30:04 -0400
From: Paul Wouters <paul@nohats.ca>
To: Daniel Migault <daniel.migault@ericsson.com>
cc: "lwip@ietf.org" <lwip@ietf.org>, IPsecME WG <ipsec@ietf.org>
In-Reply-To: <CADZyTkk512LR=cxOsmK_nOO3RdSi9ZVm_aXyqqMMCmSUfKO63w@mail.gmail.com>
Message-ID: <alpine.LRH.2.20.999.1703241826520.10334@bofh.nohats.ca>
References: <CADZyTkk512LR=cxOsmK_nOO3RdSi9ZVm_aXyqqMMCmSUfKO63w@mail.gmail.com>
User-Agent: Alpine 2.20.999 (LRH 202 2017-01-01)
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="ISO-8859-15"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/lwip/D4dxCUNSn3HuF4r13kWbBWUNzLk>
Subject: Re: [Lwip] [IPsec] Number of fixed SPI
X-BeenThere: lwip@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Lightweight IP stack <lwip.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lwip>, <mailto:lwip-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lwip/>
List-Post: <mailto:lwip@ietf.org>
List-Help: <mailto:lwip-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lwip>, <mailto:lwip-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 24 Mar 2017 22:30:10 -0000

On Fri, 24 Mar 2017, Daniel Migault wrote:

> I have a question regarding devices that are not able to randomly generate SPI, but instead
> store fix values.  The question is how much fix values could be provisioned.

This is pretty dangerous. Half a year ago or so we saw the Transcript
Collsion Attacks that could have succeeded if we hadn't used random
SPI numbers to prevent pre-calculation in the attack. Using a set of 10
non-random SPI numbers would potentially make this device vulnerable to
this attack.

Paul