From cfrg-bounces@ietf.org Tue Jan 02 15:10:00 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H1pw2-0006Nv-9b; Tue, 02 Jan 2007 15:08:34 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H1pw1-0006Nq-Ee
	for cfrg@irtf.org; Tue, 02 Jan 2007 15:08:33 -0500
Received: from wr-out-0506.google.com ([64.233.184.236])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H1pw0-0004NP-3A
	for cfrg@irtf.org; Tue, 02 Jan 2007 15:08:33 -0500
Received: by wr-out-0506.google.com with SMTP id i28so366615wra
	for <cfrg@irtf.org>; Tue, 02 Jan 2007 12:08:31 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth;
	b=iFOyfcmVGuMHGCw9TzHQZQeVnml1pB7y5g35ZtfKTpYeyKsKGIzFsBbpDFzQEISxZlhHgvrI6hKNCKj9lDdCowb3KJx+C9Rlj1xAaaZiYlY2mYg8Yp4t4xER/SF5IrcLs9k+kV+UvDd8hFfHFfx45oqzQY1vyY5Se16EnWncdRI=
Received: by 10.90.29.2 with SMTP id c2mr14558958agc.1167768511861;
	Tue, 02 Jan 2007 12:08:31 -0800 (PST)
Received: by 10.90.56.5 with HTTP; Tue, 2 Jan 2007 12:08:31 -0800 (PST)
Message-ID: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
Date: Wed, 3 Jan 2007 04:08:31 +0800
From: "Wei Dai" <weidai@weidai.com>
To: cfrg@irtf.org
MIME-Version: 1.0
X-Google-Sender-Auth: 9dba13e72a479033
X-Spam-Score: 0.2 (/)
X-Scan-Signature: 4b800b1eab964a31702fa68f1ff0e955
Cc: 
Subject: [Cfrg] consequences of nonce reuse
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0876883214=="
Errors-To: cfrg-bounces@ietf.org

--===============0876883214==
Content-Type: multipart/alternative; 
	boundary="----=_Part_168931_20597636.1167768511829"

------=_Part_168931_20597636.1167768511829
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I'd like to request that designers of nonce-based crypto schemes include an
analysis of the security consequences of nonce reused when proposing their
schemes. Considering nonce reuse is useful because guaranteeing the
uniqueness of nonces has a cost. If nonces are derived from state
information, that information is subject to corruption, memory loss,
desynchronization, etc. If nonces comes from a random source, they are
subject to collisions which limit the number of messages that can use the
same key. If the consequences of nonce reuse are published, the designer or
user of a protocol can choose a scheme that is less efficient but more
tolerant of nonce reuse when the cost of enforcing nonce uniqueness is
higher than the cost of the extra computations of the less efficient scheme.

As a motivating example, consider one of the differences between UMAC (1999
version) and VMAC. UMAC introduced the tag=PRF(hash, nonce) construction,
whereas VMAC returned to the older tag=hash xor PRF(nonce). (Actually this
change was already made in the 2000 version of UMAC , but I'll use VMAC in
the example for clarity. All subsequent mentions of UMAC refer to the 1999
version.)

While both designs state that nonces should be unique, UMAC is actually much
more tolerant of nonce reuse than VMAC but this property is not mentioned
anywhere as far as I know. The designers of UMAC state that if tag=PRF(hash)
had been used (i.e., if the scheme didn't use a nonce at all), its security
would decrease by a factor of q^2 where q is the number of messages
authenticated by the same key. So I think it's safe to conjecture that with
tag=PRF(hash, nonce), the security of UMAC only decreases by a factor of n^2
when some nonces are reused, where n is the number of messages not using
unique nonces. On the other hand, VMAC's security breaks completely as soon
as a single nonce is reused.

VMAC-128 is designed to have 120-bit security when unique nonces are used.
But with random nonces, we can expect a nonce collision (and therefore 0-bit
security) after only 2^64 messages (since the nonces are at most 128 bits
long). Similarly it has only 64-bit security after 2^32 messages with random
nonces. In contrast, a variant of VMAC-128 that uses tag=PRF(hash, nonce)
would lose only 1 or 2 bits of security after 2^64 messages.

I'll mention that tag=hash xor PRF(nonce) is more efficient, especially
noticeable for short messages, and in general tolerance for nonce reuse
probably has an efficiency cost, so I only ask that the consequences of
nonce reuse be considered and published to give users a choice.

------=_Part_168931_20597636.1167768511829
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>I&#39;d like to request that designers of nonce-based crypto schemes include an analysis of the security consequences of nonce reused when proposing their schemes. Considering nonce reuse is useful because guaranteeing the uniqueness of nonces has a cost. If nonces&nbsp;are derived from state information, that information&nbsp;is subject to corruption, memory loss, desynchronization, etc. If nonces comes from a random source, they are subject to collisions which limit the number of messages that can use the same key. If the consequences of nonce reuse are published, the designer or user of a protocol can choose a scheme that is less efficient but more tolerant of nonce reuse when the cost of enforcing nonce uniqueness is higher than the cost of the extra computations of the less efficient scheme.
</div>
<div>&nbsp;</div>
<div>As a motivating example, consider one of the differences between UMAC (1999 version) and VMAC. UMAC introduced the tag=PRF(hash, nonce) construction, whereas VMAC returned to the older tag=hash xor PRF(nonce). (Actually this change was already made in the 2000 version of UMAC , but I&#39;ll use VMAC&nbsp;in the example for clarity. All subsequent mentions of UMAC refer to the 1999 version.) 
</div>
<div>&nbsp;</div>
<div>While both&nbsp;designs state that nonces should be unique, UMAC is actually much more tolerant of nonce reuse than VMAC but this property is not mentioned anywhere as far as I know. The designers of UMAC state that&nbsp;if tag=PRF(hash) had been used (
i.e., if the scheme didn&#39;t use a nonce at all), its security would decrease by a factor of q^2 where q is the number of messages authenticated by the same key. So I think it&#39;s safe to conjecture that with tag=PRF(hash, nonce), the security of UMAC only decreases by a factor of n^2 when some nonces are reused, where n is the number of messages not using unique nonces. On the other hand, VMAC&#39;s security breaks completely as soon as a single nonce is reused.
</div>
<div>&nbsp;</div>
<div>VMAC-128 is designed to have 120-bit security when unique nonces are used. But with random nonces, we can expect a nonce collision&nbsp;(and therefore 0-bit security) after only 2^64 messages (since the nonces are at most 128 bits long). Similarly it has only 64-bit security after 2^32 messages with random nonces. In contrast, a variant of VMAC-128 that uses tag=PRF(hash, nonce) would lose only 1 or 2 bits of security&nbsp;after 2^64 messages.
</div>
<div>&nbsp;</div>
<div>I&#39;ll mention that tag=hash xor PRF(nonce) is more efficient, especially noticeable for short messages, and in general tolerance for nonce reuse probably has an efficiency cost, so I only ask that the consequences of nonce reuse be considered and published to give&nbsp;users a choice.
</div>
<div>&nbsp;</div>

------=_Part_168931_20597636.1167768511829--


--===============0876883214==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg

--===============0876883214==--




From cfrg-bounces@ietf.org Tue Jan 02 15:39:06 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H1qPK-0006Ge-VG; Tue, 02 Jan 2007 15:38:50 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H1qPI-0006Bq-Ex
	for cfrg@irtf.org; Tue, 02 Jan 2007 15:38:49 -0500
Received: from woodstock.binhost.com ([66.150.120.2])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1H1qPF-0000kT-Jx
	for cfrg@irtf.org; Tue, 02 Jan 2007 15:38:48 -0500
Received: (qmail 22081 invoked by uid 0); 2 Jan 2007 20:38:38 -0000
Received: from unknown (HELO THINKPADR52.vigilsec.com) (71.246.224.157)
	by woodstock.binhost.com with SMTP; 2 Jan 2007 20:38:38 -0000
Message-Id: <7.0.0.16.2.20070102152336.07c18810@vigilsec.com>
X-Mailer: QUALCOMM Windows Eudora Version 7.0.0.16
Date: Tue, 02 Jan 2007 15:24:14 -0500
To: "Wei Dai" <weidai@weidai.com>,cfrg@irtf.org
From: Russ Housley <housley@vigilsec.com>
Subject: Re: [Cfrg] consequences of nonce reuse
In-Reply-To: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.co
 m>
References: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-Spam-Score: 0.1 (/)
X-Scan-Signature: f4c2cf0bccc868e4cc88dace71fb3f44
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

I think that CCM (see RFC 3610) has the analysis you are 
requesting.  Do you think that something different is needed?

Russ


At 03:08 PM 1/2/2007, Wei Dai wrote:
>I'd like to request that designers of nonce-based crypto schemes 
>include an analysis of the security consequences of nonce reused 
>when proposing their schemes. Considering nonce reuse is useful 
>because guaranteeing the uniqueness of nonces has a cost. If nonces 
>are derived from state information, that information is subject to 
>corruption, memory loss, desynchronization, etc. If nonces comes 
>from a random source, they are subject to collisions which limit the 
>number of messages that can use the same key. If the consequences of 
>nonce reuse are published, the designer or user of a protocol can 
>choose a scheme that is less efficient but more tolerant of nonce 
>reuse when the cost of enforcing nonce uniqueness is higher than the 
>cost of the extra computations of the less efficient scheme.
>
>As a motivating example, consider one of the differences between 
>UMAC (1999 version) and VMAC. UMAC introduced the tag=PRF(hash, 
>nonce) construction, whereas VMAC returned to the older tag=hash xor 
>PRF(nonce). (Actually this change was already made in the 2000 
>version of UMAC , but I'll use VMAC in the example for clarity. All 
>subsequent mentions of UMAC refer to the 1999 version.)
>
>While both designs state that nonces should be unique, UMAC is 
>actually much more tolerant of nonce reuse than VMAC but this 
>property is not mentioned anywhere as far as I know. The designers 
>of UMAC state that if tag=PRF(hash) had been used ( i.e., if the 
>scheme didn't use a nonce at all), its security would decrease by a 
>factor of q^2 where q is the number of messages authenticated by the 
>same key. So I think it's safe to conjecture that with tag=PRF(hash, 
>nonce), the security of UMAC only decreases by a factor of n^2 when 
>some nonces are reused, where n is the number of messages not using 
>unique nonces. On the other hand, VMAC's security breaks completely 
>as soon as a single nonce is reused.
>
>VMAC-128 is designed to have 120-bit security when unique nonces are 
>used. But with random nonces, we can expect a nonce collision (and 
>therefore 0-bit security) after only 2^64 messages (since the nonces 
>are at most 128 bits long). Similarly it has only 64-bit security 
>after 2^32 messages with random nonces. In contrast, a variant of 
>VMAC-128 that uses tag=PRF(hash, nonce) would lose only 1 or 2 bits 
>of security after 2^64 messages.
>
>I'll mention that tag=hash xor PRF(nonce) is more efficient, 
>especially noticeable for short messages, and in general tolerance 
>for nonce reuse probably has an efficiency cost, so I only ask that 
>the consequences of nonce reuse be considered and published to give 
>users a choice.
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@ietf.org
>https://www1.ietf.org/mailman/listinfo/cfrg


_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Tue Jan 02 16:25:00 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H1r7K-0007wK-K8; Tue, 02 Jan 2007 16:24:18 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H1r7J-0007uy-1M
	for cfrg@irtf.org; Tue, 02 Jan 2007 16:24:17 -0500
Received: from wr-out-0506.google.com ([64.233.184.232])
	by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1H1r7H-0000UE-O5
	for cfrg@irtf.org; Tue, 02 Jan 2007 16:24:16 -0500
Received: by wr-out-0506.google.com with SMTP id i28so384086wra
	for <cfrg@irtf.org>; Tue, 02 Jan 2007 13:24:13 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth;
	b=cvpqcpFq2aSElbAaRF6yXvoEAcFUhQSHCsGcqjyct/pqbeuDNeO4yknx416OLAT7385d3JvCwMOirdbRhX/LZ2P8KJyEIsgJdjX5iSk4KXEOQzbcqP4iCjETnmVr3KGdaOgoEQt0bCLmGnlVagZdSH+MxpYfAVaRVkhaPZdvu2Q=
Received: by 10.90.94.2 with SMTP id r2mr14594138agb.1167773053316;
	Tue, 02 Jan 2007 13:24:13 -0800 (PST)
Received: by 10.90.56.5 with HTTP; Tue, 2 Jan 2007 13:24:13 -0800 (PST)
Message-ID: <ec22d0e20701021324p31a15a44p5e3603502a425fe3@mail.gmail.com>
Date: Wed, 3 Jan 2007 05:24:13 +0800
From: "Wei Dai" <weidai@weidai.com>
To: "Russ Housley" <housley@vigilsec.com>
Subject: Re: [Cfrg] consequences of nonce reuse
In-Reply-To: <7.0.0.16.2.20070102152336.07c18810@vigilsec.com>
MIME-Version: 1.0
References: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
	<7.0.0.16.2.20070102152336.07c18810@vigilsec.com>
X-Google-Sender-Auth: 2d594dc4535f56f0
X-Spam-Score: 0.1 (/)
X-Scan-Signature: a7d6aff76b15f3f56fcb94490e1052e4
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0208754262=="
Errors-To: cfrg-bounces@ietf.org

--===============0208754262==
Content-Type: multipart/alternative; 
	boundary="----=_Part_170192_31710503.1167773053272"

------=_Part_170192_31710503.1167773053272
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 1/3/07, Russ Housley <housley@vigilsec.com> wrote:
>
> I think that CCM (see RFC 3610) has the analysis you are
> requesting.  Do you think that something different is needed?


Yes, this is another good example of the current situation that I'd like to
see improved. The analysis in the RFC (unless it's somewhere else that I've
skipped over) simply says:

Using the same nonce for two different messages
encrypted with the same key destroys the security properties of
this mode.

I'd like to know more about what actually happens when a nonce is reused.
For example, does it a) weaken the security bound by some factor? b)
immediately allow an attacker to obtain the XOR of two messages that used
the same nonce? or c) allow an attacker to recover the entire key or
otherwise decrypt arbitrary messages?

------=_Part_170192_31710503.1167773053272
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div><span class="gmail_quote">On 1/3/07, <b class="gmail_sendername">Russ Housley</b> &lt;<a href="mailto:housley@vigilsec.com">housley@vigilsec.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I think that CCM (see RFC 3610) has the analysis you are<br>requesting.&nbsp;&nbsp;Do you think that something different is needed?
</blockquote>
<div>&nbsp;</div>
<div>Yes, this is another good example of the current situation that I&#39;d like to see improved. The analysis in the RFC (unless it&#39;s somewhere else that I&#39;ve skipped over) simply says: </div>
<div>&nbsp;</div>
<div>Using the same nonce for two different messages<br>encrypted with the same key destroys the security properties of<br>this mode.<br>&nbsp;</div>
<div>I&#39;d like to know more about what actually happens when a nonce is reused. For example, does it a) weaken the security bound by some factor? b) immediately allow an attacker to obtain the XOR of two messages that used the same nonce? or c)&nbsp;allow an attacker to recover the entire key or otherwise decrypt arbitrary messages?
</div>
<div>&nbsp;</div></div>

------=_Part_170192_31710503.1167773053272--


--===============0208754262==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg

--===============0208754262==--




From cfrg-bounces@ietf.org Tue Jan 02 22:34:20 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H1ws6-0004AB-Qj; Tue, 02 Jan 2007 22:32:58 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H1ws5-00048W-Ij
	for cfrg@irtf.org; Tue, 02 Jan 2007 22:32:57 -0500
Received: from mailhost.auckland.ac.nz ([130.216.190.11]
	helo=groucho.itss.auckland.ac.nz)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H1ws4-0003cc-69
	for cfrg@irtf.org; Tue, 02 Jan 2007 22:32:57 -0500
Received: from localhost (smtpa.itss.auckland.ac.nz [127.0.0.1])
	by groucho.itss.auckland.ac.nz (Postfix) with ESMTP id 1F1E934917;
	Wed,  3 Jan 2007 16:32:51 +1300 (NZDT)
Received: from groucho.itss.auckland.ac.nz ([127.0.0.1])
	by localhost (smtpa.itss.auckland.ac.nz [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id 29922-14; Wed,  3 Jan 2007 16:32:50 +1300 (NZDT)
Received: from iris.cs.auckland.ac.nz (iris.cs.auckland.ac.nz [130.216.33.152])
	by groucho.itss.auckland.ac.nz (Postfix) with ESMTP id 8E521342D7;
	Wed,  3 Jan 2007 16:32:50 +1300 (NZDT)
Received: from medusa01.cs.auckland.ac.nz (medusa01.cs.auckland.ac.nz
	[130.216.34.33]) by iris.cs.auckland.ac.nz (Postfix) with ESMTP
	id A27D512807F; Wed,  3 Jan 2007 16:32:49 +1300 (NZDT)
Received: from pgut001 by medusa01.cs.auckland.ac.nz with local (Exim 3.36 #1
	(Debian)) id 1H1ws2-0002wf-00; Wed, 03 Jan 2007 16:32:54 +1300
From: pgut001@cs.auckland.ac.nz (Peter Gutmann)
To: cfrg@irtf.org, weidai@weidai.com
Subject: Re: [Cfrg] consequences of nonce reuse
In-Reply-To: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
Message-Id: <E1H1ws2-0002wf-00@medusa01.cs.auckland.ac.nz>
Date: Wed, 03 Jan 2007 16:32:54 +1300
X-Virus-Scanned: by amavisd-new at mailhost.auckland.ac.nz
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 7d33c50f3756db14428398e2bdedd581
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

"Wei Dai" <weidai@weidai.com> writes:

>I'd like to request that designers of nonce-based crypto schemes include an
>analysis of the security consequences of nonce reused when proposing their
>schemes. 

Seconded.  In addition designers should make clear whether a nonce should be:

- Nonrepeating (so a counter will do).
- High-entropy (a hash of the counter will do).
- Unpredictable (requiring a truly random value).

(note the order of increasing requirements on the nonce generation).  This
lack of detail has historically caused problems in a number of
implementations, for example in SSL the session ID is (according to the spec)
required to fit into the "unpredictable" category, so many (probably almost
all) implementations feed 32 bytes of output from their crypto RNG to an
attacker in cleartext on every handshake.  In fact all that's required is that
it's in the "nonrepeating" category.

Peter.

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Wed Jan 03 12:27:03 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H29sH-0007uk-Nt; Wed, 03 Jan 2007 12:26:01 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H29sG-0007ua-KL
	for cfrg@ietf.org; Wed, 03 Jan 2007 12:26:00 -0500
Received: from nlpi001.sbcis.sbc.com ([207.115.36.30])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H29sF-0004Be-CU
	for cfrg@ietf.org; Wed, 03 Jan 2007 12:26:00 -0500
X-ORBL: [71.143.0.25]
Received: from [192.168.0.187] (adsl-71-143-0-25.dsl.scrm01.pacbell.net
	[71.143.0.25])
	by nlpi001.sbcis.sbc.com (8.13.8 out.dk.spool/8.13.8) with ESMTP id
	l03HPG4g025039 for <cfrg@ietf.org>; Wed, 3 Jan 2007 11:25:17 -0600
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Transfer-Encoding: 7bit
Message-Id: <47924C47-24B4-4200-B1CA-D544673A3BD8@acm.org>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
To: cfrg@ietf.org
From: Ted Krovetz <tdk@acm.org>
Subject: Re: [Cfrg] consequences of nonce reuse
Date: Wed, 3 Jan 2007 09:25:57 -0800
X-Mailer: Apple Mail (2.752.3)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: bb8f917bb6b8da28fc948aeffb74aa17
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

> I'd like to know more about what actually happens when a nonce is  
> reused. For example, does it a) weaken the security bound by some  
> factor? b) immediately allow an attacker to obtain the XOR of two  
> messages that used the same nonce? or c) allow an attacker to  
> recover the entire key or otherwise decrypt arbitrary messages?

When

   tag  = prf(nonce) xor hash(m) and
   tag' = prf(nonce) xor hash(m'),

then any observer knows that tag xor tag' = hash(m) xor hash(m'). In  
other words, each time a nonce is reused, the adversary gets to know  
the difference between the hashes of two known messages (since tags  
and messages are often cleartext).

The definitions of universal hashing -- on which wegman-carter macs  
are based -- do not accommodate for this type of leak. One would have  
to develop universal hashing definitions conditioned on the adversary  
knowing some hash differences, and then functions used in wegman- 
carter macs would have to be re-proven in light of these new  
definitions.

For many hash functions, knowing hash differences likely makes it  
very easy to determine what hash key is in use. For example, simple  
polynomial hashing has enough mathematical structure that knowing a  
few differences could make it easy to determine the key in use.

It is probably best to accept that wegman-carter macs REQUIRE non- 
repeating nonces (and not insist on discussions in RFCs about the  
subtleties of this). If someone is able to prove that their wegman- 
carter mac can withstand repeated nonces, then they can point that  
fact out as special to their mac.

-Ted 

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 04 10:32:18 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H2UYn-0003Ui-9K; Thu, 04 Jan 2007 10:31:17 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H2UYl-0003UZ-Ta
	for cfrg@irtf.org; Thu, 04 Jan 2007 10:31:15 -0500
Received: from stoneport.math.uic.edu ([131.193.178.160])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1H2UYk-0006SR-LU
	for cfrg@irtf.org; Thu, 04 Jan 2007 10:31:15 -0500
Received: (qmail 28724 invoked by uid 1016); 4 Jan 2007 15:31:42 -0000
Date: 4 Jan 2007 15:31:42 -0000
Message-ID: <20070104153142.28723.qmail@cr.yp.to>
Automatic-Legal-Notices: See http://cr.yp.to/mailcopyright.html.
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Subject: Re: [Cfrg] consequences of nonce reuse
References: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7baded97d9887f7a0c7e8a33c2e3ea1b
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

