Live data from Hacker News

How secure is Linux's random number generator?

lists.randombit.net

91–100 of 100 posts

Re: How secure is Linux's random number generator?

#91
post #89
post #83

There are several different ways in which randomness is used in the kernel. One general class of randomness is things like randomizing the sequence numbers and port numbers of new network connections. If you can predict the result of this randomness, it becomes easier to carry out attacks such as hijacking a TCP connection. (Note that if the active attacker controls the path between the source and the destination, th…

If you are super paranoid, you'll need to find a hardware random generator which you've built yourself --- and hopefully you are competent enough to actually build a real HWRNG, and not something which is sampling 60 Hz hum (or 50 Hz hum if you are in Europe :-), and mix that into the entropy pool as well. What do you propose as a low cost solution? I've seen some interesting suggestions, such as having a small fish…

It's not really low-cost, but:

http://gamesbyemail.com/News/DiceOMatic

Re: How secure is Linux's random number generator?

#92
post #91
post #89

Earlier quoted context omitted.

If you are super paranoid, you'll need to find a hardware random generator which you've built yourself --- and hopefully you are competent enough to actually build a real HWRNG, and not something which is sampling 60 Hz hum (or 50 Hz hum if you are in Europe :-), and mix that into the entropy pool as well. What do you propose as a low cost solution? I've seen some interesting suggestions, such as having a small fish…

It's not really low-cost, but: http://gamesbyemail.com/News/DiceOMatic

Too mechanical. I'm afraid I like my bubble idea more. Unless I get my hands on some suitable radioisotope, that is.

Re: How secure is Linux's random number generator?

#93
post #89
post #83

There are several different ways in which randomness is used in the kernel. One general class of randomness is things like randomizing the sequence numbers and port numbers of new network connections. If you can predict the result of this randomness, it becomes easier to carry out attacks such as hijacking a TCP connection. (Note that if the active attacker controls the path between the source and the destination, th…

If you are super paranoid, you'll need to find a hardware random generator which you've built yourself --- and hopefully you are competent enough to actually build a real HWRNG, and not something which is sampling 60 Hz hum (or 50 Hz hum if you are in Europe :-), and mix that into the entropy pool as well. What do you propose as a low cost solution? I've seen some interesting suggestions, such as having a small fish…

Sit a Geiger counter next to a jar of Brazil nuts, and time events? You would need a way of testing the Geiger counter, but that should be possible. Alternatively, buy one at surplus from a university laboratory. If they're any good, they would have already noticed it misbehaving.

Re: How secure is Linux's random number generator?

#94
post #72

The annoying thing is that the Linux RNG is really limiting without something like RdRand. It used to be that most drivers contributed to the randomness pool, so it seldom ran short. It used to be that you could configure the size of the pool, so if you were running short you could make it larger. But then it was discovered that the pool resizing had a locally exploitable vulnerability so it was removed, leaving it a…

Apparently, for some "security experts" it's damned if you do, damned if you don't If you don't use RdRand then you have few sources of "true" randomness, hence, your RNG is predictable, manipulable and you're an idiot and a 5 year old can break your crypto If you use RdRand then "blah blah blah this is opaque", hence, your RNG is predictable, manipulable and you're an idiot and a 5 year old can break your crypto Per…

Meh. Simply making the default pool larger would go a long way towards moving systems out of a desperate situation. With that done there would be a lot less reason to short circuit it and go RdRand only.

No one is concerned about RdRand as a contributing source— with other genuine source of randomness RdRand isn't likely a back door once mixed in.

Re: How secure is Linux's random number generator?

#95
post #94

Earlier quoted context omitted.

Apparently, for some "security experts" it's damned if you do, damned if you don't If you don't use RdRand then you have few sources of "true" randomness, hence, your RNG is predictable, manipulable and you're an idiot and a 5 year old can break your crypto If you use RdRand then "blah blah blah this is opaque", hence, your RNG is predictable, manipulable and you're an idiot and a 5 year old can break your crypto Per…

Meh. Simply making the default pool larger would go a long way towards moving systems out of a desperate situation. With that done there would be a lot less reason to short circuit it and go RdRand only. No one is concerned about RdRand as a contributing source— with other genuine source of randomness RdRand isn't likely a back door once mixed in.

Making the pool larger isn't sufficient for embedded systems that don't have a lot of sources of entropy in the first place. Especially since very often the most critical secrets (such as the RSA keys for the certificates used by network printers, for example) are generated when the embedded system is first installed, where even if you have a larger pool, there isn't any opportunity to fill with the extremely limited amount of entropy available to said device.

Re: How secure is Linux's random number generator?

#96
post #92
post #91

Earlier quoted context omitted.

It's not really low-cost, but: http://gamesbyemail.com/News/DiceOMatic

Too mechanical. I'm afraid I like my bubble idea more. Unless I get my hands on some suitable radioisotope, that is.

That's not hard. Just get an ionizing smoke detector:

http://www.etoan.com/random-number-generation/

Re: How secure is Linux's random number generator?

#97
post #95
post #94

Earlier quoted context omitted.

Meh. Simply making the default pool larger would go a long way towards moving systems out of a desperate situation. With that done there would be a lot less reason to short circuit it and go RdRand only. No one is concerned about RdRand as a contributing source— with other genuine source of randomness RdRand isn't likely a back door once mixed in.

Making the pool larger isn't sufficient for embedded systems that don't have a lot of sources of entropy in the first place. Especially since very often the most critical secrets (such as the RSA keys for the certificates used by network printers, for example) are generated when the embedded system is first installed, where even if you have a larger pool, there isn't any opportunity to fill with the extremely limited…

Yes, this is very bad in embedded systems

As in your example, the only source of entropy a network printer has: network data, easy to manipulate or even no activity. So no way to generate keys for example.

In some cases hardware sources are a must. Yes, in the end you'll need to trust them

Re: How secure is Linux's random number generator?

#98
post #89
post #83

There are several different ways in which randomness is used in the kernel. One general class of randomness is things like randomizing the sequence numbers and port numbers of new network connections. If you can predict the result of this randomness, it becomes easier to carry out attacks such as hijacking a TCP connection. (Note that if the active attacker controls the path between the source and the destination, th…

If you are super paranoid, you'll need to find a hardware random generator which you've built yourself --- and hopefully you are competent enough to actually build a real HWRNG, and not something which is sampling 60 Hz hum (or 50 Hz hum if you are in Europe :-), and mix that into the entropy pool as well. What do you propose as a low cost solution? I've seen some interesting suggestions, such as having a small fish…

I think a zener diode based solution will suffice in a pinch http://en.wikipedia.org/wiki/Noise_generator

Re: How secure is Linux's random number generator?

#99
post #89

Earlier quoted context omitted.

If you are super paranoid, you'll need to find a hardware random generator which you've built yourself --- and hopefully you are competent enough to actually build a real HWRNG, and not something which is sampling 60 Hz hum (or 50 Hz hum if you are in Europe :-), and mix that into the entropy pool as well. What do you propose as a low cost solution? I've seen some interesting suggestions, such as having a small fish…

I think a zener diode based solution will suffice in a pinch http://en.wikipedia.org/wiki/Noise_generator

Hmm. Haven't thought of that. Comparatively simple, yet also compact at the same time. Thanks, nice!

Re: How secure is Linux's random number generator?

#100
post #99

Earlier quoted context omitted.

I think a zener diode based solution will suffice in a pinch http://en.wikipedia.org/wiki/Noise_generator

Hmm. Haven't thought of that. Comparatively simple, yet also compact at the same time. Thanks, nice!

Solid state FTW! :)
Post reply on HN