
From nobody Fri Dec  1 06:49:09 2017
Return-Path: <David.Black@dell.com>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 365BF126B71 for <tcpinc@ietfa.amsl.com>; Fri,  1 Dec 2017 06:49:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.721
X-Spam-Level: 
X-Spam-Status: No, score=-2.721 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=dell.com header.b=BcASGii4; dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=emc.com header.b=R0JluLtg
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 1ZFfGjG1CNvH for <tcpinc@ietfa.amsl.com>; Fri,  1 Dec 2017 06:49:06 -0800 (PST)
Received: from esa8.dell-outbound.iphmx.com (esa8.dell-outbound.iphmx.com [68.232.149.218]) (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 D5EB7120725 for <tcpinc@ietf.org>; Fri,  1 Dec 2017 06:49:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1512139746; x=1543675746; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=cdKBHQnumYqbj3OSsIGP+yZUrM6hqiH51x/ZBOxEFrM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-ascii?q?Zw/Ues1DCS3A7J8O5EO1o7la/DJp4kxb4/i4QcvFzYHi/zhEX2lKiWdlg4+uSw?= =?us-ascii?q?6+TofLHmppiEOoBqkQHxKKsjltaiDusmNggOW3GX+eOh1L3/5kL5R6hKjvsrna?= =?us-ascii?q?XHqpzaJNwbpq68Aw5ayIos9xG/DzK+3NQZm3kIMk5FdQqGgoXqIV3CPv71Aeml?= =?us-ascii?q?j1ixkDpmyOrKM7niD5nVK3jMirbhfbJz605GzwozyMhS6ZxOBbEfIfL8R1X9uc?= =?us-ascii?q?HcDhAjLwO0wP3qB8hj2YMaXWKDGLOWMKTXsVOQ/OIgP/GMZJMJuDb6M/Ul++Lh?= =?us-ascii?q?jWc4mV8bYaakxpoXZ26kHvRoOUmZZmDsgthSWVsN6zQ3SOHwmRW5VC9IY3GsF/?= =?us-ascii?q?Yn+Dg9Ep+OAoLKR4Tri7uEinSVBJpTMypsDlmHEjOgW4yaWvtGIHa+K9Fgnnou?= =?us-ascii?q?UbGqSKct2BWq8gT9zuw0faLv5iQEuMe7h5BO7OrJmER3rGQsAg=3D=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FgAACRayFah2Ka6ERcHAEBAQQBAQoBA?= =?us-ascii?q?YJsgSZ+JweOGI5zgX1+lX+BUkMKhTsChSg/GAEBAQEBAQEBAQECEAEBAQgNCQg?= =?us-ascii?q?oL4I4JAEOSyEFMgEBAQEBAQEBAQEBAQEBAQEBARcCPRMCGAEBAQMBOgYfGgEPA?= =?us-ascii?q?gEIDhQUBQsyJQIEDg2KEggBqUmDEIdUAQEBAQEFAQEBAQEBAQEYCINBgTZUgVe?= =?us-ascii?q?BaIJ1NoUNFoNEgjKiYQYCi12dB5YcAgQCBAUCGoE6H4IHb4J4gmIlgU54hz2BM?= =?us-ascii?q?oEUAQEB?=
X-IPAS-Result: =?us-ascii?q?A2FgAACRayFah2Ka6ERcHAEBAQQBAQoBAYJsgSZ+JweOGI5?= =?us-ascii?q?zgX1+lX+BUkMKhTsChSg/GAEBAQEBAQEBAQECEAEBAQgNCQgoL4I4JAEOSyEFM?= =?us-ascii?q?gEBAQEBAQEBAQEBAQEBAQEBARcCPRMCGAEBAQMBOgYfGgEPAgEIDhQUBQsyJQI?= =?us-ascii?q?EDg2KEggBqUmDEIdUAQEBAQEFAQEBAQEBAQEYCINBgTZUgVeBaIJ1NoUNFoNEg?= =?us-ascii?q?jKiYQYCi12dB5YcAgQCBAUCGoE6H4IHb4J4gmIlgU54hz2BMoEUAQEB?=
Received: from esa4.dell-outbound2.iphmx.com ([68.232.154.98]) by esa8.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Dec 2017 08:49:06 -0600
From: "Black, David" <David.Black@dell.com>
Received: from mailuogwhop.emc.com ([168.159.213.141]) by esa4.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Dec 2017 20:49:05 +0600
Received: from maildlpprd05.lss.emc.com (maildlpprd05.lss.emc.com [10.253.24.37]) by mailuogwprd01.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id vB1En4FA007906 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 1 Dec 2017 09:49:04 -0500
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd01.lss.emc.com vB1En4FA007906
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=emc.com; s=jan2013; t=1512139744; bh=D0lEpxPHlFYUtQhHwsPBqSYZjFk=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=R0JluLtgRBD2jnrcVI1vCMFenb1rQsc0slIWKzTa3f1RmhhF8GyouZAec+qgUN6Nc aK+QOy4T2sZbn/T3c+KVsHDwkYcn3AGOR4t6ljI+BvCjnaUgmdxmmwnHJjrY10Mzre 5g2RAzDWlBn7Ihs8kqxwuxhu/7wxevZ9d0iymshc=
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd01.lss.emc.com vB1En4FA007906
Received: from mailusrhubprd52.lss.emc.com (mailusrhubprd52.lss.emc.com [10.106.48.25]) by maildlpprd05.lss.emc.com (RSA Interceptor); Fri, 1 Dec 2017 09:48:44 -0500
Received: from MXHUB317.corp.emc.com (MXHUB317.corp.emc.com [10.146.3.95]) by mailusrhubprd52.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id vB1EmkOF019049 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=FAIL); Fri, 1 Dec 2017 09:48:46 -0500
Received: from MX307CL04.corp.emc.com ([fe80::849f:5da2:11b:4385]) by MXHUB317.corp.emc.com ([10.146.3.95]) with mapi id 14.03.0352.000; Fri, 1 Dec 2017 09:48:45 -0500
To: Valery Smyslov <svanru@gmail.com>
CC: "'tcpinc'" <tcpinc@ietf.org>, "'Kyle Rose'" <krose@krose.org>, "'Mirja Kuehlewind (IETF)'" <ietf@kuehlewind.net>, "'Eric Rescorla'" <ekr@rtfm.com>
Thread-Topic: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
Thread-Index: AQHTaWeKaqBgAqiJTU6Vp2CkSB85m6Ms+8NAgADSxICAAJUEAIAALnKA
Date: Fri, 1 Dec 2017 14:48:45 +0000
Message-ID: <CE03DB3D7B45C245BCA0D243277949362FDAF297@MX307CL04.corp.emc.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com>
In-Reply-To: <01bc01d36a71$45957db0$d0c07910$@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.238.44.138]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Sentrion-Hostname: mailusrhubprd52.lss.emc.com
X-RSA-Classifications: public
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/RX4yaTCA-LvnSZ3I2oD5HOGEpTE>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Dec 2017 14:49:08 -0000

> > > 2)      Copying a running virtual machine, including memory, which cr=
eates a
> > > copy of the session secrets.  Such copies are routinely stored on non=
-volatile
> > > storage, from which the VM can be resumed.
>=20
> [...]
>=20
> > > An additional reason for concern is that the encryption provided by t=
he mandatory
> >> AEAD algorithm for tcpcrypt, AEAD_AES_128_GCM, is a stream cipher (AES=
 GCM),
> >> for which reuse of a <nonce, key> pair is catastrophic - XOR-ing the t=
wo
> ciphertexts removes encryption.
>=20
> This is not tcpcrypt problem. The same problem applies to any
> security protocol (IPsec, TLS, etc.) that uses counter based cipher modes=
 (GCM, CCM, etc.).
> Switch to nonce-misuse resistant modes.

The actual situation is more subtle than that.  The VM is likely to be stor=
ed for long
enough that TCP connections drop - if not, e.g.,  the VM is cloned and the =
clone
runs immediately, that new VM likely has to be assigned a new IP address in=
 order
to not conflict with the existing VM, and that also drops TCP connections.

In both cases, the security protocol resumes or restarts with a new TCP con=
nection,
providing an opportunity to inject entropy.  TLS injects entropy when it re=
sumes, but
the current tcpcrypt design does not.  If a restart happens, both protocols=
 (obviously)
use new entropy.

Thanks, --David (still as an individual, not WG chair)