The word "nonce" means "number used once." The standard example of a
nonce is a simple counter: 1, 2, 3, etc. For example, in an encrypted
TCP-like protocol, you can use 1 for the first packet, 2 for the second
packet, 3 for the third packet, etc.

Wei Dai writes:
> Considering nonce reuse is useful because guaranteeing the
> uniqueness of nonces has a cost.

What exactly is the cost that you're referring to? Do you think that the
encrypted-TCP server (or client) has trouble counting 1, 2, 3, ...?

Can anyone point to a verifiable real-world example of a cryptographic
application in which producing counters is more expensive than an
alternative method of achieving security? I don't mean a vague
description of a category of hypothetical applications; I want names of
real applications that achieve security at lower cost without counters
than they would be able to achieve with counters.

  [ assuming that the "nonce" isn't actually a nonce ]
> In contrast, a variant of VMAC-128 that uses tag=PRF(hash, nonce)
> would lose only 1 or 2 bits of security after 2^64 messages.

I find myself quite skeptical of this claim. I haven't looked at the
VMAC details, but I know many similar systems in which 2^64 messages are
likely to produce a hash collision, and in which knowledge of a hash
collision allows forgeries of other messages. (Certainly this is true
for the 128-bit Gilbert-MacWilliams-Sloane MACs that were tweaked to
produce UMAC and VMAC.) A 128-bit PRF(hash,constant) will have
collisions somewhat more often than the internal hash, but not enough to
seriously degrade the attack's success probability.

You might say that your PRF(hash,"nonce") isn't PRF(hash,constant), and
that your "nonces" aren't likely to collide when the hashes do, but if
you think that the nonce generator is too stupid to count 1, 2, 3, ...
then I don't see how you can "guarantee" anything about the frequency of
nonce collisions.

---D. J. Bernstein, Professor, Mathematics, Statistics,
and Computer Science, University of Illinois at Chicago

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 04 11:49:46 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H2Vm1-0003j3-N2; Thu, 04 Jan 2007 11:49:01 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H2Vm0-0003gJ-UY
	for cfrg@irtf.org; Thu, 04 Jan 2007 11:49:00 -0500
Received: from machshav.com ([147.28.0.16])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H2Vly-0002eI-Ja
	for cfrg@irtf.org; Thu, 04 Jan 2007 11:49:00 -0500
Received: by machshav.com (Postfix, from userid 512)
	id C117AFB49C; Thu,  4 Jan 2007 16:48:51 +0000 (UTC)
Received: from berkshire.machshav.com (localhost [127.0.0.1])
	by machshav.com (Postfix) with ESMTP id CDB83FB40B;
	Thu,  4 Jan 2007 16:48:50 +0000 (UTC)
Received: by berkshire.machshav.com (Postfix, from userid 54047)
	id 636C3765FDE; Thu,  4 Jan 2007 11:48:49 -0500 (EST)
Date: Thu, 4 Jan 2007 11:48:49 -0500
From: "Steven M. Bellovin" <smb@cs.columbia.edu>
To: "D. J. Bernstein" <djb@cr.yp.to>
Subject: Re: [Cfrg] consequences of nonce reuse
In-Reply-To: <20070104153142.28723.qmail@cr.yp.to>
References: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
	<20070104153142.28723.qmail@cr.yp.to>
Organization: Columbia University
X-Mailer: Claws Mail 2.6.1 (GTK+ 2.10.6; i386--netbsdelf)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Message-Id: <20070104164849.636C3765FDE@berkshire.machshav.com>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: ffa9dfbbe7cc58b3fa6b8ae3e57b0aa3
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

On 4 Jan 2007 15:31:42 -0000
"D. J. Bernstein" <djb@cr.yp.to> wrote:

> 
> Can anyone point to a verifiable real-world example of a cryptographic
> application in which producing counters is more expensive than an
> alternative method of achieving security? I don't mean a vague
> description of a category of hypothetical applications; I want names
> of real applications that achieve security at lower cost without
> counters than they would be able to achieve with counters.
> 

The cost is being able to maintain state across reboots or power cycle
events.  This was one (of many) problems with WEP -- one reason that
the so-called IVs are reused so often is that many implementations use
counters and restart them from zero.  See Section 3 of Borisov,
Goldberg, and Wagner's paper on 802.11 insecurity; they mention
(though not by product name) that specific implementations do this.
(WEP IVs would repeat in any event, because they're 24 bits long, but
even a 64-bit IV would be problematic if the counter always started
from 0.)

There are analogous non-security issues with regard to the TCP sequence
number; see the text on "TCP Quiet Time" in RFC 793.

		--Steve Bellovin, http://www.cs.columbia.edu/~smb

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sun Jan 07 02:06:34 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H3S5C-0006Vm-U8; Sun, 07 Jan 2007 02:04:42 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H3S5B-0006Vh-Ju
	for cfrg@irtf.org; Sun, 07 Jan 2007 02:04:41 -0500
Received: from wx-out-0506.google.com ([66.249.82.231])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H3S59-0007ZO-T2
	for cfrg@irtf.org; Sun, 07 Jan 2007 02:04:41 -0500
Received: by wx-out-0506.google.com with SMTP id i28so7358553wxd
	for <cfrg@irtf.org>; Sat, 06 Jan 2007 23:04:39 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
	b=PdM1deb6vUn9ULGRMaS54d1MgC4ac71/c50ADOBPW/WLRqYJEAmCGBAtJXjgmlThH3WVKyINpv6KBJgr7fNz6PpLy1hkRbT9RQAxhVBjk4eJH338sChWFaPZOAcgsMmV+KQHumu6Nf6h0RNwNa/QDqcui5WeMkGyqbjjXhtdKUk=
Received: by 10.90.84.17 with SMTP id h17mr1597122agb.1168153479667;
	Sat, 06 Jan 2007 23:04:39 -0800 (PST)
Received: by 10.90.56.7 with HTTP; Sat, 6 Jan 2007 23:04:39 -0800 (PST)
Message-ID: <ec22d0e20701062304x6fd757d7p2f7c865efe7122d6@mail.gmail.com>
Date: Sun, 7 Jan 2007 15:04:39 +0800
From: "Wei Dai" <weidai11@gmail.com>
To: "D. J. Bernstein" <djb@cr.yp.to>
Subject: Re: [Cfrg] consequences of nonce reuse
In-Reply-To: <20070104153142.28723.qmail@cr.yp.to>
MIME-Version: 1.0
References: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
	<20070104153142.28723.qmail@cr.yp.to>
X-Spam-Score: 1.0 (+)
X-Scan-Signature: 4d87d2aa806f79fed918a62e834505ca
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0616594709=="
Errors-To: cfrg-bounces@ietf.org

--===============0616594709==
Content-Type: multipart/alternative; 
	boundary="----=_Part_20218_3748908.1168153479620"

------=_Part_20218_3748908.1168153479620
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 4 Jan 2007 15:31:42 -0000, D. J. Bernstein <djb@cr.yp.to> wrote:
>
> What exactly is the cost that you're referring to? Do you think that the
> encrypted-TCP server (or client) has trouble counting 1, 2, 3, ...?


If you want to maintain a count across reboots, you have to write the
counter to disk. Then you'd have to worry about file system security,
detecting when the disk might have been restored from an earlier backup,
etc. I'd bet there are very few applications that do this securely. Most
applications that use counters probably don't bother to save them, and
instead, upon reboot either set their counters to random values or discard
all shared symmetric keys and re-establish them (in which case random nonces
are probably used as part of of the key agreement protocols).

Besides reboots, we now also have the possibility of our software running
inside virtual machines (e.g. VMware), where even volatile memory can be
rolled back to earlier checkpoints.

You might say that your PRF(hash,"nonce") isn't PRF(hash,constant), and
> that your "nonces" aren't likely to collide when the hashes do, but if
> you think that the nonce generator is too stupid to count 1, 2, 3, ...
> then I don't see how you can "guarantee" anything about the frequency of
> nonce collisions.
>

Perhaps from a theoretical perspective generating random numbers is much
harder than counting, but from a practical perspective, in many situations
random number generation is a solved problem whereas counting isn't. Modern
operating systems provide facilities to easily generate random numbers of
cryptographic quality. I think the above discussion implies that OS support
is also needed to easily maintain a count of cryptographic quality, but this
support isn't available yet.

------=_Part_20218_3748908.1168153479620
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 4 Jan 2007 15:31:42 -0000, <b class="gmail_sendername">D. J. Bernstein</b> &lt;<a href="mailto:djb@cr.yp.to">djb@cr.yp.to</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What exactly is the cost that you&#39;re referring to? Do you think that the<br>encrypted-TCP server (or client) has trouble counting 1, 2, 3, ...?</blockquote><div><br>If you want to maintain a count across reboots, you have to write the counter to disk. Then you&#39;d have to worry about file system security, detecting when the disk might have been restored from an earlier backup, etc. I&#39;d bet there are very few applications that do this securely. Most applications that use counters probably don&#39;t bother to save them, and instead, upon reboot either set their counters to random values or discard all shared symmetric keys and re-establish them (in which case random nonces are probably used as part of of the key agreement protocols).
<br><br>Besides reboots, we now also have the possibility of our software running inside virtual machines (e.g. VMware), where even volatile memory can be rolled back to earlier checkpoints.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You might say that your PRF(hash,&quot;nonce&quot;) isn&#39;t PRF(hash,constant), and<br>that your &quot;nonces&quot; aren&#39;t likely to collide when the hashes do, but if<br>you think that the nonce generator is too stupid to count 1, 2, 3, ...
<br>then I don&#39;t see how you can &quot;guarantee&quot; anything about the frequency of<br>nonce collisions.<br></blockquote></div><br>Perhaps from a theoretical perspective generating random numbers is much harder than counting, but from a practical perspective, in many situations random number generation is a solved problem whereas counting isn&#39;t. Modern operating systems provide facilities to easily generate random numbers of cryptographic quality. I think the above discussion implies that OS support is also needed to easily maintain a count of cryptographic quality, but this support isn&#39;t available yet.
<br><br>

------=_Part_20218_3748908.1168153479620--


--===============0616594709==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg

--===============0616594709==--




From cfrg-bounces@ietf.org Sun Jan 07 05:51:42 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H3VbX-0007jJ-RB; Sun, 07 Jan 2007 05:50:19 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H3VbW-0007jE-NK
	for cfrg@irtf.org; Sun, 07 Jan 2007 05:50:18 -0500
Received: from nf-out-0910.google.com ([64.233.182.191])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H3VbU-0006Ru-Aq
	for cfrg@irtf.org; Sun, 07 Jan 2007 05:50:18 -0500
Received: by nf-out-0910.google.com with SMTP id x4so9094976nfb
	for <cfrg@irtf.org>; Sun, 07 Jan 2007 02:50:15 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=sqKjkuNniDpV2xHNDSnJZ7qlQLcvtkacL8hQrhjrqt+PD0ctrEG4I0pek7bQZfELNe138XhSZXwrLao9wxiFParG9r+XKap4xg0jXQyLI+7dwgyiY4bGax1zE66sIdw9eQQPgzSoKBZ4hMzAjIbALkDGfdan+Yt8oLv2ACw+brU=
Received: by 10.78.204.20 with SMTP id b20mr5139074hug.1168167015407;
	Sun, 07 Jan 2007 02:50:15 -0800 (PST)
Received: by 10.78.181.20 with HTTP; Sun, 7 Jan 2007 02:50:15 -0800 (PST)
Message-ID: <dcad22d80701070250x1ba33339u4ea3dbff241b7144@mail.gmail.com>
Date: Sun, 7 Jan 2007 05:50:15 -0500
From: "Marshall Eubanks" <marshall.eubanks@gmail.com>
To: "Wei Dai" <weidai11@gmail.com>
Subject: Re: [Cfrg] consequences of nonce reuse
In-Reply-To: <ec22d0e20701062304x6fd757d7p2f7c865efe7122d6@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
	<20070104153142.28723.qmail@cr.yp.to>
	<ec22d0e20701062304x6fd757d7p2f7c865efe7122d6@mail.gmail.com>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 3e15cc4fdc61d7bce84032741d11c8e5
Cc: cfrg@irtf.org, "D. J. Bernstein" <djb@cr.yp.to>
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

In the light of this discussion, wouldn't it make sense to require
that a NONCE used in a cryptographic context be either

- a counter concatenated  or hashed with a random number or
- a counter that is always reset to a random value, or
- a random number itself ?

While random number generation in a computer may have its problems, in
this case, the only goal is to make the probability of reuse very
small, which it should be possible to achieve.

Regards
Marshall Eubanks

On 1/7/07, Wei Dai <weidai11@gmail.com> wrote:
> On 4 Jan 2007 15:31:42 -0000, D. J. Bernstein <djb@cr.yp.to> wrote:
> > What exactly is the cost that you're referring to? Do you think that the
> > encrypted-TCP server (or client) has trouble counting 1, 2, 3, ...?
>
> If you want to maintain a count across reboots, you have to write the
> counter to disk. Then you'd have to worry about file system security,
> detecting when the disk might have been restored from an earlier backup,
> etc. I'd bet there are very few applications that do this securely. Most
> applications that use counters probably don't bother to save them, and
> instead, upon reboot either set their counters to random values or discard
> all shared symmetric keys and re-establish them (in which case random nonces
> are probably used as part of of the key agreement protocols).
>
> Besides reboots, we now also have the possibility of our software running
> inside virtual machines (e.g. VMware), where even volatile memory can be
> rolled back to earlier checkpoints.
>
> > You might say that your PRF(hash,"nonce") isn't PRF(hash,constant), and
> > that your "nonces" aren't likely to collide when the hashes do, but if
> > you think that the nonce generator is too stupid to count 1, 2, 3, ...
> > then I don't see how you can "guarantee" anything about the frequency of
> > nonce collisions.
> >
>
> Perhaps from a theoretical perspective generating random numbers is much
> harder than counting, but from a practical perspective, in many situations
> random number generation is a solved problem whereas counting isn't. Modern
> operating systems provide facilities to easily generate random numbers of
> cryptographic quality. I think the above discussion implies that OS support
> is also needed to easily maintain a count of cryptographic quality, but this
> support isn't available yet.
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@ietf.org
> https://www1.ietf.org/mailman/listinfo/cfrg
>
>
>

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sun Jan 07 06:55:25 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H3Wbd-0005Ux-ST; Sun, 07 Jan 2007 06:54:29 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H3Wbc-0005SB-Rw
	for cfrg@irtf.org; Sun, 07 Jan 2007 06:54:28 -0500
Received: from off.net ([66.96.28.3] helo=mail.off.net)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H3Wba-0006Iz-Dc
	for cfrg@irtf.org; Sun, 07 Jan 2007 06:54:28 -0500
Received: by mail.off.net (Postfix, from userid 948)
	id B9E81770445; Sun,  7 Jan 2007 06:54:19 -0500 (EST)
Received: by bitchcake.off.net (hashcash-sendmail, from uid 948);
	Sun, 7 Jan 2007 06:54:14 -0500
Date: Sun, 7 Jan 2007 06:54:14 -0500
From: Adam Back <adam@cypherspace.org>
To: Marshall Eubanks <marshall.eubanks@gmail.com>
Subject: Re: [Cfrg] consequences of nonce reuse
Message-ID: <20070107115414.GA30547@bitchcake.off.net>
References: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
	<20070104153142.28723.qmail@cr.yp.to>
	<ec22d0e20701062304x6fd757d7p2f7c865efe7122d6@mail.gmail.com>
	<dcad22d80701070250x1ba33339u4ea3dbff241b7144@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <dcad22d80701070250x1ba33339u4ea3dbff241b7144@mail.gmail.com>
User-Agent: Mutt/1.4.2.1i
X-Hashcash: 1:20:070107:marshall.eubanks@gmail.com::XhhDNcssmXFRg9KE:1vNX
X-Hashcash: 1:20:070107:weidai11@gmail.com::ESuvKGdky4EURWik:7Sv
X-Hashcash: 1:20:070107:cfrg@irtf.org::arXFO+iBg1OGqU60:BECu
X-Hashcash: 1:20:070107:djb@cr.yp.to::HnlCJaIZxnd8MuUw:0+i8
X-Hashcash: 1:20:070107:adam@cypherspace.org::J2RilVGp1hCzVnDB:XKb
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 50a516d93fd399dc60588708fd9a3002
Cc: Adam Back <adam@cypherspace.org>, cfrg@irtf.org,
	"D. J. Bernstein" <djb@cr.yp.to>
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Problem is random numbers are subject to re-use faster than counters
due to the birthday principle.  (Probability of collision > 0.5 after
2^n/2 for n-bit counter).  Whereas a counter has a probability of
collision of exactly 1 after 2^n; and 2^n/2 is much bigger smaller
than 2^n.

Also with a counter and a permutation (block cipher), if you have a
counter that is the same size as a block cipher you can assure no
collision even though seeing random output.  You can distinguish it
from random output with increasing confidence after 2^n/2 outputs due
to the absense of collisions, but if the point is to avoid collisions
it is preferable and distinguishing from random output is not
relevant.

A counter reset to a random value rather than starting at 0 again will
actually collide 2x as quickly on average.


So I think the sensible thing to do is either:

- use a counter and change the key after counter-wrap (or after loss
of counter state)

  - optionally encrypt the counter with a block cipher (if the nonce
    size is equal to the block cipher size)

- or use a random value for few enough times per key such that
  probability of collision is acceptably low (relative to your
  security margin, and the severity of the consequences of
  nonce-reuse)

- and consider also the probability of key re-use if frequently
re-keying (in some protocols scenarios you might think re-keying every
message would be an alternative to ensuring nonces are really used
once)

Adam

On Sun, Jan 07, 2007 at 05:50:15AM -0500, Marshall Eubanks wrote:
> In the light of this discussion, wouldn't it make sense to require
> that a NONCE used in a cryptographic context be either
> 
> - a counter concatenated  or hashed with a random number or
> - a counter that is always reset to a random value, or
> - a random number itself ?
> 
> While random number generation in a computer may have its problems, in
> this case, the only goal is to make the probability of reuse very
> small, which it should be possible to achieve.

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sun Jan 07 07:20:57 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H3X12-0006Kj-Sp; Sun, 07 Jan 2007 07:20:44 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H3X11-0006KZ-6q
	for cfrg@irtf.org; Sun, 07 Jan 2007 07:20:43 -0500
Received: from mailhost.auckland.ac.nz ([130.216.190.12]
	helo=chico.itss.auckland.ac.nz)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H3X0y-0001kV-Pn
	for cfrg@irtf.org; Sun, 07 Jan 2007 07:20:43 -0500
Received: from localhost (localhost.localdomain [127.0.0.1])
	by chico.itss.auckland.ac.nz (Postfix) with ESMTP id 4309E34C8A;
	Mon,  8 Jan 2007 01:20:34 +1300 (NZDT)
Received: from chico.itss.auckland.ac.nz ([127.0.0.1])
	by localhost (smtpb.itss.auckland.ac.nz [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id 30377-10; Mon,  8 Jan 2007 01:20:34 +1300 (NZDT)
Received: from iris.cs.auckland.ac.nz (iris.cs.auckland.ac.nz [130.216.33.152])
	by chico.itss.auckland.ac.nz (Postfix) with ESMTP id C64B0346E2;
	Mon,  8 Jan 2007 01:20:33 +1300 (NZDT)
Received: from medusa01.cs.auckland.ac.nz (medusa01.cs.auckland.ac.nz
	[130.216.34.33]) by iris.cs.auckland.ac.nz (Postfix) with ESMTP
	id 9139412807F; Mon,  8 Jan 2007 01:20:31 +1300 (NZDT)
Received: from pgut001 by medusa01.cs.auckland.ac.nz with local (Exim 3.36 #1
	(Debian)) id 1H3X0y-0007Ba-00; Mon, 08 Jan 2007 01:20:40 +1300
From: pgut001@cs.auckland.ac.nz (Peter Gutmann)
To: ben@links.org, pgut001@cs.auckland.ac.nz
Subject: Re: [Cfrg] consequences of nonce reuse
In-Reply-To: <459FB68A.30906@links.org>
Message-Id: <E1H3X0y-0007Ba-00@medusa01.cs.auckland.ac.nz>
Date: Mon, 08 Jan 2007 01:20:40 +1300
X-Virus-Scanned: by amavisd-new at mailhost.auckland.ac.nz
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 2409bba43e9c8d580670fda8b695204a
Cc: weidai@weidai.com, cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Ben Laurie <ben@links.org> writes:
>Peter Gutmann wrote:
>> "Wei Dai" <weidai@weidai.com> writes:
>>
>>> I'd like to request that designers of nonce-based crypto schemes include an
>>> analysis of the security consequences of nonce reused when proposing their
>>> schemes.
>>
>> Seconded.  In addition designers should make clear whether a nonce should be:
>>
>> - Nonrepeating (so a counter will do).
>> - High-entropy (a hash of the counter will do).
>
>You mean a secret-key HMAC, surely?

If I'd meant that, I would have said it :-).  What I meant was unstructured
data (i.e. not 127 zero bits followed by a one bit as for a counter), but not
necessarily unpredictable.

>> - Unpredictable (requiring a truly random value).
>
>How is "truly random" different from a secret-key HMAC of a counter? 

It isn't.  Note though that it differs from my definition of case 2.

Peter.


_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sun Jan 07 08:39:05 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H3YDx-00013u-8L; Sun, 07 Jan 2007 08:38:09 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H3YDv-00013p-7B
	for cfrg@irtf.org; Sun, 07 Jan 2007 08:38:07 -0500
Received: from ug-out-1314.google.com ([66.249.92.173])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H3YDt-0001Mm-T2
	for cfrg@irtf.org; Sun, 07 Jan 2007 08:38:07 -0500
Received: by ug-out-1314.google.com with SMTP id 23so7672986ugr
	for <cfrg@irtf.org>; Sun, 07 Jan 2007 05:38:05 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=g91niaEl5IDbxvEaX709PWENzAJG0og6C8xZ9lcoVKON8foPWB2GQKGtLrejQLI6Y0SbYN/k77e+Fn181vGJyKcEY/CwYWaAgicFkHCcf8d5DyjzTnRVoYsbK+m5TBI9io/nRYTNiP8Xhy+6eyhPivJyoc+EprW15CRwD3hWJQo=
Received: by 10.78.133.10 with SMTP id g10mr3765224hud.1168177084892;
	Sun, 07 Jan 2007 05:38:04 -0800 (PST)
Received: by 10.78.181.20 with HTTP; Sun, 7 Jan 2007 05:38:04 -0800 (PST)
Message-ID: <dcad22d80701070538y2843d0a4p656b326367707ec9@mail.gmail.com>
Date: Sun, 7 Jan 2007 08:38:04 -0500
From: "Marshall Eubanks" <marshall.eubanks@gmail.com>
To: "Adam Back" <adam@cypherspace.org>
Subject: Re: [Cfrg] consequences of nonce reuse
In-Reply-To: <20070107115414.GA30547@bitchcake.off.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
	<20070104153142.28723.qmail@cr.yp.to>
	<ec22d0e20701062304x6fd757d7p2f7c865efe7122d6@mail.gmail.com>
	<dcad22d80701070250x1ba33339u4ea3dbff241b7144@mail.gmail.com>
	<20070107115414.GA30547@bitchcake.off.net>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: c0bedb65cce30976f0bf60a0a39edea4
Cc: cfrg@irtf.org, "D. J. Bernstein" <djb@cr.yp.to>
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Hello;

On 1/7/07, Adam Back <adam@cypherspace.org> wrote:
> Problem is random numbers are subject to re-use faster than counters
> due to the birthday principle.  (Probability of collision > 0.5 after
> 2^n/2 for n-bit counter).  Whereas a counter has a probability of
> collision of exactly 1 after 2^n; and 2^n/2 is much bigger smaller
> than 2^n.
>

But if your counter is set to 1 after every reboot, then the
probability of a collision is
much higher than 1 / 2^n-1 - it's more like the birthday problem in a port where
all of the men are always at sea, except for the New Year's holidays.


> Also with a counter and a permutation (block cipher), if you have a
> counter that is the same size as a block cipher you can assure no
> collision even though seeing random output.  You can distinguish it
> from random output with increasing confidence after 2^n/2 outputs due
> to the absense of collisions, but if the point is to avoid collisions
> it is preferable and distinguishing from random output is not
> relevant.
>
> A counter reset to a random value rather than starting at 0 again will
> actually collide 2x as quickly on average.
>
>
> So I think the sensible thing to do is either:
>
> - use a counter and change the key after counter-wrap (or after loss
> of counter state)
>
>   - optionally encrypt the counter with a block cipher (if the nonce
>     size is equal to the block cipher size)
>
> - or use a random value for few enough times per key such that
>   probability of collision is acceptably low (relative to your
>   security margin, and the severity of the consequences of
>   nonce-reuse)
>

I like both of these ideas.

> - and consider also the probability of key re-use if frequently
> re-keying (in some protocols scenarios you might think re-keying every
> message would be an alternative to ensuring nonces are really used
> once)
>
> Adam

Regards
Marshall

>
> On Sun, Jan 07, 2007 at 05:50:15AM -0500, Marshall Eubanks wrote:
> > In the light of this discussion, wouldn't it make sense to require
> > that a NONCE used in a cryptographic context be either
> >
> > - a counter concatenated  or hashed with a random number or
> > - a counter that is always reset to a random value, or
> > - a random number itself ?
> >
> > While random number generation in a computer may have its problems, in
> > this case, the only goal is to make the probability of reuse very
> > small, which it should be possible to achieve.
>

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Mon Jan 08 10:46:32 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H3wgd-0007n7-9y; Mon, 08 Jan 2007 10:45:23 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H3wgc-0007n2-Qs
	for cfrg@irtf.org; Mon, 08 Jan 2007 10:45:22 -0500
Received: from woodstock.binhost.com ([66.150.120.2])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1H3wgZ-00051E-Pb
	for cfrg@irtf.org; Mon, 08 Jan 2007 10:45:22 -0500
Received: (qmail 2890 invoked by uid 0); 8 Jan 2007 15:45:16 -0000
Received: from unknown (HELO THINKPADR52.vigilsec.com) (71.246.224.157)
	by woodstock.binhost.com with SMTP; 8 Jan 2007 15:45:16 -0000
Message-Id: <7.0.0.16.2.20070108104110.040defe0@vigilsec.com>
X-Mailer: QUALCOMM Windows Eudora Version 7.0.0.16
Date: Mon, 08 Jan 2007 10:45:12 -0500
To: "Marshall Eubanks" <marshall.eubanks@gmail.com>
From: Russ Housley <housley@vigilsec.com>
Subject: Re: [Cfrg] consequences of nonce reuse
In-Reply-To: <dcad22d80701070250x1ba33339u4ea3dbff241b7144@mail.gmail.co
 m>
References: <ec22d0e20701021208w6953e96eka71559ec8df19678@mail.gmail.com>
	<20070104153142.28723.qmail@cr.yp.to>
	<ec22d0e20701062304x6fd757d7p2f7c865efe7122d6@mail.gmail.com>
	<dcad22d80701070250x1ba33339u4ea3dbff241b7144@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-Spam-Score: 0.1 (/)
X-Scan-Signature: d0bdc596f8dd1c226c458f0b4df27a88
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Marshall:

There are several instances where nonces are counters that start with 
zero.  This allows the same value to provide the cryptographic 
protection and to provide replay detection.  This is the use in IEEE 
802.11i, where a fresh key is established with each new 802.11 
association, preventing the concerns discussed on this thread.

Russ

At 05:50 AM 1/7/2007, Marshall Eubanks wrote:
>In the light of this discussion, wouldn't it make sense to require
>that a NONCE used in a cryptographic context be either
>
>- a counter concatenated  or hashed with a random number or
>- a counter that is always reset to a random value, or
>- a random number itself ?
>
>While random number generation in a computer may have its problems, in
>this case, the only goal is to make the probability of reuse very
>small, which it should be possible to achieve.
>
>Regards
>Marshall Eubanks
>
>On 1/7/07, Wei Dai <weidai11@gmail.com> wrote:
>>On 4 Jan 2007 15:31:42 -0000, D. J. Bernstein <djb@cr.yp.to> wrote:
>> > What exactly is the cost that you're referring to? Do you think that the
>> > encrypted-TCP server (or client) has trouble counting 1, 2, 3, ...?
>>
>>If you want to maintain a count across reboots, you have to write the
>>counter to disk. Then you'd have to worry about file system security,
>>detecting when the disk might have been restored from an earlier backup,
>>etc. I'd bet there are very few applications that do this securely. Most
>>applications that use counters probably don't bother to save them, and
>>instead, upon reboot either set their counters to random values or discard
>>all shared symmetric keys and re-establish them (in which case random nonces
>>are probably used as part of of the key agreement protocols).
>>
>>Besides reboots, we now also have the possibility of our software running
>>inside virtual machines (e.g. VMware), where even volatile memory can be
>>rolled back to earlier checkpoints.
>>
>> > You might say that your PRF(hash,"nonce") isn't PRF(hash,constant), and
>> > that your "nonces" aren't likely to collide when the hashes do, but if
>> > you think that the nonce generator is too stupid to count 1, 2, 3, ...
>> > then I don't see how you can "guarantee" anything about the frequency of
>> > nonce collisions.
>> >
>>
>>Perhaps from a theoretical perspective generating random numbers is much
>>harder than counting, but from a practical perspective, in many situations
>>random number generation is a solved problem whereas counting isn't. Modern
>>operating systems provide facilities to easily generate random numbers of
>>cryptographic quality. I think the above discussion implies that OS support
>>is also needed to easily maintain a count of cryptographic quality, but this
>>support isn't available yet.
>>
>>
>>_______________________________________________
>>Cfrg mailing list
>>Cfrg@ietf.org
>>https://www1.ietf.org/mailman/listinfo/cfrg
>>
>>
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@ietf.org
>https://www1.ietf.org/mailman/listinfo/cfrg
>


_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Wed Jan 10 09:21:58 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H4eJj-0000su-0T; Wed, 10 Jan 2007 09:20:39 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H4eJh-0000ro-A8
	for cfrg@irtf.org; Wed, 10 Jan 2007 09:20:37 -0500
Received: from wr-out-0506.google.com ([64.233.184.235])
	by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1H4eJe-0006CR-Rh
	for cfrg@irtf.org; Wed, 10 Jan 2007 09:20:37 -0500
Received: by wr-out-0506.google.com with SMTP id i22so54219wra
	for <cfrg@irtf.org>; Wed, 10 Jan 2007 06:20:34 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:x-google-sender-auth;
	b=FAgyOO7Lrfn9H3P/2tCMI6XCZe0NRc3cI5gDF/M2yXGh/i0QMiQmThyR+TkMKwsEJAQsNZR931q/wQ2aMiTfJmUeL1rVkT6FdcfywbySRvrPXUdbnF2HhWl2tZ7plqpV5NUNzfB3tWjNNjEt1xrzdnwBm4JJDDradkW68+oZBsE=
Received: by 10.90.72.10 with SMTP id u10mr242105aga.1168438834521;
	Wed, 10 Jan 2007 06:20:34 -0800 (PST)
Received: by 10.90.56.7 with HTTP; Wed, 10 Jan 2007 06:20:34 -0800 (PST)
Message-ID: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com>
Date: Wed, 10 Jan 2007 22:20:34 +0800
From: "Wei Dai" <weidai@weidai.com>
To: cfrg@irtf.org
MIME-Version: 1.0
X-Google-Sender-Auth: e5e6f86f41a1bbd7
X-Spam-Score: 0.2 (/)
X-Scan-Signature: f4c2cf0bccc868e4cc88dace71fb3f44
Cc: weidai@weidai.com
Subject: [Cfrg] how to guard against VM rollbacks
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1654685440=="
Errors-To: cfrg-bounces@ietf.org

--===============1654685440==
Content-Type: multipart/alternative; 
	boundary="----=_Part_5243_3190431.1168438834497"

------=_Part_5243_3190431.1168438834497
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I've mentioned in a previous thread that the security of a nonce-based
cryptographic scheme may be compromised due to unintentional nonce reuse
caused by rollback of one's virtual machine state to an earlier snapshot.
Apparently this problem has been noticed by few others and no one has
proposed a solution (that I could find). The only mention I found of this
issue is in [1].

I'll throw out some ideas in the hope of bringing more attention to this
problem. It seems a fairly serious one given the increasing popularity of
virtualization and the fact that virtually every protocol and application
software that uses cryptography may be affected.

First of all it seems necessary to abandon the use of counter-based and
other state-derived nonces, and return to either random nonces or
deterministic cryptography. Until we have operating system support (perhaps
an API to designate a memory buffer or file as protected from rollbacks?)
it's hard to see how we can safely use state-derived nonces when state
rollbacks are a possibility.

If random nonces are used, care must still be taken to guard against
rollbacks. At a minimum, the nonce must be randomly generated *after* the
message to be encrypted and/or authenticated has been fixed. This way, if
nonce reuse occurs due to a rollback, it will be reused only with the same
message that it was used with previously, which should be safe.

Where possible, it may be best to go back to deterministic cryptography. For
example HMAC does not use a nonce and therefore is not affected by this
problem. If faster speed is desired and you want to use a MAC in the
Wegman-Carter paradigm, notice that tag=PRF(hash) works just as well as
tag=hash xor PRF(nonce) (i.e., they both have collision probabilities that
grow as the square of the number of messages) if nonce is generated
randomly. tag=PRF(hash) does not suffer from nonce reuse problems, and also
lets you save complexity and bandwidth by not having to transport a nonce.

[1] Tal Garfinkel and Mendel Rosenblum,"When Virtual is Harder than Real:
Security Challenges in Virtual Machine Based Computing Environments"
http://www.stanford.edu/~talg/papers/HOTOS05/virtual-harder-hotos05.pdf

------=_Part_5243_3190431.1168438834497
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I&#39;ve mentioned in a previous thread that the security of a nonce-based cryptographic scheme may be compromised due to unintentional nonce reuse caused by rollback of one&#39;s virtual machine state to an earlier snapshot. Apparently this problem has been noticed by few others and no one has proposed a solution (that I could find). The only mention I found of this issue is in [1].
<br><br>I&#39;ll throw out some ideas in the hope of bringing more attention to this problem. It seems a fairly serious one given the increasing popularity of virtualization and the fact that virtually every protocol and application software that uses cryptography may be affected.
<br><br>First of all it seems necessary to abandon the use of counter-based and other state-derived nonces, and return to either random nonces or deterministic cryptography. Until we have operating system support (perhaps an API to designate a memory buffer or file as protected from rollbacks?) it&#39;s hard to see how we can safely use state-derived nonces when state rollbacks are a possibility.
<br><br>If random nonces are used, care must still be taken to guard against rollbacks. At a minimum, the nonce must be randomly generated *after* the message to be encrypted and/or authenticated has been fixed. This way, if nonce reuse occurs due to a rollback, it will be reused only with the same message that it was used with previously, which should be safe.
<br><br>Where possible, it may be best to go back to deterministic cryptography. For example HMAC does not use a nonce and therefore is not affected by this problem. If faster speed is desired and you want to use a MAC in the Wegman-Carter paradigm, notice that tag=PRF(hash) works just as well as tag=hash xor PRF(nonce) (
i.e., they both have collision probabilities that grow as the square of the number of messages) if nonce is generated randomly. tag=PRF(hash) does not suffer from nonce reuse problems, and also lets you save complexity and bandwidth by not having to transport a nonce.
<br><br>[1] Tal Garfinkel and Mendel Rosenblum,&quot;When Virtual is Harder than Real: Security Challenges in Virtual Machine Based Computing Environments&quot; <a href="http://www.stanford.edu/~talg/papers/HOTOS05/virtual-harder-hotos05.pdf">
http://www.stanford.edu/~talg/papers/HOTOS05/virtual-harder-hotos05.pdf</a><br>

------=_Part_5243_3190431.1168438834497--


--===============1654685440==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg

--===============1654685440==--




From cfrg-bounces@ietf.org Wed Jan 10 10:11:52 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H4f70-0006vj-NN; Wed, 10 Jan 2007 10:11:34 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H4f6x-0006uI-Lm
	for cfrg@irtf.org; Wed, 10 Jan 2007 10:11:31 -0500
Received: from wx-out-0506.google.com ([66.249.82.224])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H4f51-00057b-1D
	for cfrg@irtf.org; Wed, 10 Jan 2007 10:09:32 -0500
Received: by wx-out-0506.google.com with SMTP id i28so137245wxd
	for <cfrg@irtf.org>; Wed, 10 Jan 2007 07:09:30 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth;
	b=rzuw33S6Yp8FzezYcH91Z85cUucbjF4E1YuclLUJPBlcUFMLgM5wjrYlfusY2ja5kxcXuYmxT91sOcJKo1pR6D/6AYJDjWCPDSjwsXgfR5nYhuqxqnR8St3wDmlsDpdpzg3KuulJQ8biYHuwT7jqBt7Xy+pyhaD02Y31nnoFqAM=
Received: by 10.90.66.9 with SMTP id o9mr278274aga.1168441770649;
	Wed, 10 Jan 2007 07:09:30 -0800 (PST)
Received: by 10.90.56.7 with HTTP; Wed, 10 Jan 2007 07:09:30 -0800 (PST)
Message-ID: <ec22d0e20701100709q1717bdd5i4ff5954857ecff6d@mail.gmail.com>
Date: Wed, 10 Jan 2007 23:09:30 +0800
From: "Wei Dai" <weidai@weidai.com>
To: cfrg@irtf.org
In-Reply-To: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com>
MIME-Version: 1.0
References: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com>
X-Google-Sender-Auth: d3dda646a80f17e6
X-Spam-Score: 1.6 (+)
X-Scan-Signature: e5ba305d0e64821bf3d8bc5d3bb07228
Cc: weidai@weidai.com
Subject: [Cfrg] Re: how to guard against VM rollbacks
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1358948698=="
Errors-To: cfrg-bounces@ietf.org

--===============1358948698==
Content-Type: multipart/alternative; 
	boundary="----=_Part_5876_13355089.1168441770622"

------=_Part_5876_13355089.1168441770622
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 1/10/07, Wei Dai <weidai@weidai.com> wrote:
>
> If random nonces are used, care must still be taken to guard against
> rollbacks. At a minimum, the nonce must be randomly generated *after* the
> message to be encrypted and/or authenticated has been fixed. This way, if
> nonce reuse occurs due to a rollback, it will be reused only with the same
> message that it was used with previously, which should be safe.
>

I should add that this advice also applies to cryptographic schemes that use
randomness that's not in the form of external nonces. For example, when
using DSA, the practice of precomputing g^k mod p should be abandoned, and
the random number k should be generated only after the message to be signed
has been fixed.

------=_Part_5876_13355089.1168441770622
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 1/10/07, <b class="gmail_sendername">Wei Dai</b> &lt;<a href="mailto:weidai@weidai.com">weidai@weidai.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If random nonces are used, care must still be taken to guard against rollbacks. At a minimum, the nonce must be randomly generated *after* the message to be encrypted and/or authenticated has been fixed. This way, if nonce reuse occurs due to a rollback, it will be reused only with the same message that it was used with previously, which should be safe.
<br></blockquote></div><br>I should add that this advice also applies to cryptographic schemes that use randomness that&#39;s not in the form of external nonces. For example, when using DSA, the practice of precomputing g^k mod p should be abandoned, and the random number k should be generated only after the message to be signed has been fixed.
<br>

------=_Part_5876_13355089.1168441770622--


--===============1358948698==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg

--===============1358948698==--




From cfrg-bounces@ietf.org Wed Jan 10 12:51:31 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H4haZ-00033p-CE; Wed, 10 Jan 2007 12:50:15 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H4haY-00033i-8y
	for cfrg@irtf.org; Wed, 10 Jan 2007 12:50:14 -0500
Received: from nf-out-0910.google.com ([64.233.182.185])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H4haS-0000ws-LV
	for cfrg@irtf.org; Wed, 10 Jan 2007 12:50:14 -0500
Received: by nf-out-0910.google.com with SMTP id x4so580812nfb
	for <cfrg@irtf.org>; Wed, 10 Jan 2007 09:50:05 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=OQPhlWvh3F53+15PSUVghzA3MqL8V1uAK3l6bO713ncqfMzj2EfkSKWt6dvl7Q5bE4J0nIQcnagIf3KNtM6urQ7h8+dBWtDscEVLaYrINd8tQ7CRVHfXWTxv25pNUOaUWnU4vAE5quKlhwQLioAdv1BhU0H0Gaf6DwhyrJYxi1g=
Received: by 10.49.91.6 with SMTP id t6mr1368682nfl.1168451405637;
	Wed, 10 Jan 2007 09:50:05 -0800 (PST)
Received: by 10.49.85.14 with HTTP; Wed, 10 Jan 2007 09:50:05 -0800 (PST)
Message-ID: <da7b3ce30701100950r1f038a28y74dd75f68f8e54cd@mail.gmail.com>
Date: Wed, 10 Jan 2007 09:50:05 -0800
From: "Hal Finney" <hal.finney@gmail.com>
To: "Wei Dai" <weidai@weidai.com>
Subject: Re: [Cfrg] how to guard against VM rollbacks
In-Reply-To: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 79899194edc4f33a41f49410777972f8
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

On 1/10/07, Wei Dai <weidai@weidai.com> wrote:
> If random nonces are used, care must still be taken to guard against rollbacks. At a minimum, the nonce must be randomly generated *after* the message to be encrypted and/or authenticated has been fixed. This way, if nonce reuse occurs due to a rollback, it will be reused only with the same message that it was used with previously, which should be safe.

Even with a random nonce there could be duplication if the OS RNG
state does not get changed from the time the rollback occurs until the
RNG is queried for the nonce. (Here I am assuming that the RNG is part
of the virtualized OS and not a global resource.) Note that some RNGs
buffer entropy and do not add it to the main RNG state until a certain
amount of estimated entropy has been acquired, to avoid state
following attacks. That will increase the window of vulnerability to
this problem. Nonce duplication could be avoided by creating the nonce
as a hash of RNG data and the message being hashed, to achieve the
condition that nonce reuse would only happen with the same message.

This issue could especially be a problem for counter mode encryption,
where reuse of the counter initial value will largely destroy secrecy
guarantees. Something like CBC tends to be more robust to IV reuse and
still gives you an ECB-like level of security when it happens.

Hal Finney

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Wed Jan 10 13:45:36 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H4iRn-0004QE-Tk; Wed, 10 Jan 2007 13:45:15 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H4iRm-0004Q9-OM
	for cfrg@irtf.org; Wed, 10 Jan 2007 13:45:14 -0500
Received: from netra.revealsystems.net ([209.97.224.17])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H4iRk-0007VT-DK
	for cfrg@irtf.org; Wed, 10 Jan 2007 13:45:14 -0500
Received: from yumyum.zooko.com (DSL_POOL_3-248.revealsystems.net
	[209.97.232.248] (may be forged))
	by Netra.revealsystems.net (8.13.3+Sun/8.13.3) with ESMTP id
	l0AIgeTl012902; Wed, 10 Jan 2007 11:42:42 -0700 (MST)
Received: from yumyum.zooko.com (yumyum.zooko.com [127.0.0.1])
	by yumyum.zooko.com (Postfix) with ESMTP id A89A6A99;
	Wed, 10 Jan 2007 11:45:20 -0700 (MST)
To: "Wei Dai" <weidai@weidai.com>
From: zooko@zooko.com
In-reply-to: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com> 
References: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com>
Comments: In-reply-to "Wei Dai" <weidai@weidai.com>
	message dated "Wed, 10 Jan 2007 22:20:34 +0800."
Date: Wed, 10 Jan 2007 11:45:20 -0700
Message-Id: <20070110184520.A89A6A99@yumyum.zooko.com>
X-Spam-Score: 0.2 (/)
X-Scan-Signature: 7aafa0432175920a4b3e118e16c5cb64
Cc: cfrg@irtf.org
Subject: [Cfrg] how to ensure unpredictability (or non-repeatingness) in the
	presence of restarts or rollbacks
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: zooko@zooko.com
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org


 Wei Dai wrote:
>
> First of all it seems necessary to abandon the use of counter-based and
> other state-derived nonces, and return to either random nonces or
> deterministic cryptography. Until we have operating system support (perhaps
> an API to designate a memory buffer or file as protected from rollbacks?)
> it's hard to see how we can safely use state-derived nonces when state
> rollbacks are a possibility.


(By the way, this problem is already present in non-virtual systems -- see
below.)


If the guest code could detect that a rollback (or equivalently a
crash-and-restart), then it could update its sensitive state -- that state
which is required to be unpredictable or perhaps only non-repeating -- in
response to that event.  The update in response to restart would have to be
distinct from any update that might be applied in the absence of restart.  For
example, if you are storing a counter of e.g. 160 bits in order to generate
non-repeating numbers, and you are incrementing it each time you are asked for
another number, then every time you restart you would add 2^80.

An equivalent scheme would work for unpredictable state, e.g. when updating the
unpredictable state during normal (non-restart) operation, you set new_state =
MAC(secret_key_1, old_state), and when updating the state in response to a
restart operation, you set new_state = MAC(secret_key_2, old_state).

The point is that as long as guest code can reliably detect restart events,
then it doesn't require much support from the host in order to maintain
non-repeatingness or unpredictability -- notification of restart is sufficient.

Note that this also obviates the need for expensive "durable write" of updates
to your persistent state during normal operation.  Indeed, given this design,
one might as well never write the state back to disk except during restart (at
which point you do indeed require expensive durable write).

Unfortunately guest code cannot reliably detect such events in current VMware,
as far as I know.  (One might attempt to hack it by watching the hardware clock
closely to see if it jumps ahead.  One redeeming feature of that hack would be
that a false alarm which causes you to update your state as if you had
restarted when you hadn't doesn't cost much.)

Note that this problem is already present without virtualization -- operating
system random pools e.g. Linux's /dev/random might deliver the same
"unpredictable" state more than once in a row due to a crash and restart.  The
techniques described above ought to protect /dev/random from such a failure but
that isn't currently done as far as I know.

Regards,

Zooko


_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 11 04:37:00 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H4wLk-0004aw-7j; Thu, 11 Jan 2007 04:35:56 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H4wLi-0004ar-6c
	for cfrg@irtf.org; Thu, 11 Jan 2007 04:35:54 -0500
Received: from zeppo.itss.auckland.ac.nz ([130.216.190.14])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H4wLg-0001OB-Gw
	for cfrg@irtf.org; Thu, 11 Jan 2007 04:35:54 -0500
Received: from localhost (localhost.localdomain [127.0.0.1])
	by zeppo.itss.auckland.ac.nz (Postfix) with ESMTP id 8FDE734862;
	Thu, 11 Jan 2007 22:35:48 +1300 (NZDT)
Received: from zeppo.itss.auckland.ac.nz ([127.0.0.1])
	by localhost (smtpd.itss.auckland.ac.nz [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id 26176-13; Thu, 11 Jan 2007 22:35:48 +1300 (NZDT)
Received: from iris.cs.auckland.ac.nz (iris.cs.auckland.ac.nz [130.216.33.152])
	by zeppo.itss.auckland.ac.nz (Postfix) with ESMTP id DFEA734DB8;
	Thu, 11 Jan 2007 22:35:47 +1300 (NZDT)
Received: from medusa01.cs.auckland.ac.nz (medusa01.cs.auckland.ac.nz
	[130.216.34.33]) by iris.cs.auckland.ac.nz (Postfix) with ESMTP
	id 5652C128096; Thu, 11 Jan 2007 22:35:47 +1300 (NZDT)
Received: from pgut001 by medusa01.cs.auckland.ac.nz with local (Exim 3.36 #1
	(Debian)) id 1H4wLi-0002mU-00; Thu, 11 Jan 2007 22:35:54 +1300
From: pgut001@cs.auckland.ac.nz (Peter Gutmann)
To: cfrg@irtf.org, weidai@weidai.com
Subject: Re: [Cfrg] how to guard against VM rollbacks
In-Reply-To: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com>
Message-Id: <E1H4wLi-0002mU-00@medusa01.cs.auckland.ac.nz>
Date: Thu, 11 Jan 2007 22:35:54 +1300
X-Virus-Scanned: by amavisd-new at mailhost.auckland.ac.nz
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 082a9cbf4d599f360ac7f815372a6a15
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

"Wei Dai" <weidai@weidai.com> writes:

>I've mentioned in a previous thread that the security of a nonce-based
>cryptographic scheme may be compromised due to unintentional nonce reuse
>caused by rollback of one's virtual machine state to an earlier snapshot.
>Apparently this problem has been noticed by few others and no one has
>proposed a solution (that I could find). The only mention I found of this
>issue is in [1].

My code checks for whether it's running inside the most common VMM, VMware.
However, this issue is rather problematic, because so far the major users of
this technique are malware, which means anything that checks for operation
inside a VMM are likely to be identified as potential malware by heuristics-
based scanners (which in practice means pretty much everything except things
like ClamAV).  The reason why I only check for VMware is because many of the
techniques used to do the checking fall into the voodoo category (even the
VMware one isn't exactly elegant), and it's not certain that they'll continue
to work over time, or that they won't cause system instability.

So yes, it is possible to detect this, but the cost may be substantial.  In
addition it's not certain what you should do if it is detected.  With malware
it's easy, submerge again until you're outside the VM so you won't be
detected, but with legitimate software it's not certain what the response
should be

>I'll throw out some ideas in the hope of bringing more attention to this
>problem. It seems a fairly serious one given the increasing popularity of
>virtualization and the fact that virtually every protocol and application
>software that uses cryptography may be affected.

Is it really a problem?  My thinking about this (in the VM check) was:

/* ...

   There is one variant of this problem that we can't work around, and that's
   where we're running inside a VM with rollback support.  Some VMs can take
   periodic snapshots of the system state to allow rollback to a known-good
   state if an error occurs.  Since the VM's rollback is transparent to the
   OS, there's no way to detect that it's occcurred. In this case we'd roll
   back to a previous state of the RNG and continue from there.  OTOH it's
   hard to identify a situation in which this would pose a serious threat.
   Consider for example SSL or SSH session key setup/generation, if we haven't
   committed the data to the remote system yet it's no problem, and if we have
   then we're now out of sync with the remote system and the handshake will
   fail. Similarly, if we're generating a DSA signature then we'll end up
   generating the same signature again, but since it's over the same data
   there's no threat involved.  Being able to cause a change in the data being
   signed after the random DSA k value is generated would be a problem, but k
   is only generated after the data has already been hashed and the signature
   is about to be generated.

   In general this type of attack would require the ability to generate
   information based on random state, communicate it to an external party, and
   then generate different information from the same state. In other words it
   would require cooperation between the VM and a hostile external party (to,
   for example, ignore the fact that the VM has rolled back to an earlier
   point in the protocol so a repeat of a previous handshake message will be
   seen), or in other words control over the VM by an external party.  Anyone
   faced with this level of attack has bigger things to worry about than RNG
   state rollback */

Peter.

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 11 05:06:48 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H4wpM-00027b-VB; Thu, 11 Jan 2007 05:06:32 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H4wpL-000278-31
	for cfrg@irtf.org; Thu, 11 Jan 2007 05:06:31 -0500
Received: from mail.metalab.unc.edu ([152.46.7.112] helo=metalab.unc.edu)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H4wpJ-0008MI-RF
	for cfrg@irtf.org; Thu, 11 Jan 2007 05:06:31 -0500
Received: from weidaim1 (unknown [152.46.7.122])
	by metalab.unc.edu (Postfix) with SMTP id 8AEFD4827C
	for <cfrg@irtf.org>; Thu, 11 Jan 2007 05:06:25 -0500 (EST)
Message-ID: <07d901c73568$1fd28630$0300a8c0@weidai.com>
From: "Wei Dai" <weidai@weidai.com>
To: <cfrg@irtf.org>
References: <E1H4wLi-0002mU-00@medusa01.cs.auckland.ac.nz>
Subject: Re: [Cfrg] how to guard against VM rollbacks
Date: Thu, 11 Jan 2007 18:06:08 +0800
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="gb2312"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 21c69d3cfc2dd19218717dbe1d974352
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Peter Gutmann wrote:
> So yes, it is possible to detect this, but the cost may be substantial. 
> In
> addition it's not certain what you should do if it is detected.  With 
> malware
> it's easy, submerge again until you're outside the VM so you won't be
> detected, but with legitimate software it's not certain what the response
> should be

I think as a writer of cryptographic software, instead of checking whether 
your software is running inside a VM, the safe thing to do would be to 
assume that it is, and take appropriate defensive measures. But I'm curious, 
what does your software do differently if it detects that it's running in a 
VM?

> Is it really a problem?  My thinking about this (in the VM check) was:

Here's the simplest application I can imagine that would be affected by this 
problem: a chat program with messages authenticated by a MAC using a counter 
as the nonce. Say you're the user of such a program, and you roll back your 
VM because your system crashed. As soon as you type the next message (or 
maybe the next few messages depending on the details of the MAC algorithm) 
and send it out, an attacker could start impersonating you to the other 
party.

>   fail. Similarly, if we're generating a DSA signature then we'll end up
>   generating the same signature again, but since it's over the same data
>   there's no threat involved.  Being able to cause a change in the data 
> being
>   signed after the random DSA k value is generated would be a problem, but 
> k
>   is only generated after the data has already been hashed and the 
> signature
>   is about to be generated.

In some applications k may be pre-generated in order to precompute g^k mod 
p. As I mentioned earlier this practice would have to be abandoned.

Also, Hal Finney mentioned that generating random numbers after fixing the 
message may not be sufficient, if the RNG does not incorporate new entropy 
into its state after being rolled back and before responding to the next 
request.



_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 11 05:25:02 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H4x75-0003FI-HE; Thu, 11 Jan 2007 05:24:51 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H4x74-00039w-1Z
	for cfrg@irtf.org; Thu, 11 Jan 2007 05:24:50 -0500
Received: from mail.metalab.unc.edu ([152.46.7.112] helo=metalab.unc.edu)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H4x71-0003dQ-QW
	for cfrg@irtf.org; Thu, 11 Jan 2007 05:24:50 -0500
Received: from weidaim1 (unknown [152.46.7.122])
	by metalab.unc.edu (Postfix) with SMTP id B1DF74826F;
	Thu, 11 Jan 2007 05:24:39 -0500 (EST)
Message-ID: <07e801c7356a$aee30eb0$0300a8c0@weidai.com>
From: "Wei Dai" <weidai@weidai.com>
To: "Hal Finney" <hal.finney@gmail.com>
References: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com>
	<da7b3ce30701100950r1f038a28y74dd75f68f8e54cd@mail.gmail.com>
Subject: Re: [Cfrg] how to guard against VM rollbacks
Date: Thu, 11 Jan 2007 18:24:25 +0800
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="ISO-8859-1";
	reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0bc60ec82efc80c84b8d02f4b0e4de22
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Hal Finney wrote:
> Even with a random nonce there could be duplication if the OS RNG
> state does not get changed from the time the rollback occurs until the
> RNG is queried for the nonce. (Here I am assuming that the RNG is part
> of the virtualized OS and not a global resource.) Note that some RNGs
> buffer entropy and do not add it to the main RNG state until a certain
> amount of estimated entropy has been acquired, to avoid state
> following attacks. That will increase the window of vulnerability to
> this problem.

Hopefully OS vendors will cooperate with VM software writers to fix this 
problem. It should be relatively simple since the fix would be transparent 
to the application software (i.e. not require a new API).

In the mean time, a workaround at the application software level may be to 
always hash the current time into the random number returned by the OS. This 
type of solution may also be applicable to state-derived nonces, for example 
by reserving some bits in the nonce for a timestamp.

> Nonce duplication could be avoided by creating the nonce
> as a hash of RNG data and the message being hashed, to achieve the
> condition that nonce reuse would only happen with the same message.

This is also a good workaround in some situations, but using it for 
Wegman-Carter MACs would eliminate or significantly reduce their speed 
advantage.



_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 11 09:09:00 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H50aI-0001J0-6g; Thu, 11 Jan 2007 09:07:14 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H50aH-0001Iv-JA
	for cfrg@irtf.org; Thu, 11 Jan 2007 09:07:13 -0500
Received: from mail.corest.com ([200.123.107.164])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H50ZU-0001MU-Na
	for cfrg@irtf.org; Thu, 11 Jan 2007 09:07:13 -0500
Received: from webmail.corest.com (lan-107-165.coresecurity.com
	[200.123.107.165])
	by sin.core-sdi.com (mail system) with ESMTP id 274FF1A6B02;
	Thu, 11 Jan 2007 14:06:21 +0000 (GMT)
Message-ID: <45A644D4.6050205@corest.com>
Date: Thu, 11 Jan 2007 11:08:20 -0300
From: Ariel Waissbein <ariel.waissbein@corest.com>
MIME-Version: 1.0
To: Wei Dai <weidai@weidai.com>
Subject: Re: [Cfrg] how to guard against VM rollbacks
References: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com>	<da7b3ce30701100950r1f038a28y74dd75f68f8e54cd@mail.gmail.com>
	<07e801c7356a$aee30eb0$0300a8c0@weidai.com>
In-Reply-To: <07e801c7356a$aee30eb0$0300a8c0@weidai.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Scan-Signature: a7d6aff76b15f3f56fcb94490e1052e4
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

By the way, have you heard of Joanna Rutkowska's blue pill? Great work.

http://theinvisiblethings.blogspot.com/2006/06/introducing-blue-pill.html

Cheers,
Ariel

Wei Dai wrote:
> Hal Finney wrote:
>> Even with a random nonce there could be duplication if the OS RNG
>> state does not get changed from the time the rollback occurs until the
>> RNG is queried for the nonce. (Here I am assuming that the RNG is part
>> of the virtualized OS and not a global resource.) Note that some RNGs
>> buffer entropy and do not add it to the main RNG state until a certain
>> amount of estimated entropy has been acquired, to avoid state
>> following attacks. That will increase the window of vulnerability to
>> this problem.
> 
> Hopefully OS vendors will cooperate with VM software writers to fix this 
> problem. It should be relatively simple since the fix would be 
> transparent to the application software (i.e. not require a new API).
> 
> In the mean time, a workaround at the application software level may be 
> to always hash the current time into the random number returned by the 
> OS. This type of solution may also be applicable to state-derived 
> nonces, for example by reserving some bits in the nonce for a timestamp.
> 
>> Nonce duplication could be avoided by creating the nonce
>> as a hash of RNG data and the message being hashed, to achieve the
>> condition that nonce reuse would only happen with the same message.
> 
> This is also a good workaround in some situations, but using it for 
> Wegman-Carter MACs would eliminate or significantly reduce their speed 
> advantage.
> 
> 
> 
> _______________________________________________
> Cfrg mailing list
> Cfrg@ietf.org
> https://www1.ietf.org/mailman/listinfo/cfrg
> 

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 11 14:18:23 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H55QR-0002tH-Im; Thu, 11 Jan 2007 14:17:23 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H55QQ-0002tB-2q
	for cfrg@ietf.org; Thu, 11 Jan 2007 14:17:22 -0500
Received: from ocb.cs.ucdavis.edu ([169.237.6.151])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H55QN-00084m-OJ
	for cfrg@ietf.org; Thu, 11 Jan 2007 14:17:22 -0500
Received: from localhost (ocb.cs.ucdavis.edu [169.237.6.151])
	by ocb.cs.ucdavis.edu (8.12.8/8.12.8) with ESMTP id l0BJHAHh022039
	for <cfrg@ietf.org>; Thu, 11 Jan 2007 11:17:11 -0800
Date: Thu, 11 Jan 2007 11:17:15 -0800 (Pacific Standard Time)
From: Phillip Rogaway <rogaway@cs.ucdavis.edu>
To: cfrg@ietf.org
Subject: Re: [CFRG] how to guard against VM rollbacks
In-Reply-To: <E1H4x75-0003Gs-Q3@megatron.ietf.org>
Message-ID: <Pine.WNT.4.64.0701111045270.3112@rogawaypan>
References: <E1H4x75-0003Gs-Q3@megatron.ietf.org>
X-X-Sender: rogaway@rogawaypan
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Spam-Score: 0.0 (/)
X-Scan-Signature: ffa9dfbbe7cc58b3fa6b8ae3e57b0aa3
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Hi Wei,

WD> ... the security of a nonce-based
WD> cryptographic scheme may be compromised due to unintentional nonce reuse ...
WD> Apparently ... no one has proposed a solution (that I could find)....
WD> Where possible, it may be best to go back to deterministic cryptography....

Let me point you in this connection to

   P. Rogaway and T. Shrimpton, Deterministic Authenticated Encryption:
   A Provable-Security Treatment of the Key-Wrap Problem,
   http://www.cs.ucdavis.edu/~rogaway/papers/keywrap.html, full version
   of Eurocrypt 2006 paper.

Section 7 is about making encryption schemes maximally robust against 
nonce-reuse.  Besides formalizing the goal, the suggestion is to use a 
deterministic authenticated-encryption (DAE) scheme that supports 
vector-valued associated data. Hijack one component of it to use as the 
(anticipated) nonce.  A concrete instantiation, SIV, is proposed and proven 
secure.  If a proper nonce is supplied you get the usual notion of nonce-based 
semantic security; but if a nonce should get reused, all that is leaked 
is repetitions in (message, nonce, further-associated-data-components)-tuples,
with no damage to future privacy or integrity.


phil

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 11 18:53:58 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H59jT-0001k0-1w; Thu, 11 Jan 2007 18:53:19 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H59jS-0001ju-0t
	for cfrg@irtf.org; Thu, 11 Jan 2007 18:53:18 -0500
Received: from balder-227.proper.com ([192.245.12.227])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H59jQ-00060h-LG
	for cfrg@irtf.org; Thu, 11 Jan 2007 18:53:18 -0500
Received: from [10.20.30.100] (dsl-63-249-108-169.cruzio.com [63.249.108.169])
	(authenticated bits=0)
	by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id l0BNrCA0006766
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <cfrg@irtf.org>; Thu, 11 Jan 2007 16:53:13 -0700 (MST)
	(envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p0624088bc1cc7d66d71d@[10.20.30.100]>
In-Reply-To: <07e801c7356a$aee30eb0$0300a8c0@weidai.com>
	<07d901c73568$1fd28630$0300a8c0@weidai.com>
References: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com>
	<da7b3ce30701100950r1f038a28y74dd75f68f8e54cd@mail.gmail.com>
	<07e801c7356a$aee30eb0$0300a8c0@weidai.com>
	<E1H4wLi-0002mU-00@medusa01.cs.auckland.ac.nz>
	<07d901c73568$1fd28630$0300a8c0@weidai.com>
Date: Thu, 11 Jan 2007 15:52:44 -0800
To: <cfrg@irtf.org>
From: Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [Cfrg] how to guard against VM rollbacks
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Spam-Score: 0.0 (/)
X-Scan-Signature: d6b246023072368de71562c0ab503126
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

At 6:06 PM +0800 1/11/07, Wei Dai wrote:
>I think as a writer of cryptographic software, instead of checking 
>whether your software is running inside a VM, the safe thing to do 
>would be to assume that it is, and take appropriate defensive 
>measures.

At 6:24 PM +0800 1/11/07, Wei Dai wrote:
>Hopefully OS vendors will cooperate with VM software writers to fix 
>this problem.

These two responses seem to be at opposition with each other.

I think it is quite safe to assume that even if OS vendors cooperate 
with VM software writers in the future, all or nearly all OSs today 
will have the problem of the randomness state being saved by VM 
snapshots.

--Paul Hoffman, Director
--VPN Consortium

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 11 22:02:38 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5Cg1-00022N-4R; Thu, 11 Jan 2007 22:01:57 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5Cfz-00021u-3L
	for cfrg@irtf.org; Thu, 11 Jan 2007 22:01:55 -0500
Received: from harpo.itss.auckland.ac.nz ([130.216.190.13])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5Cfx-0004kV-FM
	for cfrg@irtf.org; Thu, 11 Jan 2007 22:01:55 -0500
Received: from localhost (localhost.localdomain [127.0.0.1])
	by harpo.itss.auckland.ac.nz (Postfix) with ESMTP id 39C9234C31;
	Fri, 12 Jan 2007 16:01:50 +1300 (NZDT)
Received: from harpo.itss.auckland.ac.nz ([127.0.0.1])
	by localhost (smtpc.itss.auckland.ac.nz [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id 06843-19; Fri, 12 Jan 2007 16:01:50 +1300 (NZDT)
Received: from iris.cs.auckland.ac.nz (iris.cs.auckland.ac.nz [130.216.33.152])
	by harpo.itss.auckland.ac.nz (Postfix) with ESMTP id E35EA34C3D;
	Fri, 12 Jan 2007 16:01:47 +1300 (NZDT)
Received: from medusa01.cs.auckland.ac.nz (medusa01.cs.auckland.ac.nz
	[130.216.34.33]) by iris.cs.auckland.ac.nz (Postfix) with ESMTP
	id D00161280AA; Fri, 12 Jan 2007 16:01:44 +1300 (NZDT)
Received: from pgut001 by medusa01.cs.auckland.ac.nz with local (Exim 3.36 #1
	(Debian)) id 1H5Cft-0003rG-00; Fri, 12 Jan 2007 16:01:49 +1300
From: pgut001@cs.auckland.ac.nz (Peter Gutmann)
To: cfrg@irtf.org, paul.hoffman@vpnc.org
Subject: Re: [Cfrg] how to guard against VM rollbacks
In-Reply-To: <p0624088bc1cc7d66d71d@[10.20.30.100]>
Message-Id: <E1H5Cft-0003rG-00@medusa01.cs.auckland.ac.nz>
Date: Fri, 12 Jan 2007 16:01:49 +1300
X-Virus-Scanned: by amavisd-new at mailhost.auckland.ac.nz
X-Spam-Score: 0.5 (/)
X-Scan-Signature: bb8f917bb6b8da28fc948aeffb74aa17
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Paul Hoffman <paul.hoffman@vpnc.org> writes:
>At 6:06 PM +0800 1/11/07, Wei Dai wrote:
>>I think as a writer of cryptographic software, instead of checking 
>>whether your software is running inside a VM, the safe thing to do 
>>would be to assume that it is, and take appropriate defensive 
>>measures.
>
>At 6:24 PM +0800 1/11/07, Wei Dai wrote:
>>Hopefully OS vendors will cooperate with VM software writers to fix 
>>this problem.
>
>These two responses seem to be at opposition with each other.

They're not only at opposition with each other, they're both fundamentally
impractical.  For the first one, exactly what "defensive measures" are you
supposed to take?  Since your state can be rolled back at any time (and that
rolls back *everything*) and there's no way to detect this, what can you do
about the problem?  A better approach would be to do a threat analysis and try
and figure out exactly when this really is a threat.  For example in the code
comment I posted yesterday, it shouldn't be a problem for secure interaction
with remote systems because the remote system is holding some of your security
state, so if you experience rollback and replay an old message the session
will be shut down.

For the second one, it's highly unlikely that VM software writers will ever
want to "fix this problem".  The whole point of a VM is to make it as
undetectable to the host OS as possible (look at the lengths that malware
writers are going to to try and identify VMs), so I can't imagine that VM
vendors would deliberately make their software more obvious.

What we need first is a precise threat analysis.  What's vulunerable, under
what conditions, and how.  Only then can we start talking about
countermeasures.

Peter.

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 11 22:48:47 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5DOu-0003A9-Dl; Thu, 11 Jan 2007 22:48:20 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5DOt-00039x-Ea
	for cfrg@irtf.org; Thu, 11 Jan 2007 22:48:19 -0500
Received: from nf-out-0910.google.com ([64.233.182.184])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5DOs-00026W-69
	for cfrg@irtf.org; Thu, 11 Jan 2007 22:48:19 -0500
Received: by nf-out-0910.google.com with SMTP id x4so1115907nfb
	for <cfrg@irtf.org>; Thu, 11 Jan 2007 19:48:17 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=ZmCnnsW8hf8DbG2wz6xfEeo4/0dkOON/N6q5Ng0lnevcy5ab1osjEXn/MB5hf9tFkl/DOY2IVlWL9TEVnuzWXOCdUgtsISjglLdibcVfIAqH88emhNPOODXvdekgRf/OKmpc3y/v1Rz/Nr3sfrA4gZV5W/VhCk7iOKpAEDCyv+U=
Received: by 10.49.75.2 with SMTP id c2mr190675nfl.1168573696311;
	Thu, 11 Jan 2007 19:48:16 -0800 (PST)
Received: by 10.49.85.14 with HTTP; Thu, 11 Jan 2007 19:48:16 -0800 (PST)
Message-ID: <da7b3ce30701111948n54095b95y66317735ba426d9a@mail.gmail.com>
Date: Thu, 11 Jan 2007 19:48:16 -0800
From: "Hal Finney" <hal.finney@gmail.com>
To: cfrg@irtf.org
Subject: Re: [Cfrg] how to guard against VM rollbacks
In-Reply-To: <E1H5Cft-0003rG-00@medusa01.cs.auckland.ac.nz>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <p0624088bc1cc7d66d71d@10.20.30.100>
	<E1H5Cft-0003rG-00@medusa01.cs.auckland.ac.nz>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7a6398bf8aaeabc7a7bb696b6b0a2aad
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Many computers are shipping these days with TPM chips. Among other
things these chips can supply random numbers. They also have
non-volatile monotonic counters. TPM chips have certified keys
allowing authenticated channels to the chip, so that the software
could tell if it were talking to a virtualized TPM.

These seem to be pieces from which a solution could be put together,
if such a chip is available. There might be a substantial performance
penalty since current generation chips are located on a slow PC bus.
I've seen speculation that future CPU architectures may incorporate
TPM functionality.

Hal

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Jan 11 23:36:48 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5E9N-0005Kj-1P; Thu, 11 Jan 2007 23:36:21 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5E9M-0005Ke-F4
	for cfrg@irtf.org; Thu, 11 Jan 2007 23:36:20 -0500
Received: from mail.metalab.unc.edu ([152.46.7.112] helo=metalab.unc.edu)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5E9K-0006HD-7b
	for cfrg@irtf.org; Thu, 11 Jan 2007 23:36:20 -0500
Received: from weidaim1 (unknown [152.46.7.122])
	by metalab.unc.edu (Postfix) with SMTP id 4E0B148794
	for <cfrg@irtf.org>; Thu, 11 Jan 2007 23:36:04 -0500 (EST)
Message-ID: <09e101c73603$268f5d40$0300a8c0@weidai.com>
From: "Wei Dai" <weidai@weidai.com>
To: <cfrg@irtf.org>
References: <ec22d0e20701100620t37e77e70mda14d1c73930731@mail.gmail.com><da7b3ce30701100950r1f038a28y74dd75f68f8e54cd@mail.gmail.com><07e801c7356a$aee30eb0$0300a8c0@weidai.com><E1H4wLi-0002mU-00@medusa01.cs.auckland.ac.nz><07d901c73568$1fd28630$0300a8c0@weidai.com>
	<p0624088bc1cc7d66d71d@[10.20.30.100]>
Subject: Re: [Cfrg] how to guard against VM rollbacks
Date: Fri, 12 Jan 2007 11:58:01 +0800
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="ISO-8859-1";
	reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 93238566e09e6e262849b4f805833007
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Paul Hoffman wrote:
> These two responses seem to be at opposition with each other.

They do, don't they? I suppose the point is that 20 years from now we 
shouldn't still be worrying that a call to an OS RNG might result in a 
previously used random number (or if we are, it will be for some other 
reason). Until then, consider my comments to be in support of defense in 
depth.

Phillip Rogaway wrote:
> Let me point you in this connection to
>
>   P. Rogaway and T. Shrimpton, Deterministic Authenticated Encryption:
>   A Provable-Security Treatment of the Key-Wrap Problem,
>   http://www.cs.ucdavis.edu/~rogaway/papers/keywrap.html, full version
>   of Eurocrypt 2006 paper.

Thanks, Phil. That's certainly a very relevant work that anticipated much of 
the discussion here. I can only suggest that it be standardized quickly and 
used for general authenticated encryption (not just key-wrap). I think we 
also need a public-key version of the SIV construction, or is there existing 
work in that area also?



_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Fri Jan 12 00:11:19 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5Ega-0007Po-SL; Fri, 12 Jan 2007 00:10:40 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5Ega-0007Pj-7I
	for cfrg@irtf.org; Fri, 12 Jan 2007 00:10:40 -0500
Received: from mail.metalab.unc.edu ([152.46.7.112] helo=metalab.unc.edu)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5EgY-0005sm-PB
	for cfrg@irtf.org; Fri, 12 Jan 2007 00:10:40 -0500
Received: from weidaim1 (unknown [152.46.7.122])
	by metalab.unc.edu (Postfix) with SMTP id 4B17B487E9
	for <cfrg@irtf.org>; Fri, 12 Jan 2007 00:10:32 -0500 (EST)
Message-ID: <09e601c73607$f73d7720$0300a8c0@weidai.com>
From: "Wei Dai" <weidai@weidai.com>
To: <cfrg@irtf.org>
References: <E1H5Cft-0003rG-00@medusa01.cs.auckland.ac.nz>
Subject: Re: [Cfrg] how to guard against VM rollbacks
Date: Fri, 12 Jan 2007 13:10:18 +0800
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="gb2312"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7aafa0432175920a4b3e118e16c5cb64
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Peter Gutmann wrote:
> For the first one, exactly what "defensive measures" are you
> supposed to take? Since your state can be rolled back at any time (and 
> that
> rolls back *everything*) and there's no way to detect this, what can you 
> do
> about the problem?

This question is puzzling since several general suggestions about what to do 
have been posted in this discussion.

> A better approach would be to do a threat analysis and try
> and figure out exactly when this really is a threat.  For example in the 
> code
> comment I posted yesterday, it shouldn't be a problem for secure 
> interaction
> with remote systems because the remote system is holding some of your 
> security
> state, so if you experience rollback and replay an old message the session
> will be shut down.

This analysis is just wrong. If there is an attacker sitting between you and 
the remote system, he can capture your messages after you experience a 
rollback and *not* send them to the remote system. (Note that in general 
these are not replayed messages, but different messages that reused old 
nonces.) Instead he uses them to forge new messages that appear valid to the 
remote system and send those instead.

> For the second one, it's highly unlikely that VM software writers will 
> ever
> want to "fix this problem".  The whole point of a VM is to make it as
> undetectable to the host OS as possible (look at the lengths that malware
> writers are going to to try and identify VMs), so I can't imagine that VM
> vendors would deliberately make their software more obvious.

It's fair to suppose that a VM might want to remain undetectable to the 
guest OS while running normally, but there's no reason not to send some kind 
of signal to the guest OS after a rollback, at least by default. A 
completely undetectable rollback would have to be a seperate option for 
anyway, since the hardware clock also needs to be rolled back in that case.

> What we need first is a precise threat analysis.  What's vulunerable, 
> under
> what conditions, and how.  Only then can we start talking about
> countermeasures.

I think it's clear from the current discussion that there are good 
countermeasures that are relatively cheap and apply in a wide range of 
circumstances. Precise threat analysis is of course a good thing (and I 
asked crypto scheme designers to help with this in the earlier "consequences 
of nonce reuse" thread), but I don't see why we shouldn't be talking about 
general countermeasures as well.



_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Fri Jan 12 14:37:48 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5SCc-0007rR-OD; Fri, 12 Jan 2007 14:36:38 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5SCb-0007rM-JI
	for cfrg@irtf.org; Fri, 12 Jan 2007 14:36:37 -0500
Received: from dsl093-068-160.sfo1.dsl.speakeasy.net ([66.93.68.160]
	helo=merrymeet.com) by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1H5SCZ-0005ND-IF
	for cfrg@irtf.org; Fri, 12 Jan 2007 14:36:37 -0500
Received: from keys.merrymeet.com (dsl093-068-161.sfo1.dsl.speakeasy.net
	[66.93.68.161]) (Authenticated sender: jon)
	by merrymeet.com (Postfix) with ESMTP id BD8E5481A20
	for <cfrg@irtf.org>; Fri, 12 Jan 2007 11:36:32 -0800 (PST)
Received: from [63.251.255.205] ([63.251.255.205])
	by keys.merrymeet.com (PGP Universal service);
	Fri, 12 Jan 2007 11:36:32 -0800
X-PGP-Universal: processed;
	by keys.merrymeet.com on Fri, 12 Jan 2007 11:36:32 -0800
Mime-Version: 1.0 (Apple Message framework v752.3)
In-Reply-To: <da7b3ce30701111948n54095b95y66317735ba426d9a@mail.gmail.com>
References: <p0624088bc1cc7d66d71d@10.20.30.100>
	<E1H5Cft-0003rG-00@medusa01.cs.auckland.ac.nz>
	<da7b3ce30701111948n54095b95y66317735ba426d9a@mail.gmail.com>
Message-Id: <FC75F9A6-B63D-4283-9018-FD2DF2314EBD@callas.org>
From: Jon Callas <jon@callas.org>
Subject: Re: [Cfrg] how to guard against VM rollbacks
Date: Fri, 12 Jan 2007 11:36:32 -0800
To: cfrg@irtf.org
X-Mailer: Apple Mail (2.752.3)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Scan-Signature: e5ba305d0e64821bf3d8bc5d3bb07228
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Peter wrote some things that I was going to write. Long before I did  
any crypto, I was an OS and virtualization guy. The whole point of  
virtual system is that it looks like the real one.

Thus, in the abstract, if you can tell a virtual device from a real  
one, then that is an imperfection in the virtual system. Now, it may  
be an intentional imperfection. For example, if I query the ATA drive  
on my system it may say that its manufacturer is VMware, and this is  
a really big hint that I'm on a VM.

However, let's suppose that I replace a rack of servers with two  
physical machines all doing VMs. If SSL blows up on one of my VMs  
because it is imperfectly virtualized, I'll go talk to the VM maker  
and get them to make it sufficiently virtualized that I can do SSL on  
my VM. Or I redesign my system so that it doesn't need SSL.

I think we're looking at this the wrong way. This discussion presumes  
that VM rollbacks are bad things that we must prevent against. They  
might be, they can be. Some of them will be. But many of them won't  
be. A cryptosystem that prevents a VM from restarting simply won't be  
used on a VM. Some other cryptosystem will be used. However, if the  
way that it dodges the VM is merely that it relies on a TPM, then VMs  
-- both evil and good -- will virtualize the TPM.

In a truly virtualized world, it's like the notion of the Earth being  
carried on the back of a turtle. Where does the turtle stand? On  
another turtle. And it's turtles all the way down.

	Jon



_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Fri Jan 12 14:54:57 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5SU8-0003B6-FX; Fri, 12 Jan 2007 14:54:44 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5SU7-00036q-D1
	for cfrg@irtf.org; Fri, 12 Jan 2007 14:54:43 -0500
Received: from robin.verisign.com ([65.205.251.75])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5SU5-00012A-W9
	for cfrg@irtf.org; Fri, 12 Jan 2007 14:54:43 -0500
Received: from mou1wnexcn01.vcorp.ad.vrsn.com (mailer1.verisign.com
	[65.205.251.34])
	by robin.verisign.com (8.13.6/8.13.4) with ESMTP id l0CJrjGa023534;
	Fri, 12 Jan 2007 11:53:46 -0800
Received: from MOU1WNEXMB04.vcorp.ad.vrsn.com ([10.25.13.157]) by
	mou1wnexcn01.vcorp.ad.vrsn.com with Microsoft
	SMTPSVC(6.0.3790.1830); Fri, 12 Jan 2007 11:53:45 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Cfrg] how to guard against VM rollbacks
Date: Fri, 12 Jan 2007 11:53:37 -0800
Message-ID: <198A730C2044DE4A96749D13E167AD370105A353@MOU1WNEXMB04.vcorp.ad.vrsn.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Cfrg] how to guard against VM rollbacks
Thread-Index: Acc2gUm6DEmelGbdT0q6EErNP5T7WQAAZRLQ
From: "Hallam-Baker, Phillip" <pbaker@verisign.com>
To: "Jon Callas" <jon@callas.org>, <cfrg@irtf.org>
X-OriginalArrivalTime: 12 Jan 2007 19:53:45.0300 (UTC)
	FILETIME=[5E3CB140:01C73683]
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 082a9cbf4d599f360ac7f815372a6a15
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

There is a difference between TPM assurances given to the application =
running in the VM and assurances given to a third party application or =
service that is running elsewhere and communicating with the TPM.

Clearly if you are setting up the VM you can start it with a blue pill. =
You can fudge anything you like inside the VM enviroment.

What you can't do is to provide an assurance to a party that is outside =
this world that has been created that you did not in fact swallow a blue =
pill.


The last is important since it is what allows the machine to tell either =
the user or the enterprise that owns it that the machine has not been =
compromised.

> -----Original Message-----
> From: Jon Callas [mailto:jon@callas.org]=20
> Sent: Friday, January 12, 2007 2:37 PM
> To: cfrg@irtf.org
> Subject: Re: [Cfrg] how to guard against VM rollbacks
>=20
> Peter wrote some things that I was going to write. Long=20
> before I did any crypto, I was an OS and virtualization guy.=20
> The whole point of virtual system is that it looks like the real one.
>=20
> Thus, in the abstract, if you can tell a virtual device from=20
> a real one, then that is an imperfection in the virtual=20
> system. Now, it may be an intentional imperfection. For=20
> example, if I query the ATA drive on my system it may say=20
> that its manufacturer is VMware, and this is a really big=20
> hint that I'm on a VM.
>=20
> However, let's suppose that I replace a rack of servers with=20
> two physical machines all doing VMs. If SSL blows up on one=20
> of my VMs because it is imperfectly virtualized, I'll go talk=20
> to the VM maker and get them to make it sufficiently=20
> virtualized that I can do SSL on my VM. Or I redesign my=20
> system so that it doesn't need SSL.
>=20
> I think we're looking at this the wrong way. This discussion=20
> presumes that VM rollbacks are bad things that we must=20
> prevent against. They might be, they can be. Some of them=20
> will be. But many of them won't be. A cryptosystem that=20
> prevents a VM from restarting simply won't be used on a VM.=20
> Some other cryptosystem will be used. However, if the way=20
> that it dodges the VM is merely that it relies on a TPM, then VMs
> -- both evil and good -- will virtualize the TPM.
>=20
> In a truly virtualized world, it's like the notion of the=20
> Earth being carried on the back of a turtle. Where does the=20
> turtle stand? On another turtle. And it's turtles all the way down.
>=20
> 	Jon
>=20
>=20
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@ietf.org
> https://www1.ietf.org/mailman/listinfo/cfrg
>=20

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Fri Jan 12 15:05:05 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5Sdw-000231-Ve; Fri, 12 Jan 2007 15:04:52 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5Sdv-00020K-IG
	for cfrg@irtf.org; Fri, 12 Jan 2007 15:04:51 -0500
Received: from mail.corest.com ([200.123.107.164])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5Sdg-0003kf-HI
	for cfrg@irtf.org; Fri, 12 Jan 2007 15:04:51 -0500
Received: from webmail.corest.com (lan-107-165.coresecurity.com
	[200.123.107.165])
	by sin.core-sdi.com (mail system) with ESMTP id AE9F91A6B3B;
	Fri, 12 Jan 2007 20:04:32 +0000 (GMT)
Message-ID: <45A7EA4A.4000003@corest.com>
Date: Fri, 12 Jan 2007 17:06:34 -0300
From: Ariel Waissbein <ariel.waissbein@corest.com>
MIME-Version: 1.0
To: cfrg@irtf.org
Subject: Re: [Cfrg] how to guard against VM rollbacks
References: <p0624088bc1cc7d66d71d@10.20.30.100>	<E1H5Cft-0003rG-00@medusa01.cs.auckland.ac.nz>	<da7b3ce30701111948n54095b95y66317735ba426d9a@mail.gmail.com>
	<FC75F9A6-B63D-4283-9018-FD2DF2314EBD@callas.org>
In-Reply-To: <FC75F9A6-B63D-4283-9018-FD2DF2314EBD@callas.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 082a9cbf4d599f360ac7f815372a6a15
Cc: Jon Callas <jon@callas.org>
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Hi all,

a good definition of requirements (and a VM that fulfills these) seems 
to be a good solution. Roughly speaking, one of the uses people are 
giving to VM wares is using them as web servers, and having many of 
these inside one "physical" system. I presume that in the following 
years people will start to use more and more this configuration (of many 
servers running in one system), and we need to make sure we take the 
necessary security precautions.

It isn't a requirement that an external user cannot tell a VM ware from 
a physical system. A first requirement is that a user (e.g., the 
attacker) that compromises the VM ware can go outside the VM ware and 
into the hosting physical system. Of course, there's more. Today we are 
using VMs that were constructed with other requirements.

Let's figure out what requirements are for using the servers as we 
already have them and if they are factible, or if we need to design new 
solutions that work in these VM-hosted servers.

Cheers,
Ariel


Jon Callas wrote:
> Peter wrote some things that I was going to write. Long before I did any 
> crypto, I was an OS and virtualization guy. The whole point of virtual 
> system is that it looks like the real one.
> 
> Thus, in the abstract, if you can tell a virtual device from a real one, 
> then that is an imperfection in the virtual system. Now, it may be an 
> intentional imperfection. For example, if I query the ATA drive on my 
> system it may say that its manufacturer is VMware, and this is a really 
> big hint that I'm on a VM.
> 
> However, let's suppose that I replace a rack of servers with two 
> physical machines all doing VMs. If SSL blows up on one of my VMs 
> because it is imperfectly virtualized, I'll go talk to the VM maker and 
> get them to make it sufficiently virtualized that I can do SSL on my VM. 
> Or I redesign my system so that it doesn't need SSL.
> 
> I think we're looking at this the wrong way. This discussion presumes 
> that VM rollbacks are bad things that we must prevent against. They 
> might be, they can be. Some of them will be. But many of them won't be. 
> A cryptosystem that prevents a VM from restarting simply won't be used 
> on a VM. Some other cryptosystem will be used. However, if the way that 
> it dodges the VM is merely that it relies on a TPM, then VMs -- both 
> evil and good -- will virtualize the TPM.
> 
> In a truly virtualized world, it's like the notion of the Earth being 
> carried on the back of a turtle. Where does the turtle stand? On another 
> turtle. And it's turtles all the way down.
> 
>     Jon
> 
> 
> 
> _______________________________________________
> Cfrg mailing list
> Cfrg@ietf.org
> https://www1.ietf.org/mailman/listinfo/cfrg
> 

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Fri Jan 12 16:07:10 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5Tbp-0001fC-2J; Fri, 12 Jan 2007 16:06:45 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5Tbn-0001dP-Ll
	for cfrg@irtf.org; Fri, 12 Jan 2007 16:06:43 -0500
Received: from sj-iport-6.cisco.com ([171.71.176.117])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5Tbm-0000Jv-57
	for cfrg@irtf.org; Fri, 12 Jan 2007 16:06:43 -0500
Received: from sj-dkim-1.cisco.com ([171.71.179.21])
	by sj-iport-6.cisco.com with ESMTP; 12 Jan 2007 13:06:41 -0800
X-IronPort-AV: i="4.13,179,1167638400"; 
	d="scan'208"; a="101061059:sNHT266444532"
Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237])
	by sj-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id l0CL6emb007294; 
	Fri, 12 Jan 2007 13:06:40 -0800
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com
	[171.70.151.144])
	by sj-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id l0CL6aDk025128;
	Fri, 12 Jan 2007 13:06:36 -0800 (PST)
Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by
	xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Fri, 12 Jan 2007 13:06:36 -0800
Received: from [192.168.0.10] ([10.21.99.33]) by xfe-sjc-212.amer.cisco.com
	with Microsoft SMTPSVC(6.0.3790.1830); 
	Fri, 12 Jan 2007 13:06:35 -0800
In-Reply-To: <198A730C2044DE4A96749D13E167AD370105A353@MOU1WNEXMB04.vcorp.ad.vrsn.com>
References: <198A730C2044DE4A96749D13E167AD370105A353@MOU1WNEXMB04.vcorp.ad.vrsn.com>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <55C6995F-DEDF-4891-BDE7-0BE7388F71E8@cisco.com>
Content-Transfer-Encoding: 7bit
From: Mark Baugher <mbaugher@cisco.com>
Subject: Re: [Cfrg] how to guard against VM rollbacks
Date: Fri, 12 Jan 2007 13:06:36 -0800
To: "Hallam-Baker, Phillip" <pbaker@verisign.com>
X-Mailer: Apple Mail (2.752.2)
X-OriginalArrivalTime: 12 Jan 2007 21:06:35.0739 (UTC)
	FILETIME=[8B38C2B0:01C7368D]
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=3083; t=1168636000;
	x=1169500000; c=relaxed/simple; s=sjdkim1002;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=mbaugher@cisco.com;
	z=From:=20Mark=20Baugher=20<mbaugher@cisco.com>
	|Subject:=20Re=3A=20[Cfrg]=20how=20to=20guard=20against=20VM=20rollbacks
	|Sender:=20; bh=veMQPJMg6h9peT2oTupwYGbYGe/5bDguvIgPtDZlHc8=;
	b=QG3S1OeHGXKSIoYgw7hAvf6qyyUVPgMl/6+zY0mDIK3JjHgdgasVrpUqKCNkJwUjy9fl33PC
	Q8b7z1XrOlhmjBQUfT+d31ZbUwxRnHEdtDep6XXetzsVV4ipF0wtZJCO;
Authentication-Results: sj-dkim-1; header.From=mbaugher@cisco.com; dkim=pass (
	sig from cisco.com/sjdkim1002 verified; ); 
X-Spam-Score: 0.0 (/)
X-Scan-Signature: d8ae4fd88fcaf47c1a71c804d04f413d
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

I don't see how a TPM adds anything to the real security of a system  
or to assurances that can be made to the outside world.  A TPM is  
just one more thing that can be cracked, isn't it?

Mark
On Jan 12, 2007, at 11:53 AM, Hallam-Baker, Phillip wrote:

> There is a difference between TPM assurances given to the  
> application running in the VM and assurances given to a third party  
> application or service that is running elsewhere and communicating  
> with the TPM.
>
> Clearly if you are setting up the VM you can start it with a blue  
> pill. You can fudge anything you like inside the VM enviroment.
>
> What you can't do is to provide an assurance to a party that is  
> outside this world that has been created that you did not in fact  
> swallow a blue pill.
>
>
> The last is important since it is what allows the machine to tell  
> either the user or the enterprise that owns it that the machine has  
> not been compromised.
>
>> -----Original Message-----
>> From: Jon Callas [mailto:jon@callas.org]
>> Sent: Friday, January 12, 2007 2:37 PM
>> To: cfrg@irtf.org
>> Subject: Re: [Cfrg] how to guard against VM rollbacks
>>
>> Peter wrote some things that I was going to write. Long
>> before I did any crypto, I was an OS and virtualization guy.
>> The whole point of virtual system is that it looks like the real one.
>>
>> Thus, in the abstract, if you can tell a virtual device from
>> a real one, then that is an imperfection in the virtual
>> system. Now, it may be an intentional imperfection. For
>> example, if I query the ATA drive on my system it may say
>> that its manufacturer is VMware, and this is a really big
>> hint that I'm on a VM.
>>
>> However, let's suppose that I replace a rack of servers with
>> two physical machines all doing VMs. If SSL blows up on one
>> of my VMs because it is imperfectly virtualized, I'll go talk
>> to the VM maker and get them to make it sufficiently
>> virtualized that I can do SSL on my VM. Or I redesign my
>> system so that it doesn't need SSL.
>>
>> I think we're looking at this the wrong way. This discussion
>> presumes that VM rollbacks are bad things that we must
>> prevent against. They might be, they can be. Some of them
>> will be. But many of them won't be. A cryptosystem that
>> prevents a VM from restarting simply won't be used on a VM.
>> Some other cryptosystem will be used. However, if the way
>> that it dodges the VM is merely that it relies on a TPM, then VMs
>> -- both evil and good -- will virtualize the TPM.
>>
>> In a truly virtualized world, it's like the notion of the
>> Earth being carried on the back of a turtle. Where does the
>> turtle stand? On another turtle. And it's turtles all the way down.
>>
>> 	Jon
>>
>>
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@ietf.org
>> https://www1.ietf.org/mailman/listinfo/cfrg
>>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@ietf.org
> https://www1.ietf.org/mailman/listinfo/cfrg

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Fri Jan 12 16:59:05 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5UPn-0006wD-Tv; Fri, 12 Jan 2007 16:58:23 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5UPl-0006w5-Rr
	for cfrg@irtf.org; Fri, 12 Jan 2007 16:58:21 -0500
Received: from robin.verisign.com ([65.205.251.75])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5UPj-0006dq-DB
	for cfrg@irtf.org; Fri, 12 Jan 2007 16:58:21 -0500
Received: from mou1wnexcn01.vcorp.ad.vrsn.com (mailer1.verisign.com
	[65.205.251.34])
	by robin.verisign.com (8.13.6/8.13.4) with ESMTP id l0CLwDSv030732;
	Fri, 12 Jan 2007 13:58:13 -0800
Received: from MOU1WNEXMB04.vcorp.ad.vrsn.com ([10.25.13.157]) by
	mou1wnexcn01.vcorp.ad.vrsn.com with Microsoft
	SMTPSVC(6.0.3790.1830); Fri, 12 Jan 2007 13:58:13 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Cfrg] how to guard against VM rollbacks
Date: Fri, 12 Jan 2007 13:57:18 -0800
Message-ID: <198A730C2044DE4A96749D13E167AD370105A388@MOU1WNEXMB04.vcorp.ad.vrsn.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Cfrg] how to guard against VM rollbacks
Thread-Index: Acc2jZFcmEcyLshLQe+MDdJHBQlHlAABWWOw
From: "Hallam-Baker, Phillip" <pbaker@verisign.com>
To: "Mark Baugher" <mbaugher@cisco.com>
X-OriginalArrivalTime: 12 Jan 2007 21:58:13.0535 (UTC)
	FILETIME=[C1A6EAF0:01C73694]
X-Spam-Score: 0.1 (/)
X-Scan-Signature: a87a9cdae4ac5d3fbeee75cd0026d632
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Security is risk management, not risk elimination [1].

A TPM might be cracked but we are talking about a much smaller quantity =
of code than is present in a full O/S. There are a hundred million lines =
in Windows, Unix that might have security implications. Auditing a TPM =
with fifty thousand lines or so is a much more realistic proposition.

The second issue is that unlike the O/S there is no turtle underneath =
the TPM. The only ways to defeat the TPM are through finding an =
exploitable software error or through a physical attack on the hardware.

These represent a meaningful and useful increase in risk management.



[1] See for example =
http://www.sandelman.ottawa.on.ca/spki/html/1999/msg00026.html.=20

> -----Original Message-----
> From: Mark Baugher [mailto:mbaugher@cisco.com]=20
> Sent: Friday, January 12, 2007 4:07 PM
> To: Hallam-Baker, Phillip
> Cc: cfrg@irtf.org
> Subject: Re: [Cfrg] how to guard against VM rollbacks
>=20
> I don't see how a TPM adds anything to the real security of a=20
> system or to assurances that can be made to the outside=20
> world.  A TPM is just one more thing that can be cracked, isn't it?
>=20
> Mark
> On Jan 12, 2007, at 11:53 AM, Hallam-Baker, Phillip wrote:
>=20
> > There is a difference between TPM assurances given to the=20
> application=20
> > running in the VM and assurances given to a third party=20
> application or=20
> > service that is running elsewhere and communicating with the TPM.
> >
> > Clearly if you are setting up the VM you can start it with a blue=20
> > pill. You can fudge anything you like inside the VM enviroment.
> >
> > What you can't do is to provide an assurance to a party that is=20
> > outside this world that has been created that you did not in fact=20
> > swallow a blue pill.
> >
> >
> > The last is important since it is what allows the machine to tell =20
> > either the user or the enterprise that owns it that the=20
> machine has =20
> > not been compromised.
> >
> >> -----Original Message-----
> >> From: Jon Callas [mailto:jon@callas.org]
> >> Sent: Friday, January 12, 2007 2:37 PM
> >> To: cfrg@irtf.org
> >> Subject: Re: [Cfrg] how to guard against VM rollbacks
> >>
> >> Peter wrote some things that I was going to write. Long
> >> before I did any crypto, I was an OS and virtualization guy.
> >> The whole point of virtual system is that it looks like=20
> the real one.
> >>
> >> Thus, in the abstract, if you can tell a virtual device from
> >> a real one, then that is an imperfection in the virtual
> >> system. Now, it may be an intentional imperfection. For
> >> example, if I query the ATA drive on my system it may say
> >> that its manufacturer is VMware, and this is a really big
> >> hint that I'm on a VM.
> >>
> >> However, let's suppose that I replace a rack of servers with
> >> two physical machines all doing VMs. If SSL blows up on one
> >> of my VMs because it is imperfectly virtualized, I'll go talk
> >> to the VM maker and get them to make it sufficiently
> >> virtualized that I can do SSL on my VM. Or I redesign my
> >> system so that it doesn't need SSL.
> >>
> >> I think we're looking at this the wrong way. This discussion
> >> presumes that VM rollbacks are bad things that we must
> >> prevent against. They might be, they can be. Some of them
> >> will be. But many of them won't be. A cryptosystem that
> >> prevents a VM from restarting simply won't be used on a VM.
> >> Some other cryptosystem will be used. However, if the way
> >> that it dodges the VM is merely that it relies on a TPM, then VMs
> >> -- both evil and good -- will virtualize the TPM.
> >>
> >> In a truly virtualized world, it's like the notion of the
> >> Earth being carried on the back of a turtle. Where does the
> >> turtle stand? On another turtle. And it's turtles all the way down.
> >>
> >> 	Jon
> >>
> >>
> >>
> >> _______________________________________________
> >> Cfrg mailing list
> >> Cfrg@ietf.org
> >> https://www1.ietf.org/mailman/listinfo/cfrg
> >>
> >
> > _______________________________________________
> > Cfrg mailing list
> > Cfrg@ietf.org
> > https://www1.ietf.org/mailman/listinfo/cfrg
>=20

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Fri Jan 12 17:30:19 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5UuD-0003ar-00; Fri, 12 Jan 2007 17:29:49 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5UuB-0003Yi-Mn
	for cfrg@irtf.org; Fri, 12 Jan 2007 17:29:47 -0500
Received: from nf-out-0910.google.com ([64.233.182.190])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5UtC-0006h2-9y
	for cfrg@irtf.org; Fri, 12 Jan 2007 17:28:47 -0500
Received: by nf-out-0910.google.com with SMTP id x4so1367476nfb
	for <cfrg@irtf.org>; Fri, 12 Jan 2007 14:28:45 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=XIJr7WkOx1f6C5ifoloNFE7ug7F2Ku8IcbCglgs5bXeZCkkEDibh7e/i93qywDESJouAfPHjwCQERPQUPZMIfl/QHiqyCVCt/xvGSsGevp7UvwAsvYACqXWe3+Kr122d+eB7lvxxfrKSECziZsXJKrbYXmvScuzsKbRvN48PL/c=
Received: by 10.49.92.18 with SMTP id u18mr1120425nfl.1168640925004;
	Fri, 12 Jan 2007 14:28:45 -0800 (PST)
Received: by 10.49.85.14 with HTTP; Fri, 12 Jan 2007 14:28:44 -0800 (PST)
Message-ID: <da7b3ce30701121428we6cd80ardee5d5369b66ef1f@mail.gmail.com>
Date: Fri, 12 Jan 2007 14:28:44 -0800
From: "Hal Finney" <hal.finney@gmail.com>
To: cfrg@irtf.org
Subject: Re: [Cfrg] how to guard against VM rollbacks
In-Reply-To: <09e601c73607$f73d7720$0300a8c0@weidai.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <E1H5Cft-0003rG-00@medusa01.cs.auckland.ac.nz>
	<09e601c73607$f73d7720$0300a8c0@weidai.com>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7a6398bf8aaeabc7a7bb696b6b0a2aad
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Seems like there are two classes of threats here. The first is when
some software is trying to keep secrets from the user via obfuscation
and such, and he is intentionally running it in a VM in order to use
rollbacks and similar techniques to try to extract secrets. The second
is when the user is just trying to use some software safely, but in an
environment where rollbacks may occasionally occur due to crashes or
some other reason, and he wants to make sure he does not inadvertantly
reuse data in his crypto protocol that can render it insecure. For
example, encrypting two different messages with the same stream cipher
state, or as Wei said using some of the nonce based MACs that rely on
unique nonces.

Hal

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sat Jan 13 05:34:55 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5gCo-0001fJ-EY; Sat, 13 Jan 2007 05:33:46 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5gCn-0001fD-UP
	for cfrg@irtf.org; Sat, 13 Jan 2007 05:33:45 -0500
Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178]
	helo=yxa.extundo.com) by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1H5gCW-00033A-Dh
	for cfrg@irtf.org; Sat, 13 Jan 2007 05:33:45 -0500
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178])
	(authenticated bits=0)
	by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id
	l0DAX9Cd012514
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sat, 13 Jan 2007 11:33:14 +0100
From: Simon Josefsson <simon@josefsson.org>
To: "Hallam-Baker\, Phillip" <pbaker@verisign.com>
References: <198A730C2044DE4A96749D13E167AD370105A388@MOU1WNEXMB04.vcorp.ad.vrsn.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:070113:pbaker@verisign.com::bqBDQng7WBJnx2QI:1v/7
X-Hashcash: 1:22:070113:cfrg@irtf.org::OXVPsv9Yur1kmhA7:nTN
X-Hashcash: 1:22:070113:mbaugher@cisco.com::CK9wNHSZZcngep0K:YV2d
Date: Sat, 13 Jan 2007 11:33:09 +0100
In-Reply-To: <198A730C2044DE4A96749D13E167AD370105A388@MOU1WNEXMB04.vcorp.ad.vrsn.com>
	(Phillip Hallam-Baker's message of "Fri\, 12 Jan 2007 13\:57\:18 -0800")
Message-ID: <87hcuv43oa.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-0.2 required=4.0 tests=AWL,BAYES_50,
	FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2,
	clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
X-Spam-Score: 0.1 (/)
X-Scan-Signature: bb8f917bb6b8da28fc948aeffb74aa17
Cc: cfrg@irtf.org, Mark Baugher <mbaugher@cisco.com>
Subject: [Cfrg] Re: how to guard against VM rollbacks
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

"Hallam-Baker, Phillip" <pbaker@verisign.com> writes:

> Security is risk management, not risk elimination [1].
>
> A TPM might be cracked but we are talking about a much smaller
> quantity of code than is present in a full O/S. There are a hundred
> million lines in Windows, Unix that might have security
> implications. Auditing a TPM with fifty thousand lines or so is a
> much more realistic proposition.
>
> The second issue is that unlike the O/S there is no turtle
> underneath the TPM. The only ways to defeat the TPM are through
> finding an exploitable software error or through a physical attack
> on the hardware.
>
> These represent a meaningful and useful increase in risk management.

Aren't you forgetting that a virtual TPM, that can be rolled back, is
within the powers of a VM?  You can't tell a virtual TPM from a real
one, if the VM is good.

I believe virtualization and VM rollbacks is a non-issue here,
however, I do believe that the original issue with nonce re-use is
serious.  Having more (detailed!) information in documents on the
consequences of nonce re-use would be very valuable.  Such information
can be used when people consider how they want to design techniques to
guarantee lack of nonce re-use.

If nonce re-use for a cipher mode causes statistically marginal loss
of security, people won't worry much because the complexity in solving
the problem isn't worth the small benefits.  But if nonce re-use
directly gives an attacker the key, people should worry, and sometimes
even chose another cipher mode.

/Simon

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sat Jan 13 10:28:52 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5knY-0006DB-Hk; Sat, 13 Jan 2007 10:28:00 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5knX-0006D6-1m
	for cfrg@irtf.org; Sat, 13 Jan 2007 10:27:59 -0500
Received: from mail.links.org ([217.155.92.109])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5knU-0000QN-Uj
	for cfrg@irtf.org; Sat, 13 Jan 2007 10:27:59 -0500
Received: from [193.133.15.218] (localhost [127.0.0.1])
	by mail.links.org (Postfix) with ESMTP id 6627833C1F;
	Sat, 13 Jan 2007 15:27:52 +0000 (GMT)
Message-ID: <45A8FA7A.8060907@algroup.co.uk>
Date: Sat, 13 Jan 2007 15:27:54 +0000
From: Ben Laurie <ben@algroup.co.uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] consequences of nonce reuse
References: <E1H3X0y-0007Ba-00@medusa01.cs.auckland.ac.nz>
In-Reply-To: <E1H3X0y-0007Ba-00@medusa01.cs.auckland.ac.nz>
X-Enigmail-Version: 0.93.0.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 8b30eb7682a596edff707698f4a80f7d
Cc: weidai@weidai.com, cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

