6 ms·
He's right about the low entropy of many crypto random number generators. There are so many cases of this that it can't be by accident. 2013: Android random n
by Animats 12y ago
He's right about the low entropy of many crypto random number generators. There are so many cases of this that it can't be by accident.
2013: Android random number flaw exploited for Bitcoin theft.
http://arstechnica.com/security/2013/08/google-confirms-critical-android-crypto-flaw-used-in-5700-bitcoin-heist/ http://arstechnica.com/security/2013/08/google-confirms-crit...
Backdoor in RSA?
http://arstechnica.com/security/2014/01/how-the-nsa-may-have-put-a-backdoor-in-rsas-cryptography-a-technical-primer/ http://arstechnica.com/security/2014/01/how-the-nsa-may-have...
Linus Torvalds insists on accepting Intel patch to use their hardware random number generator directly instead of just using it as one of multiple sources being XORed together.
http://cryptome.org/2013/07/intel-bed-nsa.htm http://cryptome.org/2013/07/intel-bed-nsa.htm
Then there are "features" in SSL/TLS which make little sense, such as the ability to change the cryptosystem during the connection. This includes changing it to "None". That's been exploited.
http://www.praetorian.com/blog/man-in-the-middle-tls-ssl-protocol-downgrade-attack http://www.praetorian.com/blog/man-in-the-middle-tls-ssl-pro...
- tptacek 12y agoRegarding Android: not only could it be an accident, it almost certainly is an accident. For instance: the Android RNG flaw didn't stem from a single coherent design flaw, but rather from the meta-flaw of relying on application-layer (or in this case runtime-layer) randomness, and not nailing the order of initialization in all the components. It's easy to see why this would have happened by accident: (a) the belief that runtime-layer randomness is better, more performant, more reliable on mobile platform and (b) the lack of understanding that a single central kernel-level RNG is superior to app-layer RNGs (which is a relatively modern idea). Regarding RSA: that's not a backdoor in RSA. That's a supposed backdoor in BSAFE, a library sold by RSA. The story pertains to BSAFE's support for the Dual-EC PKRNG. (Of the supposed backdoors propagated by the NSA, by the way, this is probably the most credible). I'm not sure what your allusion to Torvalds was meant to indicate. The SSL/TLS downgrade attack you linked to didn't have anything to do with the "None" ciphersuite, or re-negotiation.
- Animats 12y agoI'm not sure what your allusion to Torvalds was meant to indicate. This. Right here is where Linus Torvalds sold out: https://lkml.org/lkml/2012/7/5/425 https://lkml.org/lkml/2012/7/5/425 FreeBSD didn't: http://arstechnica.com/security/2013/12/we-cannot-trust-intel-and-vias-chip-based-crypto-freebsd-developers-say/ http://arstechnica.com/security/2013/12/we-cannot-trust-inte...
- acqq 12y agoRead carefully what Linus actually wrote, not what you believe he writes. Here he suggests an even better implementation than the one actually implemented afterwards: feeding hwrng to the pool just like the all other sources. The last time I've checked (a year or a two ago) the hwrng was there but had the special treatment, not passing the same path as the other sources. So it's more "why wasn't hwrng treated as the other sources later" than why he wrote what he wrote here.
- tptacek 12y agoI think Bernstein agrees with this, for what it's worth. I could be remembering wrong.
- JoachimSchipper 12y agoIIRC, Bernstein actually disagrees with (almost) any use of rdrand. Consider, as a toy example, an rdrand that poisons a register, so that xor'ing it with anything results in a known value; this might be worse than useless. (http://blog.cr.yp.to/20140205-entropy.html http://blog.cr.yp.to/20140205-entropy.html: "imagine RDRAND microcode that's looking at the randomness pool that it's about to be hashed into") I'm not sure I agree with Bernstein here.
- tptacek 12y agoI feel like I remember him saying something about how as long as it's just another thing hashed into the randomness pool, it's not that big of a deal. But I haven't seen that in writing anywhere. I could just be wrong.
- rtpg 12y agoBy this logic NSA also is responsable for all buffer overflow attacks as well. At the end of the day, there are just things that are easy to get wrong, it's not all a big conspiracy.