8 ms·
ChaosKey: a Hardware True Random Number Generator That Attaches via USB
- jordanlev 11y agoCurious how exactly this generates truly random numbers (and didn't see an explanation in the link). Can anyone explain this in technically-inclined laymen's terms? fwiw, I'm a programmer but don't know anything about random number generation (other than I'm not supposed to rely on the built-in random functions of most languages/libraries for security purposes because they're not truly random).
- kasbah 11y agoThe key components are the two transistors connected back to back. The first (Q1, pins 1, 2 and 6) is effectively used as a zener diode which will exhibit breakdown noise at low currents [1]. The second transistor (also labelled Q1 but on pins 3, 5 and 4) is used as an amplifier of said noise. A similar circuit is explained in more technical detail here: http://www.nutsvolts.com/magazine/article/bipolar_transistor_cookbook_part_5 http://www.nutsvolts.com/magazine/article/bipolar_transistor... (look for the "WHITE NOISE GENERATORS" chapter title) [1]: https://en.wikipedia.org/wiki/Noise_generator#Zener_diode https://en.wikipedia.org/wiki/Noise_generator#Zener_diode
- adrusi 11y agoWe think that cosmic background radiation and certain subatomic mechanics are truly random. If you attach extra hardware to a computer, you can observe these and send a stream of bits to the computer. You don't usually want to use truly random numbers for cryptography though; /dev/random is more appropriate. I've never understood why, exactly, but that's generally the advice.
- witty_username 11y agoYou can use "truly" random numbers for cryptography. /dev/random is not recommended (except for perhaps long-term keys if you're worried about the randomness algorithms having a vulnerability), use /dev/urandom.
- atoponce 11y agoThere is no difference between /dev/random and /dev/urandom in the Linux kernel, other than /dev/random blocks when the entropy estimate is low or depleted. Both source them same CSPRNG, which is based on SHA-1. /dev/urandom is absolutely recommended for long-term keys.
- floatboth 11y ago> except for perhaps long-term keys On most systems, urandom and random are the exact same thing. Only Linux does this weird "blocking random" thing, based on some weird estimate of "running out of entropy" which is not an actual thing. (u)random is powered by a CSPRNG which is seeded by "truly random numbers" gathered from multiple hardware sources.
- maaku 11y agoCosmic background radiation as observed by a sensor connected to the computer is not random. All I'd need to mess with the randomness is to put a focused radiation source near the device. Sampling randomness from the environment surrounding the physical installation of the device is not good. I hope no one is doing this. There's no reason why you wouldn't want to use truly random numbers for cryptography. That's what /dev/random is supposed to provide.
- DanBC 11y agoThey tend to generate electrical noise (often from a semiconductor), amplify that noise, sample it, de-skew the stream, and present that to a port for reading. Here's some information I had from a while ago. (Not all of this is about hardware RNGs) https://news.ycombinator.com/item?id=6060636 https://news.ycombinator.com/item?id=6060636
- tlrobinson 11y agoI don't know much about this stuff, but it looks like it's a reverse-biased noise generator of some kind. https://en.wikipedia.org/wiki/Noise_generator https://en.wikipedia.org/wiki/Noise_generator http://holdenc.altervista.org/avalanche/ http://holdenc.altervista.org/avalanche/ http://freenrg.info/Physics/Scalar_Vector_Pot_And_Rick_Andersen/Rick_Andersen_Noisegen.htm http://freenrg.info/Physics/Scalar_Vector_Pot_And_Rick_Ander...
- deleted 11y ago[deleted]
- homero 11y agoThese are awesome but we need vps's to add these
- witty_username 11y agoWhy? Once /dev/urandom is seeded, you can use it for an unlimited amount.
- Nrsolis 11y agoNot strictly true. Neither is really great if what you are looking for is TRUE randomness. https://www.schneier.com/blog/archives/2013/10/insecurities_in.html https://www.schneier.com/blog/archives/2013/10/insecurities_...
- homero 11y agoThat's not a trng
- witty_username 11y agoNot philosophically random, but practically random (i.e. impossible for an attacker to predict the values).
- witty_username 11y agoNot philosophically random, but practically random, i.e. impossible for an attacker to predict the values.
- trothamel 11y agoDoes anyone know how this compares to the hardware random number generators built into most computers?
- FiloSottile 11y agoThese tokens, like the OneRNG, are quite interesting from an engineering point of view, but as a developer all you ever need to know or do about secure randomness is to use /dev/urandom and nothing else (unless it's a wrapper for /dev/urandom). Not /dev/random, not rand(), not something you found in a library. Just bytes, read from /dev/urandom. Here is my CCC talk about why that is, which includes everything from kernel sources to authoritative quotes: https://media.ccc.de/v/32c3-7441-the_plain_simple_reality_of_entropy https://media.ccc.de/v/32c3-7441-the_plain_simple_reality_of... EDIT: the talk is in English, but you have to select it from the video UI, in the bottom right.
- deleted 11y ago[deleted]
- nine_k 11y agoI wonder what to use on Windows. Because sometimes you maybe need robust randomness on a popular desktop.
- FiloSottile 11y agoCryptGenRandom. It's the Windows equivalent of /dev/urandom.
- veeti 11y agoCryptGenRandom [1] would be the equivalent. [1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa379942(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/windows/desktop/aa3...
- voidz 11y agoAnother project is TrueRNG. They provide a small USB device, and a more expensive, larger TrueRNG Pro device, via http://ubld.it/ http://ubld.it/
- petra 11y agoGood project. A question: Is there value in cryopto-signing the random numbers this emits ?
- nickpsecurity 11y agoIf you're going to have a blackbox (the SOC), you might as well get a BitBabbler as they have better design for noise and the black box is dumbest USB chip they could find. http://www.bitbabbler.org/index.html http://www.bitbabbler.org/index.html Needs more peer review and independent testing anyway. It's designed so you can do it yourself with a logic analyzer or whatever. EDIT: I should add that, quite interesting to me, BitBabbler folks are building this for people who already know why a TRNG or analog source is important. They're not interested in evangelizing or winning anyone over: just people already wanting one buying it and preferably analyzing it to give them feedback on esoteric failure modes they haven't thought of. Only contact them if you're serious.
- tonetheman 11y agoThis looks cool... but no prices... Are these super expensive or did nerds design their site :)
- nickpsecurity 11y agoThey were in the $100-200 range IIRC. Funny thing about your comment on design: "If you want to know more about the company where this all started, the Voicetronix website can tell you all about that, in all its only slightly updated since the mid 90's glory. We're engineers who build great hardware and provide exceptional support for it ... Web 2.0 bling isn't quite our favourite thing to spend time on :) " (source: bottom of Buy page) Haha. Anyway, I tried to find price but couldn't. If you want one, just email them at the address in BitBabbler Buy tab for a price quote. That's how they typically work. Here's the company if you're curious: http://www.voicetronix.com/ http://www.voicetronix.com/ Their differentiator, per their lead engineer, was quality hardware with free as in speech software and custom service/support. I found that interesting esp given it's a 90's era business that predates the OSS HW fads. A model worth copying perhaps. Note: I haven't hands on reviewed a BitBabbler or their other products. Not endorsing them. Just like what I saw and heard vs what I usually see and hear. Suggesting others review, test, or use the products to see if they live up.
- gravypod 11y agoHas anyone done any cryptographically analysis with these things? I'd love to get my hands on one of these and do some statistics on a lot of data pulled off of these. To be honest, I think that at certain controlled temperatures, I'd bet you could start to weight numbers for prediction if you are trying to break crypto keys generated by these.
- DanBC 11y agoHere's a very old (1997) examination of 3 devices: http://www.robertnz.net/true_rng.html http://www.robertnz.net/true_rng.html I see a few hardware RNGs, and they're usually uncased. I think I'd want it in a good quality shielded case.
- gravypod 11y agoI hate to make anyone feel old, but I'm as old as this study. Does this information still hold true today? I'd wonder what big data analysis of this data would show us (IE occurrences of certain samples of 1 TB of data polled).
- FredericJ 11y agoIf those kind of devices interest you, I'm quite intrigued by the IDQuantique ones that are based on quantum physics to generate randomness. They have a USB product that has a random stream of 4Mbits/sec and is used by lotteries and gambling sites. http://www.idquantique.com/random-number-generation/quantis-random-number-generator/ http://www.idquantique.com/random-number-generation/quantis-...
- Cyph0n 11y agoIntel has a patent on a TRNG that has a throughput of 2 Gbps+. They published a paper on its operation in JSSC a while back [1]. It passes all NIST RNG tests and is PVT tolerant. Too bad it's patented... [1]: http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6339068 http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6...
- Animats 11y agoNoise-source based random number generators can be vulnerable to interference. If there's a radio transmitter nearby, the RF may add an input to the noise. An RF source with a strong carrier will add a periodic value. Not good. Radiation sources really are random. You get a nice strong signal from each decay sensed, and the time between those events is random.
- atoponce 11y agoRadioactive decay is slow, slow, slow. There are much better performing sources of randmness, such as beam splitting. Further, not all noise is RF-based. Thermal noise, for example, is not influenced by RF intereferrence.
- Animats 11y agoAnything which depends on high amplification of an analog signal has potential interference problems. You need a physical phenomenon which produces discrete events, or good shielding. It's not hard to shield against RF and magnetic interference, but it takes some metal and size, which can be a problem for a USB connector sized device. You also have to filter the power going into the shielded area. It's useful to take the output of the noise generator and run it into a spectrum analyzer while using electric motors and walkie-talkies close to the device. If the noise spectrum change shape when you do that, it's not random.
- PhantomGremlin 11y agoRadioactive decay is slow, slow, slow. Here's a cheap way to generate 800 bits per second from radioactive decay. https://www.fourmilab.ch/hotbits/ https://www.fourmilab.ch/hotbits/ Why aren't 800 honest-to-goodness random bits per second enough for all practical purposes? If you need more than that, you should be playing in the big leagues, where using a little USB fob is not the answer!
- atoponce 11y agoWhy aren't 800 honest-to-goodness random bits per second enough for all practical purposes? For seeding the system CSPRNG, that's fine. For securely destroying data, such as wiping hard drives, or creating underlying noise for encrypted filesystems, 800 Bps is going to take you years to work through a 4 TB hard drive.
- cm2187 11y agoIs there any reason we don't have hardware RNG in modern CPUs/MB? It sounds like an obvious feature to have as a standard, when we think of the efforts required to create a decent software pseudo RNG, and the fact that crypto is absolutely everywhere.
- stegosaurus 11y agohttps://en.wikipedia.org/wiki/RdRand https://en.wikipedia.org/wiki/RdRand Choice bits: >> RDRAND is available in Ivy Bridge processors Theodore Ts'o: >> Relying solely on the hardware random number generator which is using an implementation sealed inside a chip which is impossible to audit is a BAD idea.
- deleted 11y ago[deleted]
- JacksonGariety 11y ago"truly random" is an oxymoron, folks
- atoponce 11y agoI don't think so. In the terms of "random that does not follow a known deterministic algorithm or formula", both chaotic sources like lightning strikes, and quantum states, like photon spin, can be so random, that for all definitions of "truly random", they fit the bill.
- atoponce 11y agoI noticed that this hasn't been mentioned yet, so I'll bring it up here. While RF-based noise generators can be influenced by outside sources, using an RTL-SDR with https://github.com/pwarren/rtl-entropy https://github.com/pwarren/rtl-entropy can be a great way to get environmental RF noise. In actual reality, the generator won't be influenced, because it will require a strong signal, close by, likely transmitting illegally on the frequency you are listening to (of course, the attacker would need to know the frequency you're tuned to). Simple monitoring tools and scripts can be used to test the quality of the generator output. If the quality of the randomness begins to fail, as would happen with deliberate RF interference, then the script would stop outputting bits, and alert the administrator. Or, even better, switch to a different frequency, chosen at random by the kernel CSPRNG. What's great about using the RTL-SDR as an RNG, is these devices are cheap (about $20) and can output 3 MiBps, which vastly out performs any USB HWRNG that I have personally tested for the value (bits per second per dollar). FWIW, random.org uses RF noise as the basis for delivering random numbers to the Internet. Anyway, FYI.
- kabouseng 11y agoWould have been nice if they posted some of the output of the RNG's as well as the results from some tests on the randomness of the output like Die hard[1]: https://en.wikipedia.org/wiki/Diehard_tests https://en.wikipedia.org/wiki/Diehard_tests
- SFJulie 11y agowell, it makes a lot of man in the middle : the HW USB susbsystem, the USB driver, the OS, the driver or the electronic doing the interface. Plus it makes a lot of electromagnetic vulnerabilities (reading/influencing with a magnetic field) A purely paranoid person would really prefer something with an antenna (to get some noise by detection), some RLC, a defective/chaotic oscillator on the dye of an a SOC that makes it embedded and you can verify by looking with a microscope that you shield in a Faraday cage. And no, deciphering logic of a microchip with a microscope is not that hard ; almost anyone can do it with a tad of training and some education.
- teddyh 11y agoLooks great! So how do I buy one? Is it still in development?