I thought I'd already responded to this, but it seems the void ate it.

Peter Gutmann wrote:
> Ben Laurie <ben@links.org> writes:
>> Peter Gutmann wrote:
>>> "Wei Dai" <weidai@weidai.com> writes:
>>>
>>>> I'd like to request that designers of nonce-based crypto schemes include an
>>>> analysis of the security consequences of nonce reused when proposing their
>>>> schemes.
>>> Seconded.  In addition designers should make clear whether a nonce should be:
>>>
>>> - Nonrepeating (so a counter will do).
>>> - High-entropy (a hash of the counter will do).
>> You mean a secret-key HMAC, surely?
> 
> If I'd meant that, I would have said it :-).  What I meant was unstructured
> data (i.e. not 127 zero bits followed by a one bit as for a counter), but not
> necessarily unpredictable.

If it is not unpredictable, then it is not high entropy, surely? This is
why I wanted to introduce a secret key - that way an HMAC of a counter
would be high entropy.

>>> - Unpredictable (requiring a truly random value).
>> How is "truly random" different from a secret-key HMAC of a counter? 
> 
> It isn't.  Note though that it differs from my definition of case 2.
> 
> Peter.
> 
> 


-- 
http://www.apache-ssl.org/ben.html           http://www.links.org/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sat Jan 13 12:13:12 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5mQd-0006cK-73; Sat, 13 Jan 2007 12:12:27 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5mQb-0006c8-S9
	for cfrg@irtf.org; Sat, 13 Jan 2007 12:12:25 -0500
