From elric at imrryr.org Mon Dec 1 13:26:39 2008 From: elric at imrryr.org (Roland Dowdeswell) Date: Mon, 01 Dec 2008 13:26:39 -0500 Subject: CPRNGs are still an issue. In-Reply-To: Your message of "Fri, 28 Nov 2008 12:49:27 EST." <87myfjvizc.fsf@snark.cb.piermont.com> Message-ID: <20081201182639.37F3737C35@arioch.imrryr.org> On 1227894567 seconds since the Beginning of the UNIX epoch "Perry E. Metzger" wrote: > >As it turns out, cryptographic pseudorandom number generators continue >to be a good place to look for security vulnerabilities -- see the >enclosed FreeBSD security advisory. > >The more things change, the more they stay the same... They failed to also mention that GBDE uses arc4random(9) to generate the keys which is uses to write data. So, any data written in the first five minutes after a boot may also be weakly keyed. -- Roland Dowdeswell http://www.Imrryr.ORG/~elric/ --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Mon Dec 1 14:41:31 2008 From: perry at piermont.com (Perry E. Metzger) Date: Mon, 01 Dec 2008 14:41:31 -0500 Subject: The next time someone tells you "no one" would do something... Message-ID: <873ah7ptsk.fsf@snark.cb.piermont.com> Summary: shops in Vietnam removing the baseband chip on iPhone motherboards to reprogram and unlock them. http://news.cnet.com/8301-17938_105-10107580-1.html?part=rss&tag=feed&subj=Crave The next time someone tells you "no one" would do such a thing to break the security of a device, or at least that it would be unlikely that anyone would make such a thing routine, remember that with enough motivation, people will do amazing things. Perry -- Perry E. Metzger perry at piermont.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From docbook.xml at gmail.com Thu Dec 4 18:22:25 2008 From: docbook.xml at gmail.com (Ali, Saqib) Date: Thu, 4 Dec 2008 15:22:25 -0800 Subject: Lifting Some Restrictions on Encryption Exports Message-ID: Does anyone have more info on the following: http://snurl.com/75m3f I couldn't find any other article that talked about it. The pay per news is the only item I found. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From eugen at leitl.org Fri Dec 5 08:16:09 2008 From: eugen at leitl.org (Eugen Leitl) Date: Fri, 5 Dec 2008 14:16:09 +0100 Subject: Quantum direct communication: secrecy without key distribution Message-ID: <20081205131608.GO11544@leitl.org> From: the physics arXiv blog Subject: the physics arXiv blog To: eugen at leitl.org Date: Fri, 05 Dec 2008 13:10:50 +0000 [1]the physics arXiv blog [2]Quantum direct communication: secrecy without key distribution Posted: 04 Dec 2008 09:13 PM PST [3]quantum-direct-communication.jpg An interesting development in the world of quantum encryption. In the last couple of years, we've seen a number of quantum key distribution systems being set up that boast close-to-perfect security ([4]although they're not as secure as the marketing might imply). These systems rely on two-part security. The first is the quantum part which reveals whether a message has been intercepted or not. Obviously this is no use when it comes to sending secret message because it can only uncover eavesdroppers after the fact. So Alice sends a one time pad over this quantum channel that she and Bob can later use to encrypt and send a message classically. If this key is compromised, Alice sends another. What guarantees the security is not quantum mechanics but the second part of the system: the one time pad. Today, Seth Lloyd and colleagues at the Massachusetts Institute of Technology in Cambridge, publish a way of guaranteeing security over a quantum channel without having to fall back on a one time pad. Their idea is to send a message over a standard quantum channel without bothering with a one time pad. The security, they say, can be monitored by randomly checking the channel to see whether any of the qubits are being lost (potentially to Eve). The security of the channel then depends on how much loss of information Alice and Bob are willing to accept, but can always be improved by checking more often for eavesdroppers. Quantum direct communication, as the team call it, looks interesting. But it will be demanding to implement, not least because any noise in the channel will look like an eavesdropper. So it looks as if this idea will have to be limited to short range applications where noise can be kept to a minimum. Nevertheless, a cool idea. Ref: [5]arxiv.org/abs/0802.0656: Quantum Direct Communication with Continuous Variables [6][ISMAP:i] [7][arXivblog?d=41] [8][arXivblog?d=43] [9][arXivblog?i=FkCcdrzA] [10][arXivblog?d=50] [11][arXivblog?i=AA6d3u4X] [12][arXivblog?d=54] [13][arXivblog?i=gWxiPcYK] [14][arXivblog?d=52] You are subscribed to email updates from [15]the physics arXiv blog To stop receiving these emails, you may [16]unsubscribe now. Email delivery powered by Google Inbox too full? [17](feed) [18]Subscribe to the feed version of the physics arXiv blog in a feed reader. If you prefer to unsubscribe via postal mail, write to: the physics arXiv blog, c/o Google, 20 W Kinzie, Chicago IL USA 60610 References 1. http://arxivblog.com/ 2. http://feedproxy.google.com/~r/arXivblog/~3/L2dvPUasU7A/ 3. http://arxivblog.com/wp-content/uploads/2008/12/quantum-direct-communication.jpg 4. http://arxivblog.com/?p=637 5. http://arxiv.org/abs/0802.0656 6. https://feedads.googleadservices.com/~a/i7RRFcowUHJnq_spRFzOodIFPIY/a 7. http://feedproxy.google.com/~f/arXivblog?a=HIgKcQ0O 8. http://feedproxy.google.com/~f/arXivblog?a=bO8lGfma 9. http://feedproxy.google.com/~f/arXivblog?a=FkCcdrzA 10. http://feedproxy.google.com/~f/arXivblog?a=ybFs1PaM 11. http://feedproxy.google.com/~f/arXivblog?a=AA6d3u4X 12. http://feedproxy.google.com/~f/arXivblog?a=sdxB9J6P 13. http://feedproxy.google.com/~f/arXivblog?a=gWxiPcYK 14. http://feedproxy.google.com/~f/arXivblog?a=rqQMNiZh 15. http://arxivblog.com/ 16. http://feedburner.google.com/fb/a/mailunsubscribe?k=118r9-S4Z0vJg-AkQPASPmDmlGQ 17. http://feedproxy.google.com/arXivblog 18. http://feedproxy.google.com/arXivblog ---------- -- Eugen* Leitl leitl http://leitl.org ______________________________________________________________ ICBM: 48.07100, 11.36820 http://www.ativel.com http://postbiota.org 8B29F6BE: 099D 78BA 2FD3 B014 B08A 7779 75B0 2443 8B29 F6BE --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From tamzen at cannoy.org Fri Dec 5 15:09:42 2008 From: tamzen at cannoy.org (Tamzen Cannoy) Date: Fri, 5 Dec 2008 12:09:42 -0800 Subject: Lifting Some Restrictions on Encryption Exports In-Reply-To: References: Message-ID: On Dec 4, 2008, at 3:22 PM, Ali, Saqib wrote: > Does anyone have more info on the following: > http://snurl.com/75m3f > > I couldn't find any other article that talked about it. The pay per > news is the only item I found. > > --------------------------------------------------------------------- > The Cryptography Mailing List > Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com I found this: http://edocket.access.gpo.gov/2008/pdf/E8-23201.pdf and http://web20.nixonpeabody.com/np20/np20blog/Lists/Posts/Post.aspx?List=5374facc%2D7ab2%2D482c%2D8bea%2D810457ec74db&ID=212 Looks like it's mostly a paperwork reduction act with cleaning up the list of countries who are our "good" friends. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From fw at deneb.enyo.de Fri Dec 5 15:47:17 2008 From: fw at deneb.enyo.de (Florian Weimer) Date: Fri, 05 Dec 2008 21:47:17 +0100 Subject: Lifting Some Restrictions on Encryption Exports In-Reply-To: (Saqib Ali's message of "Thu, 4 Dec 2008 15:22:25 -0800") References: Message-ID: <87prk6s622.fsf@mid.deneb.enyo.de> * Saqib Ali: > Does anyone have more info on the following: > http://snurl.com/75m3f > > I couldn't find any other article that talked about it. The pay per > news is the only item I found. It's probably this: | Encryption Simplification Rule of October 3, 2008 (73 FR 57495) (from ) --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From david_koontz at xtra.co.nz Fri Dec 5 15:51:41 2008 From: david_koontz at xtra.co.nz (David G. Koontz) Date: Sat, 06 Dec 2008 09:51:41 +1300 Subject: Lifting Some Restrictions on Encryption Exports In-Reply-To: References: Message-ID: <4939945D.4020501@xtra.co.nz> Ali, Saqib wrote: > Does anyone have more info on the following: > http://snurl.com/75m3f > > I couldn't find any other article that talked about it. The pay per > news is the only item I found. > It was tough to google for, because of all of the new references to Clinton era articles. google 'encryption "export restrictions" 2008' (past month) http://www.governmentcontractslawblog.com/2008/11/articles/export-controls/encryption-export-restrictions-loosened-under-new-rules-that-reduce-prereview-and-reporting-requirements/ >From this article you can see that the restrictions have had the effect of driving cryptographic software development offshore: http://www.governmentcontractslawblog.com/2008/11/articles/export-controls/new-export-rules-revise-de-minimis-provisions-allowing-bundled-software-to-be-included-in-commodity-valuation-clarifying-terms-and-reducing-reporting-requirements/ (Mostly European companies, I understand) The first link has a link to the Federal Register to 'see the word of the law': http://www.governmentcontractslawblog.com/uploads/file/GovConNov.pdf Federal Register / Vol. 73, No. 193 / Friday, October 3, 2008 / Rules and Regulations Pages 57495 through 57512 The PDF file is 124 KB. 17 pages plus a couple of column inches on the 18th page, too long to copy here. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From lloyd at randombit.net Fri Dec 5 16:00:01 2008 From: lloyd at randombit.net (Jack Lloyd) Date: Fri, 5 Dec 2008 16:00:01 -0500 Subject: CPRNGs are still an issue. In-Reply-To: <87myfjvizc.fsf@snark.cb.piermont.com> References: <87myfjvizc.fsf@snark.cb.piermont.com> Message-ID: <20081205210001.GE13973@randombit.net> On Fri, Nov 28, 2008 at 12:49:27PM -0500, Perry E. Metzger wrote: > > As it turns out, cryptographic pseudorandom number generators continue > to be a good place to look for security vulnerabilities -- see the > enclosed FreeBSD security advisory. > > The more things change, the more they stay the same... I think the situation is even worse outside of the major projects (the OS kernels crypto implementations and the main crypto libraries). I think outside of those, nobody is even really looking. For instance - This afternoon I took a look at a C++ library called JUCE which offers (among a pile of other things) RSA and Blowfish. However it turns out that all of the RSA keys are generated with an LCRNG (lrand48, basically) seeded with the time in milliseconds. http://www.randombit.net/bitbashing/security/juce_rng_vulnerability.html Also I found GNU Classpath has a PRNG that does something similiar, though at least it has the decency to use SHA-1 instead of an LCRNG. Unfortunately this is the same PRNG class that is used to generate RSA/DSA private keys and DSA's k values, and it is not even possible (AFAICT) for an application developer to add additional seed data in. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38417 These are trivially obvious mistakes that have been known (at least in the security community, though clearly not everywhere) for a decade plus, at least since Goldberg and Wagner broke Netscape, and, like classic buffer overflows and SQL injection, new code making the same mistakes keeps getting written. -Jack --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Nicolas.Williams at sun.com Fri Dec 5 16:53:25 2008 From: Nicolas.Williams at sun.com (Nicolas Williams) Date: Fri, 5 Dec 2008 15:53:25 -0600 Subject: Quantum direct communication: secrecy without key distribution In-Reply-To: <20081205131608.GO11544@leitl.org> References: <20081205131608.GO11544@leitl.org> Message-ID: <20081205215325.GA22970@Sun.COM> [I'm guessing that nobody here wants yet another "quatum crypto is snake oil, no it's not, yes it is, though it has a bright future, no it's not, ..." thread.] On Fri, Dec 05, 2008 at 02:16:09PM +0100, Eugen Leitl wrote: > In the last couple of years, we've seen a number of quantum key > distribution systems being set up that boast close-to-perfect security > ([4]although they're not as secure as the marketing might imply). > > These systems rely on two-part security. The first is the quantum part > which reveals whether a message has been intercepted or not. Obviously > this is no use when it comes to sending secret message because it can > only uncover eavesdroppers after the fact. That's not the most serious, obvious flaw in quantum cryptography. The most obvious flaw is that when we're talking fiber optics the eavesdropper might as well be a man in the middle, and so... well, see the list archive. Nico -- --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From dan at geer.org Fri Dec 5 19:06:01 2008 From: dan at geer.org (dan at geer.org) Date: Fri, 05 Dec 2008 19:06:01 -0500 Subject: Quantum direct communication: secrecy without key distribution In-Reply-To: Your message of "Fri, 05 Dec 2008 15:53:25 CST." <20081205215325.GA22970@Sun.COM> Message-ID: <20081206000601.8E1B933CF3@absinthe.tinho.net> > > The most obvious flaw is that when we're talking fiber optics the > eavesdropper might as well be a man in the middle, and so... well, see > the list archive. > ...possibly OT... well-placed but UNCORROBORATED informant sez that day before yesterday (3 dec): 5 hours of CheckFree traffic redirected and likely captured in full half of IP addresses for CheckFree left in place, half re-directed to Ukraine, i.e., partial MITM entirely at the routing protocol layer as is so often the case, slight amateurish fuckup at the Ukrainian end raised the alarm -- would not otherwise have been found for days [the important part] it appears that in the last few hours a method has been ?found/?released that makes possible the MITM completely transparent with all traffic forwarded on as if there was just an extra hop in the path; MITM via an effective attack on routing protocols, per se, would be no joke --dan related... http://voices.washingtonpost.com/securityfix/2008/12/hackers_hijacked_large_e-b ill.html http://news.softpedia.com/news/Online-Bill-Payment-Website-Hijacked-99262.shtml --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From netsecurity at sound-by-design.com Sat Dec 6 06:51:24 2008 From: netsecurity at sound-by-design.com (Allen) Date: Sat, 06 Dec 2008 03:51:24 -0800 Subject: Lifting Some Restrictions on Encryption Exports In-Reply-To: References: Message-ID: <493A673C.50201@sound-by-design.com> Hi gang, Actually that notice is out of date. There is a new one dated October 3, 2008 (73 FR 57495) and it can be seen at: http://www.bis.doc.gov/encryption/default.htm The part of this that is of particular interest is the following: > ? 740.17(b)(2) ENC ?Restricted? > Review required with 30 day wait > > * Applies to 5A002, 5B002, and 5D002 > > * Products authorized under (b)(2) include: > o network infrastructure products > o source code that is not ?publicly available? > o certain specialized commodities and software So open source bypasses the requirement for export control on cryptography, which is classified as 5D002. You also might want to consult: http://www.access.gpo.gov/bis/ear/pdf/ccl5-pt2.pdf which goes into some details, especially on page 5, second column, were reference is made to: > Note: Encryption software is controlled > because of its functional capacity, and not > because of any informational value of such > software; such software is not accorded the same > treatment under the EAR as other ?software?; and > for export licensing purposes, encryption software > is treated under the EAR in the same manner as a > commodity included in ECCN 5A002. > > Note: Encryption software controlled for ?EI? > reasons under this entry remains subject to the > EAR even when made publicly available in > accordance with part 734 of the EAR. See > ?740.13(e) of the EAR for information on > releasing certain source code (and corresponding > object code) which would be considered publicly > available from ?EI? controls. Allen Ali, Saqib wrote: > Does anyone have more info on the following: > http://snurl.com/75m3f > > I couldn't find any other article that talked about it. The pay per > news is the only item I found. > > --------------------------------------------------------------------- > The Cryptography Mailing List > Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com > --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jim at cr-labs.com Sat Dec 6 10:25:46 2008 From: jim at cr-labs.com (Jim Youll) Date: Sat, 6 Dec 2008 10:25:46 -0500 Subject: Quantum direct communication: secrecy without key distribution In-Reply-To: <20081206000601.8E1B933CF3@absinthe.tinho.net> References: <20081206000601.8E1B933CF3@absinthe.tinho.net> Message-ID: <29B85AD0-CE51-4A62-8640-F18A2F25F105@cr-labs.com> On Dec 5, 2008, at 7:06 PM, dan at geer.org wrote: >> well-placed but UNCORROBORATED informant sez that > day before yesterday (3 dec): > > 5 hours of CheckFree traffic redirected and likely > captured in full > > half of IP addresses for CheckFree left in place, half > re-directed to Ukraine, i.e., partial MITM entirely > at the routing protocol layer > > [the important part] it appears that in the last few hours > a method has been ?found/?released that makes possible the > MITM completely transparent with all traffic forwarded on > as if there was just an extra hop in the path; MITM via an > effective attack on routing protocols, per se, would be no joke The cited articles discuss a much simpler DNS revision with stolen Netsol credentials on Dec 2., apparently confirmed via their logs. How sure are you about this informant? Does the person have the expertise to say what was said, or was the Dec 2 story reinterpreted into the Dec 3 story? It's too big an issue to leave floating. [http://voices.washingtonpost.com/securityfix/2008/12/hackers_hijacked_large_e-bill.html ]: > It appears hackers were able to hijack the company's Web sites by > stealing the user name and password needed to make account changes > at the Web site of Network Solutions, CheckFree's domain registrar. > Susan Wade, a spokeswoman for the Herndon, Va., based registrar, > said that at around 12:30 a.m. Dec. 2, someone logged in using the > company's credentials and changed the address of CheckFree's > authoritative domain name system (DNS) servers to point CheckFree > site visitors to the Internet address in the Ukraine. - jim --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Sat Dec 6 22:51:23 2008 From: leichter at lrw.com (Jerry Leichter) Date: Sat, 6 Dec 2008 22:51:23 -0500 Subject: Attacking a secure smartcard Message-ID: I've previously mentioned Flylogic as a company that does cool attacks on chip-level hardware protection. In http://www.flylogic.net/blog/?p=18 , they talk about attacking the ST16601 Smartcard - described by the vendor as offering "Very high security features including EEPROM flash erase (bulk-erase)". The chip is covered by a metal mesh that, if cut or shorted, blocks operation. However, Flylogic reports: "Using our techniques we call, ?magic? (okay, it?s not magic but we?re not telling), we opened the bus and probed it keeping the chip alive. We didn?t use any kind of expensive SEM or FIB. The equipment used was available back in the 90?s to the average hacker! We didn?t even need a university lab. Everything we used was commonly available for under $100.00 USD. This is pretty scary when you think that they are certifying these devices under all kinds of certifications around the world." -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From alserkli at inbox.ru Sun Dec 7 04:10:17 2008 From: alserkli at inbox.ru (Alexander Klimov) Date: Sun, 7 Dec 2008 11:10:17 +0200 (IST) Subject: AES HDD encryption was XOR Message-ID: : With its Digittrade Security hard disk, the German vendor Digittrade has launched another hard disk housing based on the unsafe IM7206 controller by the Chinese manufacturer Innmax. The German vendor prominently advertises the product's strong 128-bit AES encryption on its packaging and web page. In practice, however, the hard disk data is only encrypted using a primitive XOR mechanism with an identical 512-Byte block for each sector. -- Regards, ASK --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Sun Dec 7 15:05:52 2008 From: leichter at lrw.com (Jerry Leichter) Date: Sun, 7 Dec 2008 15:05:52 -0500 Subject: AES HDD encryption was XOR In-Reply-To: References: Message-ID: <015DFAEC-38ED-422A-8E08-B26DB8A3C751@lrw.com> On Dec 7, 2008, at 4:10 AM, Alexander Klimov wrote: > >: > > With its Digittrade Security hard disk, the German vendor > Digittrade has launched another hard disk housing based on the > unsafe IM7206 controller by the Chinese manufacturer Innmax. > The German vendor prominently advertises the product's strong > 128-bit AES encryption on its packaging and web page. In > practice, however, the hard disk data is only encrypted using > a primitive XOR mechanism with an identical 512-Byte block for > each sector. Oh, but that 512-byte block is generated using Triple AES, and is highly, highly secure! :-) An interesting bit of wording from the site linked to above: "According to current cryptography research, this would be virtually impossible, even with a short key length of only 128 bits." Although the sentence accurately states that AES-128 is thought to be secure within the state of current and expected cryptographic knowledge, it propagates the meme of the "short key length of only 128 bits". A key length of 128 bits is beyond any conceivable brute force attack - in and of itself the only kind of attack for which key length, as such, has any meaning. But, as always, "bigger *must* be better" - which just raises costs when it leads people to use AES-256, but all too often opens the door for the many snake-oil "super-secure" cipher systems using thousands of key bits. -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From StealthMonger at nym.mixmin.net Mon Dec 8 08:54:47 2008 From: StealthMonger at nym.mixmin.net (StealthMonger) Date: Mon, 8 Dec 2008 13:54:47 +0000 (GMT) Subject: Why the poor uptake of encrypted email? [Was: Re: Secrets and cell phones.] References: <490E3BCF.2020109@echeque.com> <490FDC42.2090105@echeque.com> Message-ID: <20081208135447.551EE680C0@fleegle.mixmin.net> "James A. Donald" writes: > Of course, the old cypherpunk dream is a system with end to end > encryption, with individuals having the choice of holding their own > secrets, rather than these secrets being managed by some not very > trusted authority .... > We discovered, however, that most people do not want to manage their own > secrets .... This may help to explain the poor uptake of encrypted email. It would be useful to know exactly what has been discovered. Can you provide references? --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From william.allen.simpson at gmail.com Mon Dec 8 12:40:24 2008 From: william.allen.simpson at gmail.com (William Allen Simpson) Date: Mon, 08 Dec 2008 12:40:24 -0500 Subject: AES HDD encryption was XOR In-Reply-To: <015DFAEC-38ED-422A-8E08-B26DB8A3C751@lrw.com> References: <015DFAEC-38ED-422A-8E08-B26DB8A3C751@lrw.com> Message-ID: <493D5C08.5070005@gmail.com> Jerry Leichter wrote: > ... > accurately states that AES-128 is thought to be secure within the state > of current and expected cryptographic knowledge, it propagates the meme > of the "short key length of only 128 bits". A key length of 128 bits is > beyond any conceivable brute force attack - in and of itself the only > kind of attack for which key length, as such, has any meaning. But, as > always, "bigger *must* be better" - which just raises costs when it > leads people to use AES-256, but all too often opens the door for the > many snake-oil "super-secure" cipher systems using thousands of key bits. > Oh, say it ain't so! ;-) In the NBC TV episode of /Chuck/ a couple of weeks ago, the NSA cracked "a 512-bit AES cipher" on a flash drive "trying every possible key". "Could be hours, could be days." (Only minutes in TV land.) http://www.nbc.com/Chuck/video/episodes/#vid=838461 (Chuck Versus The Fat Lady, 4th segment, at 26:19) It's no wonder that folks are deluded, pop culture reinforces this. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Emanon.007 at Gmail.com Mon Dec 8 16:13:39 2008 From: Emanon.007 at Gmail.com (JOHN GALT) Date: Mon, 08 Dec 2008 16:13:39 -0500 Subject: Why the poor uptake of encrypted email? [Was: Re: Secrets and cell phones.] In-Reply-To: <20081208135447.551EE680C0@fleegle.mixmin.net> References: <490E3BCF.2020109@echeque.com> <490FDC42.2090105@echeque.com> <20081208135447.551EE680C0@fleegle.mixmin.net> Message-ID: <493D8E03.8040008@Gmail.com> StealthMonger wrote: > This may help to explain the poor uptake of encrypted email. It would > be useful to know exactly what has been discovered. Can you provide > references? The iconic Paper explaining this is "Why Johnny Can't Encrypt" available here: http://portal.acm.org/citation.cfm?id=1251435 JOHN ;) Timestamp: Monday 08 Dec 2008, 16:13 --500 (Eastern Standard Time) --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From david_koontz at xtra.co.nz Mon Dec 8 17:43:08 2008 From: david_koontz at xtra.co.nz (David G. Koontz) Date: Tue, 09 Dec 2008 11:43:08 +1300 Subject: Why the poor uptake of encrypted email? [Was: Re: Secrets and cell phones.] In-Reply-To: <493D8E03.8040008@Gmail.com> References: <490E3BCF.2020109@echeque.com> <490FDC42.2090105@echeque.com> <20081208135447.551EE680C0@fleegle.mixmin.net> <493D8E03.8040008@Gmail.com> Message-ID: <493DA2FC.1030301@xtra.co.nz> JOHN GALT wrote: > StealthMonger wrote: > >> This may help to explain the poor uptake of encrypted email. It would >> be useful to know exactly what has been discovered. Can you provide >> references? > > The iconic Paper explaining this is "Why Johnny Can't Encrypt" available > here: http://portal.acm.org/citation.cfm?id=1251435 > Available from the Authors: http://gaudior.net/alma/johnny.pdf http://www.cs.berkeley.edu/~tygar/papers/Why_Johnny_Cant_Encrypt/OReilly.pdf (For those of us not ACM members and not having Library or affliate access). There's also a power point presentation on the cognitive dissonance involved: http://www.nku.edu/~waldenj1/classes/2006/spring/csc593/presentations/Johnny.ppt And something done at Carnegie Mellon: http://cups.cs.cmu.edu/courses/ups-sp06/notes/060202LectureNotes.doc http://cups.cs.cmu.edu/courses/ups-sp06/slides/060202-user-tests2.ppt --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From frantz at pwpconsult.com Mon Dec 8 18:33:25 2008 From: frantz at pwpconsult.com (Bill Frantz) Date: Mon, 8 Dec 2008 15:33:25 -0800 Subject: Request for Input (RFI)--National Cyber Leap Year Message-ID: From: NATIONAL SCIENCE FOUNDATION Request for Input (RFI)--National Cyber Leap Year AGENCY: The National Coordination Office (NCO) for Networking Information Technology Research and Development (NITRD). ACTION: Request for Input (RFI). ----------------------------------------------------------------------- DATES: To be considered, submissions must be received by December 15, 2008. SUMMARY: This request is being issued to initiate the National Cyber Leap Year under the Comprehensive National Cybersecurity Initiative (CNCI). The goal of the National Cyber Leap Year is to identify the most promising game-changing ideas with the potential to reduce vulnerabilities to cyber exploitations by altering the cybersecurity landscape. This RFI is the first step in constructing a national research and development agenda in support of the CNCI. Multidisciplinary contributions from organizations with cybersecurity interests are especially encouraged. Cheers - Bill ------------------------------------------------------------------------- Bill Frantz | When it comes to the world | Periwinkle (408)356-8506 | around us, is there any choice | 16345 Englewood Ave www.pwpconsult.com | but to explore? - Lisa Randall | Los Gatos, CA 95032 --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jon at callas.org Mon Dec 8 23:53:18 2008 From: jon at callas.org (Jon Callas) Date: Mon, 8 Dec 2008 20:53:18 -0800 Subject: AES HDD encryption was XOR In-Reply-To: <493D5C08.5070005@gmail.com> References: <015DFAEC-38ED-422A-8E08-B26DB8A3C751@lrw.com> <493D5C08.5070005@gmail.com> Message-ID: <10A5217D-C6D5-4474-A932-B0044D5097A3@callas.org> > > > In the NBC TV episode of /Chuck/ a couple of weeks ago, the NSA > cracked > "a 512-bit AES cipher" on a flash drive "trying every possible key". > "Could be hours, could be days." (Only minutes in TV land.) > > http://www.nbc.com/Chuck/video/episodes/#vid=838461 > (Chuck Versus The Fat Lady, 4th segment, at 26:19) > > It's no wonder that folks are deluded, pop culture reinforces this. No, this is simple to do. What you is to start with a basic cracking engine. And then you add another one an hour later, and then an hour later add two, then add four the next hour and so on. If you assume that the first cracker can do 2^40 keys per second, then you're guaranteed to complete in 472 hours, which is only 20 days. And of course there's always the chance you'd do it in the first hour. For those who doubt being able to double the cracking power, Moore's law proves this is possible. QED. Jon --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From dirkx at webweaving.org Tue Dec 9 02:18:59 2008 From: dirkx at webweaving.org (Dirk-Willem van Gulik) Date: Tue, 9 Dec 2008 07:18:59 +0000 Subject: Why the poor uptake of encrypted email? [Was: Re: Secrets and cell phones.] In-Reply-To: <493DA2FC.1030301@xtra.co.nz> References: <490E3BCF.2020109@echeque.com> <490FDC42.2090105@echeque.com> <20081208135447.551EE680C0@fleegle.mixmin.net> <493D8E03.8040008@Gmail.com> <493DA2FC.1030301@xtra.co.nz> Message-ID: <41A0D639-A478-40B1-A74B-FC8032F4558D@webweaving.org> On 8 Dec 2008, at 22:43, David G. Koontz wrote: > JOHN GALT wrote: >> StealthMonger wrote: >> >>> This may help to explain the poor uptake of encrypted email. It >>> would >>> be useful to know exactly what has been discovered. Can you provide >>> references? >> >> The iconic Paper explaining this is "Why Johnny Can't Encrypt" >> available >> here: http://portal.acm.org/citation.cfm?id=1251435 >> > > Available from the Authors: > > http://gaudior.net/alma/johnny.pdf A later follow up (s/mime; more focus on the KDC): http://www.simson.net/clips/academic/2005.SOUPS.johnny2.pdf is IMHO more interesting - as it explores a more realistic hostile scenario, seems to pinpoint the core security issue better; and goes to some length to evaluate remedial steps. And it does show that a large swath of issues in PGP are indeed solvable/solved (now) Thanks, Dw --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Alec.Muffett at Sun.COM Tue Dec 9 06:27:58 2008 From: Alec.Muffett at Sun.COM (Alec Muffett) Date: Tue, 09 Dec 2008 11:27:58 +0000 Subject: Why the poor uptake of encrypted email? In-Reply-To: <493D8E03.8040008@Gmail.com> References: <490E3BCF.2020109@echeque.com> <490FDC42.2090105@echeque.com> <20081208135447.551EE680C0@fleegle.mixmin.net> <493D8E03.8040008@Gmail.com> Message-ID: <60ED3AED-3429-47D8-974C-06A884EBBCB8@sun.com> On 8 Dec 2008, at 21:13, JOHN GALT wrote: > The iconic Paper explaining this is "Why Johnny Can't Encrypt" > available here: http://portal.acm.org/citation.cfm?id=1251435 Orlbaq gur "Jul Wbuaal" cncre - sbphfvat hcba hfnovyvgl - V guvax gurer vf n uvture ceboyrz bs vagrebcrenovyvgl naq vasbezngvba-npprff ng cynl urer. Gurer pna or ab npprff gb lbhe znvy jvgubhg hfr bs n pyvrag vs lbh ner hfvat pelcgbtencul - rira EBG13 - naq guvf nybar vf n ovt ceboyrz, orpnhfr zrqvngrq npprff gb lbhe r-znvy vf *ernyyl* cnvashy. Sbe fbzr 15 lrnef V hfrq zu/azu/rkzu (ynggreyl jvgu srgpuznvy), gura zbirq gb Znvy.ncc, erpragyl gevrq Guhaqreoveq sbe n srj zbaguf, naq nz er-pbafvqrevat azu sbe ybat-grez nepuvivat bs r-znvy. V nyfb hfr zl vCbq, guerr yncgbcf jvgu inelvat fcrpvrf bs Havk, naq n 3T cubar gb npprff r-znvy. Bppnfvbanyyl V fgvyy pbcl fghss bhg bs /ine/znvy/. V jbhyq unir fhssrerq vzzrafryl jrer V erdhverq gb hfr n cnegvphyne pelcgb-ranoyrq pyvrag gb qrny jvgu zl r-znvy ng rnpu fgntr, be jrer V erdhverq gb hfr uvfgbevpny pelcgb-pyvragf gb npprff byqre znvyf. Nalbar jubfr pbyyrtr gurfvf vf va JbeqCresrpg ba n 5.25" sybccl ng gur onpx bs n pybfrg fbzrjurer, fubhyq haqrefgnaq guvf ceboyrz. Gb guvf qnl Cebwrpg Thgraoret hfrf syng NFPVV nf n ybjrfg pbzzba qrabzvangbe sbezng, naq fvzvyneyl V arrq zl r-znvy va gur fvzcyrfg sbez fb gung V pna terc vg, crey vg, dhbgr vg naq frnepu vg. Fb "jul unf rapelcgrq r-znvy snvyrq?" V fhfcrpg gung fgngvp qngn rapelcgvba eribygf ntnvafg gur angher bs crefbany pbzzhavpngvba naq gur arrqf bs crefbany vasbezngvba er-hfr. Sbe pbzcnevfba, pbafvqre gur pbairetrapr bs vafgnag zrffntvat naq r- znvy - gurl ner orpbzvat rire zber nyvxr, ohg gur sbezre zbfgyl eryvrf hcba raq gb raq genafcbeg frphevgl, bsgra nffhzvat gung gur cevinpl bs ybtf ng rvgure raq ner ng gur juvz bs *gung* hfre. Sbe fbzr ernfba guvf jbexf engure jryy; nf frphevgl trrxf jr pbzcynva nobhg vg, ohg gurer unir orra znal gvzrf jura Fxlcr unf onvyrq zr bhg bs gebhoyr jvgu vgf novyvgl gb qevyy guebhtu nyzbfg nalguvat naq cebivqr zr jvgu zrffntvat naq svyr-genafsre. Fvzvyneyl NVZ, Wnoore, TPung - nyy bs juvpu V unccvyl eha jvgu BGE - tvir zr arprffnel zbfgyl-frpher pbzzhavpngvba. Va gur jbeyq bs r-znvy gur ceboyrz vf gung gur raq-hfre vaurevgf n oybo bs qngn juvpu jnf rapelcgrq va beqre gb qrsraq gur zrffntr nf vg cnffrf ubc ol ubc bire gur fgber-naq-sbejneq FZGC-erynl (be HHPC?) r- znvy argjbex... ohg gur hfre vf yrsg gb qrny jvgu gur rssrpgf bs fbyivat gur *genafcbeg* frphevgl ceboyrz. Gur zbqry vf byq. Vg vf ohfgrq. Vg vf (gbqnl) jebat. Vg'f yvxr beqrevat ybofgre ovfdhr, naq univat n yvir ybofgre ghea hc ng lbhe gnoyr; jung lbh jnag vf va gurer - urnivyl nezberq - naq lrf lbh pna eraqre jung lbh erprvir vagb jung lbh npghnyyl qrfver; OHG vg'f zrffl naq lbh'er ernyyl fghpx hayrff lbh unir n zbhyv, n fnhprcna naq n fznyy CTC ubgcyngr ng unaq. Naq bs pbhefr lbh unir gb nepuvir pbcvrf bs gur ybofgre, abg gur fbhc. F/ZVZR naq vgf oergurera rkvfg gb fvzhygnarbhfyl nqqerff gur frphevgl bs qngn va zbgvba naq qngn ng erfg - ohg crbcyr qba'g jnag gur ynggre va gur sbez gung vg cebivqrf, orpnhfr vg vauvovgf vagrebcrenovyvgl naq hfnovyvgl ng n yriry nobir gur "guvf fbsgjner fhpxf" znggre... Naq vs gur qngn va zbgvba "raq gb raq" frphevgl vffhr vf orvat nqqerffrq ol guvatf yvxr VZ/BGE naq Fxlcr, gura creuncf "frpher" r- znvy jvyy fbba tb gur jnl bs Gryarg naq SGC? - nyrp ps: if you are stuck, try www.rot13.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Tue Dec 9 08:21:15 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Wed, 10 Dec 2008 02:21:15 +1300 Subject: The next time someone tells you "no one" would do something... Message-ID: "Perry E. Metzger" writes: >Summary: shops in Vietnam removing the baseband chip on iPhone motherboards >to reprogram and unlock them. >From someone who knows about these things: They got this a little wrong -- he's actually removing the stacked die NOR/PSRAM, erasing and reprogramming to a version that is vulnerable to the SIM proxy attack. It's not really any big deal. Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From ji at tla.org Tue Dec 9 11:15:21 2008 From: ji at tla.org (ji at tla.org) Date: Tue, 09 Dec 2008 11:15:21 -0500 Subject: Why the poor uptake of encrypted email? In-Reply-To: <60ED3AED-3429-47D8-974C-06A884EBBCB8@sun.com> References: <490E3BCF.2020109@echeque.com> <490FDC42.2090105@echeque.com> <20081208135447.551EE680C0@fleegle.mixmin.net> <493D8E03.8040008@Gmail.com> <60ED3AED-3429-47D8-974C-06A884EBBCB8@sun.com> Message-ID: <493E9999.3040804@tla.org> Alec Muffett wrote: > > > Naq bs pbhefr lbh unir gb nepuvir pbcvrf bs gur ybofgre, abg gur fbhc. If we still had finger-plans, this would have made its way into mine. What a great quote! /ji PS: For the rot13-impaired, it reads "And of course you have to archive copies of the lobster, not the soup." --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Victor.Duchovni at morganstanley.com Tue Dec 9 11:27:22 2008 From: Victor.Duchovni at morganstanley.com (Victor Duchovni) Date: Tue, 9 Dec 2008 11:27:22 -0500 Subject: AES HDD encryption was XOR In-Reply-To: <10A5217D-C6D5-4474-A932-B0044D5097A3@callas.org> References: <015DFAEC-38ED-422A-8E08-B26DB8A3C751@lrw.com> <493D5C08.5070005@gmail.com> <10A5217D-C6D5-4474-A932-B0044D5097A3@callas.org> Message-ID: <20081209162722.GU15574@hn305c2n2.ms.com> On Mon, Dec 08, 2008 at 08:53:18PM -0800, Jon Callas wrote: > >In the NBC TV episode of /Chuck/ a couple of weeks ago, the NSA > >cracked > >"a 512-bit AES cipher" on a flash drive "trying every possible key". > >"Could be hours, could be days." (Only minutes in TV land.) > > > >http://www.nbc.com/Chuck/video/episodes/#vid=838461 > >(Chuck Versus The Fat Lady, 4th segment, at 26:19) > > > >It's no wonder that folks are deluded, pop culture reinforces this. > > No, this is simple to do. > > What you is to start with a basic cracking engine. And then you add > another one an hour later, and then an hour later add two, then add > four the next hour and so on. > > If you assume that the first cracker can do 2^40 keys per second, then > you're guaranteed to complete in 472 hours, which is only 20 days. And > of course there's always the chance you'd do it in the first hour. > > For those who doubt being able to double the cracking power, Moore's > law proves this is possible. In the well-known Indian fable, the King was bankrupted by doubling grains of rice on a 64-square chess-board. Back in the USSR, every school-child learned this fable. Oh, and chess was pretty popular too... The fact that the fable refutes the *sustainability* of Moore's "law" seems to be under-appreciated on this side of the Iron-curtain. It is not a question of whether, but rather when the departure from Moore's "law" will take place. The computing power of the microprocessor is still under 32 powers of 2 from its inception, naive extrapolation to the next 32 powers of 2 is unwise. -- Viktor. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From dan at geer.org Tue Dec 9 22:15:56 2008 From: dan at geer.org (dan at geer.org) Date: Tue, 09 Dec 2008 22:15:56 -0500 Subject: AES HDD encryption was XOR In-Reply-To: Your message of "Tue, 09 Dec 2008 11:27:22 EST." <20081209162722.GU15574@hn305c2n2.ms.com> Message-ID: <20081210031557.0EAEF33E59@absinthe.tinho.net> Victor Duchovni writes: -+--------------------- | The computing power of the microprocessor is still under | 32 powers of 2 from its inception, naive extrapolation | to the next 32 powers of 2 is unwise. Well taken, indeed. But what I am myself interested in is the relationship of the three main up-curves, Moore's for CPU horsepower per unit of money, and its two un-named siblings for storage and for bandwidth. As I read the tea-leaves, storage is doubling at perhaps a 12-month rate while bandwidth is faster still. Yes, these are laboratory figures, but the lab is where the action is. This tells me, I think, that the future of computing is ever more data-rich but, at the same time, that that data-richness is eclipsed by ever-increasing data-mobility. Suppose the doubling times are 18/12/9; then a decade is two orders of magnitude for CPU, three for storage, and four for bandwith. I do not see how this does not radically alter the economically optimal computing infrastructure or, for that matter, the nature of the problems we here are collectively paid to solve. This is, of course, all irrelevant if and when the Singularity occurs. Kurzweil's guess of 2035 is 27 years away, which is to say 18 powers of two out, not 32. Perhaps relevant to this list, imagine that the research described here: http://technology.newscientist.com/channel/tech/mg20026805.500-cultured-robots- make-sweet-music-together--.html was of two programs creating not music but a cipher. Thinking out loud, --dan [ just for amusement, 2008 world production of wheat and rice would each cover 53 squares, with maize coming in at 51 squares ] --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jamesd at echeque.com Wed Dec 10 19:46:51 2008 From: jamesd at echeque.com (James A. Donald) Date: Thu, 11 Dec 2008 10:46:51 +1000 Subject: CPRNGs are still an issue. In-Reply-To: <20081205210001.GE13973@randombit.net> References: <87myfjvizc.fsf@snark.cb.piermont.com> <20081205210001.GE13973@randombit.net> Message-ID: <494062FB.8070604@echeque.com> Jack Lloyd wrote: > I think the situation is even worse outside of the > major projects (the OS kernels crypto implementations > and the main crypto libraries). I think outside of > those, nobody is even really looking. For instance - > > This afternoon I took a look at a C++ library called > JUCE which offers (among a pile of other things) RSA > and Blowfish. However it turns out that all of the RSA > keys are generated with an LCRNG (lrand48, basically) > seeded with the time in milliseconds. > http://www.randombit.net/bitbashing/security/juce_rng_vulnerability.html If one uses a higher resolution counter - sub microsecond - and times multiple disk accesses, one gets true physical randomness, since disk access times are effected by turbulence, which is physically true random. In Crypto Kong I added entropy at various times during program initialization from the 64 bit performance counter. Unfortunately the 64 bit performance counter is not guaranteed to be present, so I also obtained entropy from a wide variety of other sources - including the dreaded millisecond counter that has caused so many security holes. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jamesd at echeque.com Wed Dec 10 22:22:56 2008 From: jamesd at echeque.com (James A. Donald) Date: Thu, 11 Dec 2008 13:22:56 +1000 Subject: Why the poor uptake of encrypted email? [Was: Re: Secrets and cell phones.] In-Reply-To: <20081208135447.551EE680C0@fleegle.mixmin.net> References: <490E3BCF.2020109@echeque.com> <490FDC42.2090105@echeque.com> <20081208135447.551EE680C0@fleegle.mixmin.net> Message-ID: <49408790.8000602@echeque.com> -- > > We discovered, however, that most people do not want > > to manage their own secrets .... StealthMonger wrote: > This may help to explain the poor uptake of encrypted > email. There is very good uptake of skype and ssh, because those impose no or very little additional cost on the end user. Secret management is almost furtively sneaked in on the back of other tasks. > It would be useful to know exactly what has been > discovered. Can you provide references? It is informal knowledge. A field has references when it is a science, or attempting to become a science, or pretending to become a science. Security is not yet even an art. Cryptography is an art that dubiously pretends to science, but the weak point of course is interaction of humans with the cryptography, in which area we have not even the pretense of art. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From djm at mindrot.org Thu Dec 11 20:42:57 2008 From: djm at mindrot.org (Damien Miller) Date: Fri, 12 Dec 2008 12:42:57 +1100 (EST) Subject: CPRNGs are still an issue. In-Reply-To: <494062FB.8070604@echeque.com> References: <87myfjvizc.fsf@snark.cb.piermont.com> <20081205210001.GE13973@randombit.net> <494062FB.8070604@echeque.com> Message-ID: On Thu, 11 Dec 2008, James A. Donald wrote: > If one uses a higher resolution counter - sub > microsecond - and times multiple disk accesses, one gets > true physical randomness, since disk access times are > effected by turbulence, which is physically true > random. Until someone runs your software on a SSD instead of a HDD. Oops. -d --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Fri Dec 12 15:47:10 2008 From: perry at piermont.com (Perry E. Metzger) Date: Fri, 12 Dec 2008 15:47:10 -0500 Subject: [Forwarded] NIST Requests Comments Message-ID: <87fxkt3yup.fsf@snark.cb.piermont.com> From: "Elaine Barker" Subject: NIST Requests Comments To: Date: Wed, 10 Dec 2008 16:13:45 -0500 NIST requests comments on Draft SP 800-56B, Recommendation for Pair-Wise Key Establishment Using Integer Factorization Cryptography. This Recommendation provides the specifications of asymmetric-based key agreement and key transport schemes that are based on the Rivest Shamir Adleman (RSA) algorithm. The draft is available at http://www.csrc.nist.gov/publications/drafts/800-56B/Draft_SP800-56B_Dec2008 .pdf.. Please provide comments to ebarker at nist.gov by February 12, 2009, with "Comments on SP 800-56B" in the subject line. Please note that the public comments period for FIPS 186-3, the Digital Signature Standard, closes on Friday, December 12, 2008. The draft is available at http://www.csrc.nist.gov/publications/drafts/800-57-part3/Draft_SP800-57-Par t3_Recommendationforkeymanagement.pdf. Send any comments by the due date, as we intend to finalize this Standard as soon as possible. Please submit comments to ebarker at nist.gov with "Comments on Draft 186-3" in the subject line. Also, the public comment period on SP 800-102, Recommendation for Digital Signature Timeliness, closes on Friday, December 19, 2008. The draft is available at http://www.csrc.nist.gov/publications/drafts/800-102/Draft_SP800-102.pdf. Please provide comments to ebarker at nist.gov with "Comments on SP 800-102" in the subject line. Elaine --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From rah at shipwright.com Sun Dec 14 10:05:58 2008 From: rah at shipwright.com (R.A. Hettinga) Date: Sun, 14 Dec 2008 11:05:58 -0400 Subject: Fwd: [gsc] Trubanc Web Client Public Beta References: <8fbe874a0812140646q53efe422y31395d64ed2bc4bf@mail.gmail.com> Message-ID: <24CF9DDF-76C3-4E38-948C-9E44E0737554@shipwright.com> Begin forwarded message: From: "Bill St. Clair" Date: December 14, 2008 10:46:02 AM GMT-04:00 To: gold-silver-crypto at rayservers.com Subject: [gsc] Trubanc Web Client Public Beta I've been working since late July on Trubanc, an anonymous, digitally-signed vault and trading system. Inspired by Patrick Chkeroff's Loom.cc, but with digital signatures for security. The first version of a web client is available for beta testing. Check it out. Send me email to get a coupon with the usage tokens you need to register. Site: http://trubanc.com/ Announcement: http://billstclair.com/blog/trubanc_web_client_public_beta.html Client: http://trubanc.com/client/ Client docs: http://trubanc.com/client.html Technical stuff Protocol description: http://trubanc.com/plain-english.html Protocol and database details: http://trubanc.com/viewtext.php?file=doc/db.txt Client database details: http://trubanc.com/viewtext.php?file=doc/client.txt Source viewer: http://trubanc.com/viewtext.php Git archive: http://repo.or.cz/w/Trubanc.git It's open source. Please review for security if you're inclined and able. Mine is a US-based testing and development server only. Hopefully, servers with real assets, hosted in financial-privacy-respecting countries, will follow shortly, maybe run by some of you. -Bill --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From frantz at pwpconsult.com Sun Dec 14 18:40:10 2008 From: frantz at pwpconsult.com (Bill Frantz) Date: Sun, 14 Dec 2008 15:40:10 -0800 Subject: CPRNGs are still an issue. In-Reply-To: Message-ID: djm at mindrot.org (Damien Miller) on Friday, December 12, 2008 wrote: >On Thu, 11 Dec 2008, James A. Donald wrote: > >> If one uses a higher resolution counter - sub >> microsecond - and times multiple disk accesses, one gets >> true physical randomness, since disk access times are >> effected by turbulence, which is physically true >> random. > >Until someone runs your software on a SSD instead of a HDD. Oops. I find myself in this situation with a design I'm working on. I have an ARM chip, where each chip has two unique numbers burned into the chip for a total of 160 bits. I don't think I can really depend on these numbers being secret, since the chip designers thought they would be useful for DRM. It certainly will do no harm to hash them into the pool, and give them a zero entropy weight. The system will be built with SSD instead of HDD, so Damien's comment hits close to home. I hope to be able to use timing of external devices, the system communicates with a number of these, along with a microsecond counter to gather entropy from clock skew between the internal clock and the clocks in those devices. Unfortunately the system doesn't normally have a user, so UI timings will be few and far between. Short of building special random number generation hardware, does anyone have any suggestions for additional sources? Cheers - Bill --------------------------------------------------------------------------- Bill Frantz | Barack Hussein Obama, President of the United States. 408-356-8506 | Now we can return to being a partner with the rest of www.periwinkle.com | the world. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From smb at cs.columbia.edu Mon Dec 15 13:38:25 2008 From: smb at cs.columbia.edu (Steven M. Bellovin) Date: Mon, 15 Dec 2008 13:38:25 -0500 Subject: CPRNGs are still an issue. In-Reply-To: References: Message-ID: <20081215133825.3696732b@cs.columbia.edu> On Sun, 14 Dec 2008 15:40:10 -0800 Bill Frantz wrote: > Short of building special random number generation hardware, does > anyone have any suggestions for additional sources? > In my copious spare time, I've entertained thoughts of writing a FIPS 181 pronounceable password generator for the iPhone, using the accelerometer for randomness. The thought of shaking my phone to produce a password amuses me... --Steve Bellovin, http://www.cs.columbia.edu/~smb --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Mon Dec 15 14:09:11 2008 From: perry at piermont.com (Perry E. Metzger) Date: Mon, 15 Dec 2008 14:09:11 -0500 Subject: CPRNGs are still an issue. In-Reply-To: (Bill Frantz's message of "Sun\, 14 Dec 2008 15\:40\:10 -0800") References: Message-ID: <87ljuh1ciw.fsf@snark.cb.piermont.com> Bill Frantz writes: > I find myself in this situation with a design I'm working on. I > have an ARM chip, where each chip has two unique numbers burned > into the chip for a total of 160 bits. I don't think I can really > depend on these numbers being secret, since the chip designers > thought they would be useful for DRM. It certainly will do no harm > to hash them into the pool, and give them a zero entropy weight. > > The system will be built with SSD instead of HDD, so Damien's > comment hits close to home. I hope to be able to use timing of > external devices, the system communicates with a number of these, > along with a microsecond counter to gather entropy from clock skew > between the internal clock and the clocks in those devices. > > Unfortunately the system doesn't normally have a user, so UI > timings will be few and far between. > > Short of building special random number generation hardware, does > anyone have any suggestions for additional sources? Given the usual threat model for a device like this, I'd just store an AES key at the factory and use it in counter mode (or something very similar) as your PRNG. The rest of this message is justification for this design choice under a very specific threat model -- it might not be a good idea under a different threat model. I'm imagining that this is a device like a router, wireless base station, or similar, where you have (for most users) a fairly modest level of physical access based threat, and a very strong remote exploitation threat. (I presume if this wasn't a fairly inexpensive mass produced item, adding a hardware RNG wouldn't be a big deal. If this is an ATM or other expensive high risk device, why aren't you spending the money?) So reiterating, our threat model is largely remote attack -- if someone gets prolonged physical access to the device, they can read out the key, but with that much access they can also alter the firmware so who cares. Physical access means everything is lost anyway. Some remote attackers might gain complete control of the device and be able to read the key, but again, in such cases everything is likely lost anyway, because they could also alter the firmware. I also presume that for the device in question, the quality of the RNGs is important (or you wouldn't be thinking hard about it). So, why not go for the simplest, easiest and strongest source we know about, a block cipher in counter mode with a strong key? Yes, you can attempt to gather randomness at run time, but there are endless ways to screw that up -- can you *really* tell if your random numbers are "random enough?" -- and in a cheap device with low manufacturing tolerances, can you really rely on how consistent things like clock skew will be? Lets contrast that with AES in counter mode with a really good factory installed key. It is trivial to validate that your code works correctly (and do please do that!) It is straightforward to build a device to generate a stream of good AES key at the factory, and you need only make sure that one piece of hardware is working correctly, rather than all the cheap pieces of hardware you're churning out. One big issue might be that if you can't store the counter across device resets, you will need a new layer of indirection -- the obvious one is to generate a new AES key at boot, perhaps by CBCing the real time clock with the "permanent" AES key and use the new key in counter mode for that session. Again, here are the possible issues from the point of view of this threat model: 1) If someone remotely takes control of the device (via some sort of OS bug or the like), you're lost anyway, so a complicated algorithm using local randomness won't help. 2) If someone takes control of the device through physical access, you're lost anyway, see #1. 3) If neither 1 or 2 happen, a factory loaded key gives you, for practical purposes, an ideal CPRNG. It is low cost, as strong as AES itself, and easily validated. This does necessitate an extra manufacturing step in which the device gets "individualized", but you're setting the default password to a per-device string and having that taped to the top of the box anyway, right? If you're not, most of the boxes will be vulnerable anyway and there's no point... Perry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Joachim at Strombergson.com Mon Dec 15 14:28:22 2008 From: Joachim at Strombergson.com (=?ISO-8859-1?Q?Joachim_Str=F6mbergson?=) Date: Mon, 15 Dec 2008 20:28:22 +0100 Subject: CPRNGs are still an issue. In-Reply-To: References: <87myfjvizc.fsf@snark.cb.piermont.com> <20081205210001.GE13973@randombit.net> <494062FB.8070604@echeque.com> Message-ID: <4946AFD6.6000703@Strombergson.com> Aloha! Damien Miller wrote: > On Thu, 11 Dec 2008, James A. Donald wrote: > >> If one uses a higher resolution counter - sub >> microsecond - and times multiple disk accesses, one gets >> true physical randomness, since disk access times are >> effected by turbulence, which is physically true >> random. > > Until someone runs your software on a SSD instead of a HDD. Oops. That is a very good observation. I would bet loads of GM stocks that very few people realise that moving from 0ld sk00l HDD to SSD would affect their entropy sources. Does anybode have any idea if this has been discussed among OS Dev groups? One could probably do a similar comparison to the increasingly popular idea of building virtual LANs to connect your virtualized server running on the same physical host. Ethernet frame reception time variance as well as other real physical events should take a hit when moving into the virtualization domain. After all, replacing physical stuff with SW is the whole point of virtualization. Does anybody know what VMware, Parallels etc do to support entropy for sources like this, or is it basically a forgotten/skipped/ignored feature? -- Med v?nlig h?lsning, Yours Joachim Str?mbergson - Alltid i harmonisk sv?ngning. ======================================================================== Kryptoblog - IT-s?kerhet p? svenska http://www.strombergson.com/kryptoblog ======================================================================== --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From paul at ciphergoth.org Mon Dec 15 15:56:52 2008 From: paul at ciphergoth.org (Paul Crowley) Date: Mon, 15 Dec 2008 20:56:52 +0000 Subject: CPRNGs are still an issue. In-Reply-To: References: <87myfjvizc.fsf@snark.cb.piermont.com> <20081205210001.GE13973@randombit.net> <494062FB.8070604@echeque.com> Message-ID: <4946C494.8040708@ciphergoth.org> Damien Miller wrote: > On Thu, 11 Dec 2008, James A. Donald wrote: >> If one uses a higher resolution counter - sub >> microsecond - and times multiple disk accesses, one gets >> true physical randomness, since disk access times are >> effected by turbulence, which is physically true >> random. > > Until someone runs your software on a SSD instead of a HDD. Oops. How would software that attempted to measure the entropy of the incoming seek times behave when an SSD replaced an HDD? Would the reduction in measured entropy be proportional to the reduction in entropy from the attacker's point of view? -- __ \/ o\ Paul Crowley /\__/ www.ciphergoth.org --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From sandyinchina at gmail.com Mon Dec 15 19:30:34 2008 From: sandyinchina at gmail.com (Sandy Harris) Date: Tue, 16 Dec 2008 08:30:34 +0800 Subject: CPRNGs are still an issue. In-Reply-To: References: Message-ID: Bill Frantz wrote: > Short of building special random number generation hardware, does > anyone have any suggestions for additional sources? Any unused input device with noise can be used. Examples: Soundcard: http://www.av8n.com/turbid/ Camera: http://www.lavarnd.org/ If anything in the system changes a lot, like processes starting and stopping or files opening & closing, periodically hashing the tables that describe that state is useful. Is your threat model one-sided? e.g. for a home router, attacks from the Internet side might be more of a worry than attacks from the LAN. In that case, things like packet timing on the LAN side are unknown to the feared attacker. Also, if you are doing NAT, the port numbers on the LAN side since those are not sent outside. If the device does any crypto, mixing ciphertext into the pool is nowhere near ideal since you would not be encrypting unless some enemy might get the text and using things an an enemy can get is exactly what you do not want here. However, it is cheap and random-looking, and the volume is proportional to the amount of crypto done, so it might help in some cases. -- Sandy Harris, Quanzhou, Fujian, China --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Mon Dec 15 21:30:03 2008 From: leichter at lrw.com (Jerry Leichter) Date: Mon, 15 Dec 2008 21:30:03 -0500 Subject: CPRNGs are still an issue. In-Reply-To: <87ljuh1ciw.fsf@snark.cb.piermont.com> References: <87ljuh1ciw.fsf@snark.cb.piermont.com> Message-ID: <0A14C92A-72BB-4418-BE44-543DFF437A3E@lrw.com> On Dec 15, 2008, at 2:09 PM, Perry E. Metzger wrote: > Bill Frantz writes: >> I find myself in this situation with a design I'm working on. I >> have an ARM chip, where each chip has two unique numbers burned >> into the chip for a total of 160 bits. I don't think I can really >> depend on these numbers being secret, since the chip designers >> thought they would be useful for DRM. It certainly will do no harm >> to hash them into the pool, and give them a zero entropy weight. >> >> The system will be built with SSD instead of HDD, so Damien's >> comment hits close to home. I hope to be able to use timing of >> external devices, the system communicates with a number of these, >> along with a microsecond counter to gather entropy from clock skew >> between the internal clock and the clocks in those devices. >> >> Unfortunately the system doesn't normally have a user, so UI >> timings will be few and far between. >> >> Short of building special random number generation hardware, does >> anyone have any suggestions for additional sources? > > Given the usual threat model for a device like this, I'd just store an > AES key at the factory and use it in counter mode (or something very > similar) as your PRNG. Agree in general. Just one point: > One big issue might be that if you can't store the counter across > device resets, you will need a new layer of indirection -- the obvious > one is to generate a new AES key at boot, perhaps by CBCing the real > time clock with the "permanent" AES key and use the new key in counter > mode for that session. This strikes me as additional complication for little purpose. Keep the same AES key - in fact, it might even be useful to either store the generated key schedules or even to generate open code for the particular device-specific key. Take the real time clock's value for the upper 64 bits of a the input to AES, and use a counter starting at 0 for the lower 64 bits. As long as the precision of the RTC is sufficient that you can never have two boots with the same value, you're fine. (If you actually have a bigger RTC values you can throw away low-order bits.) Given that we *are* assuming an SSD, of course, you could presumably store values across boots - though there are advantages to the RTC, since it avoids having to have special cases for things like the initialization of the stored value and recovery if the SSD is replaced. -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From StealthMonger at nym.mixmin.net Mon Dec 15 22:06:04 2008 From: StealthMonger at nym.mixmin.net (StealthMonger) Date: Tue, 16 Dec 2008 03:06:04 +0000 (GMT) Subject: Why the poor uptake of encrypted email? References: <490E3BCF.2020109@echeque.com> <490FDC42.2090105@echeque.com> <20081208135447.551EE680C0@fleegle.mixmin.net> <493D8E03.8040008@Gmail.com> <60ED3AED-3429-47D8-974C-06A884EBBCB8@sun.com> Message-ID: <20081216030604.D341F815E9@fleegle.mixmin.net> Alec Muffett writes: > In the world of e-mail the problem is that the end-user inherits a > blob of data which was encrypted in order to defend the message as it > passes hop by hop over the store-and-forward SMTP-relay (or UUCP?) e- > mail network... but the user is left to deal with the effects of > solving the *transport* security problem. > The model is old. It is busted. It is (today) wrong. But the capabilities of encrypted email go beyond mere confidentiality and authentication. They include also strongly untraceable anonymity and pseudonymity. This is accomplished by using chains of anonymizing remailers, each having a large random latency for mixing with other traffic. Connection-based communication such as Skype and OTR do not provide this capability. The hop by hop store-and-forward email network does. This is not busted or wrong. It's essential. stealthmail: Scripts to hide whether you're doing email, or when, or with whom. mailto:stealthsuite at nym.mixmin.net -- StealthMonger --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From william.allen.simpson at gmail.com Tue Dec 16 07:19:29 2008 From: william.allen.simpson at gmail.com (William Allen Simpson) Date: Tue, 16 Dec 2008 07:19:29 -0500 Subject: CPRNGs are still an issue. In-Reply-To: <87ljuh1ciw.fsf@snark.cb.piermont.com> References: <87ljuh1ciw.fsf@snark.cb.piermont.com> Message-ID: <49479CD1.2090802@gmail.com> Perry E. Metzger wrote: [Snip admirably straightforward threat and requirements analysis] > Yes, you can attempt to gather randomness at run time, but there are > endless ways to screw that up -- can you *really* tell if your random > numbers are "random enough?" -- and in a cheap device with low > manufacturing tolerances, can you really rely on how consistent things > like clock skew will be? > Given the previous discussion on combining entropy, it shouldn't hurt, as long as it's testable during manufacture. > Lets contrast that with AES in counter mode with a really good factory > installed key. It is trivial to validate that your code works > correctly (and do please do that!) It is straightforward to build a > device to generate a stream of good AES key at the factory, and you > need only make sure that one piece of hardware is working correctly, > rather than all the cheap pieces of hardware you're churning out. > Ah, here's the rub. I like this testing requirement. The recent FreeBSD Security Advisory was merely a simple failure of initialization -- yet wasn't caught for the longest time, because it wasn't readily testable. > One big issue might be that if you can't store the counter across > device resets, you will need a new layer of indirection -- the obvious > one is to generate a new AES key at boot, perhaps by CBCing the real > time clock with the "permanent" AES key and use the new key in counter > mode for that session. > As long as the testing procedure validates the key and key+RTC separately. > This does necessitate an extra manufacturing step in which the device > gets "individualized", but you're setting the default password to a > per-device string and having that taped to the top of the box anyway, > right? If you're not, most of the boxes will be vulnerable anyway and > there's no point... > Recently, I was pleasantly surprised that the AT&T "U-verse" box had this! Unlike the AT&T "2wire" boxes we were installing just this summer. If we could only get Linksys, et alia on board.... --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From mheyman at gmail.com Tue Dec 16 10:41:57 2008 From: mheyman at gmail.com (mheyman at gmail.com) Date: Tue, 16 Dec 2008 10:41:57 -0500 Subject: CPRNGs are still an issue. In-Reply-To: References: <87myfjvizc.fsf@snark.cb.piermont.com> <20081205210001.GE13973@randombit.net> <494062FB.8070604@echeque.com> Message-ID: <5c8fcb9c0812160741s68ec27e3t5fe5809ec3e2ef@mail.gmail.com> On Thu, Dec 11, 2008 at 8:42 PM, Damien Miller wrote: > On Thu, 11 Dec 2008, James A. Donald wrote: > >> If one uses a higher resolution counter - sub >> microsecond - and times multiple disk accesses, one gets >> true physical randomness, since disk access times are >> effected by turbulence, which is physically true >> random. > > Until someone runs your software on a SSD instead of a HDD. Oops. > Before we give up on using drive timings, does anyone have evidence to verify this assertion? The reviews I have seen using tools like HD Tune and HD Tach seem to show timing noise reading and writing SSDs. I don't know where the noise comes from - it is probably not turbulence - but it may be random enough that a long series of tests, say for a second or so (don't forget, these drives are fast), could provide a nice pool of unguessable bits. -Michael Heyman --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From simon at josefsson.org Tue Dec 16 12:10:03 2008 From: simon at josefsson.org (Simon Josefsson) Date: Tue, 16 Dec 2008 18:10:03 +0100 Subject: CPRNGs are still an issue. In-Reply-To: <87ljuh1ciw.fsf@snark.cb.piermont.com> (Perry E. Metzger's message of "Mon, 15 Dec 2008 14:09:11 -0500") References: <87ljuh1ciw.fsf@snark.cb.piermont.com> Message-ID: <87fxko82s4.fsf@mocca.josefsson.org> "Perry E. Metzger" writes: > This does necessitate an extra manufacturing step in which the device > gets "individualized", but you're setting the default password to a > per-device string and having that taped to the top of the box anyway, > right? If you're not, most of the boxes will be vulnerable anyway and > there's no point... Not quite, you can optimize that. Some software (e.g., OpenWRT) forces users to access the device via (local) ethernet before wireless is enabled. This enables security aware people to configure wireless security, and avoid a period of insecure wireless network. Incidentally, this approach also enables devices to collect entropy from the user session. That could be useful when generating SSH private keys. (Although I believe, unfortunately, OpenWRT generates the SSH key directly after the first boot. It seems unclear what kind of entropy it can hope to have at that point?) I agree with your recommendation to write an AES key to devices at manufacturing time. However it always comes with costs, including: 1) The cost of improving the manufacture process sufficiently well to make it unlikely that compromised AES keys are set in the factory. 2) The cost of individualizing each device. Each of these costs can be high enough that alternative approaches can be cost-effective. (*) My impression is that the cost and risks in 1) are often under-estimated, to the point where they can become a relatively cheap attack vector. /Simon (*) In case anyone doubts how the YubiKey works, which I'm affiliated with, we took the costs in 1) and 2). But they are large costs. We considered to require users to go through an initial configuration step to set the AES key themselves. However, the usability cost in that is probably higher than 1) and 2). --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Nicolas.Williams at sun.com Tue Dec 16 13:08:00 2008 From: Nicolas.Williams at sun.com (Nicolas Williams) Date: Tue, 16 Dec 2008 12:08:00 -0600 Subject: Why the poor uptake of encrypted email? In-Reply-To: <20081216030604.D341F815E9@fleegle.mixmin.net> References: <490E3BCF.2020109@echeque.com> <490FDC42.2090105@echeque.com> <20081208135447.551EE680C0@fleegle.mixmin.net> <493D8E03.8040008@Gmail.com> <60ED3AED-3429-47D8-974C-06A884EBBCB8@sun.com> <20081216030604.D341F815E9@fleegle.mixmin.net> Message-ID: <20081216180800.GY2463@Sun.COM> On Tue, Dec 16, 2008 at 03:06:04AM +0000, StealthMonger wrote: > Alec Muffett writes: > > In the world of e-mail the problem is that the end-user inherits a > > blob of data which was encrypted in order to defend the message as it > > passes hop by hop over the store-and-forward SMTP-relay (or UUCP?) e- > > mail network... but the user is left to deal with the effects of > > solving the *transport* security problem. > > > The model is old. It is busted. It is (today) wrong. > > But the capabilities of encrypted email go beyond mere confidentiality > and authentication. They include also strongly untraceable anonymity > and pseudonymity. This is accomplished by using chains of anonymizing > remailers, each having a large random latency for mixing with other > traffic. The subject is "[w]hy the poor uptake of encrypted email?". Alec's answer shows that "encrypted email" when at rest is not easy to use. Providing a suitable e-mail security solution for the masses strikes me as more important than providing anonymity to the few people who want or need it. Not that you can't have both, unless you want everyone to use PGP or S/MIME as a way to hide anonymized traffic from non-anonymized traffic. Nico -- --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From clj at jacksons.net Tue Dec 16 16:22:08 2008 From: clj at jacksons.net (Charles Jackson) Date: Tue, 16 Dec 2008 16:22:08 -0500 Subject: CPRNGs are still an issue. In-Reply-To: <5c8fcb9c0812160741s68ec27e3t5fe5809ec3e2ef@mail.gmail.com> Message-ID: <20081216162210.GA55515@mail19j.g19.rapidsite.net> -Michael Heyman Wrote: Before we give up on using drive timings [as an entropy source], does anyone have evidence to verify this assertion [that SSD drives will have much less variation in read/write timing]? The reviews I have seen using tools like HD Tune and HD Tach seem to show timing noise reading and writing SSDs. I don't know where the noise comes from - it is probably not turbulence - but it may be random enough that a long series of tests, say for a second or so (don't forget, these drives are fast), could provide a nice pool of unguessable bits. ====================== I probably should not be commenting, not being a real device guy. But, variations in temperature and time could be expected to change SSD timing. Temperature changes will probably change the power supply voltages and shift some of the thresholds in the devices. Oscillators will drift with changes in temperature and voltage. Battery voltages tend to go down over time and up with temperature. In addition, in some systems the clock frequency is purposely swept over something like a 0.1% range in order to smooth out the RF emissions from the device. (This can give a 20 or 30 dB reduction in peak emissions at a given frequency. There is, of course, no change in total emissions.) Combine all of these factors, and one can envision the SSD cycles taking varying numbers of system clock ticks and consequently the low order bits of a counter driven by a system clock would be "random." However, one would have to test this kind of entropy source carefully and would have to keep track of any changes in the manufacturing processes for both the SSD and the processor chip. Is there anyone out there who knows about device timing that can say more? Chuck Jackson --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Tue Dec 16 17:15:55 2008 From: leichter at lrw.com (Jerry Leichter) Date: Tue, 16 Dec 2008 17:15:55 -0500 Subject: CPRNGs are still an issue. In-Reply-To: <87fxko82s4.fsf@mocca.josefsson.org> References: <87ljuh1ciw.fsf@snark.cb.piermont.com> <87fxko82s4.fsf@mocca.josefsson.org> Message-ID: <8940C5B4-CFAF-4412-A5E3-587D7FD4A3DC@lrw.com> On Dec 16, 2008, at 12:10 PM, Simon Josefsson wrote: > ...I agree with your recommendation to write an AES key to devices at > manufacturing time. However it always comes with costs, including: > > 1) The cost of improving the manufacture process sufficiently well to > make it unlikely that compromised AES keys are set in the factory. > > 2) The cost of individualizing each device. > > Each of these costs can be high enough that alternative approaches can > be cost-effective. (*) My impression is that the cost and risks in 1) > are often under-estimated, to the point where they can become a > relatively cheap attack vector. > > /Simon > > (*) In case anyone doubts how the YubiKey works, which I'm affiliated > with, we took the costs in 1) and 2). But they are large costs. We > considered to require users to go through an initial configuration > step > to set the AES key themselves. However, the usability cost in that is > probably higher than 1) and 2). Configuration at installation seems to be worth considering. It's a matter of making that as easy as possible. Asking users for the AES key is not easy - people aren't good at generating, or even entering, random 128-bit strings. However, you might be able to get them to push a reset button - or even connect and disconnect the device - a number of times and use the timing as a source of entropy. For something like a network interface, it might be reasonable to assume that an attacker is unlikely to be present at exactly the time of initial configuration, so simply pulling bits off the wire/out of the air during initialization isn't unreasonable. In general, given the assumption that it's easier to keep the initialization environment reasonably secure than it is the general fielded environment, and that you can afford much more time during initial configuration than is likely during normal operation, all kinds of things that are marginal if used operationally may be workable for initial configuration. (Also, of course, operational use may be unattended, but in most cases you can assume that initial configuration is attended.) -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Tue Dec 16 17:23:20 2008 From: leichter at lrw.com (Jerry Leichter) Date: Tue, 16 Dec 2008 17:23:20 -0500 Subject: CPRNGs are still an issue. In-Reply-To: <4946AFD6.6000703@Strombergson.com> References: <87myfjvizc.fsf@snark.cb.piermont.com> <20081205210001.GE13973@randombit.net> <494062FB.8070604@echeque.com> <4946AFD6.6000703@Strombergson.com> Message-ID: <34A88F67-CBAF-4A04-84A8-88463339FD42@lrw.com> On Dec 15, 2008, at 2:28 PM, Joachim Str?mbergson wrote: > ...One could probably do a similar comparison to the increasingly > popular > idea of building virtual LANs to connect your virtualized server > running > on the same physical host. Ethernet frame reception time variance as > well as other real physical events should take a hit when moving into > the virtualization domain. After all, replacing physical stuff with SW > is the whole point of virtualization. > > Does anybody know what VMware, Parallels etc do to support entropy for > sources like this, or is it basically a forgotten/skipped/ignored > feature? They don't seem to be doing very much yet - and the problems are very real. All sorts of algorithms assume that an instance of a running OS has some unique features associated with it, and at the least (a) those will be fairly stable over time; (b) there will never be two instances at the same time. In different contexts and uses, virtualization breaks both of these. The virtual image captures everything there is to say about the running OS and all its processes. Nothing stops you from running multiple copies at once. Nothing stops you from saving an image, so replaying the same machine state repeatedly. Conversely, if something in the underlying hardware is made available to provide uniqueness of some kind, the ability to stop the VM and move it elsewhere - typically between almost any two instructions - means that you can't rely on this uniqueness except in very constrained ways. People move to virtualization with the idea that a virtual machine is just like a physical machine, only more flexible. Well - it's either "just like", or it's "more flexible"! It can't be both. In fact, "more flexible" is what sells virtualization, and the effects can be very subtle and far-reaching. We don't really understand them. -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From djm at mindrot.org Tue Dec 16 17:42:38 2008 From: djm at mindrot.org (Damien Miller) Date: Wed, 17 Dec 2008 09:42:38 +1100 (EST) Subject: CPRNGs are still an issue. In-Reply-To: <5c8fcb9c0812160741s68ec27e3t5fe5809ec3e2ef@mail.gmail.com> References: <87myfjvizc.fsf@snark.cb.piermont.com> <20081205210001.GE13973@randombit.net> <494062FB.8070604@echeque.com> <5c8fcb9c0812160741s68ec27e3t5fe5809ec3e2ef@mail.gmail.com> Message-ID: On Tue, 16 Dec 2008, mheyman at gmail.com wrote: > On Thu, Dec 11, 2008 at 8:42 PM, Damien Miller wrote: > > On Thu, 11 Dec 2008, James A. Donald wrote: > > > >> If one uses a higher resolution counter - sub > >> microsecond - and times multiple disk accesses, one gets > >> true physical randomness, since disk access times are > >> effected by turbulence, which is physically true > >> random. > > > > Until someone runs your software on a SSD instead of a HDD. Oops. > > > Before we give up on using drive timings, does anyone have evidence to > verify this assertion? The reviews I have seen using tools like HD > Tune and HD Tach seem to show timing noise reading and writing SSDs. I > don't know where the noise comes from - it is probably not turbulence > - but it may be random enough that a long series of tests, say > for a second or so (don't forget, these drives are fast), could > provide a nice pool of unguessable bits. I think you have it quite backwards - in the absence of good evidence that transaction timings on SSDs are dependent on some physically unpredictable process (air turbulence, shot noise, etc.) then they should not be considered suitable for cryptographic use, no matter how "random looking" they are. -d --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Tue Dec 16 22:54:14 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Wed, 17 Dec 2008 16:54:14 +1300 Subject: Why the poor uptake of encrypted email? In-Reply-To: <20081216030604.D341F815E9@fleegle.mixmin.net> Message-ID: StealthMonger writes: >Connection-based communication such as Skype and OTR do not provide this >capability. The hop by hop store-and-forward email network does. This is not >busted or wrong. It's essential. ... to a statistically irrelevant bunch of geeks. Watch Skype deploy a not- terribly-anonymous (to the people running the Skype servers) communications system. Watch the entire world not care, and flock to it in droves. Heck, the entire business model for social networking, one of the biggest Internet phenomena in the last few years, is built around users being as non-anonymous as possible. So Alec's argument still stands. It's pretty hard selling anonymity and privacy to people who think nothing of sending Twitter updates of everything they do all day long to anyone prepared to listen and posting videos of their drunken antics to MyFace. Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Tue Dec 16 23:07:22 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Wed, 17 Dec 2008 17:07:22 +1300 Subject: CPRNGs are still an issue. In-Reply-To: Message-ID: Bill Frantz writes: >I find myself in this situation with a design I'm working on. I have an ARM >chip, where each chip has two unique numbers burned into the chip for a total >of 160 bits. I don't think I can really depend on these numbers being secret, >since the chip designers thought they would be useful for DRM. It certainly >will do no harm to hash them into the pool, and give them a zero entropy >weight. The ARM family are particularly problematic for entropy gathering because anything that'd help you is (a) locked away so it can't be accessed and (b) not easily ascertainable at runtime. For the x86 equivalent you just do a CPUID (and you can in turn check whether the architecture supports that before you use it if you're on an old-enough system) and from there can execute further instructions to determine hardware capabilities and read/use them via MSRs as required. For the ARM the equivalent is a CP15 read (and then further accesses to the ARM equivalent of x86 MSRs), e.g.: asm volatile ( "mrc p15, 0, r0, c0, c0, 0\n\t" "str r0, %0\n" : "=m"(processorID) : : "cc", "r0"); but this is only accessible in supervisor mode so for any normal app it's an instant illegal instruction fault. Furthermore, even in supervisor mode there's no way to bootstrap your way up as you can for x86 and tap the amazing store of hard-to-predict information that most ARM cores make available because each ARM implementation adds its own oddball registers and the only way to know whether they're present and usable is if you know in advance which specific core and stepping you're working with. In other words you can't get there from here and even if you could you wouldn't know what to do when you got there. So everything you need is there, you just can't use it. Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Tue Dec 16 23:14:49 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Wed, 17 Dec 2008 17:14:49 +1300 Subject: CPRNGs are still an issue. In-Reply-To: <4946AFD6.6000703@Strombergson.com> Message-ID: =?ISO-8859-1?Q?Joachim_Str=F6mbergson?= writes: >Damien Miller wrote: >> Until someone runs your software on a SSD instead of a HDD. Oops. > >That is a very good observation. I would bet loads of GM stocks that very few >people realise that moving from 0ld sk00l HDD to SSD would affect their >entropy sources. This is only going to be a problem if your RNG is... well, to be blunt, stupid enough to rely entirely on HDD timings as an entropy source. I would hope that any well-designed entropy polling system would use as many sources as possible for the simple reason that otherwise a single failure can destroy the security of your entire system. In other words an entropy polling mechanism should see the change from HDD to SSD as nothing more than a small glitch for its fault-tolerant front-end to accomodate and continue as before. Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Wed Dec 17 13:02:58 2008 From: leichter at lrw.com (Jerry Leichter) Date: Wed, 17 Dec 2008 13:02:58 -0500 Subject: CPRNGs are still an issue. In-Reply-To: <20081216162210.GA55515@mail19j.g19.rapidsite.net> References: <20081216162210.GA55515@mail19j.g19.rapidsite.net> Message-ID: <886D73C1-B06B-402E-9D6A-5591F2DEEBBC@lrw.com> On Dec 16, 2008, at 4:22 PM, Charles Jackson wrote: > I probably should not be commenting, not being a real device guy. > But, > variations in temperature and time could be expected to change SSD > timing. > Temperature changes will probably change the power supply voltages > and shift > some of the thresholds in the devices. Oscillators will drift with > changes > in temperature and voltage. Battery voltages tend to go down over > time and > up with temperature. In addition, in some systems the clock > frequency is > purposely swept over something like a 0.1% range in order to smooth > out the > RF emissions from the device. (This can give a 20 or 30 dB > reduction in > peak emissions at a given frequency. There is, of course, no change > in > total emissions.) > > Combine all of these factors, and one can envision the SSD cycles > taking > varying numbers of system clock ticks and consequently the low order > bits of > a counter driven by a system clock would be "random." However, one > would > have to test this kind of entropy source carefully and would have to > keep > track of any changes in the manufacturing processes for both the SSD > and the > processor chip. > > Is there anyone out there who knows about device timing that can say > more? I'm not a device guy either, but I've had reason to learn a bit more about SSD's than is widely understood. SSD's are complicated devices. Deep down, the characteristics of the underlying storage are very, very different from those of a disk. Layers of sophisticated hardware/firmware intervene to make a solid- state memory look like a disk. To take a very simple example: The smallest unit you can read from/write to solid state memory is several times the size of a disk block. So to allow software to continue to read and write individual "disk blocks", you have to do a layer of buffering and blocking/deblocking. A much more obscure one is that the throughput of the memory is maximum when you are doing either all reads or all writes; anywhere in between slows it down. So higher- performance SSD's play games with what is essentially double buffering: Do all reads against a segment of memory, while sending writes to a separate copy as well as a look-aside buffer to satisfy reads to data that was recently written. Switch the roles of the two segments "at some point". Put all this together and the performance visible even at the OS driver level will certainly show all kinds of variation. However, just because there's variation doesn't mean there's entropy to be had! You'd need to have a sufficiently detailed model of the inner workings of the SSD to be confident that the variations aren't predictable. However, you're not likely to get that: Getting good performance out of SSD's is a black art. The techniques are highly proprietary right now, because they are what make an SSD competitive. Further, of course, anything you did learn would likely apply to one manufacturing run of one model - just about anything could change at any time. So ... use with extreme caution. Estimate conservatively. Mix any apparent entropy you get with other sources. -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Wed Dec 17 15:02:54 2008 From: perry at piermont.com (Perry E. Metzger) Date: Wed, 17 Dec 2008 15:02:54 -0500 Subject: CPRNGs are still an issue. In-Reply-To: <886D73C1-B06B-402E-9D6A-5591F2DEEBBC@lrw.com> (Jerry Leichter's message of "Wed\, 17 Dec 2008 13\:02\:58 -0500") References: <20081216162210.GA55515@mail19j.g19.rapidsite.net> <886D73C1-B06B-402E-9D6A-5591F2DEEBBC@lrw.com> Message-ID: <87ej06in81.fsf@snark.cb.piermont.com> Jerry Leichter writes: > SSD's are complicated devices. Complexity makes it hard to understand the security characteristics of relying on the timing of the devices. > So ... use with extreme caution. Estimate conservatively. Mix any > apparent entropy you get with other sources. The longer I'm in this field, the more the phrase "use with extreme caution" seems to mean "don't use" to me. More and more, I think that if you don't have a really good way to test and get assurance about a component of your security architecture, you should leave that component out. That's one reason I recommended "just use AES in counter mode" as the best way to generate random numbers in a low cost embedded context -- it is easy to get assurance simply by running AES validation tests, and you confine your risk to one easily examined part of the process, the key generator in the factory. I'm reminded of Tony Hoare's old saw about systems: "There are two ways of constructing a software design: One way is to make it so simple there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies." Perry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From smb at cs.columbia.edu Wed Dec 17 15:18:36 2008 From: smb at cs.columbia.edu (Steven M. Bellovin) Date: Wed, 17 Dec 2008 15:18:36 -0500 Subject: CPRNGs are still an issue. In-Reply-To: <886D73C1-B06B-402E-9D6A-5591F2DEEBBC@lrw.com> References: <20081216162210.GA55515@mail19j.g19.rapidsite.net> <886D73C1-B06B-402E-9D6A-5591F2DEEBBC@lrw.com> Message-ID: <20081217151836.52f9b963@cs.columbia.edu> On Wed, 17 Dec 2008 13:02:58 -0500 Jerry Leichter wrote: > On Dec 16, 2008, at 4:22 PM, Charles Jackson wrote: > > I probably should not be commenting, not being a real device guy. > > But, > > variations in temperature and time could be expected to change SSD > > timing. > > Temperature changes will probably change the power supply voltages > > and shift > > some of the thresholds in the devices. Oscillators will drift > > with changes > > in temperature and voltage. Battery voltages tend to go down over > > time and > > up with temperature. In addition, in some systems the clock > > frequency is > > purposely swept over something like a 0.1% range in order to > > smooth out the > > RF emissions from the device. (This can give a 20 or 30 dB > > reduction in > > peak emissions at a given frequency. There is, of course, no > > change in > > total emissions.) > > > > Combine all of these factors, and one can envision the SSD cycles > > taking > > varying numbers of system clock ticks and consequently the low > > order bits of > > a counter driven by a system clock would be "random." However, > > one would > > have to test this kind of entropy source carefully and would have > > to keep > > track of any changes in the manufacturing processes for both the > > SSD and the > > processor chip. > > > > Is there anyone out there who knows about device timing that can > > say more? > I'm not a device guy either, but I've had reason to learn a bit more > about SSD's than is widely understood. > > SSD's are complicated devices. Deep down, the characteristics of > the underlying storage are very, very different from those of a > disk. Layers of sophisticated hardware/firmware intervene to make a > solid- state memory look like a disk. To take a very simple > example: The smallest unit you can read from/write to solid state > memory is several times the size of a disk block. So to allow > software to continue to read and write individual "disk blocks", you > have to do a layer of buffering and blocking/deblocking. A much more > obscure one is that the throughput of the memory is maximum when you > are doing either all reads or all writes; anywhere in between slows > it down. So higher- performance SSD's play games with what is > essentially double buffering: Do all reads against a segment of > memory, while sending writes to a separate copy as well as a > look-aside buffer to satisfy reads to data that was recently > written. Switch the roles of the two segments "at some point". > But what is the *physical basis* for the randomness? http://www.springerlink.com/content/gkbmm9nuy07kerww/ (full text at http://world.std.com/~dtd/random/forward.pdf) explains why hard drive timings are considered random; are their comparable phenomena for SSDs? (Of course -- that's a '94 paper; hard drive technology has changed a lot. Would they still get the same results?) --Steve Bellovin, http://www.cs.columbia.edu/~smb --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Wed Dec 17 15:18:57 2008 From: perry at piermont.com (Perry E. Metzger) Date: Wed, 17 Dec 2008 15:18:57 -0500 Subject: CPRNGs and assurance... Message-ID: <87abauimha.fsf@snark.cb.piermont.com> I'd like to expand on a point I made a little while ago about the "just throw everything at it, and hope the good sources drown out the bad ones" entropy collection strategy. The biggest problem in security systems isn't whether you're using 128 bit or 256 bit AES keys or similar trivia. The biggest problem is the limited ability of the human mind to understand a design. This leads to design bugs and implementation bugs. Design and implementation flaws are the biggest failure mode for security systems, not whether it will take all the energy in our galaxy vs. the entire visible universe to brute force a key. So, if you're designing any security system, the biggest thing on your mind has to be how to validate that the system is secure. That requires ways to know your design was correct, and ways to know you actually implemented your design correctly. "Just throw the kitchen sink at it" impedes both. As just one trivial example, say that your code is buggy and instead of throwing in eight entropy sources, you're really throwing out #1-#7 and only using #8, perhaps because of some overwriting that you thought was an xor or some similar stupidity. How are you going to notice this on the other end of your SHA-256 pool mashing? Will you look at the output by hand and magically see that the numbers aren't as random as they should be? Probably not. Lets then say #8 turned out to be a less than random source. Is this sort of stupid move theoretical? Ask the guys at Debian how theoretical it is. At the very least, you need to have a very good set of tests attached to your software that get run every time any sort of change (no matter how trivial) is made to it, and even that is not necessarily enough. If you're doing all of this properly (and few people do it properly), you need to have a good way of knowing that your system works right. This is especially hard to do properly at the best of times -- when the product of your algorithm is supposed to look like nonsense, it becomes especially important that you have a well understood design that has turned into a well validated implementation. "Throw the kitchen sink at it" often ends up kicking up enough dust that you can't distinguish something good from something bad. That can be a problem. Always bear in mind that security systems fail because of people, and that as a security system designer or implementor, you are the first and most likely point of failure in the entire process. Perry -- Perry E. Metzger perry at piermont.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From david_koontz at xtra.co.nz Wed Dec 17 15:19:02 2008 From: david_koontz at xtra.co.nz (David G. Koontz) Date: Thu, 18 Dec 2008 09:19:02 +1300 Subject: CPRNGs are still an issue. In-Reply-To: <20081216162210.GA55515@mail19j.g19.rapidsite.net> References: <20081216162210.GA55515@mail19j.g19.rapidsite.net> Message-ID: <49495EB6.5050300@xtra.co.nz> Charles Jackson wrote: > > I probably should not be commenting, not being a real device guy. But, > variations in temperature and time could be expected to change SSD timing. > Temperature changes will probably change the power supply voltages and shift > some of the thresholds in the devices. Oscillators will drift with changes > in temperature and voltage. Battery voltages tend to go down over time and > up with temperature. In addition, in some systems the clock frequency is > purposely swept over something like a 0.1% range in order to smooth out the > RF emissions from the device. (This can give a 20 or 30 dB reduction in > peak emissions at a given frequency. There is, of course, no change in > total emissions.) > > Combine all of these factors, and one can envision the SSD cycles taking > varying numbers of system clock ticks and consequently the low order bits of > a counter driven by a system clock would be "random." However, one would > have to test this kind of entropy source carefully and would have to keep > track of any changes in the manufacturing processes for both the SSD and the > processor chip. > > Is there anyone out there who knows about device timing that can say more? As a chip wonk, without addressing SSD operational timing directly how much a clock can change is dependent on the accuracy over a period of time sufficient to be off by one or more clocks, implying long counter chain timing - slow entropy accumulation at best. Worse still, the error value when compared to an outside clock source would tend to be at a fixed rate, although you see minor variations based on temperature and voltage. The same things that make power analysis a valid attack also influence temperature and voltage. I'd expect you could manipulate second order effects by how the system is operated. Other than effects on frequency, temperature and voltage affect switching thresholds which can cause variability in delay in particular when crossing clock domains. These threshold delays can be strongly correlated. Dithered clocks are intended to only fool spectrum analyzers measuring peak power and are not based on entropy or second order effects. A PLL feedback pattern is typically masked by applying the output of a counter and look up table or combinatoric circuit. There is no disparity generated long term in clock high and low bauds, the counter makes the dithering periodic. Think short PRNG cyclically applying clock edge offsets and hitting all the positive and negative offsets equally. The two don't strike me as sufficient to construct an adequate ergodic system. Using a HDD as an 'entropy' source is based on operating an ergodic system where the preceding state is not readily predictable. The variability is based in part on sectors and cylinders, angular velocity, disk position and head position. All that variability can collapse in an SSD. Trying to rely on remaining secondary effects for loss of predictability could be countered by eliminating or reducing them. We design systems to not be readily influenced by secondary effects in the first place. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Nicolas.Williams at sun.com Wed Dec 17 15:35:26 2008 From: Nicolas.Williams at sun.com (Nicolas Williams) Date: Wed, 17 Dec 2008 14:35:26 -0600 Subject: CPRNGs are still an issue. In-Reply-To: <87ej06in81.fsf@snark.cb.piermont.com> References: <20081216162210.GA55515@mail19j.g19.rapidsite.net> <886D73C1-B06B-402E-9D6A-5591F2DEEBBC@lrw.com> <87ej06in81.fsf@snark.cb.piermont.com> Message-ID: <20081217203526.GI12468@Sun.COM> On Wed, Dec 17, 2008 at 03:02:54PM -0500, Perry E. Metzger wrote: > The longer I'm in this field, the more the phrase "use with extreme > caution" seems to mean "don't use" to me. More and more, I think that > if you don't have a really good way to test and get assurance about a > component of your security architecture, you should leave that > component out. But do beware of becoming something of a luddite w.r.t. entropy sources. If you can mix seeds into your entropy pool without destroying the entropy of your pool (and we agree that you can) while adding some of any entropy in your seeds (and we agree that you can), then why not? Yes, I saw your other message. Testing entropy pools and sources is hard if you want real entropy. One way to test the pool and its mixing function is to add and use a hook for supplying test vectors instead of real entropy for each source. But to test the operational system, if it has real entropy sources, is harder. So you might as well add in a fixed, manufacture-time seed + time/counter-based salting, as you suggested. And you'll still want to test the result, but you can only apply statistical analysis to the outputs to decide if they're random-*looking*. Having no entropy sources is not a good option for systems where the threat model requires good entropy sources (e.g., if you want PFS to prevent compromise of an end-point from compromising pre-compromise communications). IMO it's not wise to trivially reject an "all of the above" approach to entropy gathering. Nico -- --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Wed Dec 17 17:03:46 2008 From: leichter at lrw.com (Jerry Leichter) Date: Wed, 17 Dec 2008 17:03:46 -0500 Subject: CPRNGs and assurance... In-Reply-To: <87abauimha.fsf@snark.cb.piermont.com> References: <87abauimha.fsf@snark.cb.piermont.com> Message-ID: <487BB11E-BDF7-446C-A372-90DD8AA2DD7D@lrw.com> On Dec 17, 2008, at 3:18 PM, Perry E. Metzger wrote: > > I'd like to expand on a point I made a little while ago about the > "just throw everything at it, and hope the good sources drown out the > bad ones" entropy collection strategy. > > The biggest problem in security systems isn't whether you're using 128 > bit or 256 bit AES keys or similar trivia. The biggest problem is the > limited ability of the human mind to understand a design. This leads > to design bugs and implementation bugs. Design and implementation > flaws are the biggest failure mode for security systems, not whether > it will take all the energy in our galaxy vs. the entire visible > universe to brute force a key. > > So, if you're designing any security system, the biggest thing on your > mind has to be how to validate that the system is secure. That > requires ways to know your design was correct, and ways to know you > actually implemented your design correctly.... Excellent points. For the particular case of random generators based on mixing multiple sources, I would suggest that there are some obvious - if, apparently, little-used - testing strategies that will eliminate the most common failure modes: 1. Test the combiner. The combiner is a deterministic function. If you give it known inputs, the results will always be the same. The result is supposed to depend sensitively on all the inputs, so if you change any input, you should get very outputs. This kind of testing would have avoid the Debian fiasco. Note that knowing you have to write such a test will also discourage throwing in all sorts of complexity you don't understand because "it can't hurt". It can, and has. 2. There are many tests you can apply that will detect *non*- randomness. Test the *inputs* to your combiner. If an input consistently fails, think about whether it's adding adding enough value to be worth the complexity. If your inputs normally succeed and start failing ... something is wrong. Since it's cheap to do, you might as well apply the same test to the output of the combiner - but don't expect to learn anything: With any decent combiner, even fixed inputs should produce random-looking output. So any problem detected this way is very serious. -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jamesd at echeque.com Wed Dec 17 21:00:35 2008 From: jamesd at echeque.com (James A. Donald) Date: Thu, 18 Dec 2008 12:00:35 +1000 Subject: Why the poor uptake of encrypted email? In-Reply-To: <20081216180800.GY2463@Sun.COM> References: <490E3BCF.2020109@echeque.com> <490FDC42.2090105@echeque.com> <20081208135447.551EE680C0@fleegle.mixmin.net> <493D8E03.8040008@Gmail.com> <60ED3AED-3429-47D8-974C-06A884EBBCB8@sun.com> <20081216030604.D341F815E9@fleegle.mixmin.net> <20081216180800.GY2463@Sun.COM> Message-ID: <4949AEC3.9010301@echeque.com> Nicolas Williams wrote: > Providing a suitable e-mail security solution for the > masses strikes me as more important than providing > anonymity to the few people who want or need it. Not > that you can't have both, unless you want everyone to > use PGP or S/MIME as a way to hide anonymized traffic > from non-anonymized traffic. If email goes away - as I hope and expect it will - we will need a new store and forward solution to support anonymity. A store and forward system is a system without end to end real time round trips. Obviously end to end real time round trips prevent anonymity. A system built on top of a best effort unreliable messaging system requires some round tripping, which does not make anonymity impossible, but does make it tricky. Email's architecture is very nice for supporting anonymity. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jamesd at echeque.com Wed Dec 17 22:06:37 2008 From: jamesd at echeque.com (James A. Donald) Date: Thu, 18 Dec 2008 13:06:37 +1000 Subject: Why the poor uptake of encrypted email? In-Reply-To: References: Message-ID: <4949BE3D.8000104@echeque.com> Peter Gutmann wrote: > ... to a statistically irrelevant bunch of geeks. > Watch Skype deploy a not- terribly-anonymous (to the > people running the Skype servers) communications > system. Actually that is pretty anonymous. Although I am sure that Skype would play ball with any bunch of goons that put forward a plausible justification, or threated to rip their fingernails off, most government agencies find it difficult to deal with anyone that they cannot casually have thrown in jail - dealing with equals is not part of their mindset. So if your threat model does not include the FBI and the CIA, chances are that the people who are threatening you will lack the organization and mindset to get Skype's cooperation. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Nicolas.Williams at sun.com Thu Dec 18 16:35:44 2008 From: Nicolas.Williams at sun.com (Nicolas Williams) Date: Thu, 18 Dec 2008 15:35:44 -0600 Subject: Why the poor uptake of encrypted email? In-Reply-To: <4949BE3D.8000104@echeque.com> References: <4949BE3D.8000104@echeque.com> Message-ID: <20081218213544.GM12468@Sun.COM> On Thu, Dec 18, 2008 at 01:06:37PM +1000, James A. Donald wrote: > Peter Gutmann wrote: > > ... to a statistically irrelevant bunch of geeks. > > Watch Skype deploy a not- terribly-anonymous (to the > > people running the Skype servers) communications > > system. > > Actually that is pretty anonymous. Although I am sure > that Skype would play ball with any bunch of goons that > put forward a plausible justification, or threated to > rip their fingernails off, most government agencies find > it difficult to deal with anyone that they cannot > casually have thrown in jail - dealing with equals is > not part of their mindset. So if your threat model does > not include the FBI and the CIA, chances are that the > people who are threatening you will lack the > organization and mindset to get Skype's cooperation. That's also true for e-mail where the only encryption is in the transport. Except that you tend to store your e-mails and not your phone calls, of course. But you could always encrypt your filesystem and not your e-mail itself, and that way avoid all the portability issues that Alec brought up. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Sun Dec 21 07:18:31 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Mon, 22 Dec 2008 01:18:31 +1300 Subject: Security by asking the drunk whether he's drunk Message-ID: In recently had an opportunity to talk to someone who had had a family member become a victim of identity fraud, not in the usual manner to target them directly but as a springboard to target others by registering a phishing site in their name. Variations on this theme include using stolen identities to buy code-signing certificates for malware and a variety of other end-runs around identity-based accountability mechanisms. The problem here is the fact that the market is so awash with stolen identities that vendors have to sell them in bulk lots just to turn a profit. In other words a system designed to defeat the problem of identity theft relies on the flawless functioning of a global identity-based accountability infrastructure in order to work, a classic catch22-situation. If it's possible to buy stolen identities with almost arbitrary amounts of accompanying verification data to authenticate them for purposes of financial fraud: We sell all you need to hack, shop & cashout. CardTipe / * CC Name / * CC Number / * CC Expiry / * CVV2 / * CC PIN First & Last Names / * Address & City / * State & Zip/Postal code / * Country (US) / * Phone # MMN [Mother's maiden name] / * SSN [Social security number] / * DOB [Date of birth] Bank Acc No / * Bank Routine [Routing] No On our forum you can buy: Active eBay accounts with as many positive feedbacks as you need Active and wealthy PayPal accounts PINs for prepaided AT&T and Sprint phone cards Carded Western Union accounts for safe and quick money transfers Carded UPS and FedEx accounts for quick and free worldwide shipping of your stuff Full info including Social Security Info, Driver Licence #, Mother' Maiden Name and much more Come and register today and get a bonus by your choice: One Citybank account with online access with 3k on board, or 5 COB' cards with 5k credit line 10 eBay active eBay accounts with 100+ positive feedbacks 25 Credit Cards with PINs for online carding then it's just as easy to turn those identities towards facilitating further identity fraud, and indeed it's become pretty much standard practice to register fraudulent domains and buy fraudulent X.509 certificates with stolen credentials paid for with stolen financial information. As a result, if the putative owner of an AuthentiCode certificate used to sign a piece of malware is ever tracked down then it's invariably some innocent victim somewhere, possibly someone who doesn't even use a computer. Even the argument that at least the signed malware allows for the use of CRLs to disable it falls flat when you consider the difference in speed between having the malware identified and blocked by anti-virus software and the ponderous delays of the CRL issue process, assuming that the end-user software even checks them. Another online fraud technique that's seen use in some countries, although it's not widespread because it's still much easier to do the same thing via less labour-intensive means, is to use stolen credentials to establish an online presence for an existing business with a good credit history, use it for whatever fraud you want to perpetrate, and then vanish before anyone's the wiser, for example before the end of the monthly billing cycle when the real business either gets sent paperwork that it isn't expecting or doesn't get sent paperwork that it is. Since this is borrowing the identity of a bona fide business rather than an individual, there's almost no way to catch such problems because any (rational) amount of checking will simply confirm that it's a long-established legitimate business. This type of fraud could probably even defeat the verification used for EV certificates (at least as set out in the guidelines published by some CAs), although at the moment it's entirely unnecessary since it's possible to achieve the same ends through far less laborious means. This is a classic case of asking the drunk whether he's drunk - a system rampant with identity fraud is expected to function as the basis for an identity-based accountability mechanism. Or to put it another way, on the remote chance that someone does finally figure out what it'll take to make PKI work, it still won't actually work. Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From adam at homeport.org Sun Dec 21 16:51:16 2008 From: adam at homeport.org (Adam Shostack) Date: Sun, 21 Dec 2008 16:51:16 -0500 Subject: Security by asking the drunk whether he's drunk In-Reply-To: References: Message-ID: <20081221215116.GA27445@homeport.org> [Moderator's note: top posting and failing to trim what you're replying to are both considered bad form... --Perry] Peter, Do you have evidence of either Authenticode or business impersonation? I agree that they're highly plausible, but you say " if the putative owner of an AuthentiCode certificate used to sign a piece of malware is ever tracked down then it's invariably some innocent victim somewhere..." which would indicate that there are several of these reported on. (Using 'reporting' in its English, not academic sense.) Ditto with the business impersonation. I'd like stories, I'd be estatic with a frequency analysis that I could show to people. Adam Out of my own curiosity only, not speaking for my employer or yours. On Mon, Dec 22, 2008 at 01:18:31AM +1300, Peter Gutmann wrote: | In recently had an opportunity to talk to someone who had had a family member | become a victim of identity fraud, not in the usual manner to target them | directly but as a springboard to target others by registering a phishing site | in their name. Variations on this theme include using stolen identities to | buy code-signing certificates for malware and a variety of other end-runs | around identity-based accountability mechanisms. The problem here is the fact | that the market is so awash with stolen identities that vendors have to sell | them in bulk lots just to turn a profit. In other words a system designed to | defeat the problem of identity theft relies on the flawless functioning of a | global identity-based accountability infrastructure in order to work, a | classic catch22-situation. If it's possible to buy stolen identities with | almost arbitrary amounts of accompanying verification data to authenticate | them for purposes of financial fraud: | | We sell all you need to hack, shop & cashout. | CardTipe / * CC Name / * CC Number / * CC Expiry / * CVV2 / * CC PIN | First & Last Names / * Address & City / * State & Zip/Postal code / * | Country (US) / * Phone # | MMN [Mother's maiden name] / * SSN [Social security number] / * DOB | [Date of birth] | Bank Acc No / * Bank Routine [Routing] No | | On our forum you can buy: | Active eBay accounts with as many positive feedbacks as you need | Active and wealthy PayPal accounts | PINs for prepaided AT&T and Sprint phone cards | Carded Western Union accounts for safe and quick money transfers | Carded UPS and FedEx accounts for quick and free worldwide shipping of | your stuff | Full info including Social Security Info, Driver Licence #, Mother' | Maiden Name and much more | Come and register today and get a bonus by your choice: | One Citybank account with online access with 3k on board, or 5 | COB' cards with 5k credit line | 10 eBay active eBay accounts with 100+ positive feedbacks | 25 Credit Cards with PINs for online carding | | then it's just as easy to turn those identities towards facilitating further | identity fraud, and indeed it's become pretty much standard practice to | register fraudulent domains and buy fraudulent X.509 certificates with stolen | credentials paid for with stolen financial information. As a result, if the | putative owner of an AuthentiCode certificate used to sign a piece of malware | is ever tracked down then it's invariably some innocent victim somewhere, | possibly someone who doesn't even use a computer. Even the argument that at | least the signed malware allows for the use of CRLs to disable it falls flat | when you consider the difference in speed between having the malware | identified and blocked by anti-virus software and the ponderous delays of the | CRL issue process, assuming that the end-user software even checks them. | | Another online fraud technique that's seen use in some countries, although | it's not widespread because it's still much easier to do the same thing via | less labour-intensive means, is to use stolen credentials to establish an | online presence for an existing business with a good credit history, use it | for whatever fraud you want to perpetrate, and then vanish before anyone's the | wiser, for example before the end of the monthly billing cycle when the real | business either gets sent paperwork that it isn't expecting or doesn't get | sent paperwork that it is. Since this is borrowing the identity of a bona | fide business rather than an individual, there's almost no way to catch such | problems because any (rational) amount of checking will simply confirm that | it's a long-established legitimate business. This type of fraud could | probably even defeat the verification used for EV certificates (at least as | set out in the guidelines published by some CAs), although at the moment it's | entirely unnecessary since it's possible to achieve the same ends through far | less laborious means. | | This is a classic case of asking the drunk whether he's drunk - a system | rampant with identity fraud is expected to function as the basis for an | identity-based accountability mechanism. Or to put it another way, on the | remote chance that someone does finally figure out what it'll take to make PKI | work, it still won't actually work. | | Peter. | | --------------------------------------------------------------------- | The Cryptography Mailing List | Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Mon Dec 22 05:18:44 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Mon, 22 Dec 2008 23:18:44 +1300 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <20081221215116.GA27445@homeport.org> Message-ID: Adam Shostack writes: >Do you have evidence of either Authenticode or business impersonation? I >agree that they're highly plausible, but you say " if the putative owner of >an AuthentiCode certificate used to sign a piece of malware is ever tracked >down then it's invariably some innocent victim somewhere..." which would >indicate that there are several of these reported on. (Using 'reporting' in >its English, not academic sense.) The sentence actually referred to the use of stolen credentials to facilitate multiple crimes, the use to register fraudulent domains is widespread and documented in blogs and cybercrime reports, e.g. the APWG's phishing surveys and... well, lots of places, a Google search on something like "phishing domain stolen credit card" should turn up a pile of hits. The code-signing and business impersonation is a lot rarer because it's mostly unnecessary to do it, it's been done a number of times but barely reported in public so you hear about it talking to security researchers at conferences as interesting anecdotes but there's little public reporting on it ("Estonia nuked by DDoS" gets rather more readers than "Signed rootkit discovered"). One of the most notorious cases was Gromozon (a particularly nasty blended attack toolkit, see e.g. http://www.pcalsicuro.com/gromozon.pdf), which was signed with a Verithawte certificate issued to bogus company supposedly in Panama, for which a quick Google: http://www.google.com/search?q=gromozon+signed turns up a pile of hits (note that the issuing CA just happened to be Verithawte in this case, malware authors will use just about any CA since all they care about is turning off the warnings, and since it's not their money they're using they don't care whether they're using cheap or expensive certs... it's a nasty corollary to Ben Laurie's "proof-of-work proves not to work", alongside effectively infinite CPU power the attackers also have access to effectively infinite financial resources so they don't mind spending whatever it takes of someone else's money to facilitate their attacks, e.g. in registering large numbers of bogus accounts or domains for phishing purposes. I've actually seen one of these live while monitoring a social networking site that had paid premium accounts, they were using a script to register a user in every locality in the countries served by the site for a total cost of thousands of dollars of someone else's money, and the site admins then had to manually go through and weed them all out again since they were set up to shut down individual accounts based on user complaints but had never anticipated anyone going in at this level). The Sunbelt folks have blogged about signed malware they've discovered several times as part of their investigation of malware, for this particular one: http://sunbeltblog.blogspot.com/2008/02/dangerous-new-fake-american-greetings.html they tracked down the signer details (shown in the screen shots in the blog). Again, a Google search like: http://www.google.com/search?q=signed+malware should turn up about all that's been publicly written about this, but there's a lot of further info that's circulated anecdotally. All that sounds horribly imprecise but I it's because it's something that's mostly a curiosity for now, if you can get X zillion victims with unsigned/un-"authenticated" malware then there's not much need to even try to bypass certificates, so only a bunch of malware researchers and a few PKI geeks care about it. In other words the attackers haven't even bothered with the (supposed) defences yet, although the small number of trial runs done so far indicate that if they ever need to attack them they won't have any problems. (Incidentally, there's a nice illustration of the closing-the-gate-after-the- horse-has-bolted nature of CRLs in the Register: http://www.theregister.co.uk/2008/08/16/certified_malware/ Within an hour of the reported incident we had attempted to examine the executable. However, the site was no longer live. After an unsuccessful attempt to contact the company by telephone we decided the best course of action in the short term would be to revoke the certificate. So they revoked the cert after discovering that the hosting site had already been taken down). >Ditto with the business impersonation. That one I can't give any references for, sorry, it was something that was discussed at a cybercrime conference a few years ago as an example of the impedance mismatch between bricks-and-mortar security mechanisms and the Internet, but I don't know whether it's been formally documented. (If anyone knows of anywhere where this is publicly documented, please let me know). >I'd like stories, I'd be estatic with a frequency analysis that I could show >to people. I doubt you'll be able to get this, for the reasons given above (and mentioned in the original post), there's no need to go to this length yet so most attackers don't bother. As a result what we're seeing is proof-of-concept stuff demonstrating that the defences don't work, but not enough to get serious statistics for. In mathematical terms we've got a there-exists rather than a for-all. This leads to a scary rule of thumb for defenders: 1. The attackers have more CPU power than any legitimate user will ever have, and it costs them nothing to apply it. Any defence based on resource consumption is in trouble. 2. The attackers have more money than any legitimate user will ever have, and it costs them nothing to apply it. Any defence built around financial outlay as a limiting factor is in trouble. Corollary: Systems that can't defend themselves against a situation where the financial cost of any operation (for example registering a new account) is effectively zero is in trouble. 3. The attackers have as much identity information as any legitimate user, but they have (effectively) infinite quantities of it. Any defence based on identity-based accountability mechanisms is in trouble. Anyone wanna try fighting that with cryptography? Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Mon Dec 22 05:38:00 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Mon, 22 Dec 2008 23:38:00 +1300 Subject: Security by asking the drunk whether he's drunk Message-ID: Adam Shostack writes: >I'd be estatic with a frequency analysis that I could show to people. This always happens right after you hit ^D... it turns out that Microsoft actually has published figures for this, although it's fairly recent so I hadn't seen it before now: http://blogs.technet.com/mmpc/archive/2008/11/06/malware-and-signed-code.aspx ... approximately 135,000 validly signed malware files were reported to Microsoft [there were 173K files in total, but 38K were expired/revoked/whatever]. Of signed detected files, severity of the threats tended to be high or severe, with low and moderate threats comprising a much smaller number of files. Going directly to the source gets you much better stats than talking to malware researchers at conferences :-). "High" and "severe" typically means 0day rootkit-type exploits, so that's scary stuff, particularly since that's only malware reported to MS and not all the malware that's out there. Hmm, I wonder if it's just coincidence that the malware authors only bother signing the most effective/vicious malware to ensure a good success rate and for the less effective ones they just leave them as is? Another interesting figure: valid code signing certificates were reported on over 1.78 million distinct non-malicious files to the MMPC So from Microsoft's figures it looks like roughly every tenth signed file is active (i.e. non-revoked/expired/whatever) malware. Ouch! Peter (so what we need now is EV certs for code-signing. Yeah, that'll fix it). --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From krahmer at suse.de Mon Dec 22 05:46:22 2008 From: krahmer at suse.de (Sebastian Krahmer) Date: Mon, 22 Dec 2008 11:46:22 +0100 Subject: OpenSSH patch against traffic analysis Message-ID: <20081222104622.GA21422@suse.de> Hi, I wrote a patch to force openssh to use constant time and packet-size on the SSHv2 connection so observers of traffic cant correlate SSH connections to each other. You can find it here: http://c-skills.blogspot.com/2008/12/sshv2-trickery.html l8er, Sebastian -- ~~ ~~ perl self.pl ~~ $_='print"\$_=\47$_\47;eval"';eval ~~ krahmer at suse.de - SuSE Security Team ~~ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From docbook.xml at gmail.com Mon Dec 22 17:39:11 2008 From: docbook.xml at gmail.com (Ali, Saqib) Date: Mon, 22 Dec 2008 14:39:11 -0800 Subject: More on (no pun intended) D-wave quantum computer Message-ID: Source: http://bits.blogs.nytimes.com/2008/12/22/d-wave-arms-smoking-gun-proof-of-quantum-computer/ "Once D-Wave collects the results of the simulations and processes the information, it will compare the simulation against an actual run of its latest quantum computer, which should be completed in the next few months. If the figures match up, then D-Wave will have shown that it really has a quantum machine, silencing skeptics, according to Geordie Rose, the company's chief technology officer. " I still don't see how figures matching up prove that what d-wave developed is a quantum computer. it just proves that it is a faster computer??.. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From dan at geer.org Tue Dec 23 17:23:07 2008 From: dan at geer.org (dan at geer.org) Date: Tue, 23 Dec 2008 17:23:07 -0500 Subject: Security by asking the drunk whether he's drunk In-Reply-To: Your message of "Sun, 21 Dec 2008 16:51:16 EST." <20081221215116.GA27445@homeport.org> Message-ID: <20081223222307.E4DAE33F4B@absinthe.tinho.net> or asking "Can I trust you?" ------------------------------------------------------- http://blog.startcom.org/?p=145 Slashdot and others are reporting on this story about how it was possible for a person to receive a completely valid certificate for a random domain of his choosing without any questions or verification. In this case he generated a certificate for mozilla.com from a reseller of the Comodo certificate authority. I'm hoping this is just a single instance but it makes you remember that the browser pre-trusted certificate authorities really needs to be cleaned up. If it's not obvious enough, this is not good for Tor users due to the fact that we try to rely on SSL certificates to make sure that traffic isn't sniffed while using Tor. -Roc Tor Admin ------------------------------------------------------- --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Wed Dec 24 06:34:53 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Thu, 25 Dec 2008 00:34:53 +1300 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <20081223231040.GF21481@homeport.org> Message-ID: Adam Shostack writes: >Thank you! I hadn't seen this either, and it's exactly what I was looking >for. One note of caution with the statistics given on that page, those figures are apparently as reported by the Malicious Software Removal Tool (MSRT) (see http://www.microsoft.com/security/portal/sir.aspx) so they'll represent the output of a basic malware removal tool (not a full-blown malware/AV scanner), and since it's only run on up-to-date Windows systems with auto-updates (and therefore security hotfixes and whatnot) actively applied (MSRT is itself supplied via auto-updates) it's likely that the real situation is a lot worse than that, i.e. a full-blown AV program might find even more malware, and any system that's regularly running the MSRT and applying security updates is going to be less malware-infested than a general random sample of systems. So while they're a (really scary, much, much worse than I thought) indicator of how bad it is, it's likely that things are even worse than that. I've written to the person who wrote the blog entry to try and get clarification on some issues raised there. (Oh, and I assume people have seen Eddy Nigg's article on how easy it is to get a certificate for a site belonging to someone else from a commercial CA, https://blog.startcom.org/?p=145, which also made Slashspot earlier today). Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Wed Dec 24 06:42:43 2008 From: leichter at lrw.com (Jerry Leichter) Date: Wed, 24 Dec 2008 06:42:43 -0500 Subject: Security by asking the drunk whether he's drunk In-Reply-To: References: Message-ID: <55A7FA11-F8EE-4C39-9801-F5E021A8F033@lrw.com> Just one minor observation: On Dec 22, 2008, at 5:18 AM, Peter Gutmann wrote: > This leads to a scary rule of thumb for defenders: > > 1. The attackers have more CPU power than any legitimate user will > ever have, > and it costs them nothing to apply it. Any defence based on > resource > consumption is in trouble. > > 2. The attackers have more money than any legitimate user will ever > have, and > it costs them nothing to apply it. Any defence built around > financial > outlay as a limiting factor is in trouble. > > Corollary: Systems that can't defend themselves against a > situation where > the financial cost of any operation (for example registering a new > account) > is effectively zero is in trouble. This one is a bit more complicated. Attackers have access to large amounts of money *in relatively small units*. No matter how many credit card accounts you steal, it would be pretty much impossible to create an actual, properly populated, physical storefront in a decent shopping area. You can be fairly confident that a physical store is what it appears to be. Granted, what you're discussing is on-line fraud. My point is that this is yet another difference between the on-line and brick-and- mortar worlds, and one that leads us astray when we try to apply our real-world reasonableness filters to the on-line world. There are many inter-related elements here. Perhaps the biggest factor is *time*: On-line frauds can be setup, draw in victims, and disappear very quickly - only to reappear someplace else. This allows them to built using what is effectively the float on stolen identities - much of which will be found and revoked by the end of a billing cycle. The real world has much more inertia - there are many steps involved in building out a physical storefront, they take time, and your money has to be "good" across that entire time. Note that many real-world frauds rely on the ability to short-cut what are normally time- consuming procedures and disappear before the controls can kick in. (Think of check kiting, or of the guys from what appear to be long- established local paving companies that "pave" your driveway with cheap oil and are gone by the next morning.) EV certificates (unsuccessfully) attempt to bring some of this real- world checking on line: They are expensive, and you have to pay in one lump. They're not going to accept a bunch of credit cards. They check your identity, which if done right takes time *and indirectly checks that you actually have a history*. Of course, the actual practice is different and, given the incentives in the industry - where there is no penalty for giving out an invalid EV certificate, and a reward for getting the job done quickly - this is all illusion. Long-running frauds, while certainly not unknown (hello, Bernie Madoff), are relatively rare: Every day out there is another chance to get caught. The preferred mode of fraud will always be "get 'em hooked, fleece 'em, get out of town - as fast as you can". Can we get some of the advantages of this real-world fact in the on-line world? The best example I know of is CMU's Perspectives effort: If something "looks the same" to many observers over a period of time, it's more likely to be trustworthy. Of course, if this kind of thing catches on, it will be much harder for a startup to gain instant recognition. The Internet "need for speed" isn't compatible with safety. Some tradeoffs are inevitable. -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Thu Dec 25 15:59:14 2008 From: perry at piermont.com (Perry E. Metzger) Date: Thu, 25 Dec 2008 15:59:14 -0500 Subject: "Cryptol" Message-ID: <87vdt83ra5.fsf@snark.cb.piermont.com> Cryptol is a domain specific language for the design, implementation and verification of cryptographic algorithms, developed over the past decade by Galois for the United States National Security Agency. It has been used successfully in a number of projects, and is also in use at Rockwell Collins, Inc. Domain-specific languages (DSLs) allow subject-matter experts to design solutions in using familiar concepts and constructs. Cryptol, as a DSL, allows domain experts in cryptography to design and implement cryptographic algorithms with a high degree of assurance in the correctness of their design, and at the same time, producing a high performance implementation of their algorithms. http://www.galois.com/blog/2008/12/24/cryptol-the-language-of-cryptography-now-available/ -- Perry E. Metzger perry at piermont.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From krstic at solarsail.hcs.harvard.edu Fri Dec 26 01:35:43 2008 From: krstic at solarsail.hcs.harvard.edu (=?UTF-8?Q?Ivan_Krsti=C4=87?=) Date: Fri, 26 Dec 2008 01:35:43 -0500 Subject: two bits of light holiday reading Message-ID: 1. Jonathan Zittrain's[0] latest book, 'The Future of the Internet and How to Stop It', is available as a free PDF licensed under CC-BY-NC-SA: While not dealing with cryptography per se, it does focus on the wider implications of the worsening situation in modern computer security, and what it means for the new computing platforms we're seeing now and in the future. Zittrain is one of the foremost cyberlaw thinkers on the planet; given a number of discussions on this list, I thought the book would be of interest to subscribers. [0] 2. The DC-based Center for Strategic and International Studies recently released a report titled 'Securing Cyberspace for the 44th Presidency' written by a number of influential authors: Of most interest to this list, the report suggests going on the offensive with regard to identity management, proposing to restrict bonuses and awards of US federal agencies not using strong digital credentials for employees in sufficient numbers (logical pp. 61-65). Maybe, uh, it'll work this time around? Cheers, -- Ivan Krsti? | http://radian.org --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Fri Dec 26 02:39:50 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Fri, 26 Dec 2008 20:39:50 +1300 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <20081223222307.E4DAE33F4B@absinthe.tinho.net> Message-ID: dan at geer.org writes: >I'm hoping this is just a single instance but it makes you remember that the >browser pre-trusted certificate authorities really needs to be cleaned up. Given the more or less complete failure of commercial PKI for both SSL web browsing and code-signing (as evidenced by the multibillion-dollar cybercrime industry freely doing all the things that SSL certs and code-signing were supposed to prevent them from doing), it's not so much "cleaned up" as "replaced with something that may actually work". Adding support for a service like Perspectives (discussed here a month or two back) would be a good start since it provides some of the assurance that a commercial PKI can't (and as an additional benefit it also works for SSH servers, since it's not built around certificates). So, when will Google add Perspectives support to their search database? :-). Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Sat Dec 27 07:19:28 2008 From: leichter at lrw.com (Jerry Leichter) Date: Sat, 27 Dec 2008 07:19:28 -0500 Subject: Security by asking the drunk whether he's drunk In-Reply-To: References: Message-ID: <5967DCEC-7AB4-4DBC-BF52-C4BE0703D259@lrw.com> On Dec 26, 2008, at 2:39 AM, Peter Gutmann wrote: > dan at geer.org writes: > >> I'm hoping this is just a single instance but it makes you remember >> that the >> browser pre-trusted certificate authorities really needs to be >> cleaned up. > > Given the more or less complete failure of commercial PKI for both > SSL web > browsing and code-signing (as evidenced by the multibillion-dollar > cybercrime > industry freely doing all the things that SSL certs and code-signing > were > supposed to prevent them from doing), it's not so much "cleaned up" as > "replaced with something that may actually work".... I just had an interesting experience with a different sort of failure: I tried to buy a DVD from The Teaching Company (www.teach12.com ). When I went to check out - or even if when I connect to the top level at https://www.teach12.com - I get a complaint that their cert is signed by a unknown authority. It turns out that they recently put an EV certificate in place. It's issued by "VeriSign Class 3 Extended Validation SSL SGC CA" - which neither Safari 3.2.1 nor Firefox 3.0.5 on my Mac have ever heard of! I got in touch with the company and actually received intelligent responses both at their 800 number - I placed my order that way - and in a response from their customer service people. Most remarkable - almost all organizations ignore such communication. It's ironic that those who appear to be trying the hardest are being screwed over by the system that's currently in place - and will inadvertently be involved in training users to simply bypass yet another kind of bad cert warning. (I can highly recommend the courses that The Teaching Company distributes, by the way. I usually borrow them from the library, but I've bought a few of the best here and there - especially when they have sales, as they do right now.) -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Pehrs at kth.se Sat Dec 27 09:32:05 2008 From: Pehrs at kth.se (=?ISO-8859-1?Q?Pehr_S=F6derman?=) Date: Sat, 27 Dec 2008 15:32:05 +0100 Subject: A History of U.S. Communications Security Message-ID: <49563C65.3070702@kth.se> Freshly declassified and a rather interesting read: A History of U.S. Communications Security (Volumes I and II, 1973) David G. Boak Lectures, National Security Agency (NSA) http://www.governmentattic.org/2docs/Hist_US_COMSEC_Boak_NSA_1973.pdf (From Bruce Schneier/Governmentattic) /Pehr S?derman --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From benl at google.com Sat Dec 27 10:02:50 2008 From: benl at google.com (Ben Laurie) Date: Sat, 27 Dec 2008 15:02:50 +0000 Subject: Security by asking the drunk whether he's drunk In-Reply-To: References: <20081223222307.E4DAE33F4B@absinthe.tinho.net> Message-ID: <1b587cab0812270702q783a8c43o4a2ef993249e21cf@mail.gmail.com> On Fri, Dec 26, 2008 at 7:39 AM, Peter Gutmann wrote: Adding support for a > service like Perspectives (discussed here a month or two back) would be a good > start since it provides some of the assurance that a commercial PKI can't (and > as an additional benefit it also works for SSH servers, since it's not built > around certificates). > > So, when will Google add Perspectives support to their search database? :-). I can't find discussion of Perspectives - hint? --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From smb at cs.columbia.edu Sat Dec 27 12:33:37 2008 From: smb at cs.columbia.edu (Steven M. Bellovin) Date: Sat, 27 Dec 2008 12:33:37 -0500 Subject: two bits of light holiday reading In-Reply-To: References: Message-ID: <20081227123337.73a6ef1a@cs.columbia.edu> On Fri, 26 Dec 2008 01:35:43 -0500 Ivan Krsti__ wrote: > 2. > > The DC-based Center for Strategic and International Studies recently > released a report titled 'Securing Cyberspace for the 44th > Presidency' written by a number of influential authors: > > > > Of most interest to this list, the report suggests going on the > offensive with regard to identity management, proposing to restrict > bonuses and awards of US federal agencies not using strong digital > credentials for employees in sufficient numbers (logical pp. 61-65). > Maybe, uh, it'll work this time around? I disagree with a number of recommendations in that report; some of the ones about identity management are high on my list. See http://www.cs.columbia.edu/~smb/blog/2008-12/2008-12-15.html for my comments. --Steve Bellovin, http://www.cs.columbia.edu/~smb --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Sat Dec 27 14:07:37 2008 From: perry at piermont.com (Perry E. Metzger) Date: Sat, 27 Dec 2008 14:07:37 -0500 Subject: Matt Blaze blog entry about NSA warrantless wiretapping Message-ID: <8763l53092.fsf@snark.cb.piermont.com> Interesting reading: http://www.crypto.com/blog/metatapping/ -- Perry E. Metzger perry at piermont.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From mab at crypto.com Sat Dec 27 14:21:14 2008 From: mab at crypto.com (Matt Blaze) Date: Sat, 27 Dec 2008 14:21:14 -0500 Subject: Domestic surveillance and warrantless wiretaps Message-ID: Like many people, I found last week's Newsweek cover piece, revealing Thomas M. Tamm as the principal source for James Risen and Eric Lichtblau's 2005 NY Times story that broke the warrantless wiretap story, to be a riveting read. But I actually found a sidebar to the story even more interesting. That story talks about the now famous 2004 incident at Ashcroft's hospital bed in which several top DoJ officials threatened to resign. It turns out that was not about warrantless content collection, but rather about the wholesale collection of call records: http://www.newsweek.com/id/174602/output/print This story raises a number of new -- and ultimately quite disturbing -- questions about the nature of the wiretap program and the extent of its reach into the domestic communication of innocent Americans. In particular, put together with other reports about the program, it seems to corroborate claims that telcos (including my alma matter AT&T) provided the NSA with wholesale access to domestic call detail records, and that top DoJ officials worried seriously that this violated the law. I discuss the implications of this in more detail on my blog; perhaps some here will find it interesting: http://www.crypto.com/blog/metatapping -matt --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From fw at deneb.enyo.de Sat Dec 27 15:20:27 2008 From: fw at deneb.enyo.de (Florian Weimer) Date: Sat, 27 Dec 2008 21:20:27 +0100 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <5967DCEC-7AB4-4DBC-BF52-C4BE0703D259@lrw.com> (Jerry Leichter's message of "Sat, 27 Dec 2008 07:19:28 -0500") References: <5967DCEC-7AB4-4DBC-BF52-C4BE0703D259@lrw.com> Message-ID: <87k59lv08k.fsf@mid.deneb.enyo.de> * Jerry Leichter: > I got in touch with the company and actually received intelligent > responses both at their 800 number - I placed my order that way - and > in a response from their customer service people. Most remarkable - > almost all organizations ignore such communication. It's ironic that > those who appear to be trying the hardest are being screwed over by > the system that's currently in place - and will inadvertently be > involved in training users to simply bypass yet another kind of bad > cert warning. This is also why I don't want browser vendors to remove CAs for which they haven't got enough documentation, at least at this stage. After a few rounds of competitors attacking each other (and themselves as well, because who knows who controls some of the older private keys these days), the only CAs left are those where initiating RA procedures is sufficiently difficult for law-abiding citizens--and cost is a very likely discriminator in this area. And for most sites, those extra $$$ are better spent on hosting with some sort of security monitoring. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From dmolnar at eecs.berkeley.edu Sat Dec 27 15:39:44 2008 From: dmolnar at eecs.berkeley.edu (David Molnar) Date: Sat, 27 Dec 2008 12:39:44 -0800 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <1b587cab0812270702q783a8c43o4a2ef993249e21cf@mail.gmail.com> References: <20081223222307.E4DAE33F4B@absinthe.tinho.net> <1b587cab0812270702q783a8c43o4a2ef993249e21cf@mail.gmail.com> Message-ID: <49569290.7050503@eecs.berkeley.edu> Ben Laurie wrote: > > I can't find discussion of Perspectives - hint? Service from a group at CMU that uses semi-trusted "notary" servers to periodically probe a web site to see which public key it uses. The notaries provide the list of keys used to you, so you can attempt to detect things like a site that has a different key for you than previously shown to all of the notaries. The idea is that to fool the system, the adversary has to compromise all links between the target site and the notaries all the time. Paper, code, and Firefox extension: http://www.cs.cmu.edu/~perspectives/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 250 bytes Desc: OpenPGP digital signature URL: From leichter at lrw.com Sat Dec 27 22:22:57 2008 From: leichter at lrw.com (Jerry Leichter) Date: Sat, 27 Dec 2008 22:22:57 -0500 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <1b587cab0812270702q783a8c43o4a2ef993249e21cf@mail.gmail.com> References: <20081223222307.E4DAE33F4B@absinthe.tinho.net> <1b587cab0812270702q783a8c43o4a2ef993249e21cf@mail.gmail.com> Message-ID: <635A8874-B518-4162-866F-46F5BBAFC2F0@lrw.com> On Dec 27, 2008, at 10:02 AM, Ben Laurie wrote: > On Fri, Dec 26, 2008 at 7:39 AM, Peter Gutmann > wrote: > Adding support for a >> service like Perspectives (discussed here a month or two back) >> would be a good >> start since it provides some of the assurance that a commercial PKI >> can't (and >> as an additional benefit it also works for SSH servers, since it's >> not built >> around certificates). >> >> So, when will Google add Perspectives support to their search >> database? :-). > > I can't find discussion of Perspectives - hint? Try http://www.cs.cmu.edu/~perspectives/perspectives_usenix08.pdf -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Sun Dec 28 20:12:09 2008 From: perry at piermont.com (Perry E. Metzger) Date: Sun, 28 Dec 2008 20:12:09 -0500 Subject: very high speed hardware RNG Message-ID: <8763l3239y.fsf@snark.cb.piermont.com> Semiconductor laser based RNG with rates in the gigabits per second. http://www.physorg.com/news148660964.html My take: neat, but not as important as simply including a decent hardware RNG (even a slow one) in all PC chipsets would be. Perry -- Perry E. Metzger perry at piermont.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Sun Dec 28 21:48:01 2008 From: leichter at lrw.com (Jerry Leichter) Date: Sun, 28 Dec 2008 21:48:01 -0500 Subject: very high speed hardware RNG In-Reply-To: <8763l3239y.fsf@snark.cb.piermont.com> References: <8763l3239y.fsf@snark.cb.piermont.com> Message-ID: <85E08273-4D26-46C7-BBF9-E51D469ED4A8@lrw.com> On Dec 28, 2008, at 8:12 PM, Perry E. Metzger wrote: > > Semiconductor laser based RNG with rates in the gigabits per second. > > http://www.physorg.com/news148660964.html > > My take: neat, but not as important as simply including a decent > hardware RNG (even a slow one) in all PC chipsets would be. True. The thing that bothers me about this description is the too-easy jump between "chaotic" and "random". They're different concepts, and chaotic doesn't imply random in a cryptographic sense: It may be possible to induce bias or even some degree of predictability in a chaotic system by manipulating its environment. I believe there are also chaotic systems that are hard to predict in the forward direction, but easy to run backwards, at least sometimes. That's not to say this system isn't good - it probably is - but just saying its chaotic shouldn't be enough. BTW, a link from this article - at least when I looked at it - went to http://www.physorg.com/news147698804.html : "Quantum Computing: Entanglement May Not Be Necessary". There are still tons of surprises in the quantum computing arena.... -- Jerry > > > Perry > -- > Perry E. Metzger perry at piermont.com > > --------------------------------------------------------------------- > The Cryptography Mailing List > Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From lloyd at randombit.net Sun Dec 28 23:49:06 2008 From: lloyd at randombit.net (Jack Lloyd) Date: Sun, 28 Dec 2008 23:49:06 -0500 Subject: very high speed hardware RNG In-Reply-To: <8763l3239y.fsf@snark.cb.piermont.com> References: <8763l3239y.fsf@snark.cb.piermont.com> Message-ID: <20081229044906.GC22450@randombit.net> On Sun, Dec 28, 2008 at 08:12:09PM -0500, Perry E. Metzger wrote: > > Semiconductor laser based RNG with rates in the gigabits per second. > > http://www.physorg.com/news148660964.html > > My take: neat, but not as important as simply including a decent > hardware RNG (even a slow one) in all PC chipsets would be. I've been thinking that much better than a chipset addition (which is only accessible by the OS kernel in most environments) would be a simple ring-3 (or equivalent) accessible instruction that writes 32 or 64 bits of randomness from a per-core hardware RNG, something like ; write 32 bits of entropy from the hardware RNG to eax register rdrandom %eax Which would allow user applications to access a good hardware RNG directly, in addition to allowing the OS to read bits to seed the system PRNG (/dev/random, CryptoGenRandom, or similar) I think the JVM in particular could benefit from such an extension, as the abstractions it puts into place otherwise prevent most of the methods one might use to gather high-quality entropy for a PRNG seed. -Jack --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Mon Dec 29 05:10:49 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Mon, 29 Dec 2008 23:10:49 +1300 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <49569290.7050503@eecs.berkeley.edu> Message-ID: David Molnar writes: >Service from a group at CMU that uses semi-trusted "notary" servers to >periodically probe a web site to see which public key it uses. The notaries >provide the list of keys used to you, so you can attempt to detect things >like a site that has a different key for you than previously shown to all of >the notaries. The idea is that to fool the system, the adversary has to >compromise all links between the target site and the notaries all the time. I think this is missing the real contribution of Perspectives, which (like almost any security paper) has to include a certain quota of crypto rube- golbergism in order to satisfy conference reviewers. The real value isn't the multi-path verification and crypto signing facilities and whatnot but simply the fact that you now have something to deal with leap-of-faith authentication, whether it's for self-generated SSH or SSL keys or for rent-a- CA certificates. Currently none of these provide any real assurance since a phisher can create one on the fly as and when required. What Perspectives does is guarantee (or at least provide some level of confidence) that a given key has been in use for a set amount of time rather than being a here-this- morning, gone-in-the-afternoon affair like most phishing sites are. In other words a phisher would have to maintain their site for a week, a month, a year, of continuous operation, not just set it up an hour after the phishing email goes out and take it down again a few hours later. For this function just a single source is sufficient, thus my suggestion of Google incorporating it into their existing web crawling. You can add the crypto rube goldberg extras as required, but a basic "this site has been in operation at the same location with the same key for the past eight months" is a powerful bar to standard phishing approaches, it's exactly what you get in the bricks-and-mortar world, "Serving the industry since 1962" goes a lot further than "Serving the industry since just before lunchtime". Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From benl at google.com Mon Dec 29 13:02:29 2008 From: benl at google.com (Ben Laurie) Date: Mon, 29 Dec 2008 18:02:29 +0000 Subject: Security by asking the drunk whether he's drunk In-Reply-To: References: <49569290.7050503@eecs.berkeley.edu> Message-ID: <1b587cab0812291002w13cb2bb6nef8aa9b1d0438266@mail.gmail.com> On Mon, Dec 29, 2008 at 10:10 AM, Peter Gutmann wrote: > David Molnar writes: > >>Service from a group at CMU that uses semi-trusted "notary" servers to >>periodically probe a web site to see which public key it uses. The notaries >>provide the list of keys used to you, so you can attempt to detect things >>like a site that has a different key for you than previously shown to all of >>the notaries. The idea is that to fool the system, the adversary has to >>compromise all links between the target site and the notaries all the time. > > I think this is missing the real contribution of Perspectives, which (like > almost any security paper) has to include a certain quota of crypto rube- > golbergism in order to satisfy conference reviewers. The real value isn't the > multi-path verification and crypto signing facilities and whatnot but simply > the fact that you now have something to deal with leap-of-faith > authentication, whether it's for self-generated SSH or SSL keys or for rent-a- > CA certificates. Currently none of these provide any real assurance since a > phisher can create one on the fly as and when required. What Perspectives > does is guarantee (or at least provide some level of confidence) that a given > key has been in use for a set amount of time rather than being a here-this- > morning, gone-in-the-afternoon affair like most phishing sites are. In other > words a phisher would have to maintain their site for a week, a month, a year, > of continuous operation, not just set it up an hour after the phishing email > goes out and take it down again a few hours later. > > For this function just a single source is sufficient, thus my suggestion of > Google incorporating it into their existing web crawling. You can add the > crypto rube goldberg extras as required, but a basic "this site has been in > operation at the same location with the same key for the past eight months" is > a powerful bar to standard phishing approaches, it's exactly what you get in > the bricks-and-mortar world, "Serving the industry since 1962" goes a lot > further than "Serving the industry since just before lunchtime". Two issues occur to me. Firstly, you have to trust Google (and your path to Google). Secondly, and this seems to me to be a generic issue with Perspectives and SSL - what happens when the cert rolls? If the key also changes (which would seem to me to be good practice), then the site looks suspect for a while. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Mon Dec 29 23:25:55 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Tue, 30 Dec 2008 17:25:55 +1300 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <1b587cab0812291002w13cb2bb6nef8aa9b1d0438266@mail.gmail.com> Message-ID: Ben Laurie writes: >what happens when the cert rolls? If the key also changes (which would seem >to me to be good practice), then the site looks suspect for a while. I'm not aware of any absolute figures for this but there's a lot of anecdotal evidence that many cert renewals just re-certify the same key year in, year out (there was even a lawsuit over the definition of the term "renewal" in certificates a few years ago). So you could in theory handle this by making a statement about the key rather than the whole cert it's in. OTOH this then requires the crawler to dig down into the data structure (SSH, X.509, whatever) to pick out the bits corresponding to the key. Other alternatives are to use a key-rollover mechanism that signs the new key with old one (something that I've proposed for SSH, since their key-continuity model kinda breaks at that point), and all the other crypto rube-goldbergisms you can dream up. In any case though at the moment we have basically no assurance at all of key/cert information so even a less-than-perfect mechanism like trusting Google and having problems during cert rollover is way, way better than what we've got now. In any case if Google decides to go bad then redirecting everyone's searches to www.drivebymalware.ru is a bigger worry than whether they're sending out inaccurate Perspectives responses. Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From benl at google.com Tue Dec 30 01:57:09 2008 From: benl at google.com (Ben Laurie) Date: Tue, 30 Dec 2008 06:57:09 +0000 Subject: Security by asking the drunk whether he's drunk In-Reply-To: References: <1b587cab0812291002w13cb2bb6nef8aa9b1d0438266@mail.gmail.com> Message-ID: <1b587cab0812292257i3b26aad8q208b4f45a8ddf821@mail.gmail.com> On Tue, Dec 30, 2008 at 4:25 AM, Peter Gutmann wrote: > Ben Laurie writes: > >>what happens when the cert rolls? If the key also changes (which would seem >>to me to be good practice), then the site looks suspect for a while. > > I'm not aware of any absolute figures for this but there's a lot of anecdotal > evidence that many cert renewals just re-certify the same key year in, year > out (there was even a lawsuit over the definition of the term "renewal" in > certificates a few years ago). So you could in theory handle this by making a > statement about the key rather than the whole cert it's in. OTOH this then > requires the crawler to dig down into the data structure (SSH, X.509, > whatever) to pick out the bits corresponding to the key. Not really a serious difficulty. > Other alternatives > are to use a key-rollover mechanism that signs the new key with old one > (something that I've proposed for SSH, since their key-continuity model kinda > breaks at that point), and all the other crypto rube-goldbergisms you can > dream up. Yeah, that's pretty much the answer I came up with - another option would be to use both the old and new certs for a while. But signing the new with the old seems easiest to implement - the signature can go in an X509v3 extension, which means CAs can sign it without understanding it, and only Google has to be able to verify it, so all that needs to change is CSR generating s/w... --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From smb at cs.columbia.edu Tue Dec 30 10:35:00 2008 From: smb at cs.columbia.edu (Steven M. Bellovin) Date: Tue, 30 Dec 2008 10:35:00 -0500 Subject: FBI "code"-cracking contest Message-ID: <20081230103500.2d371861@cs.columbia.edu> http://www.networkworld.com/community/node/36704 --Steve Bellovin, http://www.cs.columbia.edu/~smb --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From b.m.m.d.weger at TUE.nl Tue Dec 30 10:40:44 2008 From: b.m.m.d.weger at TUE.nl (Weger, B.M.M. de) Date: Tue, 30 Dec 2008 16:40:44 +0100 Subject: Short announcement: MD5 considered harmful today - Creating a rogue CA certificate Message-ID: <7DF2365FF07C0E4E89419D65CCC93C9E014149035D7E@EXCHANGE11.campus.tue.nl> Hi all, Today, 30 December 2008, at the 25th Annual Chaos Communication Congress in Berlin, we announced that we are currently in possession of a rogue Certification Authority certificate. This certificate will be accepted as valid and trusted by all common browsers, because it appears to be signed by one of the commercial root CAs that browsers trust by default. We were able to do so by constructing a collision for the MD5 hash function, obtaining a valid CA signature in a website certificate legitimately purchased from the commercial CA, and copying this signature into a CA certificate constructed by us such that the signature remains valid. For more information about this project, see http://www.win.tue.nl/hashclash/rogue-ca/. The team consists of: Alexander Sotirov (independent security researcher, New York, USA), Marc Stevens (CWI, Amsterdam, NL), Jacob Appelbaum (Noisebridge, The Tor Project, San Francisco, USA), Arjen Lenstra (EPFL, Lausanne, CH), David Molnar(UCB, Berkeley, USA), Dag Arne Osvik (EPFL, Lausanne, CH), Benne de Weger (TU/e, Eindhoven, NL). For press and general inquiries, please email md5-collisions at phreedom.org. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From smb at cs.columbia.edu Tue Dec 30 11:27:24 2008 From: smb at cs.columbia.edu (Steven M. Bellovin) Date: Tue, 30 Dec 2008 11:27:24 -0500 Subject: Fw: [saag] Further MD5 breaks: Creating a rogue CA certificate Message-ID: <20081230112724.59abc84b@cs.columbia.edu> Begin forwarded message: Date: Tue, 30 Dec 2008 11:05:28 -0500 From: Russ Housley To: ietf-pkix at imc.org, ietf-smime at imc.org, saag at ietf.org, cfrg at irtf.org Subject: [saag] Further MD5 breaks: Creating a rogue CA certificate http://www.win.tue.nl/hashclash/rogue-ca/ MD5 considered harmful today Creating a rogue CA certificate December 30, 2008 Alexander Sotirov, Marc Stevens, Jacob Appelbaum, Arjen Lenstra, David Molnar, Dag Arne Osvik, Benne de Weger We have identified a vulnerability in the Internet Public Key Infrastructure (PKI) used to issue digital certificates for secure websites. As a proof of concept we executed a practical attack scenario and successfully created a rogue Certification Authority (CA) certificate trusted by all common web browsers. This certificate allows us to impersonate any website on the Internet, including banking and e-commerce sites secured using the HTTPS protocol. Our attack takes advantage of a weakness in the MD5 cryptographic hash function that allows the construction of different messages with the same MD5 hash. This is known as an MD5 "collision". Previous work on MD5 collisions between 2004 and 2007 showed that the use of this hash function in digital signatures can lead to theoretical attack scenarios. Our current work proves that at least one attack scenario can be exploited in practice, thus exposing the security infrastructure of the web to realistic threats. _______________________________________________ saag mailing list saag at ietf.org https://www.ietf.org/mailman/listinfo/saag --Steve Bellovin, http://www.cs.columbia.edu/~smb --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From smb at cs.columbia.edu Tue Dec 30 11:45:27 2008 From: smb at cs.columbia.edu (Steven M. Bellovin) Date: Tue, 30 Dec 2008 11:45:27 -0500 Subject: very high speed hardware RNG In-Reply-To: <20081229044906.GC22450@randombit.net> References: <8763l3239y.fsf@snark.cb.piermont.com> <20081229044906.GC22450@randombit.net> Message-ID: <20081230114527.32f7f624@cs.columbia.edu> On Sun, 28 Dec 2008 23:49:06 -0500 Jack Lloyd wrote: > On Sun, Dec 28, 2008 at 08:12:09PM -0500, Perry E. Metzger wrote: > > > > Semiconductor laser based RNG with rates in the gigabits per second. > > > > http://www.physorg.com/news148660964.html > > > > My take: neat, but not as important as simply including a decent > > hardware RNG (even a slow one) in all PC chipsets would be. Of course, every time a manufacturer has tried it, assorted people (including many on this list) complain that it's been sabotaged by the NSA or by alien space bats or some such. > I've been thinking that much better than a chipset addition (which is > only accessible by the OS kernel in most environments) would be a > simple ring-3 (or equivalent) accessible instruction that writes 32 or > 64 bits of randomness from a per-core hardware RNG, something like > > ; write 32 bits of entropy from the hardware RNG to eax register > rdrandom %eax > > Which would allow user applications to access a good hardware RNG > directly, in addition to allowing the OS to read bits to seed the > system PRNG (/dev/random, CryptoGenRandom, or similar) It's not obvious to me that you're right. In particular, we need to consider how such an instruction would interact with a virtual machine hypervisor. Is it a bug or a feature that the hypervisor can't intercept the request? Remember that reproducibility is often a virtue. > > I think the JVM in particular could benefit from such an extension, as > the abstractions it puts into place otherwise prevent most of the > methods one might use to gather high-quality entropy for a PRNG seed. > The JVM could just as easily open /dev/urandom today. --Steve Bellovin, http://www.cs.columbia.edu/~smb --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jacob at appelbaum.net Tue Dec 30 11:52:08 2008 From: jacob at appelbaum.net (Jacob Appelbaum) Date: Tue, 30 Dec 2008 17:52:08 +0100 Subject: MD5 considered harmful today Message-ID: <495A51B8.6000804@appelbaum.net> Hello, I wanted to chime in more during the previous x509 discussions but I was delayed by some research. I thought that I'd like to chime in that this new research about attacking x509 is now released. We gave a talk about it at the 25c3 about an hour or two ago. MD5 considered harmful today: Creating a rogue CA certificate Nearly everything is here: http://www.win.tue.nl/hashclash/rogue-ca/ Best, Jacob -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 155 bytes Desc: OpenPGP digital signature URL: From lloyd at randombit.net Tue Dec 30 13:37:10 2008 From: lloyd at randombit.net (Jack Lloyd) Date: Tue, 30 Dec 2008 13:37:10 -0500 Subject: very high speed hardware RNG In-Reply-To: <20081230114527.32f7f624@cs.columbia.edu> References: <8763l3239y.fsf@snark.cb.piermont.com> <20081229044906.GC22450@randombit.net> <20081230114527.32f7f624@cs.columbia.edu> Message-ID: <20081230183710.GE22450@randombit.net> On Tue, Dec 30, 2008 at 11:45:27AM -0500, Steven M. Bellovin wrote: > Of course, every time a manufacturer has tried it, assorted people > (including many on this list) complain that it's been sabotaged by the > NSA or by alien space bats or some such. Well, maybe it has. Or maybe it was just not competently implemented, or perhaps it has a failure mode that was not accounted for. The design might be perfect but the physical implementation that happens to be in your computer has a manufacturing flaw such that if the CPU core voltage is slightly low and the ambient temperature is above 95F, the raw output becomes biased from a uniform distribution in a subtle way - how do you detect something like that? I personally would not trust the direct output of any physical hardware source for anything, precisely because you cannot measure it, or test for failures, in any meaningful way. That does not mean it is not a useful thing to have. > It's not obvious to me that you're right. In particular, we need to > consider how such an instruction would interact with a virtual machine > hypervisor. Is it a bug or a feature that the hypervisor can't > intercept the request? Remember that reproducibility is often a virtue. We already have this problem with rdtsc and equivalent cycle counter reading instructions. ISTR that some architectures allow the kernel to forbid access to the cycle counter - if so, similar techniques could be used for a rdrandom instruction. For those that don't, the non-reproducability ship has already sailed (think of rdtsc as a rdrandom that has a very bad probability distribution). Reproducability is sometimes a virtue, but sometimes not. I recall discussions last year, I believe on this list, about how to design a PRNG that was able to safely deal with VM state rollbacks. A user-accessible RNG instruction would easily alleviate this problem. > The JVM could just as easily open /dev/urandom today. Except when it doesnt exist - in which case most Java software seems to default to things like seeding a PRNG with the timestamp, because the other alternatives that are feasible in Java, like interleaving counter reads among multiple threads, are slow, difficult to implement correctly, and even more difficult to test. -Jack --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From david_koontz at xtra.co.nz Tue Dec 30 14:25:04 2008 From: david_koontz at xtra.co.nz (David G. Koontz) Date: Wed, 31 Dec 2008 08:25:04 +1300 Subject: Researchers Show How to Forge Site Certificates | Message-ID: <495A7590.8010906@xtra.co.nz> http://www.freedom-to-tinker.com/blog/felten/researchers-show-how-forge-site-certificates By Ed Felten - Posted on December 30th, 2008 at 11:18 am Today at the Chaos Computing Congress, a group of researchers (Alex Sotirov, Marc Stevens, Jake Appelbaum, Arjen Lenstra, Benne de Weger, and David Molnar) announced that they have found a way to forge website certificates that will be accepted as valid by most browsers. This means that they can successfully impersonate any website, even for secure connections. --- Through the use of MD5 collisions. The slides from the presentation are available here: http://events.ccc.de/congress/2008/Fahrplan/events/3023.en.html The presentation entitled "MD5 considered harmful today, Creating a rogue CA Certificate" The collisions were found with a cluster of 200 PlayStation 3's. (slide number 3, see slide number 25 for a picture of the cluster, a collision taking one to two days) They apparently did a live demo using forged certificates in a man in the middle attack using a wireless network during the demonstration with access by the audience. (slide number 5) CAs still using MD5 in 2008: (slide number 19) ? RapidSSL ? FreeSSL ? TrustCenter ? RSA Data Security ? Thawte ? verisign.co.jp --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From david_koontz at xtra.co.nz Tue Dec 30 14:34:51 2008 From: david_koontz at xtra.co.nz (David G. Koontz) Date: Wed, 31 Dec 2008 08:34:51 +1300 Subject: Researchers Use PlayStation Cluster to Forge a Web Skeleton Key Message-ID: <495A77DB.1080309@xtra.co.nz> http://blog.wired.com/27bstroke6/2008/12/berlin.html More coverage on the MD5 collisions. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From david_koontz at xtra.co.nz Tue Dec 30 15:11:09 2008 From: david_koontz at xtra.co.nz (David G. Koontz) Date: Wed, 31 Dec 2008 09:11:09 +1300 Subject: Steve Bellovin on the MD5 Collision attacks, more on Wired Message-ID: <495A805D.8030606@xtra.co.nz> http://www.cs.columbia.edu/~smb/blog//2008-12/2008-12-30.html Steve mentions the social pressures involved in disclosing the vulnerability: Verisign, in particular, appears to have been caught short. One of the CAs they operate still uses MD5. They said: The RapidSSL certificates are currently using the MD5 hash function today. And the reason for that is because when you're dealing with widespread technology and [public key infrastructure] technology, you have phase-in and phase-out processes that cane take significant periods of time to implement. ... [4 years?] Legal pressure? Sotirov and company are not "hackers"; they're respected researchers. But the legal climate is such that they feared an injunction. Nor are such fears ill-founded; others have had such trouble. Verisign isn't happy: "We're a little frustrated at Verisign that we seem to be the only people not briefed on this". But given that the researchers couldn't know how Verisign would react, in today's climate they felt they had to be cautious. This is a dangerous trend. If good guys are afraid to find flaws in fielded systems, that effort will be left to the bad guys. Remember that for academics, publication is the only way they're really "paid". We need a legal structure in place to protect security researchers. To paraphrase an old saying, security flaws don't crack systems, bad guys do. -- The researchers provided information under NDA to browser manufacturers and Microsoft contacted Verisign providing no real details (http://blog.wired.com/27bstroke6/2008/12/berlin.html , the Wired article.): Callan confirms Versign was contacted by Microsoft, but he says the NDA prevented the software-maker from providing any meaningful details on the threat. "We're a little frustrated at Verisign that we seem to be the only people not briefed on this," he says. The researchers expect that their forged CA certificate will be revoked by Verisign following their talk, rendering it powerless. As a precaution, they set the expiration date on the certificate to August 2004, ensuring that any website validated through the bogus certificate would generate a warning message in a user's browser. --- The 2007 paper http://www.win.tue.nl/hashclash/EC07v2.0.pdf Chosen-prefix Collisions for MD5 and Colliding X.509 Certificates for Different Identities, Marc Stevens , Arjen Lenstra , and Benne de Weger (also from the Wired article) -- Nate Lawson's comments http://rdist.root.org/2008/12/30/forged-ca-cert-talk-at-25c3/ To paraphrase Gibson, ?Crypto security is available already, it just isn?t equally distributed.? --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From sidney at sidney.com Tue Dec 30 16:21:11 2008 From: sidney at sidney.com (Sidney Markowitz) Date: Wed, 31 Dec 2008 10:21:11 +1300 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <495A8DDB.4030104@sidney.com> References: <495A8DDB.4030104@sidney.com> Message-ID: <495A90C7.7050300@sidney.com> Sidney Markowitz wrote, On 31/12/08 10:08 AM: > or that CA root certs that use MD5 for their hash are > still in use and have now been cracked? I should remember -- morning coffee first, then post. The CA root certs themselves have not been cracked -- It is the digital signatures created by some CAs who still use MD5 to sign the certs that they issue that have been hacked: The known weakness in MD5 allows one to create two certs with the same MD5 hash, one that is legitimate to get signed by the CA, and another one for rogue use that can be given the same signature. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jon at callas.org Tue Dec 30 16:40:59 2008 From: jon at callas.org (Jon Callas) Date: Tue, 30 Dec 2008 13:40:59 -0800 Subject: very high speed hardware RNG In-Reply-To: <85E08273-4D26-46C7-BBF9-E51D469ED4A8@lrw.com> References: <8763l3239y.fsf@snark.cb.piermont.com> <85E08273-4D26-46C7-BBF9-E51D469ED4A8@lrw.com> Message-ID: > > The thing that bothers me about this description is the too-easy > jump between "chaotic" and "random". They're different concepts, > and chaotic doesn't imply random in a cryptographic sense: It may > be possible to induce bias or even some degree of predictability in > a chaotic system by manipulating its environment. I believe there > are also chaotic systems that are hard to predict in the forward > direction, but easy to run backwards, at least sometimes. > > That's not to say this system isn't good - it probably is - but just > saying its chaotic shouldn't be enough. > You are saying pretty much what I've been saying about this (and some other things). We don't have a formal definition of what we mean by random. My definition is that it needs to be unguessable. If I have a random number and the work factor for you to guess it is more or less its randomness. It's a Shannonesque way of looking things, but not precisely information-theoretic. A deterministic, but chaotic system that is sufficiently opaque gets pretty close to random. Let's just suppose that the model they give of photons bouncing in their laser is Newtonian. If there's enough going on in there, we can't model it effectively and it can be considered random because we can't know its outputs. However, on top of that, there's a problem that hardware people (especially physicists) just don't get about useful randomness, especially cryptographic random variables. Dylan said that to live outside the law, you must be honest. A cryptographic random variable has to look a certain way, it has to be honest. It's got to be squeaky clean in many ways. A true random variable does not. A true random variable can decide that it'll be evenly distributed today, normal tomorrow, or perhaps Poisson -- the way we decide what restaurant to go to. No, no, not Italian; I had Italian for lunch. That's why we cryptographers always run things through a lot of software. It's also why we want to see our hardware randomness, so we can correct for the freedom of the physical process. Imagine a die that is marked with a 1, four 4s, and a 5. This die is crap to play craps with, but we can still feed an RNG with it. We just need to know that it's not what it seems. So yeah -- it's a glib confusion between chaotic and random, but chaotic enough might be good enough. And the assumption that hardware can just be used is bad. Hardware that helpfully whitens is worse. Jon --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Tue Dec 30 17:11:41 2008 From: leichter at lrw.com (Jerry Leichter) Date: Tue, 30 Dec 2008 17:11:41 -0500 Subject: very high speed hardware RNG In-Reply-To: References: <8763l3239y.fsf@snark.cb.piermont.com> <85E08273-4D26-46C7-BBF9-E51D469ED4A8@lrw.com> Message-ID: On Dec 30, 2008, at 4:40 PM, Jon Callas wrote: > We don't have a formal definition of what we mean by random. My > definition is that it needs to be unguessable. If I have a random > number and the work factor for you to guess it is more or less its > randomness. It's a Shannonesque way of looking things, but not > precisely information-theoretic. I don't think this quite captures the situation. It's easy to give a formal definition of randomness; it's just not clear that such a thing can ever be realized. Here's one definition: A random bitstream generator is an "isolated" source of an infinite stream of bits, numbered starting at zero, with the property that a Turing machine, given as input anything about the universe except the internal state of the "isolated" source, and bits 0 to n generated by the source, has no better than a 50% chance of correctly guessing bit n+1. The difficulty is entirely in that quoted "isolated". It's not so much that we can't define it as that given any definition that captures the intended meaning, there are no known systems that we can definitely say are "isolated" in that sense. (Well, there's kind of an exception: Quantum mechanics tells us that the outcome of certain experiments is "random", and Bell's Theorem gives us some kind of notion of "isolation" by saying there are no hidden variables - but this is very technically complex and doesn't really say anything nearly so simple.) A while back, I wrote to this list about some work toward a stronger notion of "computable in principle", based on results in quantum mechanics that limit the amount of computation - in the very basic sense of bit flips - that can be done in a given volume of space- time. The argument is that a computation that needs more than this many bit flips can't reasonably be defined as possible "in principle" just because we can describe what such a computation would look like, if the universe permitted it! One might produce a notion of "strongly computationally random" based on such a theory. Curiously, as I remarked i that message, somewhere between 128 and 256 bits of key, a brute force search transitions from "impractical for the forseeable future" to "not computable in principle". So at least for brute force attacks - we're actually at the limits already. Perhaps it might actually be possible to construct such a "random against any computation that's possible in principle" source. > A deterministic, but chaotic system that is sufficiently opaque gets > pretty close to random. Let's just suppose that the model they give > of photons bouncing in their laser is Newtonian. If there's enough > going on in there, we can't model it effectively and it can be > considered random because we can't know its outputs. I don't like the notion of "opaqueness" in the context. That just means we can't see any order that might be in there. There's a classic experiment - I think Scientific American had pictures of this maybe 10 years back - in which you take a pair of concentric cylinders, fill the gap with a viscous fluid in which you draw a line with dye parallel to the cylinders' common axis. Now slowly turn the inner cylinder, dragging the dye along. This is a highly chaotic process, and after a short time, you see a completely random-looking dispersion of dye through the liquid. Present this to someone and any likely test will say this is quite random. But ... if you slow turn the inner cylinder backwards - "slowly", for both directions of turn, depending on details of the system - the original line of dye miraculously reappears. That's why it's not enough to have chaos, not enough to have opaqueness. The last thing you want to say is "this system is so complicated that I can't model it, so my opponent can't model it either, so it's random". To the contrary, you *want* a model that tells you something about *why* this system is hard to predict! > However, on top of that, there's a problem that hardware people > (especially physicists) just don't get about useful randomness, > especially cryptographic random variables. Dylan said that to live > outside the law, you must be honest. A cryptographic random variable > has to look a certain way, it has to be honest. It's got to be > squeaky clean in many ways. A true random variable does not. A true > random variable can decide that it'll be evenly distributed today, > normal tomorrow, or perhaps Poisson -- the way we decide what > restaurant to go to. No, no, not Italian; I had Italian for lunch. > > That's why we cryptographers always run things through a lot of > software. It's also why we want to see our hardware randomness, so > we can correct for the freedom of the physical process. Imagine a > die that is marked with a 1, four 4s, and a 5. This die is crap to > play craps with, but we can still feed an RNG with it. We just need > to know that it's not what it seems. This simply says that *known* bias and randomness are completely separate notions. I can always get rid of any *known* bias. Bias that's unknown/unmodeled to me as the *user* of the system, on the other hand, is very dangerous if an attacker might conceivably know more about the bias than I do. > So yeah -- it's a glib confusion between chaotic and random, but > chaotic enough might be good enough. And the assumption that > hardware can just be used is bad. Hardware that helpfully whitens is > worse. > > Jon -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jon at callas.org Tue Dec 30 17:34:25 2008 From: jon at callas.org (Jon Callas) Date: Tue, 30 Dec 2008 14:34:25 -0800 Subject: very high speed hardware RNG In-Reply-To: References: <8763l3239y.fsf@snark.cb.piermont.com> <85E08273-4D26-46C7-BBF9-E51D469ED4A8@lrw.com> Message-ID: On Dec 30, 2008, at 2:11 PM, Jerry Leichter wrote: > On Dec 30, 2008, at 4:40 PM, Jon Callas wrote: >> We don't have a formal definition of what we mean by random. My >> definition is that it needs to be unguessable. If I have a random >> number and the work factor for you to guess it is more or less its >> randomness. It's a Shannonesque way of looking things, but not >> precisely information-theoretic. > I don't think this quite captures the situation. It's easy to give > a formal definition of randomness; it's just not clear that such a > thing can ever be realized. And that is, pretty much, the point. A formal definition that is no guidance to people trying to build things is mathematics as art. Not that art is a bad thing -- I adore mathematics as art, and my time as a mathematician was all in the art department. It's just not useful to the part of me that's an engineer. Pretty has worth, just different worth than useful. > > > Here's one definition: A random bitstream generator is an > "isolated" source of an infinite stream of bits, numbered starting > at zero, with the property that a Turing machine, given as input > anything about the universe except the internal state of the > "isolated" source, and bits 0 to n generated by the source, has no > better than a 50% chance of correctly guessing bit n+1. The > difficulty is entirely in that quoted "isolated". It's not so much > that we can't define it as that given any definition that captures > the intended meaning, there are no known systems that we can > definitely say are "isolated" in that sense. (Well, there's kind of > an exception: Quantum mechanics tells us that the outcome of > certain experiments is "random", and Bell's Theorem gives us some > kind of notion of "isolation" by saying there are no hidden > variables - but this is very technically complex and doesn't really > say anything nearly so simple.) > > A while back, I wrote to this list about some work toward a stronger > notion of "computable in principle", based on results in quantum > mechanics that limit the amount of computation - in the very basic > sense of bit flips - that can be done in a given volume of space- > time. The argument is that a computation that needs more than this > many bit flips can't reasonably be defined as possible "in > principle" just because we can describe what such a computation > would look like, if the universe permitted it! One might produce a > notion of "strongly computationally random" based on such a theory. > Curiously, as I remarked i that message, somewhere between 128 and > 256 bits of key, a brute force search transitions from "impractical > for the forseeable future" to "not computable in principle". So at > least for brute force attacks - we're actually at the limits > already. Perhaps it might actually be possible to construct such a > "random against any computation that's possible in principle" source. > >> A deterministic, but chaotic system that is sufficiently opaque >> gets pretty close to random. Let's just suppose that the model they >> give of photons bouncing in their laser is Newtonian. If there's >> enough going on in there, we can't model it effectively and it can >> be considered random because we can't know its outputs. > I don't like the notion of "opaqueness" in the context. That just > means we can't see any order that might be in there. There's a > classic experiment - I think Scientific American had pictures of > this maybe 10 years back - in which you take a pair of concentric > cylinders, fill the gap with a viscous fluid in which you draw a > line with dye parallel to the cylinders' common axis. Now slowly > turn the inner cylinder, dragging the dye along. This is a highly > chaotic process, and after a short time, you see a completely random- > looking dispersion of dye through the liquid. Present this to > someone and any likely test will say this is quite random. But ... > if you slow turn the inner cylinder backwards - "slowly", for both > directions of turn, depending on details of the system - the > original line of dye miraculously reappears. > > That's why it's not enough to have chaos, not enough to have > opaqueness. The last thing you want to say is "this system is so > complicated that I can't model it, so my opponent can't model it > either, so it's random". To the contrary, you *want* a model that > tells you something about *why* this system is hard to predict! Exactly. You've described a chaotic but easily reversible system, and that makes it unsuitable to be random by my "unguessability" metric. There exists an algorithm that's faster than guessing, and so therefore it isn't random. > > >> However, on top of that, there's a problem that hardware people >> (especially physicists) just don't get about useful randomness, >> especially cryptographic random variables. Dylan said that to live >> outside the law, you must be honest. A cryptographic random >> variable has to look a certain way, it has to be honest. It's got >> to be squeaky clean in many ways. A true random variable does not. >> A true random variable can decide that it'll be evenly distributed >> today, normal tomorrow, or perhaps Poisson -- the way we decide >> what restaurant to go to. No, no, not Italian; I had Italian for >> lunch. >> >> That's why we cryptographers always run things through a lot of >> software. It's also why we want to see our hardware randomness, so >> we can correct for the freedom of the physical process. Imagine a >> die that is marked with a 1, four 4s, and a 5. This die is crap to >> play craps with, but we can still feed an RNG with it. We just need >> to know that it's not what it seems. > This simply says that *known* bias and randomness are completely > separate notions. I can always get rid of any *known* bias. Bias > that's unknown/unmodeled to me as the *user* of the system, on the > other hand, is very dangerous if an attacker might conceivably know > more about the bias than I do. Yes. Again, we're in agreement on this. If I think some system is unguessable to 256 bits, and it's really unguessable to 10 bits, then someone who knows those ten bits can easily search for a state that I think is unsearchable. (At least in principle -- ten bits worth of calculations that take a century each is a different thing entirely, but that's only because centuries are longer than nanoseconds.) Jon --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From hal at finney.org Tue Dec 30 14:51:06 2008 From: hal at finney.org (Hal Finney) Date: Tue, 30 Dec 2008 11:51:06 -0800 (PST) Subject: MD5 considered harmful today Message-ID: <20081230195106.52DEA14F6E1@finney.org> Re: http://www.win.tue.nl/hashclash/rogue-ca/ Key facts: - 6 CAs were found still using MD5 in 2008: RapidSSL, FreeSSL, TC TrustCenter AG, RSA Data Security, Thawte, verisign.co.jp. "Out of the 30,000 certificates we collected, about 9,000 were signed using MD5, and 97% of those were issued by RapidSSL." RapidSSL was used for the attack. - The attack relies on cryptographic advances in the state of the art for finding MD5 collisions from inputs with different prefixes. These advances are not yet being published but will presumably appear in 2009. - The collision was found using Arjen Lenstra's PlayStation Lab and used 200 PS3s with collectively 30 GB of memory. The attack is in two parts, a new preliminary "birthdaying" step which is highly parallelizable and required 18 hours on the PS3s, and a second stage which constructs the actual collision using 3 MD5 blocks and runs on a single quad core PC, taking 3 to 10 hours. - The attack depends on guessing precisely the issuing time and serial number of the "good" certificate, so that a colliding "rogue" certificate can be constructed in advance. The time was managed by noting that the cert issuing time was reliably 6 seconds after the request was sent. The serial number was managed because RapidSSL uses serially incrementing serial numbers. They guessed what serial number would be in use 3 days hence, and bought enough dummy certs just before the real one that hopefully the guessed serial number would be hit. - The attacks were mounted on the weekend, when cert issuance rates are lower. It took 4 weekends before all the timing and guessing worked right. The cert was issued November 3, 2008, and the total cert-purchase cost was $657. - The rogue cert, which has the basicConstraints CA field set to TRUE, was intentionally back-dated to 2004 so even if the private key were stolen, it could not be misused. My take on this is that because the method required advances in cryptography and sophisticated hardware, it is unlikely that it could be exploited by attackers before the publication of the method, or the publication of equivalent improvements by other cryptographers. If these CAs stop issuing MD5 certs before this time, we will be OK. Once a CA stops issuing MD5 certs, it cannot be used for the attack. Its old MD5 certs are safe and there is no danger of future successful attacks along these lines. As the paper notes, changing to using random serial numbers may be an easier short-term fix. Therefore the highest priority should be for the six bad CAs to change their procedures, at least start using random serial numbers and move rapidly to SHA1. As long as this happens before Eurocrypt or whenever the results end up being published, the danger will have been averted. This, I think, is the main message that should be communicated from this important result. Hal Finney --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From ekr at networkresonance.com Tue Dec 30 20:02:35 2008 From: ekr at networkresonance.com (Eric Rescorla) Date: Tue, 30 Dec 2008 17:02:35 -0800 Subject: MD5 considered harmful today In-Reply-To: <20081230195106.52DEA14F6E1@finney.org> References: <20081230195106.52DEA14F6E1@finney.org> Message-ID: <20081231010235.E397650822@romeo.rtfm.com> At Tue, 30 Dec 2008 11:51:06 -0800 (PST), "Hal Finney" wrote: > Therefore the highest priority should be for the six bad CAs to change > their procedures, at least start using random serial numbers and move > rapidly to SHA1. As long as this happens before Eurocrypt or whenever > the results end up being published, the danger will have been averted. > This, I think, is the main message that should be communicated from this > important result. VeriSign says that they have already fixed RapidSSL: https://blogs.verisign.com/ssl-blog/2008/12/on_md5_vulnerabilities_and_mit.php Q: How will VeriSign mitigate this problem? A: VeriSign has removed this vulnerability. As of shortly before this posting, the attack laid out this morning in Berlin cannot be successful against any RapidSSL certificate nor any other SSL Certificate that VeriSign sells under any brand. Q: Does that mean VeriSign has discontinued use of MD5? A: We have been in the process of phasing out the MD5 hashing algorithm for a long time now. MD5 is not in use in most VeriSign certificates for most applications, and until this morning our roadmap had us discontinuing the last use of MD5 in our customers' certificates before the end of January, 2009. Today's presentation showed how to combine MD5 collision attacks with some other clever bits of hacking to create a false certificate. We have discontinued using MD5 when we issue RapidSSL certificates, and we've confirmed that all other SSL Certificates we sell are not vulnerable to this attack. We'll continue on our path to discontinue MD5 in all end entity certificates by the end of January, 2009. Incidentally, I most of the CAs names in Slide 19 are VeriSign brands. In particular RapidSSL, RSA, Thawte, and Verisign.co.jp are and I believe that FreeSSL is as well. -Ekr --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001 at cs.auckland.ac.nz Tue Dec 30 19:57:47 2008 From: pgut001 at cs.auckland.ac.nz (Peter Gutmann) Date: Wed, 31 Dec 2008 13:57:47 +1300 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <495A8DDB.4030104@sidney.com> Message-ID: Sidney Markowitz writes: >So which is worse, that anyone (allegedly) can get a cert from Comodo for any >domain without any proof of identity or verification of control of the domain, >or that CA root certs that use MD5 for their hash are still in use and have >now been cracked? ... or the fact that one in ten signed Windows binaries are comercial CA- certified signed malware, or that we have a multibillion dollar global phishing industry built around the failure of SSL certs to do what they were supposed to? On this, the final day of 2008, the 30th anniversary of certificates and the 20th anniversary of X.509, I declare commercial PKI... ... failed [0][1]. It's had thirty years, let's get over it and move on to something that actually has a hope of working. Peter (who doesn't see much chance of that happening, unfortunately). [0] Except to people holding stock in certificate manufacturers, who aren't doing so badly. [1] Or at least "obviously failed", as opposed to the earlier "failed but we can pretend there isn't a problem". --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Tue Dec 30 22:19:39 2008 From: leichter at lrw.com (Jerry Leichter) Date: Tue, 30 Dec 2008 22:19:39 -0500 Subject: Security by asking the drunk whether he's drunk In-Reply-To: <495A90C7.7050300@sidney.com> References: <495A8DDB.4030104@sidney.com> <495A90C7.7050300@sidney.com> Message-ID: <98ADB9B7-1595-45BC-926E-B35BE447CB79@lrw.com> On Dec 30, 2008, at 4:21 PM, Sidney Markowitz wrote: > Sidney Markowitz wrote, On 31/12/08 10:08 AM: >> or that CA root certs that use MD5 for their hash are >> still in use and have now been cracked? > > I should remember -- morning coffee first, then post. > > The CA root certs themselves have not been cracked -- It is the > digital > signatures created by some CAs who still use MD5 to sign the certs > that > they issue that have been hacked: The known weakness in MD5 allows one > to create two certs with the same MD5 hash, one that is legitimate to > get signed by the CA, and another one for rogue use that can be given > the same signature. Robert Graham writes in Errata Security (http://erratasec.blogspot.com/2008/12/not-all-md5-certs-are-vulnerable.html ) that the attack depends on being able to predict the serial number field that will be assigned to a legitimate certificate by the CA. Only a few CA's use predictable "serial numbers" - the field is actually arbitrary text and need only be certainly unique among all certificates issued by a given CA. Of course, we've seen in the past that having too much freedom to insert "known to be random" (hence uncheckable) stuff into a signed piece of text can itself be hazardous in other ways. So: The current attack is only effective against a very small number of CA's which both use MD5 *and* have predictable sequence numbers. So the sky isn't falling - though given how hard it is to "decertify" a CA (given that the "known good" CA's are known to literally billions of pieces of software, and that hardly anyone checks CRL's - and are there even CRL's for CA's?) this is certainly not a good situation. This also doesn't mean that, now that the door has been opened, other attacks won't follow. In fact, it's hard to imagine that this is the end of the story.... -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com