From nobody Fri Dec  1 11:56:28 2017
Return-Path: <krose@krose.org>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4FC08128B51 for <tcpinc@ietfa.amsl.com>; Fri,  1 Dec 2017 11:56:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level: 
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=krose.org
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 OsEGwZlEflzN for <tcpinc@ietfa.amsl.com>; Fri,  1 Dec 2017 11:56:25 -0800 (PST)
Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com [IPv6:2607:f8b0:400d:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 63D64124D85 for <tcpinc@ietf.org>; Fri,  1 Dec 2017 11:56:25 -0800 (PST)
Received: by mail-qk0-x22b.google.com with SMTP id z203so14657554qkb.5 for <tcpinc@ietf.org>; Fri, 01 Dec 2017 11:56:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=krose.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LlMM6GMdnBBCvWU8lFhkzH6qHhljIPQwb4Qofb7KJDk=; b=NhmQcGASv9OFcXm1eYVIUdPFtKd51pjMh0e8JmsLnWkWcxU31R6fh3IabG0kG0hJ7p UiX2h11mKZuQ2vGEXKaOJe1X+rKnHMufd9yrycyiRWHAUqJou1Hy8VPxwL/yMgZTSAS8 E8n5LeXXDClyvMJabmze2fCqFnU/bFwwjvKG0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LlMM6GMdnBBCvWU8lFhkzH6qHhljIPQwb4Qofb7KJDk=; b=E1syAC1Ck7RuMHA6c8XV/EDHzjwej1O69TRsvJ+5ams5+Mksezx4WHZGLzEzGlgVK8 jE5YVPOid7SFL8l6QsJs97zMdNhMirddpL+WjCHlrXDR/j8D+HSY68bim5TwZz0c79Nc q6mmfAA6+TI3Q9vpHPVPjc9KmCuRptObktZFEqGaqAJL8gw8GXqcs3w+Wte/a9u4lugg I2PncRX597EZLemNce4hx0RPOEcqz+3Q9u7tTlYKnrQq5LAI6hSs7pmKfYosNjEPHymw 7WJ6qNWeo+IUcRdQZy1c73YtG+qbbHHbD70aTXAvTR2mFXv6mYBlvMuW5Mx+7UrPekuF 6RJw==
X-Gm-Message-State: AKGB3mIwLIevTZMUXKboaRg+4pd79KQ2HpZttfil6DwGc8aHinLzH2vK Xw5nb/4LPQIikNL6SVjivZK1atdDkA+veKOaMXl0gA==
X-Google-Smtp-Source: AGs4zMaC+GraJYT/OKfam29DmITSovBFX+8Cny9FCYuFb6hZd0+58DW0/U8I2DCHkPYYjviaIovWLP0AA/nZhe71vlk=
X-Received: by 10.55.5.149 with SMTP id 143mr9541139qkf.298.1512158184296; Fri, 01 Dec 2017 11:56:24 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.195.1 with HTTP; Fri, 1 Dec 2017 11:56:23 -0800 (PST)
X-Originating-IP: [2001:4878:a000:3000:2c15:beda:f806:c94a]
In-Reply-To: <CE03DB3D7B45C245BCA0D243277949362FDAF297@MX307CL04.corp.emc.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CE03DB3D7B45C245BCA0D243277949362FDAF297@MX307CL04.corp.emc.com>
From: Kyle Rose <krose@krose.org>
Date: Fri, 1 Dec 2017 14:56:23 -0500
Message-ID: <CAJU8_nWzJ-rZ9SKH+S-BnyzmGR_Q1zjZZz1r89Bi+HbG8t5XBA@mail.gmail.com>
To: "Black, David" <David.Black@dell.com>
Cc: Valery Smyslov <svanru@gmail.com>, tcpinc <tcpinc@ietf.org>,  "Mirja Kuehlewind (IETF)" <ietf@kuehlewind.net>, Eric Rescorla <ekr@rtfm.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/YuIs9myDMF6E7AxgKHpZu--WFPc>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Dec 2017 19:56:27 -0000

On Fri, Dec 1, 2017 at 9:48 AM, Black, David <David.Black@dell.com> wrote:
>> This is not tcpcrypt problem. The same problem applies to any
>> security protocol (IPsec, TLS, etc.) that uses counter based cipher modes (GCM, CCM, etc.).
>> Switch to nonce-misuse resistant modes.
>
> The actual situation is more subtle than that.  The VM is likely to be stored for long
> enough that TCP connections drop - if not, e.g.,  the VM is cloned and the clone
> runs immediately, that new VM likely has to be assigned a new IP address in order
> to not conflict with the existing VM, and that also drops TCP connections.
>
> In both cases, the security protocol resumes or restarts with a new TCP connection,
> providing an opportunity to inject entropy.  TLS injects entropy when it resumes, but
> the current tcpcrypt design does not.  If a restart happens, both protocols (obviously)
> use new entropy.

I'm not sure what you're trying to argue here. Assuming correct client
behavior, ss[i] will never be used twice, so we are necessarily
dealing with a situation in which the client is acting incorrectly.
Preventing fragility means ensuring we are not in a hazardous state,
i.e., that we are two or more uncorrelated failures away from
breakage.

The server VM clone situation pushes this mitigation entirely to the
client because a resumed VM may very well have a PRNG in the same
state, and so produce the same nonce for the same connection on every
subsequent resumption. I think what we're relying on here is for the
*client* not to both (a) request ss[i] twice and (b) send the same
nonce twice. Without (b), we're only one failure away from breakage;
with (b), the client would have to have both a bad PRNG and a broken
resumption stack.

(Note that the situation in which a client suffers from the same VM
clone problem as the server is completely hopeless.)

Kyle


From nobody Fri Dec  1 16:09:24 2017
Return-Path: <ekr@rtfm.com>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A72551270A0 for <tcpinc@ietfa.amsl.com>; Fri,  1 Dec 2017 16:09:23 -0800 (PST)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
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 EfG-S1acHwJO for <tcpinc@ietfa.amsl.com>; Fri,  1 Dec 2017 16:09:22 -0800 (PST)
Received: from mail-yb0-x229.google.com (mail-yb0-x229.google.com [IPv6:2607:f8b0:4002:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C8194124E15 for <tcpinc@ietf.org>; Fri,  1 Dec 2017 16:09:21 -0800 (PST)
Received: by mail-yb0-x229.google.com with SMTP id s46so4658729ybi.8 for <tcpinc@ietf.org>; Fri, 01 Dec 2017 16:09:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XDqaaOlFS14DCfJkNfuDI06q/fVl6H3lUQrxo/PxvIc=; b=rzbGfmyeV/tu6fC1p5yuCPDtedyEtBpWoXua4qDzEmq4wa4xgJ7ljdF7iyPw/wqmZs kDUw1m2ZMsP7yXQ4h9hyFf73CZiKkw/++YKPUpCw1JOAZFb+CXnimA28uLh6cM4+PFvg em71dIchKKQ6l0i3hh3wUB/xaaGv50qJj0MJG/lQaRXFtnBIOEpfQqNheW4CpEHcHlvj JUC4aPpUQwZ2DxLzEWW5/efDjINwdlfOSrYODEVuGf/q1L1CU5+XNqRdsMktUoAqvLly AuOt7z6WOdhDo00IDZhBi9cC3uv+kWd1+YW09okjUC5/HN+wmrvChFlLuP2oR9RmtvUT 8xUw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XDqaaOlFS14DCfJkNfuDI06q/fVl6H3lUQrxo/PxvIc=; b=svRNkSjxVaoPIJsB4cYDZtQXzhNi6Qdyt2tjisc4+/YpfrIs9phDuMrQsPHE3J9vAm x3jzkfEvvATdhBbMSbTq7wWlaQb6b56OjJ8Wa9ZWsYjnEJd+Td5wbOtBJ2DLEBQIE2GF nkbgeMJvlGPTVO7081bV5my6YiqHiTbroi0CHVekHsJYUaRg1kRNATdhRY76j+Co/mf7 8O4yea2hFzy4LkUYZyzxme6QjNbIRD41oYxYLSRvRAAcl2i5dsb6OXjSeyh66knd2eH0 2BN+/pdf+bFKUpPJoPwU7dkbn2+GlHyZ7tj87tVcv/YLmBjDme0suDcAIXAE8f8/GEC8 Cy4Q==
X-Gm-Message-State: AJaThX4VOF6hfTfDahQWePy464M4al0yoCYm/JKZ/b7v+4cmDdbga95P VTsnk7ly2emRSLcGC+ofSPNhUGyaTcPgpaeN3n76/g==
X-Google-Smtp-Source: AGs4zMYWVqqEiePvCWg26DyPEQCaAZ8epDowNwb0WdpnS/gi9Mfbt0rVZbPLQpfttoqyOg6SdigV6Dtqr6pxMIVYLz4=
X-Received: by 10.37.13.4 with SMTP id 4mr5081585ybn.416.1512173360964; Fri, 01 Dec 2017 16:09:20 -0800 (PST)
MIME-Version: 1.0
Received: by 10.129.123.132 with HTTP; Fri, 1 Dec 2017 16:08:40 -0800 (PST)
In-Reply-To: <01bc01d36a71$45957db0$d0c07910$@gmail.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Fri, 1 Dec 2017 16:08:40 -0800
Message-ID: <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com>
To: Valery Smyslov <svanru@gmail.com>
Cc: "Black, David" <David.Black@dell.com>, tcpinc <tcpinc@ietf.org>, Kyle Rose <krose@krose.org>,  "Mirja Kuehlewind (IETF)" <ietf@kuehlewind.net>
Content-Type: multipart/alternative; boundary="001a11c04fae04fd04055f504c25"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/Jmc5-Dfynjr92Hj4v1QpHW81C0w>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 02 Dec 2017 00:09:23 -0000

--001a11c04fae04fd04055f504c25
Content-Type: text/plain; charset="UTF-8"

On Thu, Nov 30, 2017 at 10:54 PM, Valery Smyslov <svanru@gmail.com> wrote:

> Hi,
>
> > Black, David writes:
> > > 2)      Copying a running virtual machine, including memory, which
> creates a
> > > copy of the session secrets.  Such copies are routinely stored on
> non-volatile
> > > storage, from which the VM can be resumed.
>
> [...]
>
> > > An additional reason for concern is that the encryption provided by
> the mandatory
> >> AEAD algorithm for tcpcrypt, AEAD_AES_128_GCM, is a stream cipher (AES
> GCM),
> >> for which reuse of a <nonce, key> pair is catastrophic - XOR-ing the
> two ciphertexts removes encryption.
>
> This is not tcpcrypt problem. The same problem applies to any
> security protocol (IPsec, TLS, etc.) that uses counter based cipher modes
> (GCM, CCM, etc.).
> Switch to nonce-misuse resistant modes.
>

Actually, the problem here is unique to tcpcrypt because it doesn't use a
nonce during resumption, so
reuse of the resumption key causes failure. That does not happen in TLS or
(I believe) IKE.

-Ekr


> Regards,
> Valery Smyslov.
>
>
>

--001a11c04fae04fd04055f504c25
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Nov 30, 2017 at 10:54 PM, Valery Smyslov <span dir=3D"ltr">&lt;=
<a href=3D"mailto:svanru@gmail.com" target=3D"_blank">svanru@gmail.com</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=3D""><br>
&gt; Black, David writes:<br>
&gt; &gt; 2)=C2=A0 =C2=A0 =C2=A0 Copying a running virtual machine, includi=
ng memory, which creates a<br>
&gt; &gt; copy of the session secrets.=C2=A0 Such copies are routinely stor=
ed on non-volatile<br>
&gt; &gt; storage, from which the VM can be resumed.<br>
<br>
</span>[...]<br>
<span class=3D""><br>
&gt; &gt; An additional reason for concern is that the encryption provided =
by the mandatory<br>
&gt;&gt; AEAD algorithm for tcpcrypt, AEAD_AES_128_GCM, is a stream cipher =
(AES GCM),<br>
&gt;&gt; for which reuse of a &lt;nonce, key&gt; pair is catastrophic - XOR=
-ing the two ciphertexts removes encryption.<br>
<br>
</span>This is not tcpcrypt problem. The same problem applies to any<br>
security protocol (IPsec, TLS, etc.) that uses counter based cipher modes (=
GCM, CCM, etc.).<br>
Switch to nonce-misuse resistant modes.<br></blockquote><div><br></div><div=
>Actually, the problem here is unique to tcpcrypt because it doesn&#39;t us=
e a nonce during resumption, so</div><div>reuse of the resumption key cause=
s failure. That does not happen in TLS or (I believe) IKE.</div><div><br></=
div><div>-Ekr</div><div><br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards,<br>
Valery Smyslov.<br>
<br>
<br>
</blockquote></div><br></div></div>

--001a11c04fae04fd04055f504c25--


From nobody Fri Dec  1 16:10:24 2017
Return-Path: <ekr@rtfm.com>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 716721286D6 for <tcpinc@ietfa.amsl.com>; Fri,  1 Dec 2017 16:10:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
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 lYAELqNHCrJI for <tcpinc@ietfa.amsl.com>; Fri,  1 Dec 2017 16:10:18 -0800 (PST)
Received: from mail-yb0-x22f.google.com (mail-yb0-x22f.google.com [IPv6:2607:f8b0:4002:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8EBE812711B for <tcpinc@ietf.org>; Fri,  1 Dec 2017 16:10:18 -0800 (PST)
Received: by mail-yb0-x22f.google.com with SMTP id b188so4659061ybg.11 for <tcpinc@ietf.org>; Fri, 01 Dec 2017 16:10:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lBLJHh/Qx3jglbTfo9u9B9GPmjvo/Jvq36D1TmSbMnA=; b=k93EUFME1dYWh2/LJWoNq3KKU7TIwBbLgBbda+PY34nU/McjSfBupQ8c8aQwROeBhG 1I2rZp1k93L3N7GISE9i/eggFlqM6bM015pm68q+a/2WKNNPVk8GgAwNXZSIMuLkz1Xa 8Tg7SOp4/EB1Xux6l1XfU7xxpSqFg8lulNWbtOGutEBfc4CDRuFFi7kTz0B7ce44prPp mv5g2a4oQxmJ4vGAlVDIyY7rQqIfTocZynSkhF9sXFrISSrhd+rShALPKtHkzOoktyeq vdKd2oR8A4wkvSPjESlL1Y2vsoK48/wiu94AfaHo+/zekm4P/aziqMSNW20/SSlqUmfO AfCg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lBLJHh/Qx3jglbTfo9u9B9GPmjvo/Jvq36D1TmSbMnA=; b=NH3jCot8LJRVIaYnWq1khyDtPQIxUJ72mf+gGtCjkGVSKmsI/G45vrggt800qXt6U/ gzx+iwyZFxh985ERtHSTq+SjMKNqh84aIBDew39rqKpXuOB+3ShmgqINVjvSyAMmc6Pl 9cEdxT+NZdoEG3Mxc/zbPefgx+FQhC5mFgqkPiIYGr+rVKUCZnD65GcQJsKxiAiPcf+3 e8Wo1SdkDSuL+ThsKkmLhUq21YralwleVpN9YzhC2JVeY1eMM6ZkK+UhXw4Xh6KTzDya Hfp0Om9Pxx+lveVz2TN85ggctd6zugRO8DAEbItUTtL6oOJNAK4Uw31zkkwN2nZ/iEyE xXSQ==
X-Gm-Message-State: AJaThX5lSgkEuw/9NPGhB+46xUG1VSidnNo0YQCk3xfi7XrSAqa+keWA 1G1tm5lyR9/DR76OJuqlRAioPHpyMyxWe4ga3duz+g==
X-Google-Smtp-Source: AGs4zMafv+10gRvstyyeE6eDPc02QYOjcAq/EGq29n13ILW7j3Y3WdUQLHHPtPz/p7iligaWwkIuNGnAfHc+YFZspOg=
X-Received: by 10.37.107.82 with SMTP id o18mr4734133ybm.293.1512173417832; Fri, 01 Dec 2017 16:10:17 -0800 (PST)
MIME-Version: 1.0
Received: by 10.129.123.132 with HTTP; Fri, 1 Dec 2017 16:09:37 -0800 (PST)
In-Reply-To: <CAJU8_nWzJ-rZ9SKH+S-BnyzmGR_Q1zjZZz1r89Bi+HbG8t5XBA@mail.gmail.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CE03DB3D7B45C245BCA0D243277949362FDAF297@MX307CL04.corp.emc.com> <CAJU8_nWzJ-rZ9SKH+S-BnyzmGR_Q1zjZZz1r89Bi+HbG8t5XBA@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Fri, 1 Dec 2017 16:09:37 -0800
Message-ID: <CABcZeBMh6tOi_fNyxX7NaYh57Mhi9CsznkKyF=JkHrLT6XacaA@mail.gmail.com>
To: Kyle Rose <krose@krose.org>
Cc: "Black, David" <David.Black@dell.com>, Valery Smyslov <svanru@gmail.com>,  tcpinc <tcpinc@ietf.org>, "Mirja Kuehlewind (IETF)" <ietf@kuehlewind.net>
Content-Type: multipart/alternative; boundary="089e08267d3068c1d7055f504f02"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/07vdl9U8_2TDEUQZc1ivFa_fE_8>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 02 Dec 2017 00:10:20 -0000

--089e08267d3068c1d7055f504f02
Content-Type: text/plain; charset="UTF-8"

On Fri, Dec 1, 2017 at 11:56 AM, Kyle Rose <krose@krose.org> wrote:

> On Fri, Dec 1, 2017 at 9:48 AM, Black, David <David.Black@dell.com> wrote:
> >> This is not tcpcrypt problem. The same problem applies to any
> >> security protocol (IPsec, TLS, etc.) that uses counter based cipher
> modes (GCM, CCM, etc.).
> >> Switch to nonce-misuse resistant modes.
> >
> > The actual situation is more subtle than that.  The VM is likely to be
> stored for long
> > enough that TCP connections drop - if not, e.g.,  the VM is cloned and
> the clone
> > runs immediately, that new VM likely has to be assigned a new IP address
> in order
> > to not conflict with the existing VM, and that also drops TCP
> connections.
> >
> > In both cases, the security protocol resumes or restarts with a new TCP
> connection,
> > providing an opportunity to inject entropy.  TLS injects entropy when it
> resumes, but
> > the current tcpcrypt design does not.  If a restart happens, both
> protocols (obviously)
> > use new entropy.
>
> I'm not sure what you're trying to argue here. Assuming correct client
> behavior, ss[i] will never be used twice, so we are necessarily
> dealing with a situation in which the client is acting incorrectly.
>

Or an on-path attacker captures the sessionid and replays it to the server.

-Ekr

--089e08267d3068c1d7055f504f02
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Fri, Dec 1, 2017 at 11:56 AM, Kyle Rose <span dir=3D"ltr">&lt;<a hre=
f=3D"mailto:krose@krose.org" target=3D"_blank">krose@krose.org</a>&gt;</spa=
n> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><span class=3D"">On Fri, Dec 1,=
 2017 at 9:48 AM, Black, David &lt;<a href=3D"mailto:David.Black@dell.com">=
David.Black@dell.com</a>&gt; wrote:<br>
&gt;&gt; This is not tcpcrypt problem. The same problem applies to any<br>
&gt;&gt; security protocol (IPsec, TLS, etc.) that uses counter based ciphe=
r modes (GCM, CCM, etc.).<br>
&gt;&gt; Switch to nonce-misuse resistant modes.<br>
&gt;<br>
&gt; The actual situation is more subtle than that.=C2=A0 The VM is likely =
to be stored for long<br>
&gt; enough that TCP connections drop - if not, e.g.,=C2=A0 the VM is clone=
d and the clone<br>
&gt; runs immediately, that new VM likely has to be assigned a new IP addre=
ss in order<br>
&gt; to not conflict with the existing VM, and that also drops TCP connecti=
ons.<br>
&gt;<br>
&gt; In both cases, the security protocol resumes or restarts with a new TC=
P connection,<br>
&gt; providing an opportunity to inject entropy.=C2=A0 TLS injects entropy =
when it resumes, but<br>
&gt; the current tcpcrypt design does not.=C2=A0 If a restart happens, both=
 protocols (obviously)<br>
&gt; use new entropy.<br>
<br>
</span>I&#39;m not sure what you&#39;re trying to argue here. Assuming corr=
ect client<br>
behavior, ss[i] will never be used twice, so we are necessarily<br>
dealing with a situation in which the client is acting incorrectly.<br></bl=
ockquote><div><br></div><div>Or an on-path attacker captures the sessionid =
and replays it to the server.</div><div><br></div><div>-Ekr</div><div><br><=
/div><div><br></div></div></div></div>

--089e08267d3068c1d7055f504f02--


From nobody Sun Dec  3 05:42:49 2017
Return-Path: <svanru@gmail.com>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 756C31205F1 for <tcpinc@ietfa.amsl.com>; Sun,  3 Dec 2017 05:42:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.261
X-Spam-Level: 
X-Spam-Status: No, score=-2.261 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, STOX_REPLY_TYPE=0.439] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 K5H7LuLrpo3Q for <tcpinc@ietfa.amsl.com>; Sun,  3 Dec 2017 05:42:46 -0800 (PST)
Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 139B3126DFB for <tcpinc@ietf.org>; Sun,  3 Dec 2017 05:42:46 -0800 (PST)
Received: by mail-lf0-x22f.google.com with SMTP id f20so16307253lfe.3 for <tcpinc@ietf.org>; Sun, 03 Dec 2017 05:42:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-transfer-encoding:importance; bh=T4IeSM8PjWpkZNml7ah7zWjw46JcFXlDxxWNHkY4egs=; b=PnyPJ3A7oDMZLgKV9pjHZ/ihfn45Fqae3ijWF4L3HL3I797OVorBHP2iXlZZapHL/5 243D8jkwlJHDBoBrF5Kx6ayvvCz5MK0OYMWlQ6d/SYP5rTX9CsLQhrur0FErZMGvaIPI +3ZZcX4dLyJzqLNEZO6cXInTb4wYRHycROXoxoyb0j4mQSJTrVNrfgCwNHSe9yJd3n8c 19NLbnFTlqWRyrT2wo04K6pRaPNtw23+bRlhvkJcQxZ2pjaiQ0wC5/o49TimxE4Fglrg LnyaPM3ZwO4HX4k6dflvqoSvoS5F3LkuWwiFS68GR7ROD5I6d/ouRvJeNKPzYkSkSyWg gLEw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:references:in-reply-to :subject:date:mime-version:content-transfer-encoding:importance; bh=T4IeSM8PjWpkZNml7ah7zWjw46JcFXlDxxWNHkY4egs=; b=jmEP1eRsQWjUwuFjHiwgUFgvawFUqP6VN5LODoxgGjUaCQf2r+PFpY3c26iYXFyBOY SJj4lmanjqDCrHQA6/nP5Z+LIe/SLQbqeWrfggQYfRNVvTy8x+NwTGRYx+nJjxVK2+Z4 ZJ/+hxWM0O+uf5dElOy26DBSF7aoWgU2EBAGKu4/LbRbSOMqaRyvLf8PeIvQPjZ+OQAL WWx3N/JLDv2gsK429vXmZsYKTpvhmBuZ/+6NGYO4nZecY89ow0Ek3eZ2b1/Mxc+WqWFv c18/5d40Zb0CHjUrQIozcIUJaOcuaLSwh3RsLf8PZNuDJe/Xnq7k7fd59okcazcRinuM XtMg==
X-Gm-Message-State: AJaThX4WT/EjxlQXZzbRxiBch4EDP354VIw3AAr85s7XIJ3Rup9rqFvH TshzHE0/TcQBSDKKJ+uxFMs=
X-Google-Smtp-Source: AGs4zMbYAmQAuIkeqyLrNI8gzvlLzvo1jHtjMHZVEjrfAryISFMVmyaaTy44dWf+k4hfoitNP8VHXw==
X-Received: by 10.46.32.230 with SMTP id g99mr7401971lji.147.1512308564275; Sun, 03 Dec 2017 05:42:44 -0800 (PST)
Received: from chichi (ppp83-237-174-99.pppoe.mtu-net.ru. [83.237.174.99]) by smtp.gmail.com with ESMTPSA id p73sm1965217lfp.9.2017.12.03.05.42.42 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Dec 2017 05:42:43 -0800 (PST)
Message-ID: <B0FB25D40E23475C9259A4C204B327D2@chichi>
From: "Valery Smyslov" <svanru@gmail.com>
To: "Eric Rescorla" <ekr@rtfm.com>
Cc: "Black, David" <David.Black@dell.com>, "tcpinc" <tcpinc@ietf.org>, "Kyle Rose" <krose@krose.org>, "Mirja Kuehlewind \(IETF\)" <ietf@kuehlewind.net>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com>
In-Reply-To: <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com>
Date: Sun, 3 Dec 2017 16:42:41 +0300
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 16.4.3528.331
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/B3qGxtSinW2RIJQLohoLm4DwIC4>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 03 Dec 2017 13:42:48 -0000

Hi Eric,

> > This is not tcpcrypt problem. The same problem applies to any
> > security protocol (IPsec, TLS, etc.) that uses counter based cipher modes (GCM, CCM, etc.).
> > Switch to nonce-misuse resistant modes.
> 
> 
> Actually, the problem here is unique to tcpcrypt because it doesn't use a nonce during resumption, so
> reuse of the resumption key causes failure. That does not happen in TLS or (I believe) IKE.
> 
> -Ekr

Thanks for clarification, I can see that tcpcrypt behaves less secure in resumption than TLS
or IKE (and you are right, IKE does use a nonce during resumption). 

But I was reffering to a slightly different situation. If you freeze running VM, clone it, then
resume for a while, then stop it and resume the clone, then internal state of your cloned VM
will be exactly the same as it was in the first reincarnation of VM. If you implement cipher in software,
then all counters, used for couner-based encryption mode will repeat, that will break
security regardless of the security protocol in use. Of course, if the event of VM resumption is somehow 
detected by implementation inside VM, then the implementation can immediately delete old session
and create a new one, adding (hopefully) fresh nonces. I'm not sure that software inside 
VM can always detect that the VM is resumed.

Regards,
Valery.




From nobody Mon Dec  4 12:29:19 2017
Return-Path: <David.Black@dell.com>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 64919128B88 for <tcpinc@ietfa.amsl.com>; Mon,  4 Dec 2017 12:29:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.721
X-Spam-Level: 
X-Spam-Status: No, score=-2.721 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=dell.com header.b=dOv8boVy; dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=emc.com header.b=dnB7VFER
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 mMF0qXgbiEbJ for <tcpinc@ietfa.amsl.com>; Mon,  4 Dec 2017 12:29:16 -0800 (PST)
Received: from esa3.dell-outbound.iphmx.com (esa3.dell-outbound.iphmx.com [68.232.153.94]) (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 067371267BB for <tcpinc@ietf.org>; Mon,  4 Dec 2017 12:29:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1512418781; x=1543954781; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=r1XlEzGiwODKmHobFPFryrdIb1m6KNm+M00KICt1Z1w=; b=dOv8boVy4M9fynQAFhocls4VxQwEN64FFpt0MB7Mtq2h3tmQkGQh8W4z tJyMyfC5jxzK2avfn35mcfTfhmGY5nb+2+s79IO+wKr396E8qhnyoSJ0e NHyRQVvIRcdQ8UlKkYT2LGWtMW/JsnJHAYFjbEbCmCm15LBYxMEAmFlUz k=;
IronPort-PHdr: =?us-ascii?q?9a23=3A9Z5FWBc+1XUOMDrq8uVOsvAWlGMj4u6mDksu8pMi?= =?us-ascii?q?zoh2WeGdxcSzYB7h7PlgxGXEQZ/co6odzbGH4+a4ASQp2tWoiDg6aptCVhsI24?= =?us-ascii?q?09vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7?= =?us-ascii?q?Ovr6GpLIj8Swyuu+54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eTGQVWdm22WL?= =?us-ascii?q?x0siolAYS8EK/MQ4mshPqK2yLtWtV7fGFNQmqBCnzvbYGNE6MBazi6ONNvl3oP?= =?us-ascii?q?Ur33GKE70hT7/iX+wrFkaqL48zMZudirgPR8+ezf0zs2/Dd3J8iQ12XLRGZxyD?= =?us-ascii?q?BbDwQq1bxy9BQugmyI1rJ11rkBTYRe?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2E8AABBryVah8uZ6ERcGgEBAQEBAgEBA?= =?us-ascii?q?QEIAQEBAYJsgiQnB4N4iiCOeoF9iHSODYFSQwqCAYM6AhqFGj8YAQEBAQEBAQE?= =?us-ascii?q?BAQIQAQEBCgsJCCgvgjgkAQ5LIQUyAQEBAQEBAQEBAQEBAQEBAQEBFwI9EwIYA?= =?us-ascii?q?QEBAwEjEQwfGgEEBwQCAQgOAwQBAQMCBhkEAwICAh8RFAEICAIEARIIigIDDQg?= =?us-ascii?q?BqACCJ4MQhCsNgxgBAQEBAQEBAQEBAQEBAQEBAQEBFwiBD4I4gTZUgVeBaIMrg?= =?us-ascii?q?muCIBiDEzGCMqI0NwYCkBWYUI07iGUCBAIEBQIagTofggdvgniCUhAMGYFOeId?= =?us-ascii?q?PKoEJgRQBAQE?=
X-IPAS-Result: =?us-ascii?q?A2E8AABBryVah8uZ6ERcGgEBAQEBAgEBAQEIAQEBAYJsgiQ?= =?us-ascii?q?nB4N4iiCOeoF9iHSODYFSQwqCAYM6AhqFGj8YAQEBAQEBAQEBAQIQAQEBCgsJC?= =?us-ascii?q?CgvgjgkAQ5LIQUyAQEBAQEBAQEBAQEBAQEBAQEBFwI9EwIYAQEBAwEjEQwfGgE?= =?us-ascii?q?EBwQCAQgOAwQBAQMCBhkEAwICAh8RFAEICAIEARIIigIDDQgBqACCJ4MQhCsNg?= =?us-ascii?q?xgBAQEBAQEBAQEBAQEBAQEBAQEBFwiBD4I4gTZUgVeBaIMrgmuCIBiDEzGCMqI?= =?us-ascii?q?0NwYCkBWYUI07iGUCBAIEBQIagTofggdvgniCUhAMGYFOeIdPKoEJgRQBAQE?=
Received: from esa5.dell-outbound2.iphmx.com ([68.232.153.203]) by esa3.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Dec 2017 14:19:41 -0600
From: "Black, David" <David.Black@dell.com>
Cc: tcpinc <tcpinc@ietf.org>, Kyle Rose <krose@krose.org>, "Mirja Kuehlewind (IETF)" <ietf@kuehlewind.net>, "Black, David" <David.Black@dell.com>
Received: from mailuogwdur.emc.com ([128.221.224.79]) by esa5.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Dec 2017 02:23:39 +0600
Received: from maildlpprd51.lss.emc.com (maildlpprd51.lss.emc.com [10.106.48.155]) by mailuogwprd54.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id vB4KTBij008469 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 4 Dec 2017 15:29:13 -0500
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd54.lss.emc.com vB4KTBij008469
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=emc.com; s=jan2013; t=1512419354; bh=2/6HdffGUeU1cEJUJAAChAfcLpU=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=dnB7VFERHszgu5Dm7GHhJNp0E8kJirLApRPR/Rka4YdDxcEhqZMK3vR1VPItDimBz sb4gj1RGj3YjzeBMd7dtMpuEAc+rbuGS00nJLehGt6QCIdyI9ZKUr1l0Rtu6wUMdRr ngEpegPm9wc84MufAOs1VBHyLKdNQYzIWmV2hU/o=
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd54.lss.emc.com vB4KTBij008469
Received: from mailusrhubprd53.lss.emc.com (mailusrhubprd53.lss.emc.com [10.106.48.18]) by maildlpprd51.lss.emc.com (RSA Interceptor); Mon, 4 Dec 2017 15:29:04 -0500
Received: from MXHUB309.corp.emc.com (MXHUB309.corp.emc.com [10.146.3.35]) by mailusrhubprd53.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id vB4KT3Af031513 (version=TLSv1.2 cipher=AES128-SHA256 bits=128 verify=FAIL); Mon, 4 Dec 2017 15:29:03 -0500
Received: from MX307CL04.corp.emc.com ([fe80::849f:5da2:11b:4385]) by MXHUB309.corp.emc.com ([10.146.3.35]) with mapi id 14.03.0352.000; Mon, 4 Dec 2017 15:29:02 -0500
To: Valery Smyslov <svanru@gmail.com>, Eric Rescorla <ekr@rtfm.com>
Thread-Topic: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
Thread-Index: AQHTaWeKaqBgAqiJTU6Vp2CkSB85m6Ms+8NAgADSxICAAJUEAIABIOEAgAJ1xICAAaVOQA==
Date: Mon, 4 Dec 2017 20:29:02 +0000
Message-ID: <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi>
In-Reply-To: <B0FB25D40E23475C9259A4C204B327D2@chichi>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.105.8.135]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Sentrion-Hostname: mailusrhubprd53.lss.emc.com
X-RSA-Classifications: public, GIS Solicitation
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/NDMPnTZs1JWriARVlh-8VqnCf1k>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Dec 2017 20:29:18 -0000

SGkgVmFsZXJ5LA0KDQpUaGFua3MgZm9yIGNvbnRyaWJ1dGluZyB0byB0aGUgZGlzY3Vzc2lvbi4N
Cg0KPiBUaGFua3MgZm9yIGNsYXJpZmljYXRpb24sIEkgY2FuIHNlZSB0aGF0IHRjcGNyeXB0IGJl
aGF2ZXMgbGVzcyBzZWN1cmUgaW4gcmVzdW1wdGlvbiB0aGFuIFRMUw0KPiBvciBJS0UgKGFuZCB5
b3UgYXJlIHJpZ2h0LCBJS0UgZG9lcyB1c2UgYSBub25jZSBkdXJpbmcgcmVzdW1wdGlvbikuDQo+
DQo+IEJ1dCBJIHdhcyByZWZlcnJpbmcgdG8gYSBzbGlnaHRseSBkaWZmZXJlbnQgc2l0dWF0aW9u
LiBJZiB5b3UgZnJlZXplIHJ1bm5pbmcgVk0sIGNsb25lIGl0LCB0aGVuDQo+IHJlc3VtZSBmb3Ig
YSB3aGlsZSwgdGhlbiBzdG9wIGl0IGFuZCByZXN1bWUgdGhlIGNsb25lLCB0aGVu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BJJ20gbm90IHN1cmUgdGhhdA0KPiBzb2Z0d2FyZSBpbnNpZGUNCj4g
Vk0gY2FuIGFsd2F5cyBkZXRlY3QgdGhhdCB0aGUgVk0gaXMgcmVzdW1lZC4NCj4gDQo+IFJlZ2Fy
ZHMsDQo+IFZhbGVyeS4NCj4gDQo+IA0KDQo=


From nobody Mon Dec 11 11:01:55 2017
Return-Path: <krose@krose.org>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B5D4412726E for <tcpinc@ietfa.amsl.com>; Mon, 11 Dec 2017 11:01:53 -0800 (PST)
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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=krose.org
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 mJqDKWOZr66D for <tcpinc@ietfa.amsl.com>; Mon, 11 Dec 2017 11:01:50 -0800 (PST)
Received: from mail-qt0-x234.google.com (mail-qt0-x234.google.com [IPv6:2607:f8b0:400d:c0d::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 94BDF126D73 for <tcpinc@ietf.org>; Mon, 11 Dec 2017 11:01:50 -0800 (PST)
Received: by mail-qt0-x234.google.com with SMTP id a16so41277956qtj.3 for <tcpinc@ietf.org>; Mon, 11 Dec 2017 11:01:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=krose.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=g16KJSOFAZ7XsGCsJdpTDUPWWv2d58XczicL3EKDyGk=; b=GTxgsF4259aTu96xaTGXlgvWsaUaB0cd9iIAu/w41cXrPFN8lM3kcMhox4lXJWUZ4B GV7ama1uGEJEvn/DF9F9PArs1UqP1KRr/ywL/YMa586fTVc9+695cuTWOuQEWQ8iN/No T5/jjfPbwepK2K/hUfxtX/eku3FeGr2wKHjss=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=g16KJSOFAZ7XsGCsJdpTDUPWWv2d58XczicL3EKDyGk=; b=LUp+FhhckTDuNGk4NlHimEkLHlXwHsMuNkgEifbygxNeG21HjYziNrggidixfa7Coj ENaxUBOLQiTUh2bF1QfPIrduDBp6sZXsM3XvAbQaSmnzpWB1uraPz7CRUq6tWfzykm+W lzSNjuUsF8Hv+cF6MLAX35h4ab/z94qPkbNYBaNpvl9Qjay6+AKEwxox0+8hD9StU9Wo s8HdTqgl70K5aBWrC+ZZKRpsW5Spu40FRFfCIjOwnZgiW7/rcsqWEvJgzVt0atRaJypL daA+sy9a9kMtguSvF10uTSKFxKV/qDV9Sfn4eBf6kfDUErHuQz6XgTjpDM1K4HZOOSaJ 5WQQ==
X-Gm-Message-State: AKGB3mIOd83GxBFUAJgCTxZZjsYo5UQzIEgicrTbuGsaQpFJsV14LowD Lpq3QV5/3lboUuAYlmOR8wErDJTR/n6IU86pdqznww==
X-Google-Smtp-Source: ACJfBotNNrRBHi1KXiP53/xRRsC2JHlLqVWlLQeuU5/+Q7x9Q34UGhPD5XQAihW7udWAutV0+OTc+iGYniW/Dsb5XZU=
X-Received: by 10.200.49.166 with SMTP id h35mr1953750qte.293.1513018908661; Mon, 11 Dec 2017 11:01:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.195.1 with HTTP; Mon, 11 Dec 2017 11:01:48 -0800 (PST)
X-Originating-IP: [2001:4878:a000:3000:4062:9a1e:a20:4bf0]
In-Reply-To: <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi> <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com>
From: Kyle Rose <krose@krose.org>
Date: Mon, 11 Dec 2017 14:01:48 -0500
Message-ID: <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com>
To: "Black, David" <David.Black@dell.com>
Cc: Valery Smyslov <svanru@gmail.com>, Eric Rescorla <ekr@rtfm.com>, tcpinc <tcpinc@ietf.org>, "Mirja Kuehlewind (IETF)" <ietf@kuehlewind.net>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/Eyr0cHgRPC_uvAQ8al_Uz1hX7RE>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Dec 2017 19:01:54 -0000

Apologies for the radio silence: I was completely hosed by Akamai's
annual tech summit last week. To resume the discussion:

On Mon, Dec 4, 2017 at 3:29 PM, Black, David <David.Black@dell.com> wrote:
>> But I was referring to a slightly different situation. If you freeze run=
ning VM, clone it, then
>> resume for a while, then stop it and resume the clone, then internal sta=
te of your cloned VM
>> will be exactly the same as it was in the first reincarnation of VM.
>
> That assumes that the VM has no external interactions.  While that's poss=
ible in a completely controlled environment (e.g., running two VMs in near-=
lockstep for fault-tolerance), it's rather atypical in practice, as VMs are=
 exposed to differences in events such as, interrupt timing, inbound networ=
k I/O contents and actual wall-clock time.

It's not clear that this will make its way into the entropy pool
before use unless the hypervisor and guest kernel have some explicit
interaction to re-seed the entropy pool before resumption. I think
Valery and I agree on the danger here, and on the hopelessness of the
case in which both endpoints are VM clones without such explicit
support.

> I agree that one cannot rely on a VM detecting that it has been resumed, =
however...
>
> There are interesting (at least to me) situations that are part of the wa=
y there - the VM has been stopped/frozen for long enough that the TCP conne=
ctions drop when the VM is resumed.

In the absence of on-path state (e.g., connection-tracking NATs), all
state related to a TCP connection exists on the endpoints. Thus, you
still end up in this scenario unless the kernel times out the
connection preemptively upon resumption after a sufficient delay,
something I am fairly confident would *not* always happen based upon
my experience resuming keepalive-free connections after a half hour or
more.

> Independent of why a TCP connection dropped, tcpcrypt resumption from the=
re would be more robust if it injected fresh nonces and new entropy.

Fresh nonces are a function of many things, implementation-defined.
Timestamp would presumably be sufficient to avoid most problems here.
Better still (avoiding clock-handling and time synchronization errors)
would be fresh entropy injected prior to VM resumption. Both are
really outside the scope of the guest's control: I can always
construct a situation in which a system would send different data with
the same key and nonce. That said, I think the discussion here is
about making the protocol *able* to take advantage of newly-injected
entropy, which currently it is not. And on that point, I agree with
Ekr. Fresh nonces from both the client and server, along with support
from the VM infrastructure to make sure those nonces are generated
from fresh entropy, eliminates all but the most contrived scenarios.

Kyle


From nobody Mon Dec 11 11:29:08 2017
Return-Path: <krose@krose.org>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B5999128854 for <tcpinc@ietfa.amsl.com>; Mon, 11 Dec 2017 11:29:06 -0800 (PST)
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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=krose.org
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 Xo6CrhOmCk3D for <tcpinc@ietfa.amsl.com>; Mon, 11 Dec 2017 11:29:05 -0800 (PST)
Received: from mail-qt0-x234.google.com (mail-qt0-x234.google.com [IPv6:2607:f8b0:400d:c0d::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F1905126DD9 for <tcpinc@ietf.org>; Mon, 11 Dec 2017 11:29:04 -0800 (PST)
Received: by mail-qt0-x234.google.com with SMTP id w10so41457615qtb.10 for <tcpinc@ietf.org>; Mon, 11 Dec 2017 11:29:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=krose.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qld69rMyWvMK1rJvUomZpTCR21d73txdxGoiHzwKmdk=; b=qMzdSLRG3pXEbM3uj6J8BrcZoEQXD348LCARoCKj9vkOfnaU4EvUKpWqYJ4hQTWm3C W61ZMz4pkmdsh2RUkk9b8wIjHqrs9aPDzuHOmMwKhUxEhX+3fXEkw/74ec8TkJZdNDfK ZVy/E3/dgF7j4KOhvFnNCvE98P69QAhrRqE8c=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qld69rMyWvMK1rJvUomZpTCR21d73txdxGoiHzwKmdk=; b=CtahOHxugIlOa6gOm11+daXPBz5C8iteYt6Iy9uUx2oC5qgVfn8aM7EbeKyGHRvDYA yjAxmpAzQPl3QOOPXjPN2AXesFbg1tRkxT+frlAtTUl1oaYra+6L7l3xTJ8GbLd4x055 uWBLCsH0dzN2FGbuoU7aejFcz2C1bxvjVgbAKc4UMHo3g82x65MAcbyWHxlGJXKBwF2f zzOvaKgGBpIPQV+VRUcqnxXkhU8SDMRFZwWUlIaaLY+iniE/VHLijgRL6yiOJHRNI6lB aYooJeTpvPsy/i52RJ/c0qnVZ4Sb1KVhr7A6d2dMSt01TC7h/c0oCHz0zo1mkJaaN7fT sFng==
X-Gm-Message-State: AKGB3mJ2ON0bdofu+kkCE0IEs3LVF0TsRqwMei5eGsXFXuBzYv3zQyGv soNePkuqogY+IiZzqNG3j8apNwDxmol/XdFuGUiAoPhW
X-Google-Smtp-Source: ACJfBotXlSPj8KK7vHFeScdQjhoqY/8yf41PFG8A2Ov/YNZzPRbKyV5rHiChM1uZSKbyhJbFFRPuORRUjr36ZP2bsuw=
X-Received: by 10.55.74.150 with SMTP id x144mr2174158qka.26.1513020543911; Mon, 11 Dec 2017 11:29:03 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.195.1 with HTTP; Mon, 11 Dec 2017 11:29:03 -0800 (PST)
X-Originating-IP: [2001:4878:a000:3000:4062:9a1e:a20:4bf0]
In-Reply-To: <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi> <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com> <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com>
From: Kyle Rose <krose@krose.org>
Date: Mon, 11 Dec 2017 14:29:03 -0500
Message-ID: <CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com>
To: "Black, David" <David.Black@dell.com>
Cc: Valery Smyslov <svanru@gmail.com>, Eric Rescorla <ekr@rtfm.com>, tcpinc <tcpinc@ietf.org>, "Mirja Kuehlewind (IETF)" <ietf@kuehlewind.net>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/sU39rPaY58GiAuM8R4fHZKFj7zE>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Dec 2017 19:29:06 -0000

I want to add:

On Mon, Dec 11, 2017 at 2:01 PM, Kyle Rose <krose@krose.org> wrote:
> It's not clear that this will make its way into the entropy pool
> before use unless the hypervisor and guest kernel have some explicit
> interaction to re-seed the entropy pool before resumption.

...and unless applications pull new entropy from this pool for every
single PRNG iteration, something I think is not done by userspace
PRNGs more complicated than "read directly from /dev/urandom". The
application would need to be aware of the resumption, or add
expected-distinct input to the PRNG as a matter of course (e.g.,
timestamp). And even then, there's still a race condition depending on
the order of operations.

The more I look into this, the more convinced I am that SIV-like
constructions are the only way to entirely avoid catastrophic loss of
security. To otherwise deal completely with the problem of VM cloning
involves the invasive complexity of layer violation. That said, I
don't think we want to take that step at this late date, but we should
recognize the benefits and limitations of adding nonces and look into
adding GCM-SIV (and related) cipher modes as future TEPs.

Kyle


From nobody Mon Dec 11 22:50:59 2017
Return-Path: <svanru@gmail.com>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 09AD5127337 for <tcpinc@ietfa.amsl.com>; Mon, 11 Dec 2017 22:50:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.2
X-Spam-Level: 
X-Spam-Status: No, score=-1.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_SORBS_WEB=1.5, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 OZdaxDRAVqbb for <tcpinc@ietfa.amsl.com>; Mon, 11 Dec 2017 22:50:56 -0800 (PST)
Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5E8F31270AE for <tcpinc@ietf.org>; Mon, 11 Dec 2017 22:50:56 -0800 (PST)
Received: by mail-lf0-x232.google.com with SMTP id r143so21933539lfe.13 for <tcpinc@ietf.org>; Mon, 11 Dec 2017 22:50:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=1Mo9qJbDq+agCHrOTZSXfsec/SF1JWi3b5KvvvLMBuU=; b=hMg3Cb/O+7rU3xqn2HWZ2C7qwuVRfRiZIsyNJ1IUp6dLdwXlmXDxdm6jKmJ6fH8nbm Msq/cYOkJtAti8J/HTNVawMwJ8tQwGZLFmPbq240aVLZsny04lk1WF5F0d9/RxOU+cgt xazbKtLldCr4uai/wyzM9E8RIVoj8wE8qP7niIPvGJMKD6usM2SgrLEFzoBiB6DYHpa6 6nG+rIAkLp7vkf121GQjhlGOgsAqSSBUhjRc+U1aWrRh7RKd1S6V5kWs/SAzwYMZVh1Z 3dsbJEOgNRKbanQyYbW9xjZfyqn0WLlq3mN+tAXlHLIIHKGYKViII6h4HM76XjGo6xfw zXpA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=1Mo9qJbDq+agCHrOTZSXfsec/SF1JWi3b5KvvvLMBuU=; b=dr7e9eMp620rXUN6NJv1Mv6KFh5lX+OFW3qIemCQhoucb7HBSwyKDa6gW94pAVRDvu reZh+JZ61PCuzD4FBdU88n1mqdV49vp7NDwxPuarzGh79//Tilae+J+vMRucMw5f8NfW RStccK0xiQ5YTTNkmif1QRugjOoT5zei7mWCq6DUAg+BuGkM1SwUgxI3wU0DfrPnedt3 4KJnKohGFkiuPQHshfbmXABsi9recRTqd+66GiEnyGvsdtxX5Brm+x0G/DkrIrtSkFrD fkDX+S0NqIJcVs35HT5u9d/AZuBMUL4+U5mvtd2zAnQuN5NW49PCwSf1g5e5RDaugQGT xw8A==
X-Gm-Message-State: AKGB3mIYo7VVW5H5gsiBLAIFyltTtxyeNmesRU+OfTdHoA4LzxcVDb41 Ju1FIeZbxA1kJ4kVLYoF3ts=
X-Google-Smtp-Source: ACJfBosDLzXgNsWdZ1owFUz9K3HnQzvJnpaY65sxwOa3OK0C3/bEkfzEZhIRCzliIKRLXdxvnLwhsA==
X-Received: by 10.25.86.17 with SMTP id k17mr1306689lfb.1.1513061454590; Mon, 11 Dec 2017 22:50:54 -0800 (PST)
Received: from buildpc ([82.138.51.4]) by smtp.gmail.com with ESMTPSA id a17sm3003550lfa.86.2017.12.11.22.50.53 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Dec 2017 22:50:53 -0800 (PST)
From: "Valery Smyslov" <svanru@gmail.com>
To: "'Kyle Rose'" <krose@krose.org>, "'Black, David'" <David.Black@dell.com>
Cc: "'Eric Rescorla'" <ekr@rtfm.com>, "'tcpinc'" <tcpinc@ietf.org>, "'Mirja Kuehlewind \(IETF\)'" <ietf@kuehlewind.net>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi> <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com> <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com> <CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com>
In-Reply-To: <CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com>
Date: Tue, 12 Dec 2017 09:50:57 +0300
Message-ID: <073801d37315$90c89bd0$b259d370$@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQJ6HNqDgiiWUzt7fki+kFl693dS/wJwqHQYAvTkOkoCDjuZ5QKEhaS4AoyXZXgA0kbXqAIlAHoNAm5ZyXehYpk+0A==
Content-Language: ru
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/EPURzkyG3Q-j2CKIPLiKVpzh8p4>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Dec 2017 06:50:58 -0000

Hi Kyle,

> The more I look into this, the more convinced I am that SIV-like
> constructions are the only way to entirely avoid catastrophic loss of
> security. 

That was exactly my point.

To otherwise deal completely with the problem of VM cloning
> involves the invasive complexity of layer violation. That said, I
> don't think we want to take that step at this late date, but we should
> recognize the benefits and limitations of adding nonces and look into
> adding GCM-SIV (and related) cipher modes as future TEPs.

The issue is not tcpcrypt specific. TLS, IPsec and other
security protocols that use counter-based cipher modes 
are likely to be vulnerable to VM cloning/resumption problem as well.

That's why I agree that we shouldn't take any steps now (in a hurry and for 
tcpcrypt only). The problem should be recognized and addressed 
in a more generic way.

> Kyle

Regards,
Valery.


From nobody Tue Dec 12 09:27:41 2017
Return-Path: <kivinen@iki.fi>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 267301294CF for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 09:27:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.12
X-Spam-Level: 
X-Spam-Status: No, score=-1.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001] autolearn=no 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 o6kd2PXBifQy for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 09:27:36 -0800 (PST)
Received: from mail.kivinen.iki.fi (fireball.acr.fi [212.16.101.130]) (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 857AF127A91 for <tcpinc@ietf.org>; Tue, 12 Dec 2017 09:27:35 -0800 (PST)
Received: from fireball.acr.fi (localhost [127.0.0.1]) by mail.kivinen.iki.fi (8.15.2/8.15.2) with ESMTPS id vBCHRLmv025547 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 12 Dec 2017 19:27:21 +0200 (EET)
Received: (from kivinen@localhost) by fireball.acr.fi (8.15.2/8.14.8/Submit) id vBCHRK81004300; Tue, 12 Dec 2017 19:27:20 +0200 (EET)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <23088.4472.814142.142233@fireball.acr.fi>
Date: Tue, 12 Dec 2017 19:27:20 +0200
From: Tero Kivinen <kivinen@iki.fi>
To: "Valery Smyslov" <svanru@gmail.com>
Cc: "'Kyle Rose'" <krose@krose.org>, "'Black\, David'" <David.Black@dell.com>,  "'Eric Rescorla'" <ekr@rtfm.com>, "'Mirja Kuehlewind \(IETF\)'" <ietf@kuehlewind.net>, "'tcpinc'" <tcpinc@ietf.org>
In-Reply-To: <073801d37315$90c89bd0$b259d370$@gmail.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi> <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com> <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com> <CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com> <073801d37315$90c89bd0$b259d370$@gmail.com>
X-Mailer: VM 8.2.0b under 25.1.1 (x86_64--netbsd)
X-Edit-Time: 21 min
X-Total-Time: 20 min
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/9gMsJodQq4EalqZkFZ_dQpMwPrE>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Dec 2017 17:27:38 -0000

Valery Smyslov writes:
> The issue is not tcpcrypt specific. TLS, IPsec and other
> security protocols that use counter-based cipher modes 
> are likely to be vulnerable to VM cloning/resumption problem as well.

Note, that VM cloning/resumption operations are most likely trying to
indicate the changing status to the operating system.

Even without any security if you clone a VM, allow the both of them to
run, the TCP sessions connected from those two devices to servers are
going to be messed up. 

This means that when you clone the VM, VM system might change the MAC
address of the virtual network card, so that you will not have
duplicate MAC addresses in the same virtual network. To do that they
most likely use some kind of plug and play virtual network interface
and remove that interface and then reinstall new interface with new
MAC. This also of course triggers DHCP and they will get new
IP-addresses, thus all TCP state will get destroyed (btw, does this
remove ability to use tcpinc resumption, i.e., can you do tcpinc
resumption using different IP?).

On other case where you take snapshot of VM, run it forward for a
moment, and then stop it and resume back to previous snapshot, the
situation is similar, i.e., the resumed VM will have different TCP
session state anyways, thus VM should not even try to keep that
intact. This means that on resumption VM system most likely also fakes
a network link status change, i.e., just like you had disconnected the
ethernet cable and put it back in. This usually triggers operating
system to rerun the DHCP, which might get new IP address etc, but in
case of resumption they might actually get the same IP back, but some
operating systems immediately tear down all TCP connections when the
link is broken, thus TLS (and tcpinc) TCP connections would get
broken, and they would fall back to resumption etc.

All of these are trying to indicate the operating system that
something has changed. For example IPsec SAs are quite commonly tied
to the specific interface, meaning that when you remove the interface
those get teared down and new SAs are created (perhaps using IKE
resumption). Or if only IP-address changes, then IKE will run mobike
to move the SAs to new IP-address, and if mobike is not available it
will tear down the SAs and recreate them. They might also send
operating system indications that machine is resuming from the sleep,
which might again do some kind of cleaning up operations.

I.e., the VM system vendors are trying to make things work, meaning
they will try to do tricks that will trigger proper response in the
operating systems.

This might also include things like virtual true random number
generator device (which would require support from the operating
system) to solve the issue with the random numbers in the VMs.

So if VMs can solve this issue by forcing resumption they will try to
do that as that makes things just work better. With TLS, IKEv2 etc
this will work as we have fresh nonces that get used in those cases.
I think tcpinc should also try to work for those cases, i.e., the
resumption should include something that make sure that it is using
fresh keys. 

> That's why I agree that we shouldn't take any steps now (in a hurry and for 
> tcpcrypt only). The problem should be recognized and addressed 
> in a more generic way.

I disagree on that. I do not think the issue is with the existing
traffic keys, it is what you do when traffic keys are already gone
(i.e., VM resume operations done by the operating system cleaned
them), but you want to do resumption to recreate them.

Current VM systems are tuned for working with protocols like TCP,
IPsec and TLS, and they try to do things that makes them work. If same
mechanism work also for tcpinc, then tcpinc will get those for free.
If not, then we need to wait for VM and operating system vendors to
find out a way to get things working with tcpinc.
-- 
kivinen@iki.fi


From nobody Tue Dec 12 09:33:08 2017
Return-Path: <krose@krose.org>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 19CA21294D3 for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 09:33:07 -0800 (PST)
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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=krose.org
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 Zu-GUcvJiDwj for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 09:33:05 -0800 (PST)
Received: from mail-qt0-x22f.google.com (mail-qt0-x22f.google.com [IPv6:2607:f8b0:400d:c0d::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 59F391294D2 for <tcpinc@ietf.org>; Tue, 12 Dec 2017 09:33:05 -0800 (PST)
Received: by mail-qt0-x22f.google.com with SMTP id m59so49185608qte.11 for <tcpinc@ietf.org>; Tue, 12 Dec 2017 09:33:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=krose.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cyt/E7x4PlOQ4Uxvpafj+whOTQV3Z7Bw1Mi5xBFqBKI=; b=EEosmFKEmM4DceM22SijpqTQl3Wio0K8w4Q8CZ8hLYRH/PTmcpnnsSyDjnfW9E/rzC nq2itbH602Art0agh2SeS+w/b8zUsi55ZzZhrZjB1Ausi+wjCpdchnr2jSn0EHvx0wtx /tZj9qIpzd9W/s6hdRa3d7X9NJ4zOLsG5z4kI=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cyt/E7x4PlOQ4Uxvpafj+whOTQV3Z7Bw1Mi5xBFqBKI=; b=av5jQiaO4wQfG4gSB/oPGLOGi8HIuZyCLzML+M3i76ZQoHqPSHk3C2HJ0PvxVYvocz 2oMjIJkdVLiT/GDR4a1+ibcgQAs8UbSZ/yNoUPCBKaw8Um9+190yXMVnnSTFZfk1bq8/ VpzIF7FaoQvS9mbLED1QAJthmRwKqPwZj7imn+sx8uj2Q8Y60jAysnwDXIQhW8wqt4bn XUKdfvHPn02s5smCqTaRDRYJJFVUwQ7ut77t4dtwJ2Y72XCS9S3TSRYRbk6wH/UmDR6Z Tm20R6Wo98nVNXP2qy42y6xw7Xd8+1stgg/sDQHLwg7NClnU+Zz9dI5/X0MSjVr6Y47p xz9Q==
X-Gm-Message-State: AKGB3mJ0y95ao/cz87JhM58HWXn+HojiPVt6YE9A8gOeKuxjk5Wh0yHW ZkiQFDp4qZ8h2v/GuODnOvTiqKw/BdG5aNa251BDyQ==
X-Google-Smtp-Source: ACJfBouG/+lKf4Q4/0UvDgjqtRMzJWRIs/RkVIdJtsmlJfYpyZFlr8It8v6zbzQmlqrXkC0SoKNKbkJr6U24zUMEkkc=
X-Received: by 10.233.244.72 with SMTP id z8mr6602125qkl.107.1513099984353; Tue, 12 Dec 2017 09:33:04 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.195.1 with HTTP; Tue, 12 Dec 2017 09:33:03 -0800 (PST)
X-Originating-IP: [2001:4878:a000:3000:e1a8:45c8:91a2:8224]
In-Reply-To: <073801d37315$90c89bd0$b259d370$@gmail.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi> <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com> <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com> <CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com> <073801d37315$90c89bd0$b259d370$@gmail.com>
From: Kyle Rose <krose@krose.org>
Date: Tue, 12 Dec 2017 12:33:03 -0500
Message-ID: <CAJU8_nV+hc_ZHfwT99c7SrxCBb83UR9S8Odm+DSmtDnm6+4h3Q@mail.gmail.com>
To: Valery Smyslov <svanru@gmail.com>
Cc: "Black, David" <David.Black@dell.com>, Eric Rescorla <ekr@rtfm.com>, tcpinc <tcpinc@ietf.org>, "Mirja Kuehlewind (IETF)" <ietf@kuehlewind.net>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/II8x4hoByi3I66Xzwh1CI15QunE>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Dec 2017 17:33:07 -0000

On Tue, Dec 12, 2017 at 1:50 AM, Valery Smyslov <svanru@gmail.com> wrote:
> That's why I agree that we shouldn't take any steps now (in a hurry and for
> tcpcrypt only).

Just to clarify, (speaking as member, not chair) I am in favor of
adding nonces on each connection, but (as chair) not in favor of
changing MTI TEPs to SIV.

> The problem should be recognized and addressed
> in a more generic way.

Agreed.

Kyle


From nobody Tue Dec 12 09:46:18 2017
Return-Path: <svanru@gmail.com>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 42304127ABE for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 09:46:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.261
X-Spam-Level: 
X-Spam-Status: No, score=-2.261 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, STOX_REPLY_TYPE=0.439] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 lFJiXMt1OJrk for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 09:46:14 -0800 (PST)
Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 68726127286 for <tcpinc@ietf.org>; Tue, 12 Dec 2017 09:46:14 -0800 (PST)
Received: by mail-lf0-x230.google.com with SMTP id e137so24123444lfg.5 for <tcpinc@ietf.org>; Tue, 12 Dec 2017 09:46:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-transfer-encoding:importance; bh=s9V2dTJSPnv3pokjA4Bc3ElwssAwsbZ73xlbOXSPHsU=; b=JfliK/ddlWtYsADKvY9XHkNNVBWKx+sZLgKOjXtdwS32ahcff+lq74KYBaJ8S4mvqT CrM+gDpI/eMb9ZxBGWiKZMikwz89Eva+gQIY84Y7NRN3QBXd3O5i6rihWfeQRq1BKy3m fx7hvdbXl8EgKU+cFuhv2BhgaeKdX3wQAH3NZHV7CPdVngk9Zd54FPUjMDGlxgR1bfkF HRcVqVr6feu5bJTyvtMyyUvhCinZ/vovAt+dv/U4LuAck8w4DWFXVQfbPy6V0BT0MlL8 CdysapAgbvVXNYiXLegpZ9IMpBr88EvhNhZt25Go6KqOdAuNJO2nGuoaF+/A5c+cuVnT OZKA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:references:in-reply-to :subject:date:mime-version:content-transfer-encoding:importance; bh=s9V2dTJSPnv3pokjA4Bc3ElwssAwsbZ73xlbOXSPHsU=; b=EF3cUVKIo+wQbhBuNfch1iJVPAVpJrJv04FOJ7AdPk5Qd0DeqnCtYTW3FfI6+j1M4n 4Dot7nHUnxK8p9XgQSEZa8jG9srtM4We01rxA+xUfypuFqgN5NnKWm4ZB2TE8PC47K15 PRk5HYAHD78t8SqWWuRy+W6wlHfPmqDFwkurnZQ4DRi2K7balrDT/bRzwXC9arN2O8AD CMC0qKtsbp1OVH9AmbNgedloy/YeCwD+8lGbNC05f+H486YGo4QRDzKGfDupNtX7Vglu gAkp8yLRt8zUws/Uq0mBrI5BnOr3ojKK+USXsI5XX6DUMmwVpisYr4GpaBQd9QE290jP r/tA==
X-Gm-Message-State: AKGB3mLR0QEEZoFS/LbvAGBgDBXdVaqCPDsQMmlLY9URVTZJL5Jrg75v xcn1ywo7ksRDA+fHe/byY0Ejfg==
X-Google-Smtp-Source: ACJfBouDM1g8m8RmU12DBdxTKPP91snMxMpnxiWBuqCKL8kFCTGmatuYGPs8lfTm8mk27k0hcnD+ZQ==
X-Received: by 10.46.92.9 with SMTP id q9mr2374889ljb.78.1513100772698; Tue, 12 Dec 2017 09:46:12 -0800 (PST)
Received: from chichi (ppp83-237-171-154.pppoe.mtu-net.ru. [83.237.171.154]) by smtp.gmail.com with ESMTPSA id z64sm3282043lfa.34.2017.12.12.09.46.11 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Dec 2017 09:46:11 -0800 (PST)
Message-ID: <D75B7F96F2DC4C2BA702CF1953C60FC0@chichi>
From: "Valery Smyslov" <svanru@gmail.com>
To: "Kyle Rose" <krose@krose.org>
Cc: "Black, David" <David.Black@dell.com>, "Eric Rescorla" <ekr@rtfm.com>, "tcpinc" <tcpinc@ietf.org>, "Mirja Kuehlewind \(IETF\)" <ietf@kuehlewind.net>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi> <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com> <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com> <CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com> <073801d37315$90c89bd0$b259d370$@gmail.com> <CAJU8_nV+hc_ZHfwT99c7SrxCBb83UR9S8Odm+DSmtDnm6+4h3Q@mail.gmail.com>
In-Reply-To: <CAJU8_nV+hc_ZHfwT99c7SrxCBb83UR9S8Odm+DSmtDnm6+4h3Q@mail.gmail.com>
Date: Tue, 12 Dec 2017 20:46:08 +0300
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 16.4.3528.331
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/wxximhhIzGJI3Gde4w1K4sIQxtU>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Dec 2017 17:46:16 -0000

>> That's why I agree that we shouldn't take any steps now (in a hurry and for
>> tcpcrypt only).
>
> Just to clarify, (speaking as member, not chair) I am in favor of
> adding nonces on each connection, but (as chair) not in favor of
> changing MTI TEPs to SIV.

Yes, that's what I meant. We are in agreement here.


From nobody Tue Dec 12 10:17:16 2017
Return-Path: <svanru@gmail.com>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5CD281294FD for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 10:17:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.26
X-Spam-Level: 
X-Spam-Status: No, score=-2.26 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, STOX_REPLY_TYPE=0.439, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 u2b7VEFL7pnY for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 10:17:10 -0800 (PST)
Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com [IPv6:2a00:1450:4010:c07::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 905A91294F5 for <tcpinc@ietf.org>; Tue, 12 Dec 2017 10:17:09 -0800 (PST)
Received: by mail-lf0-x234.google.com with SMTP id e137so24227011lfg.5 for <tcpinc@ietf.org>; Tue, 12 Dec 2017 10:17:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-transfer-encoding:importance; bh=yhhWdDD+KswzZJ9oDtWcYO98hD4YA+xq5FC7GG9o2Bw=; b=jpbRjWQ3lpTCfPnbp2+erNvw48s2v7hgXwtv0Jv4V1Xlwo9Co/wmtAsi08l9rKUbAN 36RIxSds4RvB3GJtW5bYOqt2n4TIy59IuovqZkvdEB625ilcrjBiG3A6JQk5Gk1ms13H ELT4kNnIoNsiTJ48wfEmqkssgzhu/OKhxE+/BC3RSWf6ZZEn8faKI58URoJTISdoqy0C heTj9M2MSuQ6T0X4WUwYsb6gaOF30Q4f4RYc3t7aJH/AvtK2IcN5lD8c+yDIiHSx/ZdQ Tc61TX6ajLTcVhXZL/3Huz8BMlNDfWMA02R5qFCdgbkyWPuI0chbFwH8WUHie22LiBtv NGNA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:references:in-reply-to :subject:date:mime-version:content-transfer-encoding:importance; bh=yhhWdDD+KswzZJ9oDtWcYO98hD4YA+xq5FC7GG9o2Bw=; b=FRBqfV253GHdhOwn6WUjTSy06QZ1/McyS2HwWt3P6RHmgFHKsttZCT7tBdtRPzb7GM fsbZ7RUjLxlGSqzBObv50Ab8WOE6Tip7WMNAsRMyjsRgwf3VdVknk3++56UpjIc0zVBN 4uL2EKuTuL3e5O7XO9n1f4KNm+WyU6luJEIdMUql/fJ8+MacRDLJuFKrvt10BY/NM9yI LFFe/p+B/cGKnKjAzUCYNZXwcu1O4Dw9ss3WAVAHw6kYk66vu9x1WwRbaS40Mo7ZUWd5 fymbjCdovoWrR5ftuWNXlkvMr5d7sSULClcvpbjYqdV+Hd5wL07+N5GCVH14DmxRQ0qL HUjw==
X-Gm-Message-State: AKGB3mIan+lQPy4dKLn1dDH2T6h3JLsnZ9iVMmoimdPm/tmGcqQmB7Eu T+YgzO70ss5WuiDnMJV/VpjW0A==
X-Google-Smtp-Source: ACJfBosujQbQc4XFNIYefD6L55KWoKNrM+62us91vUQ+apISnipqq1wyB9bPKzVn9AtSCEXwdfYWTg==
X-Received: by 10.25.77.68 with SMTP id a65mr2184777lfb.16.1513102627738; Tue, 12 Dec 2017 10:17:07 -0800 (PST)
Received: from chichi (ppp83-237-171-154.pppoe.mtu-net.ru. [83.237.171.154]) by smtp.gmail.com with ESMTPSA id y6sm3289097lfg.38.2017.12.12.10.17.06 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Dec 2017 10:17:06 -0800 (PST)
Message-ID: <E7AF7C0A2811484F8C475C00F74FC97D@chichi>
From: "Valery Smyslov" <svanru@gmail.com>
To: "Tero Kivinen" <kivinen@iki.fi>
Cc: "'Kyle Rose'" <krose@krose.org>, "'Black, David'" <David.Black@dell.com>,  "'Eric Rescorla'" <ekr@rtfm.com>, "'Mirja Kuehlewind \(IETF\)'" <ietf@kuehlewind.net>, "'tcpinc'" <tcpinc@ietf.org>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com><CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com><23072.32691.892725.97892@fireball.acr.fi><01bc01d36a71$45957db0$d0c07910$@gmail.com><CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com><B0FB25D40E23475C9259A4C204B327D2@chichi><CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com><CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com><CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com><073801d37315$90c89bd0$b259d370$@gmail.com> <23088.4472.814142.142233@fireball.acr.fi>
In-Reply-To: <23088.4472.814142.142233@fireball.acr.fi>
Date: Tue, 12 Dec 2017 21:17:02 +0300
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 16.4.3528.331
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/z_ofYO4KmGyNWkNzyKz24c2wMh0>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Dec 2017 18:17:13 -0000

Hi Tero,

my point was: if VM systems are designed in such a way, that they can
force the inside software to reset existing cipher states in case of VM resumption
IN ALL cases, then we are on the safe side. Your examples below bring
me to a conclusion, that IN SOME (or even in most) cases these tricks work.
Still not sure they work always.

Regards,
Valery.


-----Original Message----- 
From: Tero Kivinen
Date: 12 декабря 2017 г. 20:27
To: Valery Smyslov
Cc: 'Kyle Rose' ; 'Black, David' ; 'Eric Rescorla' ; 'Mirja Kuehlewind (IETF)' ; 'tcpinc'
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS 
and COMMENT)")

Valery Smyslov writes:
> The issue is not tcpcrypt specific. TLS, IPsec and other
> security protocols that use counter-based cipher modes
> are likely to be vulnerable to VM cloning/resumption problem as well.

Note, that VM cloning/resumption operations are most likely trying to
indicate the changing status to the operating system.

Even without any security if you clone a VM, allow the both of them to
run, the TCP sessions connected from those two devices to servers are
going to be messed up.

This means that when you clone the VM, VM system might change the MAC
address of the virtual network card, so that you will not have
duplicate MAC addresses in the same virtual network. To do that they
most likely use some kind of plug and play virtual network interface
and remove that interface and then reinstall new interface with new
MAC. This also of course triggers DHCP and they will get new
IP-addresses, thus all TCP state will get destroyed (btw, does this
remove ability to use tcpinc resumption, i.e., can you do tcpinc
resumption using different IP?).

On other case where you take snapshot of VM, run it forward for a
moment, and then stop it and resume back to previous snapshot, the
situation is similar, i.e., the resumed VM will have different TCP
session state anyways, thus VM should not even try to keep that
intact. This means that on resumption VM system most likely also fakes
a network link status change, i.e., just like you had disconnected the
ethernet cable and put it back in. This usually triggers operating
system to rerun the DHCP, which might get new IP address etc, but in
case of resumption they might actually get the same IP back, but some
operating systems immediately tear down all TCP connections when the
link is broken, thus TLS (and tcpinc) TCP connections would get
broken, and they would fall back to resumption etc.

All of these are trying to indicate the operating system that
something has changed. For example IPsec SAs are quite commonly tied
to the specific interface, meaning that when you remove the interface
those get teared down and new SAs are created (perhaps using IKE
resumption). Or if only IP-address changes, then IKE will run mobike
to move the SAs to new IP-address, and if mobike is not available it
will tear down the SAs and recreate them. They might also send
operating system indications that machine is resuming from the sleep,
which might again do some kind of cleaning up operations.

I.e., the VM system vendors are trying to make things work, meaning
they will try to do tricks that will trigger proper response in the
operating systems.

This might also include things like virtual true random number
generator device (which would require support from the operating
system) to solve the issue with the random numbers in the VMs.

So if VMs can solve this issue by forcing resumption they will try to
do that as that makes things just work better. With TLS, IKEv2 etc
this will work as we have fresh nonces that get used in those cases.
I think tcpinc should also try to work for those cases, i.e., the
resumption should include something that make sure that it is using
fresh keys.

> That's why I agree that we shouldn't take any steps now (in a hurry and for
> tcpcrypt only). The problem should be recognized and addressed
> in a more generic way.

I disagree on that. I do not think the issue is with the existing
traffic keys, it is what you do when traffic keys are already gone
(i.e., VM resume operations done by the operating system cleaned
them), but you want to do resumption to recreate them.

Current VM systems are tuned for working with protocols like TCP,
IPsec and TLS, and they try to do things that makes them work. If same
mechanism work also for tcpinc, then tcpinc will get those for free.
If not, then we need to wait for VM and operating system vendors to
find out a way to get things working with tcpinc.
-- 
kivinen@iki.fi 


From nobody Tue Dec 12 10:53:31 2017
Return-Path: <David.Black@dell.com>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6AA321286CA for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 10:53:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.721
X-Spam-Level: 
X-Spam-Status: No, score=-2.721 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=dell.com header.b=SYaUF5zh; dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=emc.com header.b=dNFMDp4y
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 QFMtWjbtBk0k for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 10:53:29 -0800 (PST)
Received: from esa3.dell-outbound.iphmx.com (esa3.dell-outbound.iphmx.com [68.232.153.94]) (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 211241242F5 for <tcpinc@ietf.org>; Tue, 12 Dec 2017 10:53:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1513104569; x=1544640569; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=FY21DgQvC6mdz4w4FypsiewhhUKulyyuObhhlWvQzlw=; b=SYaUF5zhERajlev5bO4Nhlsnby+Zv4+znrh+0xIWbHJdUfT6ZPaVKDLi EKURkDoT+G8B2pLrB4fkhuzwjPXcdTySskLm1U5mBHuFnW0fXVUpBdkhg 7aTxDqz3D5AFntqT8IPkN2JRj+oiMZ2qlurSvGa5d9AQZIhQkPLnV/AWc 0=;
IronPort-PHdr: =?us-ascii?q?9a23=3ANl2vbh8Ta+kIa/9uRHKM819IXTAuvvDOBiVQ1KB3?= =?us-ascii?q?2u8cTK2v8tzYMVDF4r011RmVBdyds6oMotGVmpioYXYH75eFvSJKW713fDhBt/?= =?us-ascii?q?8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1?= =?us-ascii?q?Ifn+FpLPg8it2O2+54Dfbx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+?= =?us-ascii?q?RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTF?= =?us-ascii?q?UACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMNboRr4oRzut86ZrSAfpiC?= =?us-ascii?q?gZMT457HrXgdF0gK5CvR6tuwBzz4vSbYqINvRxY7ndcMsaS2RfQ8hRSyJPDICy?= =?us-ascii?q?b4QNDuoOIelWoIbmqlsSthSzARWgCP/zxjJKgHL9wK000/4mEQHDxAEsEc8DsH?= =?us-ascii?q?DOo9rpN6ceSf2+wqfSwjXdbvNZxDnx45XPfx4vu/6MQ7NwftfLxUQyEwPKlEmf?= =?us-ascii?q?qY/+MjyIyOsNt2yb4/B8WuKojm4qsgd8qSWsyMc0koTEh4EYxkra+Sh33oo5P8?= =?us-ascii?q?C0RU51bNK+Dpdcqz+WO5NrTs8+WW1kpig3x74ctZO0cyUG0okryhDcZvCffYiH?= =?us-ascii?q?/BHuWPqULDp9h39od7ayhxi3/EWg1+LzTNe43VNXoiZYidbBs38A2hLQ58WHTP?= =?us-ascii?q?Z2412v1iyV1w/J7+FJOUU0la3GJJE/2rMwjZ8TsVjbHi/xhUX2kLeadkU69eis?= =?us-ascii?q?7OTqeqvppoSGOINqkA3xL7ohmsi7AeghNQgOQnSb9v+71L3++032XatGguc3kq?= =?us-ascii?q?nBsJDaIMsaqrSlDA9S14Yv8xe/DzG439QEhXQKLVFIdAiZg4XnJV3COu30APex?= =?us-ascii?q?jli2jjtn2+7KMqXkAprXL3jDlLnhfax6605Z0Ac9w8pQ54xVCr4cOv7+R0vxu8?= =?us-ascii?q?bEAR86KAG73vjoCNF51o8ERW2PBaqZPLvIsVCU/uIvP/WMZIgNtTbhN/cl///u?= =?us-ascii?q?jXklllIGfKmmw4cXaH6iEvRhOUWZbimkvtBUMnYOs0IES/fnwAmBSzlIal6xRa?= =?us-ascii?q?Un63c8Eo3wSc/9T4Sgmq3J5yKqBZlReCgSEU6FF231X4qBUvYILimVJ5kyvCYD?= =?us-ascii?q?UO3rYYso3hLq/CPz1btrZKKA1iQGtJ6l/tx87O77mRw28Xp/CMHLgDLFdH19gm?= =?us-ascii?q?5dH2x+56t4u0Eojw7biaU=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GkAAA2JDBah8qZ6ERdHQEBBQELAYJsg?= =?us-ascii?q?SiBBCcHg3uKIY8FgX2XEYFSQwqFOwIahG4/GAEBAQEBAQEBAQECEAEBAQoLCQg?= =?us-ascii?q?oL4I4JAEOSyEGMgEBAQEBAQEBAQEBAQEBAQEBARcCPRMCGAEBAQMBIxEMHxoBD?= =?us-ascii?q?wIBCA4MAgYZBwICAjAVEAIEARqKGAgBqQmCJ4MRh1ABAQEBAQEBAQIBAQEBAQE?= =?us-ascii?q?BAQEXCIEPglSBNlWBV4UThR+DEzGCMqMWBgKXIZFqljcCBAIEBQIagTsfgghvg?= =?us-ascii?q?niCYiWBTniJOIEVAQEB?=
X-IPAS-Result: =?us-ascii?q?A2GkAAA2JDBah8qZ6ERdHQEBBQELAYJsgSiBBCcHg3uKIY8?= =?us-ascii?q?FgX2XEYFSQwqFOwIahG4/GAEBAQEBAQEBAQECEAEBAQoLCQgoL4I4JAEOSyEGM?= =?us-ascii?q?gEBAQEBAQEBAQEBAQEBAQEBARcCPRMCGAEBAQMBIxEMHxoBDwIBCA4MAgYZBwI?= =?us-ascii?q?CAjAVEAIEARqKGAgBqQmCJ4MRh1ABAQEBAQEBAQIBAQEBAQEBAQEXCIEPglSBN?= =?us-ascii?q?lWBV4UThR+DEzGCMqMWBgKXIZFqljcCBAIEBQIagTsfgghvgniCYiWBTniJOIE?= =?us-ascii?q?VAQEB?=
Received: from esa2.dell-outbound2.iphmx.com ([68.232.153.202]) by esa3.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Dec 2017 12:49:28 -0600
From: "Black, David" <David.Black@dell.com>
Cc: Eric Rescorla <ekr@rtfm.com>, tcpinc <tcpinc@ietf.org>, "Mirja Kuehlewind (IETF)" <ietf@kuehlewind.net>, "Black, David" <David.Black@dell.com>
Received: from mailuogwhop.emc.com ([168.159.213.141]) by esa2.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Dec 2017 00:49:36 +0600
Received: from maildlpprd02.lss.emc.com (maildlpprd02.lss.emc.com [10.253.24.34]) by mailuogwprd04.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id vBCIrONf030997 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 12 Dec 2017 13:53:26 -0500
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd04.lss.emc.com vBCIrONf030997
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=emc.com; s=jan2013; t=1513104807; bh=+KjUjG5fOrucJtScRCJDu54qwKY=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=dNFMDp4yZcNkinDQWafXBj8JqfC9cft32tShBP2nidlqjANJWdpeade0Oqm9/Swmn EmvrMRmTiSn3NLkWsmJnKCIoPhzkeyq31aY971DBQEJBBYU/1BjrLOQAWmFYtKEQdg r51ytleEqQWSDt+mfXg8B41GqxPhr1VNz1sIqQEU=
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd04.lss.emc.com vBCIrONf030997
Received: from mailusrhubprd53.lss.emc.com (mailusrhubprd53.lss.emc.com [10.106.48.18]) by maildlpprd02.lss.emc.com (RSA Interceptor); Tue, 12 Dec 2017 13:53:09 -0500
Received: from MXHUB315.corp.emc.com (MXHUB315.corp.emc.com [10.146.3.93]) by mailusrhubprd53.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id vBCIrApw021428 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=FAIL); Tue, 12 Dec 2017 13:53:10 -0500
Received: from MX307CL04.corp.emc.com ([fe80::849f:5da2:11b:4385]) by MXHUB315.corp.emc.com ([10.146.3.93]) with mapi id 14.03.0352.000; Tue, 12 Dec 2017 13:53:10 -0500
To: Kyle Rose <krose@krose.org>, Valery Smyslov <svanru@gmail.com>
Thread-Topic: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
Thread-Index: AQHTaWeKaqBgAqiJTU6Vp2CkSB85m6Ms+8NAgADSxICAAJUEAIABIOEAgAJ1xICAAaVOQIALRoIAgAAHnYCAAL6FgIAAs2eA///CTpA=
Date: Tue, 12 Dec 2017 18:53:09 +0000
Message-ID: <CE03DB3D7B45C245BCA0D243277949362FE0FE59@MX307CL04.corp.emc.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi> <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com> <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com> <CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com> <073801d37315$90c89bd0$b259d370$@gmail.com> <CAJU8_nV+hc_ZHfwT99c7SrxCBb83UR9S8Odm+DSmtDnm6+4h3Q@mail.gmail.com>
In-Reply-To: <CAJU8_nV+hc_ZHfwT99c7SrxCBb83UR9S8Odm+DSmtDnm6+4h3Q@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.238.44.138]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Sentrion-Hostname: mailusrhubprd53.lss.emc.com
X-RSA-Classifications: public
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/SacthJ-u_FUdeeNLQlxbr4AeXm8>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Dec 2017 18:53:30 -0000

KzEsIGFsc28gYXMgYW4gaW5kaXZpZHVhbCAobm90IGFzIFdHIGNoYWlyKS4NCg0KVGhhbmtzLCAt
LURhdmlkDQoNCj4gPiBUaGF0J3Mgd2h5IEkgYWdyZWUgdGhhdCB3ZSBzaG91bGRuJ3QgdGFrZSBh
bnkgc3RlcHMgbm93IChpbiBhIGh1cnJ5IGFuZCBmb3INCj4gPiB0Y3BjcnlwdCBvbmx5KS4NCj4g
DQo+IEp1c3QgdG8gY2xhcmlmeSwgKHNwZWFraW5nIGFzIG1lbWJlciwgbm90IGNoYWlyKSBJIGFt
IGluIGZhdm9yIG9mDQo+IGFkZGluZyBub25jZXMgb24gZWFjaCBjb25uZWN0aW9uLCBidXQgKGFz
IGNoYWlyKSBub3QgaW4gZmF2b3Igb2YNCj4gY2hhbmdpbmcgTVRJIFRFUHMgdG8gU0lWLg0KPiAN
Cj4gPiBUaGUgcHJvYmxlbSBzaG91bGQgYmUgcmVjb2duaXplZCBhbmQgYWRkcmVzc2VkDQo+ID4g
aW4gYSBtb3JlIGdlbmVyaWMgd2F5Lg0KPiANCj4gQWdyZWVkLg0KPiANCj4gS3lsZQ0K


From nobody Tue Dec 12 11:35:05 2017
Return-Path: <kivinen@iki.fi>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3BAE9129541 for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 11:34:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.12
X-Spam-Level: 
X-Spam-Status: No, score=-1.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001] autolearn=no 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 Vru0qZfwgVsl for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 11:34:56 -0800 (PST)
Received: from mail.kivinen.iki.fi (fireball.acr.fi [212.16.101.130]) (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 E41C712952E for <tcpinc@ietf.org>; Tue, 12 Dec 2017 11:34:55 -0800 (PST)
Received: from fireball.acr.fi (localhost [127.0.0.1]) by mail.kivinen.iki.fi (8.15.2/8.15.2) with ESMTPS id vBCJYhHl008848 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 12 Dec 2017 21:34:43 +0200 (EET)
Received: (from kivinen@localhost) by fireball.acr.fi (8.15.2/8.14.8/Submit) id vBCJYgVZ025502; Tue, 12 Dec 2017 21:34:42 +0200 (EET)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <23088.12114.962463.320939@fireball.acr.fi>
Date: Tue, 12 Dec 2017 21:34:42 +0200
From: Tero Kivinen <kivinen@iki.fi>
To: "Valery Smyslov" <svanru@gmail.com>
Cc: "'Kyle Rose'" <krose@krose.org>, "'Black\, David'" <David.Black@dell.com>,  "'Eric Rescorla'" <ekr@rtfm.com>, "'Mirja Kuehlewind \(IETF\)'" <ietf@kuehlewind.net>, "'tcpinc'" <tcpinc@ietf.org>
In-Reply-To: <E7AF7C0A2811484F8C475C00F74FC97D@chichi>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi> <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com> <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com> <CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com> <073801d37315$90c89bd0$b259d370$@gmail.com> <23088.4472.814142.142233@fireball.acr.fi> <E7AF7C0A2811484F8C475C00F74FC97D@chichi>
X-Mailer: VM 8.2.0b under 25.1.1 (x86_64--netbsd)
X-Edit-Time: 5 min
X-Total-Time: 5 min
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/AWTuYd5yYvnufI90I5IHv1lLB6Y>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Dec 2017 19:35:03 -0000

Valery Smyslov writes:
> my point was: if VM systems are designed in such a way, that they can
> force the inside software to reset existing cipher states in case of VM resumption
> IN ALL cases, then we are on the safe side. Your examples below bring
> me to a conclusion, that IN SOME (or even in most) cases these tricks work.
> Still not sure they work always.

Yep. They do not work always, but if we design tcpinc in same way than
TLS, i.e., resumption always guarantees that we have new keying
material, then solutions which work for TLS (i.e. forces TCP sessions
to be reset, and new TCP connections to be created) will work for
tcpinc too.

I do not think it is good idea to create new requirements for VMs,
i.e., that in addition to just resetting TCP connections, they need to
do something else to force tcpinc to generate new keys (for example
perhaps changing the IP-address, which might cause other issues).

I.e., if we make sure both tcpinc and TLS behave similarly in this
regard, then we are on the safer side and there is no nasty suprises
for the VM users.
-- 
kivinen@iki.fi


From nobody Tue Dec 12 12:05:47 2017
Return-Path: <smyslov.ietf@gmail.com>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EEB12126CE8 for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 12:05:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.261
X-Spam-Level: 
X-Spam-Status: No, score=-2.261 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, STOX_REPLY_TYPE=0.439] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 D0E1zyYzzI_P for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 12:05:43 -0800 (PST)
Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 21421126B7E for <tcpinc@ietf.org>; Tue, 12 Dec 2017 12:05:43 -0800 (PST)
Received: by mail-lf0-x230.google.com with SMTP id f20so81129lfe.3 for <tcpinc@ietf.org>; Tue, 12 Dec 2017 12:05:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-transfer-encoding:importance; bh=Y/pBx5bnX3/LucOuxJMGF94ybow9jRtuI9pP5WeE488=; b=dP6v7A77M+pyuN+Hd3azk+mgEIYOFsJ66GlGnwwoOTDkvuXZU9XaDHKIiYw7B6crV9 ScOKe0owMLuSoj0BsKVjkGccnIR5SYn8QUyQiqrPPCawCN2NL8A9X6jVbZIX/f6vHu26 nzFjvWOSemgnnbQ7zcoJTTUHa7cjvsY9qqR8YO+f9Ic2RrTwtex4wx/dt2BcNdP8ByNe /vogXSvtNAyeoZUOlNzmu45JXfEjTWfDBXC5k6Rix0v4L92+yR7rq1uMhLCnZDZov9WR 4axlwkXanJW+Mkxsi7uCKShJ9PG1O5of4dwxuT6+vQBXe0pzqZXr1uYR507oyAqz6BJS EWiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:references:in-reply-to :subject:date:mime-version:content-transfer-encoding:importance; bh=Y/pBx5bnX3/LucOuxJMGF94ybow9jRtuI9pP5WeE488=; b=BxxAM57dbtoyn+EkcmZaMAyMm3ZSJsX5j2t3fWrxOizVp/SivW5tAI5fCFJZikYoh4 do3vpeTs/VSI/Z9G02/Dm55picxBndp7MxV0HQppgcWmQx7szs3eV0xYkuWK+r/fhMr4 PU7AqjGd5bP2p5owfo8woyLcQRdHm6VmrU6MZPRGWA8dVWplJ8VVnF89Y2xdqcTQ9Uj+ Mgw4trcJltXnByx2e1IXNh1MEXlMR4h+o+t8t+s2OJGYrwVH2D61yZrXbX/Ig1Y4WDuG GKqTVN/Nc4GDTNetE/PnTjF+IuTEq84APLoXupKMxb8gLTQgcevkQmUA31K7SWGs1mLZ LJDw==
X-Gm-Message-State: AKGB3mLyxglNhmM5RFSwmZGHBLJcNRKdFix0pqknk+2zNn8+oOi6253v EpOccXVfWodXroifRG7DY2Y=
X-Google-Smtp-Source: ACJfBovCiuAtpKye8mws6+55n36DQCUuqUMY4jHVY/KjAmdquqBXjTTENDm3j7K5MJ8gClUdDc7r3Q==
X-Received: by 10.25.214.10 with SMTP id n10mr19280lfg.49.1513109141469; Tue, 12 Dec 2017 12:05:41 -0800 (PST)
Received: from chichi (ppp83-237-171-154.pppoe.mtu-net.ru. [83.237.171.154]) by smtp.gmail.com with ESMTPSA id j20sm3364683lfk.63.2017.12.12.12.05.38 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Dec 2017 12:05:40 -0800 (PST)
Message-ID: <B035098B65EA4F01A2BCB369750D765B@chichi>
From: "Valery Smyslov" <smyslov.ietf@gmail.com>
To: "Tero Kivinen" <kivinen@iki.fi>, "Valery Smyslov" <svanru@gmail.com>
Cc: "'Eric Rescorla'" <ekr@rtfm.com>, "'Kyle Rose'" <krose@krose.org>, "'Mirja Kuehlewind \(IETF\)'" <ietf@kuehlewind.net>, "'tcpinc'" <tcpinc@ietf.org>, "'Black, David'" <David.Black@dell.com>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi> <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com> <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com> <CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com> <073801d37315$90c89bd0$b259d370$@gmail.com> <23088.4472.814142.142233@fireball.acr.fi> <E7AF7C0A2811484F8C475C00F74FC97D@chichi> <23088.12114.962463.320939@fireball.acr.fi>
In-Reply-To: <23088.12114.962463.320939@fireball.acr.fi>
Date: Tue, 12 Dec 2017 23:05:35 +0300
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 16.4.3528.331
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/lKNuc_YzrFPs8Ab1R2ZT4s0jTY0>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Dec 2017 20:05:45 -0000

>> my point was: if VM systems are designed in such a way, that they can
>> force the inside software to reset existing cipher states in case of VM resumption
>> IN ALL cases, then we are on the safe side. Your examples below bring
>> me to a conclusion, that IN SOME (or even in most) cases these tricks work.
>> Still not sure they work always.
> 
> Yep. They do not work always, but if we design tcpinc in same way than
> TLS, i.e., resumption always guarantees that we have new keying
> material, then solutions which work for TLS (i.e. forces TCP sessions
> to be reset, and new TCP connections to be created) will work for
> tcpinc too.

I agree that tcpinc resumption could (should?) have been designed better.
No disagreement here.

My point was more generic. If internal cipher state of any protocol
using counter mode has a chance to survive VM resumption 
and continue to work (even for a short time), then a counter re-use 
(and thus a catastrophic lose of security) could happen.
Nonce-misuse resistant modes (like GCM-SIV) would help in this case.


From nobody Tue Dec 12 16:14:00 2017
Return-Path: <kivinen@iki.fi>
X-Original-To: tcpinc@ietfa.amsl.com
Delivered-To: tcpinc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0A11D12711D for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 16:13:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.121
X-Spam-Level: 
X-Spam-Status: No, score=-1.121 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_NEUTRAL=0.779] autolearn=no 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 zthwOhvh1aRY for <tcpinc@ietfa.amsl.com>; Tue, 12 Dec 2017 16:13:57 -0800 (PST)
Received: from mail.kivinen.iki.fi (fireball.acr.fi [212.16.101.130]) (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 D286712704A for <tcpinc@ietf.org>; Tue, 12 Dec 2017 16:13:56 -0800 (PST)
Received: from fireball.acr.fi (localhost [127.0.0.1]) by mail.kivinen.iki.fi (8.15.2/8.15.2) with ESMTPS id vBD0Dn8R017130 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 13 Dec 2017 02:13:49 +0200 (EET)
Received: (from kivinen@localhost) by fireball.acr.fi (8.15.2/8.14.8/Submit) id vBD0DmqK025598; Wed, 13 Dec 2017 02:13:48 +0200 (EET)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <23088.28860.227581.172184@fireball.acr.fi>
Date: Wed, 13 Dec 2017 02:13:48 +0200
From: Tero Kivinen <kivinen@iki.fi>
To: "Valery Smyslov" <smyslov.ietf@gmail.com>
Cc: "Valery Smyslov" <svanru@gmail.com>, "'Eric Rescorla'" <ekr@rtfm.com>, "'Kyle Rose'" <krose@krose.org>, "'Mirja Kuehlewind \(IETF\)'" <ietf@kuehlewind.net>, "'tcpinc'" <tcpinc@ietf.org>, "'Black\, David'" <David.Black@dell.com>
In-Reply-To: <B035098B65EA4F01A2BCB369750D765B@chichi>
References: <CAJU8_nUUHbmFcPA2obo6q3dLqL1MGE2iKen-0EQ82re=+gtTfw@mail.gmail.com> <CE03DB3D7B45C245BCA0D243277949362FD96B0D@MX307CL04.corp.emc.com> <23072.32691.892725.97892@fireball.acr.fi> <01bc01d36a71$45957db0$d0c07910$@gmail.com> <CABcZeBPN_XQc8np3CWi_-AtDUafW4ZPc8EnRje8yj57Rv-vxyw@mail.gmail.com> <B0FB25D40E23475C9259A4C204B327D2@chichi> <CE03DB3D7B45C245BCA0D243277949362FDD6E73@MX307CL04.corp.emc.com> <CAJU8_nW9fkn9E=NbKFZ3zy5uSY36WFqRcQpBYdyYuLwzAbqFHA@mail.gmail.com> <CAJU8_nX7NOSG8hkUYqG_GeqSyPzmhwsyA30Z0riqRmwK8SozpQ@mail.gmail.com> <073801d37315$90c89bd0$b259d370$@gmail.com> <23088.4472.814142.142233@fireball.acr.fi> <E7AF7C0A2811484F8C475C00F74FC97D@chichi> <23088.12114.962463.320939@fireball.acr.fi> <B035098B65EA4F01A2BCB369750D765B@chichi>
X-Mailer: VM 8.2.0b under 25.1.1 (x86_64--netbsd)
X-Edit-Time: 4 min
X-Total-Time: 3 min
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpinc/1C-mg077Vfjo61qHRwkh9R4C_vw>
Subject: Re: [tcpinc] Resumption safety (was "Eric Rescorla's Discuss on draft-ietf-tcpinc-tcpcrypt-09: (with DISCUSS and COMMENT)")
X-BeenThere: tcpinc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Working group mailing list for TCP Increased Security \(tcpinc\)" <tcpinc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpinc/>
List-Post: <mailto:tcpinc@ietf.org>
List-Help: <mailto:tcpinc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpinc>, <mailto:tcpinc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Dec 2017 00:13:59 -0000

Valery Smyslov writes:
> > Yep. They do not work always, but if we design tcpinc in same way than
> > TLS, i.e., resumption always guarantees that we have new keying
> > material, then solutions which work for TLS (i.e. forces TCP sessions
> > to be reset, and new TCP connections to be created) will work for
> > tcpinc too.
> 
> I agree that tcpinc resumption could (should?) have been designed better.
> No disagreement here.

Good. And this was the discussion point here, I think. The original
question was whether the resumption should have nonce or not, i.e.,
resumption safety.

> My point was more generic. If internal cipher state of any protocol
> using counter mode has a chance to survive VM resumption 
> and continue to work (even for a short time), then a counter re-use 
> (and thus a catastrophic lose of security) could happen.
> Nonce-misuse resistant modes (like GCM-SIV) would help in this case.

I agree on that, but I think it is outside the scope of this
discussion (subject line says "Resumption safety").
-- 
kivinen@iki.fi