Received: from nf-out-0910.google.com ([64.233.182.187])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5mQa-0003rA-IR
	for cfrg@irtf.org; Sat, 13 Jan 2007 12:12:25 -0500
Received: by nf-out-0910.google.com with SMTP id x4so1584684nfb
	for <cfrg@irtf.org>; Sat, 13 Jan 2007 09:12:23 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=N+CM828Wy3v8zoYoajbu6kiQJEKmr8FvqCEGHes+SBdRWl6fC8TwijAFtibMG9IEaxJp+wUY0L4JlX/SWSNyjTYOqD960B+26SJ2xVEa64zW7bffBZfAcRuALXa/B1W0O71RMsx23I7jX9SqZJbUFfB9G03UaNC30J1RaZ8TrXQ=
Received: by 10.49.13.14 with SMTP id q14mr1771663nfi.1168708343467;
	Sat, 13 Jan 2007 09:12:23 -0800 (PST)
Received: by 10.49.85.14 with HTTP; Sat, 13 Jan 2007 09:12:23 -0800 (PST)
Message-ID: <da7b3ce30701130912k2c27495dw39a0d6bb35289be3@mail.gmail.com>
Date: Sat, 13 Jan 2007 09:12:23 -0800
From: "Hal Finney" <hal.finney@gmail.com>
To: cfrg@irtf.org
Subject: Re: [Cfrg] Re: how to guard against VM rollbacks
In-Reply-To: <87hcuv43oa.fsf@latte.josefsson.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <198A730C2044DE4A96749D13E167AD370105A388@MOU1WNEXMB04.vcorp.ad.vrsn.com>
	<87hcuv43oa.fsf@latte.josefsson.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 8abaac9e10c826e8252866cbe6766464
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

