Re: [IPsec] Number of fixed SPI

Paul Wouters <paul@nohats.ca> Sun, 26 March 2017 17:40 UTC

Return-Path: <paul@nohats.ca>
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 AC5021205D3; Sun, 26 Mar 2017 10:40:19 -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 iKprLRwBeLV3; Sun, 26 Mar 2017 10:40:17 -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 A19391294D1; Sun, 26 Mar 2017 10:40:17 -0700 (PDT)
Received: from localhost (localhost [IPv6:::1]) by mx.nohats.ca (Postfix) with ESMTP id 3vrkvM0K9Wz37r; Sun, 26 Mar 2017 19:40:15 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nohats.ca; s=default; t=1490550015; bh=DmsX4n8X0bU8MKHnnXIlG0PDkqVU3SG1NacEwIbbulY=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=jzTgsEvPs7asRherFCpUv0Wvz8gWqCW1iqnZ2EWNLhGglDGPh5WrqPHvIYQOPCIks IhTWDnwAFNE5ND7biQ0dkU1Zh8a0d2hg/h0Y/aNG7m/mtQcNsfJtrAAOg1YiyS3gm7 PJjR+18E0+RhnFH8DyZwXB4084zfwkgRBlAD+OME=
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 VPaeRZnGqKkk; Sun, 26 Mar 2017 19:40:13 +0200 (CEST)
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; Sun, 26 Mar 2017 19:40:13 +0200 (CEST)
Received: by bofh.nohats.ca (Postfix, from userid 1000) id D52983943A0; Sun, 26 Mar 2017 13:40:12 -0400 (EDT)
DKIM-Filter: OpenDKIM Filter v2.11.0 bofh.nohats.ca D52983943A0
Received: from localhost (localhost [127.0.0.1]) by bofh.nohats.ca (Postfix) with ESMTP id CD7E540D358A; Sun, 26 Mar 2017 13:40:12 -0400 (EDT)
Date: Sun, 26 Mar 2017 13:40:12 -0400
From: Paul Wouters <paul@nohats.ca>
To: Daniel Migault <daniel.migault@ericsson.com>
cc: IPsecME WG <ipsec@ietf.org>, "lwip@ietf.org" <lwip@ietf.org>
In-Reply-To: <alpine.LRH.2.20.999.1703241826520.10334@bofh.nohats.ca>
Message-ID: <alpine.LRH.2.20.999.1703261339230.17047@bofh.nohats.ca>
References: <CADZyTkk512LR=cxOsmK_nOO3RdSi9ZVm_aXyqqMMCmSUfKO63w@mail.gmail.com> <alpine.LRH.2.20.999.1703241826520.10334@bofh.nohats.ca>
User-Agent: Alpine 2.20.999 (LRH 202 2017-01-01)
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipsec/j0vFpdVTc2iOisHGOvI241lUxAU>
Subject: Re: [IPsec] Number of fixed SPI
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: Sun, 26 Mar 2017 17:40:20 -0000

On Fri, 24 Mar 2017, Paul Wouters wrote:

> 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.

As Tero pointed out to me just now, those were IKE SPI's and not ESP
SPI's to I guess there is no security issue here :)

Paul