On 1/13/07, Simon Josefsson <simon@josefsson.org> wrote:
> Aren't you forgetting that a virtual TPM, that can be rolled back, is
> within the powers of a VM?  You can't tell a virtual TPM from a real
> one, if the VM is good.

TPM chips contain certified keys, which virtualized ones will not, so
software can tell the difference. It knows the CA which certifies TPM
keys and checks that the TPM contains such a key.

In principle the virtualizing engine can reverse engineer the
software, find where it stores the root TPM CA, and change it, or
perhaps crack it in other ways. In practice that can only be done with
considerable human effort customized to the particular software
package you are trying to fool.

Xen is an example of a VMM which virtualizes the TPM, and it (of
course) makes no effort to carry the charade so far. Instead, the
proposals I have seen would use a second level key structure for
certifying virtualized TPMs, signed by the real TPM key, similar to CA
certificate chains. Software will have to be VM-aware to recognize and
authenticate virtualized TPMs.

The main issue then is whether the VM software will even give you
access to the real TPM, or only provide a virtual one. It can't fool
you into thinking the virtual TPM is real, but OTOH you lose the
advantages of a real TPM for the purposes described in this thread. At
least you would know you were being virtualized, but you would no
longer have any guarantee that random numbers from the VTPM were
fresh, for example, or that the monotonic counter wasn't going
backwards.

Hal Finney

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sat Jan 13 12:25:19 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5mcq-0005KN-07; Sat, 13 Jan 2007 12:25:04 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5mcp-0005K1-0k
	for cfrg@irtf.org; Sat, 13 Jan 2007 12:25:03 -0500
Received: from machshav.com ([147.28.0.16])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H5mcm-000649-JM
	for cfrg@irtf.org; Sat, 13 Jan 2007 12:25:02 -0500
Received: by machshav.com (Postfix, from userid 512)
	id B99ECFB3CD; Sat, 13 Jan 2007 17:24:53 +0000 (UTC)
Received: from berkshire.machshav.com (localhost [127.0.0.1])
	by machshav.com (Postfix) with ESMTP id AC43CFB3AB;
	Sat, 13 Jan 2007 17:24:52 +0000 (UTC)
Received: by berkshire.machshav.com (Postfix, from userid 54047)
	id 10C9F765FF2; Sat, 13 Jan 2007 12:24:51 -0500 (EST)
Date: Sat, 13 Jan 2007 12:24:51 -0500
From: "Steven M. Bellovin" <smb@cs.columbia.edu>
To: "Hal Finney" <hal.finney@gmail.com>
Subject: Re: [Cfrg] Re: how to guard against VM rollbacks
In-Reply-To: <da7b3ce30701130912k2c27495dw39a0d6bb35289be3@mail.gmail.com>
References: <198A730C2044DE4A96749D13E167AD370105A388@MOU1WNEXMB04.vcorp.ad.vrsn.com>
	<87hcuv43oa.fsf@latte.josefsson.org>
	<da7b3ce30701130912k2c27495dw39a0d6bb35289be3@mail.gmail.com>
Organization: Columbia University
X-Mailer: Claws Mail 2.7.0 (GTK+ 2.10.6; i386--netbsdelf)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Message-Id: <20070113172451.10C9F765FF2@berkshire.machshav.com>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 8b431ad66d60be2d47c7bfeb879db82c
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

On Sat, 13 Jan 2007 09:12:23 -0800
"Hal Finney" <hal.finney@gmail.com> wrote:

> On 1/13/07, Simon Josefsson <simon@josefsson.org> wrote:
> > Aren't you forgetting that a virtual TPM, that can be rolled back,
> > is within the powers of a VM?  You can't tell a virtual TPM from a
> > real one, if the VM is good.
> 
> TPM chips contain certified keys, which virtualized ones will not, so
> software can tell the difference. It knows the CA which certifies TPM
> keys and checks that the TPM contains such a key.
> 
> In principle the virtualizing engine can reverse engineer the
> software, find where it stores the root TPM CA, and change it, or
> perhaps crack it in other ways. In practice that can only be done with
> considerable human effort customized to the particular software
> package you are trying to fool.
> 
> Xen is an example of a VMM which virtualizes the TPM, and it (of
> course) makes no effort to carry the charade so far. Instead, the
> proposals I have seen would use a second level key structure for
> certifying virtualized TPMs, signed by the real TPM key, similar to CA
> certificate chains. Software will have to be VM-aware to recognize and
> authenticate virtualized TPMs.
> 
> The main issue then is whether the VM software will even give you
> access to the real TPM, or only provide a virtual one. It can't fool
> you into thinking the virtual TPM is real, but OTOH you lose the
> advantages of a real TPM for the purposes described in this thread. At
> least you would know you were being virtualized, but you would no
> longer have any guarantee that random numbers from the VTPM were
> fresh, for example, or that the monotonic counter wasn't going
> backwards.
> 
What is the threat model here?  Who is rolling back VMs and why?  

If the enemy can induce VM crashes, necessitating a rollback, that's
the real problem.  If the base system operator is trying to subvert the
VMs, that's the problem.  I suggest that the latter is unlikely.  A
virtual TPM (or virtual crypto hardware of any other type) becomes a
distinct advantage in these cases, because it moves the
crypto-sensitive items -- the keys, the pseudo-random number state,
etc. -- out of the area that's being rolled back.  If the purpose of
your VMs is to provide extra protection for some servers, a modest
degree of VM-awareness is a fine thing -- let the VM and the hypervisor
co-operate.  Xen got that very right.  (The usual reason for malware to
do VM detection is to prevent the good guys from using VMs to analyze
the malware.  If I run my servers in a VM and the malware refrains from
misbehaving because it thinks I'm watching, I win that way, too...)

		--Steve Bellovin, http://www.cs.columbia.edu/~smb

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sat Jan 13 16:50:03 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H5qjo-0006nm-Fu; Sat, 13 Jan 2007 16:48:32 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H5qjn-0006ng-Lm
	for cfrg@irtf.org; Sat, 13 Jan 2007 16:48:31 -0500
Received: from dsl093-068-160.sfo1.dsl.speakeasy.net ([66.93.68.160]
	helo=merrymeet.com) by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1H5qjl-0007c5-Jo
	for cfrg@irtf.org; Sat, 13 Jan 2007 16:48:30 -0500
Received: from keys.merrymeet.com (dsl093-068-161.sfo1.dsl.speakeasy.net
	[66.93.68.161]) (Authenticated sender: jon)
	by merrymeet.com (Postfix) with ESMTP id C260848768D
	for <cfrg@irtf.org>; Sat, 13 Jan 2007 13:48:21 -0800 (PST)
Received: from [66.93.68.165] ([66.93.68.165])
	by keys.merrymeet.com (PGP Universal service);
	Sat, 13 Jan 2007 13:48:21 -0800
X-PGP-Universal: processed;
	by keys.merrymeet.com on Sat, 13 Jan 2007 13:48:21 -0800
Mime-Version: 1.0 (Apple Message framework v752.3)
In-Reply-To: <20070113172451.10C9F765FF2@berkshire.machshav.com>
References: <198A730C2044DE4A96749D13E167AD370105A388@MOU1WNEXMB04.vcorp.ad.vrsn.com>
	<87hcuv43oa.fsf@latte.josefsson.org>
	<da7b3ce30701130912k2c27495dw39a0d6bb35289be3@mail.gmail.com>
	<20070113172451.10C9F765FF2@berkshire.machshav.com>
Message-Id: <7C986C80-2737-4B93-BF92-33B64D36910A@callas.org>
From: Jon Callas <jon@callas.org>
Subject: Re: [Cfrg] Re: how to guard against VM rollbacks
Date: Sat, 13 Jan 2007 13:48:11 -0800
To: cfrg@irtf.org
X-Mailer: Apple Mail (2.752.3)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 0bc60ec82efc80c84b8d02f4b0e4de22
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Saying that a virtualized TPM is no worry because contains non- 
certified keys is relying on the same sort of security that notes  
that virtualized disks have as their manufacturer name the name of  
the VM maker.

That's only true because the implementation chose to do it that way.  
It is an *implementation* issue, not an *architectural* one.

The minute a financial company pays some certifier enough money, the  
virtualized TPM is going to have certified keys. The minute a  
certifier decides that there is enough price elasticity in TPMs,  
they'll do it themselves.

Remember in the old days when to get an SSL cert you had to sign in  
blood and show incorporation papers? Now you just have to reply to an  
email sent to hostmaster. Yes, yes, I know that CAs are now creating  
a new type of high-value cert, but that doesn't contradict my point,  
it shores it up.

In a perfectly virtualized system, the software cannot tell. In a  
sufficiently virutalized system, the software just doesn't know how  
to tell.

Lastly, to repeat myself, not all VMs are your enemy. Some are your  
friend. Yup, it's hard to tell the difference, but it's true.

	Jon


_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sun Jan 14 08:31:41 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H65RH-0002Wu-Ca; Sun, 14 Jan 2007 08:30:23 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H65RF-0002Wd-Li
	for cfrg@irtf.org; Sun, 14 Jan 2007 08:30:21 -0500
Received: from robin.verisign.com ([65.205.251.75])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H65RE-0003H7-BW
	for cfrg@irtf.org; Sun, 14 Jan 2007 08:30:21 -0500
Received: from MOU1WNEXCN02.vcorp.ad.vrsn.com (mailer2.verisign.com
	[65.205.251.35])
	by robin.verisign.com (8.13.6/8.13.4) with ESMTP id l0EDUF8w014261;
	Sun, 14 Jan 2007 05:30:15 -0800
Received: from MOU1WNEXMB04.vcorp.ad.vrsn.com ([10.25.13.157]) by
	MOU1WNEXCN02.vcorp.ad.vrsn.com with Microsoft
	SMTPSVC(6.0.3790.1830); Sun, 14 Jan 2007 05:30:14 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Date: Sun, 14 Jan 2007 05:30:13 -0800
Message-ID: <198A730C2044DE4A96749D13E167AD370105A40F@MOU1WNEXMB04.vcorp.ad.vrsn.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: how to guard against VM rollbacks
Thread-Index: Acc2/mSgTgnSiRY1Qd+uWxRGEQKMYgA4Uudw
From: "Hallam-Baker, Phillip" <pbaker@verisign.com>
To: "Simon Josefsson" <simon@josefsson.org>
X-OriginalArrivalTime: 14 Jan 2007 13:30:15.0010 (UTC)
	FILETIME=[1FDC9420:01C737E0]
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 7a6398bf8aaeabc7a7bb696b6b0a2aad
Cc: cfrg@irtf.org, Mark Baugher <mbaugher@cisco.com>
Subject: [Cfrg] RE: how to guard against VM rollbacks
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

> From: Simon Josefsson [mailto:simon@josefsson.org]=20

> Aren't you forgetting that a virtual TPM, that can be rolled=20
> back, is within the powers of a VM?  You can't tell a virtual=20
> TPM from a real one, if the VM is good.

Not at all, a virtual TPM under the control that allows it to be rolled =
back or otherwise behave in ways that violate the trust claims could not =
be certified as such by a Trusted Third Party.

Such a machine would be consistent internally but could not make a =
trustworthy external claim - to another network party or to a user.


_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sun Jan 14 08:57:50 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H65rV-000224-5s; Sun, 14 Jan 2007 08:57:29 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H65rU-00020s-Bw
	for cfrg@irtf.org; Sun, 14 Jan 2007 08:57:28 -0500
Received: from colibri.verisign.com ([65.205.251.74])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H65rT-00017d-03
	for cfrg@irtf.org; Sun, 14 Jan 2007 08:57:28 -0500
Received: from mou1wnexcn01.vcorp.ad.vrsn.com (mailer1.verisign.com
	[65.205.251.34])
	by colibri.verisign.com (8.13.6/8.13.4) with ESMTP id l0EDuT4G030675;
	Sun, 14 Jan 2007 05:56:29 -0800
Received: from MOU1WNEXMB04.vcorp.ad.vrsn.com ([10.25.13.157]) by
	mou1wnexcn01.vcorp.ad.vrsn.com with Microsoft
	SMTPSVC(6.0.3790.1830); Sun, 14 Jan 2007 05:56:28 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Cfrg] Re: how to guard against VM rollbacks
Date: Sun, 14 Jan 2007 05:56:27 -0800
Message-ID: <198A730C2044DE4A96749D13E167AD370105A410@MOU1WNEXMB04.vcorp.ad.vrsn.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Cfrg] Re: how to guard against VM rollbacks
Thread-Index: Acc3XOzYqKUjdB2GS46Qux1TwvVkFQAhMmpg
From: "Hallam-Baker, Phillip" <pbaker@verisign.com>
To: "Jon Callas" <jon@callas.org>, <cfrg@irtf.org>
X-OriginalArrivalTime: 14 Jan 2007 13:56:28.0954 (UTC)
	FILETIME=[CA015FA0:01C737E3]
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 4d87d2aa806f79fed918a62e834505ca
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org


> From: Jon Callas [mailto:jon@callas.org]=20

> The minute a financial company pays some certifier enough=20
> money, the virtualized TPM is going to have certified keys.=20
> The minute a certifier decides that there is enough price=20
> elasticity in TPMs, they'll do it themselves.
>=20
> Remember in the old days when to get an SSL cert you had to=20
> sign in blood and show incorporation papers? Now you just=20
> have to reply to an email sent to hostmaster. Yes, yes, I=20
> know that CAs are now creating a new type of high-value cert,=20
> but that doesn't contradict my point, it shores it up.

There were reasons that led to that situation, not least the lack of CA =
accountability. If you look at the EV certs you will see that this is =
not a one way trend any more.=20

The most important feature of EV is making the user aware of who =
provided the credential. That is there to ensure CA accountability.

> In a perfectly virtualized system, the software cannot tell.=20
> In a sufficiently virutalized system, the software just=20
> doesn't know how to tell.
>=20
> Lastly, to repeat myself, not all VMs are your enemy. Some=20
> are your friend. Yup, it's hard to tell the difference, but it's true.

A Virtual TPM cannot by definition be a trustworthy hardware TPM.

Whether the scheme is 'secure' depends on what your application is. If =
you are trying to enforce strong DRM for copyright enforcement your =
problem is break once run anywhere. In order to succeed you have to =
depend on none of the billion plus TPMs created is ever compromised - =
fat chance!

If on the other hand you want to prevent the corporate strategy =
appearing for sale on EBay then you have a much smaller locus of trust, =
maybe 100 or so machines. That is entirely practical.


The biggest vulnerability in the system is not going to be the CA, it's =
the manufacturing process. Unless every TPM is manufactured in the type =
of production environment used for FIPS-140-3 devices (unlikely) the =
simplest way to abstract a key would be to introduce a modified TPM onto =
the production line.

The other reason that protecting corporate secrets is a more practical =
proposition is that the profit opportunities are nowhere near as =
reliable as making pirate copies of Lord of the Rings on release. Sure =
you might get timely inside information that allows you to make a lot of =
money but more likely is that the information you get is not actionable.

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sun Jan 14 09:07:49 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H661I-0006iB-DJ; Sun, 14 Jan 2007 09:07:36 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H661H-0006hy-NW
	for cfrg@irtf.org; Sun, 14 Jan 2007 09:07:35 -0500
Received: from colibri.verisign.com ([65.205.251.74])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H661G-00035q-5o
	for cfrg@irtf.org; Sun, 14 Jan 2007 09:07:35 -0500
Received: from MOU1WNEXCN02.vcorp.ad.vrsn.com (mailer2.verisign.com
	[65.205.251.35])
	by colibri.verisign.com (8.13.6/8.13.4) with ESMTP id l0EE7Twd030855;
	Sun, 14 Jan 2007 06:07:29 -0800
Received: from MOU1WNEXMB04.vcorp.ad.vrsn.com ([10.25.13.157]) by
	MOU1WNEXCN02.vcorp.ad.vrsn.com with Microsoft
	SMTPSVC(6.0.3790.1830); Sun, 14 Jan 2007 06:07:29 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Cfrg] Re: how to guard against VM rollbacks
Date: Sun, 14 Jan 2007 06:07:27 -0800
Message-ID: <198A730C2044DE4A96749D13E167AD370105A411@MOU1WNEXMB04.vcorp.ad.vrsn.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Cfrg] Re: how to guard against VM rollbacks
Thread-Index: Acc3N9dLOSx7+MEvTZy9wZxOf77UfQArLIwg
From: "Hallam-Baker, Phillip" <pbaker@verisign.com>
To: "Steven M. Bellovin" <smb@cs.columbia.edu>,
	"Hal Finney" <hal.finney@gmail.com>
X-OriginalArrivalTime: 14 Jan 2007 14:07:29.0301 (UTC)
	FILETIME=[539A5450:01C737E5]
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 10ba05e7e8a9aa6adb025f426bef3a30
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Quite, I think that the big problem with the 'TPM can't possibly work' =
claim is that TPM is like cryptography, there are so many applications =
that the claim is essentially meaningless.=20

Clearly if everyone in the system conspires to defeat the TPM it is not =
going to provide any security. But that is not a rational threat model.

The other problem I have with the 'TPM can't work claim' is that it =
tends to be followed by warnings of dire consequences resulting from it =
working too well for some people's taste.



> -----Original Message-----
> From: Steven M. Bellovin [mailto:smb@cs.columbia.edu]=20
> Sent: Saturday, January 13, 2007 12:25 PM
> To: Hal Finney
> Cc: cfrg@irtf.org
> Subject: Re: [Cfrg] Re: how to guard against VM rollbacks
>=20
> On Sat, 13 Jan 2007 09:12:23 -0800
> "Hal Finney" <hal.finney@gmail.com> wrote:
>=20
> > On 1/13/07, Simon Josefsson <simon@josefsson.org> wrote:
> > > Aren't you forgetting that a virtual TPM, that can be=20
> rolled back,=20
> > > is within the powers of a VM?  You can't tell a virtual=20
> TPM from a=20
> > > real one, if the VM is good.
> >=20
> > TPM chips contain certified keys, which virtualized ones=20
> will not, so=20
> > software can tell the difference. It knows the CA which=20
> certifies TPM=20
> > keys and checks that the TPM contains such a key.
> >=20
> > In principle the virtualizing engine can reverse engineer the=20
> > software, find where it stores the root TPM CA, and change it, or=20
> > perhaps crack it in other ways. In practice that can only=20
> be done with=20
> > considerable human effort customized to the particular software=20
> > package you are trying to fool.
> >=20
> > Xen is an example of a VMM which virtualizes the TPM, and it (of
> > course) makes no effort to carry the charade so far. Instead, the=20
> > proposals I have seen would use a second level key structure for=20
> > certifying virtualized TPMs, signed by the real TPM key,=20
> similar to CA=20
> > certificate chains. Software will have to be VM-aware to=20
> recognize and=20
> > authenticate virtualized TPMs.
> >=20
> > The main issue then is whether the VM software will even give you=20
> > access to the real TPM, or only provide a virtual one. It=20
> can't fool=20
> > you into thinking the virtual TPM is real, but OTOH you lose the=20
> > advantages of a real TPM for the purposes described in this=20
> thread. At=20
> > least you would know you were being virtualized, but you would no=20
> > longer have any guarantee that random numbers from the VTPM were=20
> > fresh, for example, or that the monotonic counter wasn't going=20
> > backwards.
> >=20
> What is the threat model here?  Who is rolling back VMs and why? =20
>=20
> If the enemy can induce VM crashes, necessitating a rollback,=20
> that's the real problem.  If the base system operator is=20
> trying to subvert the VMs, that's the problem.  I suggest=20
> that the latter is unlikely.  A virtual TPM (or virtual=20
> crypto hardware of any other type) becomes a distinct=20
> advantage in these cases, because it moves the=20
> crypto-sensitive items -- the keys, the pseudo-random number=20
> state, etc. -- out of the area that's being rolled back.  If=20
> the purpose of your VMs is to provide extra protection for=20
> some servers, a modest degree of VM-awareness is a fine thing=20
> -- let the VM and the hypervisor co-operate.  Xen got that=20
> very right.  (The usual reason for malware to do VM detection=20
> is to prevent the good guys from using VMs to analyze the=20
> malware.  If I run my servers in a VM and the malware=20
> refrains from misbehaving because it thinks I'm watching, I=20
> win that way, too...)
>=20
> 		--Steve Bellovin, http://www.cs.columbia.edu/~smb
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@ietf.org
> https://www1.ietf.org/mailman/listinfo/cfrg
>=20

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sun Jan 14 14:43:15 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H6BEs-0003uW-TY; Sun, 14 Jan 2007 14:41:58 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H6BEs-0003uR-21
	for cfrg@irtf.org; Sun, 14 Jan 2007 14:41:58 -0500
Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178]
	helo=yxa.extundo.com) by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1H6BEq-0004Ge-Ku
	for cfrg@irtf.org; Sun, 14 Jan 2007 14:41:58 -0500
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178])
	(authenticated bits=0)
	by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id
	l0EJfYVu014920
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sun, 14 Jan 2007 20:41:35 +0100
From: Simon Josefsson <simon@josefsson.org>
To: "Hallam-Baker\, Phillip" <pbaker@verisign.com>
References: <198A730C2044DE4A96749D13E167AD370105A40F@MOU1WNEXMB04.vcorp.ad.vrsn.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:070114:pbaker@verisign.com::h6pQIWOeW+IYcWKc:1Fj1
X-Hashcash: 1:22:070114:mbaugher@cisco.com::+tZaUydWC0/rm0zP:8/HU
X-Hashcash: 1:22:070114:cfrg@irtf.org::gZeLZnj2pRzEKoha:tKgi
Date: Sun, 14 Jan 2007 20:41:34 +0100
In-Reply-To: <198A730C2044DE4A96749D13E167AD370105A40F@MOU1WNEXMB04.vcorp.ad.vrsn.com>
	(Phillip Hallam-Baker's message of "Sun\, 14 Jan 2007 05\:30\:13 -0800")
Message-ID: <87odp1gzv5.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL,BAYES_40,
	FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2,
	clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
X-Spam-Score: 0.1 (/)
X-Scan-Signature: e5ba305d0e64821bf3d8bc5d3bb07228
Cc: cfrg@irtf.org, Mark Baugher <mbaugher@cisco.com>
Subject: [Cfrg] Re: how to guard against VM rollbacks
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

"Hallam-Baker, Phillip" <pbaker@verisign.com> writes:

>> From: Simon Josefsson [mailto:simon@josefsson.org] 
>
>> Aren't you forgetting that a virtual TPM, that can be rolled 
>> back, is within the powers of a VM?  You can't tell a virtual 
>> TPM from a real one, if the VM is good.
>
> Not at all, a virtual TPM under the control that allows it to be
> rolled back or otherwise behave in ways that violate the trust
> claims could not be certified as such by a Trusted Third Party.
>
> Such a machine would be consistent internally but could not make a
> trustworthy external claim - to another network party or to a user.

How does a certified TPM protect against the VM (or anyone) replaying
earlier answers (i.e., counter value) from the TPM to the application?

How can an application tell whether the answer they get from the TPM
is from a certified trusted TPM, or replayed answers from the same, or
simply just faked answers?

I'm not familiar with all TPM implementations, but it seems that
unless a TPM sign the internal state and sign the data that goes out
from the TPM, and require that implementations verify the answers
against an online service (through a protected channel) to make sure
the answers are not replayed, a TPM doesn't seem to offer any major
advantage.  Still, extracting the private key inside the TPM
effectively destroys the security of the scheme, too.

/Simon

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Sun Jan 14 18:06:50 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H6EQ1-0000Cf-6p; Sun, 14 Jan 2007 18:05:41 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H6EQ0-0000Ca-0n
	for cfrg@irtf.org; Sun, 14 Jan 2007 18:05:40 -0500
Received: from nf-out-0910.google.com ([64.233.182.190])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H6EPy-0008Mo-Lu
	for cfrg@irtf.org; Sun, 14 Jan 2007 18:05:40 -0500
Received: by nf-out-0910.google.com with SMTP id x4so1934590nfb
	for <cfrg@irtf.org>; Sun, 14 Jan 2007 15:05:35 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=m4FxAotRCDqVoS14U6Y7/FiYuuyB7chy1bLOpagaYR2/Wh+e7vPe+nDqK0Vyh4/RIkC3rx/wcGyzQ+cCCH3ztu38X1z3hvRT4080A9awdBR+SJpwW3Yc9tqPGQkgtW21fg3g8aETxb0gEtybwNoWMB7YfUimlu/Si95CUAcvT3A=
Received: by 10.49.15.16 with SMTP id s16mr3496372nfi.1168815934759;
	Sun, 14 Jan 2007 15:05:34 -0800 (PST)
Received: by 10.49.85.14 with HTTP; Sun, 14 Jan 2007 15:05:34 -0800 (PST)
Message-ID: <da7b3ce30701141505t3823d9c1h7bc0ed1ac165da13@mail.gmail.com>
Date: Sun, 14 Jan 2007 15:05:34 -0800
From: "Hal Finney" <hal.finney@gmail.com>
To: cfrg@irtf.org
Subject: Re: [Cfrg] Re: how to guard against VM rollbacks
In-Reply-To: <87odp1gzv5.fsf@latte.josefsson.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <198A730C2044DE4A96749D13E167AD370105A40F@MOU1WNEXMB04.vcorp.ad.vrsn.com>
	<87odp1gzv5.fsf@latte.josefsson.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: bb8f917bb6b8da28fc948aeffb74aa17
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Getting back to the point raised earlier about the threat model, I
think some of this discussion is getting sidetracked into a scenario
where the VMM and the client OS are enemies each trying to defeat the
other. While this might describe certain situations, perhaps breaking
DRM or copy protection via virtualization, I don't think it should be
our primary focus here.

Rather, we should consider scenarios where the VMM and client OSs are
"on the same team" and are cooperating to achieve the user's goals.
The threat we might consider is a third party who can induce VM state
rollbacks, perhaps by crashing some other process in the VM. For
analysis, we could let the third party choose the starting and ending
points of the rollback arbitrarily: the process runs to point B, and
then is reset back to the point A, and runs again.

Ideally we would want to get notification to the crypto protocol layer
that the rollback had occured. It might not be practical to clearly
identify point B, but at least when the software resumes from point A
it could be notified that a rollback had happened and it might be
re-using state which had been used before. This would require
cooperation between the VMM and the client OS, and support for
application software to be notified from the client OS when these
events occur. I don't see any reason why we should not expect such
support to be available in a mature VM system. Given that the VMM and
client OSs are cooperating, there should be support for exactly this
kind of communication.

In general, any software which anticipates engaging in communication
in an environment where rollbacks can occur must design some kind of
resynchronization mechanism into its protocol. The crypto layer can
perhaps capitalize on this feature and perform its own state refresh
at the same time, communicating whatever data is needed to the
receiving end.

Hal Finney

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Wed Jan 17 13:15:16 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H7FIK-0008Ja-Vp; Wed, 17 Jan 2007 13:13:56 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H7FIJ-0008Il-1F
	for cfrg@irtf.org; Wed, 17 Jan 2007 13:13:55 -0500
Received: from sj-iport-5.cisco.com ([171.68.10.87])
	by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1H7FIE-00056Q-Bx
	for cfrg@irtf.org; Wed, 17 Jan 2007 13:13:54 -0500
Received: from sj-dkim-6.cisco.com ([171.68.10.81])
	by sj-iport-5.cisco.com with ESMTP; 17 Jan 2007 10:13:43 -0800
Received: from sj-core-4.cisco.com (sj-core-4.cisco.com [171.68.223.138])
	by sj-dkim-6.cisco.com (8.12.11/8.12.11) with ESMTP id l0HIDhsl017096; 
	Wed, 17 Jan 2007 10:13:43 -0800
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com
	[128.107.191.63])
	by sj-core-4.cisco.com (8.12.10/8.12.6) with ESMTP id l0HIDhnF020837;
	Wed, 17 Jan 2007 10:13:43 -0800 (PST)
Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by
	xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Wed, 17 Jan 2007 10:13:28 -0800
Received: from [192.168.0.10] ([10.21.83.51]) by xfe-sjc-212.amer.cisco.com
	with Microsoft SMTPSVC(6.0.3790.1830); 
	Wed, 17 Jan 2007 10:13:28 -0800
In-Reply-To: <198A730C2044DE4A96749D13E167AD370105A411@MOU1WNEXMB04.vcorp.ad.vrsn.com>
References: <198A730C2044DE4A96749D13E167AD370105A411@MOU1WNEXMB04.vcorp.ad.vrsn.com>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <0A46B046-899F-4DF9-9EBC-BCA72CBAAC24@cisco.com>
Content-Transfer-Encoding: 7bit
From: Mark Baugher <mbaugher@cisco.com>
Subject: Re: [Cfrg] Re: how to guard against VM rollbacks
Date: Wed, 17 Jan 2007 10:13:25 -0800
To: "Hallam-Baker, Phillip" <pbaker@verisign.com>
X-Mailer: Apple Mail (2.752.2)
X-OriginalArrivalTime: 17 Jan 2007 18:13:28.0208 (UTC)
	FILETIME=[2FD61100:01C73A63]
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=4336; t=1169057623;
	x=1169921623; c=relaxed/simple; s=sjdkim6002;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=mbaugher@cisco.com;
	z=From:=20Mark=20Baugher=20<mbaugher@cisco.com>
	|Subject:=20Re=3A=20[Cfrg]=20Re=3A=20how=20to=20guard=20against=20VM=20ro
	llbacks |Sender:=20;
	bh=FEo7a7Kd0KOJ7zdeVH8ILiLtA4TijuGrq1waGoleX0Y=;
	b=lgReQdWNPVG2xOc76XcLiSwW4432BwUxMJALn+0rWzbhoy0l5gCopA1az8szliej2qp2WLcX
	qtjxGdZxXDyY4e4vAzhtflb9udseo2JyvKdFBHfbFi1R/GRv7E0+7e4N;
Authentication-Results: sj-dkim-6; header.From=mbaugher@cisco.com; dkim=pass (
	sig from cisco.com/sjdkim6002 verified; ); 
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 057ebe9b96adec30a7efb2aeda4c26a4
Cc: cfrg@irtf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org


On Jan 14, 2007, at 6:07 AM, Hallam-Baker, Phillip wrote:

> Quite, I think that the big problem with the 'TPM can't possibly  
> work' claim is that TPM is like cryptography, there are so many  
> applications that the claim is essentially meaningless.

This is off-topic for the list and even this particular thread, but I  
can't resist commenting that if the TPM is supposed to protect the  
data from the user who controls the computer, then it is very much  
unlike cryptographic security.

Mark
>
> Clearly if everyone in the system conspires to defeat the TPM it is  
> not going to provide any security. But that is not a rational  
> threat model.
>
> The other problem I have with the 'TPM can't work claim' is that it  
> tends to be followed by warnings of dire consequences resulting  
> from it working too well for some people's taste.
>
>
>
>> -----Original Message-----
>> From: Steven M. Bellovin [mailto:smb@cs.columbia.edu]
>> Sent: Saturday, January 13, 2007 12:25 PM
>> To: Hal Finney
>> Cc: cfrg@irtf.org
>> Subject: Re: [Cfrg] Re: how to guard against VM rollbacks
>>
>> On Sat, 13 Jan 2007 09:12:23 -0800
>> "Hal Finney" <hal.finney@gmail.com> wrote:
>>
>>> On 1/13/07, Simon Josefsson <simon@josefsson.org> wrote:
>>>> Aren't you forgetting that a virtual TPM, that can be
>> rolled back,
>>>> is within the powers of a VM?  You can't tell a virtual
>> TPM from a
>>>> real one, if the VM is good.
>>>
>>> TPM chips contain certified keys, which virtualized ones
>> will not, so
>>> software can tell the difference. It knows the CA which
>> certifies TPM
>>> keys and checks that the TPM contains such a key.
>>>
>>> In principle the virtualizing engine can reverse engineer the
>>> software, find where it stores the root TPM CA, and change it, or
>>> perhaps crack it in other ways. In practice that can only
>> be done with
>>> considerable human effort customized to the particular software
>>> package you are trying to fool.
>>>
>>> Xen is an example of a VMM which virtualizes the TPM, and it (of
>>> course) makes no effort to carry the charade so far. Instead, the
>>> proposals I have seen would use a second level key structure for
>>> certifying virtualized TPMs, signed by the real TPM key,
>> similar to CA
>>> certificate chains. Software will have to be VM-aware to
>> recognize and
>>> authenticate virtualized TPMs.
>>>
>>> The main issue then is whether the VM software will even give you
>>> access to the real TPM, or only provide a virtual one. It
>> can't fool
>>> you into thinking the virtual TPM is real, but OTOH you lose the
>>> advantages of a real TPM for the purposes described in this
>> thread. At
>>> least you would know you were being virtualized, but you would no
>>> longer have any guarantee that random numbers from the VTPM were
>>> fresh, for example, or that the monotonic counter wasn't going
>>> backwards.
>>>
>> What is the threat model here?  Who is rolling back VMs and why?
>>
>> If the enemy can induce VM crashes, necessitating a rollback,
>> that's the real problem.  If the base system operator is
>> trying to subvert the VMs, that's the problem.  I suggest
>> that the latter is unlikely.  A virtual TPM (or virtual
>> crypto hardware of any other type) becomes a distinct
>> advantage in these cases, because it moves the
>> crypto-sensitive items -- the keys, the pseudo-random number
>> state, etc. -- out of the area that's being rolled back.  If
>> the purpose of your VMs is to provide extra protection for
>> some servers, a modest degree of VM-awareness is a fine thing
>> -- let the VM and the hypervisor co-operate.  Xen got that 
>> very right.  (The usual reason for malware to do VM detection
>> is to prevent the good guys from using VMs to analyze the
>> malware.  If I run my servers in a VM and the malware
>> refrains from misbehaving because it thinks I'm watching, I
>> win that way, too...)
>>
>> 		--Steve Bellovin, http://www.cs.columbia.edu/~smb
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@ietf.org
>> https://www1.ietf.org/mailman/listinfo/cfrg
>>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@ietf.org
> https://www1.ietf.org/mailman/listinfo/cfrg

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Mon Jan 22 18:54:49 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H98yd-0007Jk-Dc; Mon, 22 Jan 2007 18:53:27 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H98yc-0007Je-1j
	for cfrg@ietf.org; Mon, 22 Jan 2007 18:53:26 -0500
Received: from woodstock.binhost.com ([66.150.120.2])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1H98ya-0001GG-Sv
	for cfrg@ietf.org; Mon, 22 Jan 2007 18:53:26 -0500
Received: (qmail 10971 invoked by uid 0); 22 Jan 2007 23:53:06 -0000
Received: from unknown (HELO THINKPADR52.vigilsec.com) (12.104.158.98)
	by woodstock.binhost.com with SMTP; 22 Jan 2007 23:53:06 -0000
Message-Id: <7.0.0.16.2.20070122185151.040c5b78@vigilsec.com>
X-Mailer: QUALCOMM Windows Eudora Version 7.0.0.16
Date: Mon, 22 Jan 2007 18:53:00 -0500
To: cfrg@ietf.org
From: Russ Housley <housley@vigilsec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 8ac499381112328dd60aea5b1ff596ea
Subject: [Cfrg] draft-martin-ibcs
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

I am getting ready to put this document on the IESG Telecat 
agenda.  This is probably the only group that can give any 
constructive comments, so I am asking for them here.

Russ


_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Tue Jan 23 13:53:42 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H9QlB-00086E-5O; Tue, 23 Jan 2007 13:52:45 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H9Ql9-000867-U4
	for cfrg@ietf.org; Tue, 23 Jan 2007 13:52:43 -0500
Received: from balder-227.proper.com ([192.245.12.227])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H9Ql8-0007sE-Hb
	for cfrg@ietf.org; Tue, 23 Jan 2007 13:52:43 -0500
Received: from [10.20.30.108] (dsl-63-249-108-169.cruzio.com [63.249.108.169])
	(authenticated bits=0)
	by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id l0NIqevk043133
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <cfrg@ietf.org>; Tue, 23 Jan 2007 11:52:41 -0700 (MST)
	(envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240844c1dc09cc38ab@[10.20.30.108]>
Date: Tue, 23 Jan 2007 10:52:26 -0800
To: cfrg@ietf.org
From: Shu-jen Chang <shu-jen.chang@nist.gov>
X-Spam-Score: 1.7 (+)
X-Scan-Signature: d6b246023072368de71562c0ab503126
Subject: [Cfrg] NIST announces Draft Requirements and Evaluation Criteria
 for New Hash Algorithms
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0359907244=="
Errors-To: cfrg-bounces@ietf.org

--===============0359907244==
Content-Type: text/html; charset="us-ascii"

<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>NIST announces Draft Requirements and Evaluation
Criteria</title></head><body>
<div><b>NIST Wants Comments on Proposed Hash Algorithm Requirements
and Evaluation Criteria<br>
<br>
</b>The National Institute of Standards and Technology is planning a
competition to develop one or more cryptographic hash algorithms to
augment and revise the current Secure Hash Standard (Federal
Information Processing Standard 180-2). As a first step in this
process, NIST is publishing draft minimum acceptability requirements,
submission requirements, and evaluation criteria for candidate
algorithms ( See the Federal Register Announcement on<font
color="#0000FF"><u> http://www.nist.gov/hash-function</u></font> ),
and requests public comment by April 27, 2007.</div>
</body>
</html>


--===============0359907244==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg

--===============0359907244==--



From cfrg-bounces@ietf.org Tue Jan 23 19:41:22 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1H9WBR-0001n5-NI; Tue, 23 Jan 2007 19:40:13 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1H9WBQ-0001mc-2r
	for cfrg@ietf.org; Tue, 23 Jan 2007 19:40:12 -0500
Received: from woodstock.binhost.com ([66.150.120.2])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1H9WBN-00059v-Qx
	for cfrg@ietf.org; Tue, 23 Jan 2007 19:40:12 -0500
Received: (qmail 22493 invoked by uid 0); 24 Jan 2007 00:39:53 -0000
Received: from unknown (HELO THINKPADR52.vigilsec.com) (128.107.28.80)
	by woodstock.binhost.com with SMTP; 24 Jan 2007 00:39:53 -0000
Message-Id: <7.0.0.16.2.20070123193822.04ad5868@vigilsec.com>
X-Mailer: QUALCOMM Windows Eudora Version 7.0.0.16
Date: Tue, 23 Jan 2007 19:39:03 -0500
To: cfrg@ietf.org
From: Elaine Barker <elaine.barker@nist.gov> (by way of Russ Housley
	<housley@vigilsec.com>)
Mime-Version: 1.0
X-Spam-Score: 1.5 (+)
X-Scan-Signature: 79899194edc4f33a41f49410777972f8
Subject: [Cfrg] NIST Request for Comments on primality testing
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0529363480=="
Errors-To: cfrg-bounces@ietf.org

--===============0529363480==
Content-Type: text/html; charset="us-ascii"

<html>
<body>
NIST received many comments when Draft FIPS 186-3 was posted for public
comment during the spring of 2006 (see Note above). Several comments
concerned the number of tests required for primality testing. In
response, NIST surveyed the latest literature available on this topic and
is providing alternatives for your consideration (see
<a href="http://csrc.nist.gov/CryptoToolkit/tkdigsigs.html" eudora="autourl">
http://csrc.nist.gov/CryptoToolkit/tkdigsigs.html</a>). Please provide
comments to ebarker@nist.gov<u> </u>by February 23rd, 2007, inserting
“Comments on FIPS 186-3 Primality Testing” in the subject line. NIST is
particularly interested in comments relating to the security of the new
proposal versus the values currently used in Draft FIPS 186-3. <br><br>
<font color="#008000"><i>Elaine Barker<br>
National Institute of Standards and Technology<br>
100 Bureau Drive, Stop 8930<br>
Gaithersburg, MD 20899-8930<br>
301-975-2911</i></font> </body>
</html>



--===============0529363480==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg

--===============0529363480==--



From cfrg-bounces@ietf.org Tue Jan 30 05:21:27 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HBq5E-000253-IQ; Tue, 30 Jan 2007 05:19:24 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HBq5D-00024w-1H
	for cfrg@irtf.org; Tue, 30 Jan 2007 05:19:23 -0500
Received: from mailhost.auckland.ac.nz ([130.216.190.14]
	helo=zeppo.itss.auckland.ac.nz)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HBq5B-0003aU-KM
	for cfrg@irtf.org; Tue, 30 Jan 2007 05:19:23 -0500
Received: from localhost (localhost.localdomain [127.0.0.1])
	by zeppo.itss.auckland.ac.nz (Postfix) with ESMTP id 6F0EC34011;
	Tue, 30 Jan 2007 23:19:14 +1300 (NZDT)
Received: from zeppo.itss.auckland.ac.nz ([127.0.0.1])
	by localhost (smtpd.itss.auckland.ac.nz [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id 17187-12; Tue, 30 Jan 2007 23:19:14 +1300 (NZDT)
Received: from iris.cs.auckland.ac.nz (iris.cs.auckland.ac.nz [130.216.33.152])
	by zeppo.itss.auckland.ac.nz (Postfix) with ESMTP id 8897833FFC;
	Tue, 30 Jan 2007 23:19:13 +1300 (NZDT)
Received: from medusa01.cs.auckland.ac.nz (medusa01.cs.auckland.ac.nz
	[130.216.34.33]) by iris.cs.auckland.ac.nz (Postfix) with ESMTP
	id 4FAB551400E; Tue, 30 Jan 2007 23:19:12 +1300 (NZDT)
Received: from pgut001 by medusa01.cs.auckland.ac.nz with local (Exim 3.36 #1
	(Debian)) id 1HBq5A-00022a-00; Tue, 30 Jan 2007 23:19:20 +1300
From: pgut001@cs.auckland.ac.nz (Peter Gutmann)
To: cfrg@irtf.org, weidai@weidai.com
Subject: Re: [Cfrg] how to guard against VM rollbacks
In-Reply-To: <09e601c73607$f73d7720$0300a8c0@weidai.com>
Message-Id: <E1HBq5A-00022a-00@medusa01.cs.auckland.ac.nz>
Date: Tue, 30 Jan 2007 23:19:20 +1300
X-Virus-Scanned: by amavisd-new at mailhost.auckland.ac.nz
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 798b2e660f1819ae38035ac1d8d5e3ab
Cc: 
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

"Wei Dai" <weidai@weidai.com> writes:

>This question is puzzling since several general suggestions about what to do
>have been posted in this discussion.

Several *theoretical* suggestions have been posted.  I haven't really seen
anything that'll work in practice.  For example I can't see VM vendors
changing the way their VMs work just to satisfy some (relatively) obscure
security concerns that have close to zero impact on their business models.

>I don't see why we shouldn't be talking about general countermeasures as
>well.

While talking about general countermeasures is interesting, at some point you
have to start talking about practical countermeasures.  "Persuading the world
to change to suit our requirements" doesn't seem like a very practical
countermeasure.  More specifically, I'm not aware of anything that I can put
into my code tomorrow to fix this problem, and I don't even know what specific
problem I'm supposed to be fixing.

Peter.


_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



