48 points · by bobds · 15y ago · 40 comments
You are still secure from script kiddies, of course, and you've done a fairly good job if this is the easiest way to hack you.
While this is not exactly the scenario the OP is describing, it's another thing that can go wrong with /dev/random and VMs.
However, that might have consequences on what restoring from a snapshot means conceptually.
That is my own failure, of course. I wonder, though, whether everyone else knew about the VM RNG issue, or if only I had missed the memo. If the majority of poll respondents have never thought about the problem at all, perhaps I should start an awareness campaign on wikis and forums.
The poll, though, is unnecessary and I flagged it.
Meanwhile, you brought up:
Robert Brown's dieharder: http://www.phy.duke.edu/~rgb/General/dieharder.php
NIST Statistical Test Suite: http://csrc.nist.gov/groups/ST/toolkit/rng/index.html
Fourmilab's ENT: http://www.fourmilab.ch/random/
You noted that people could run these on their CSPRNGs to check randomness. No, they can't. These are all useful tools indeed; pentesters use them to check cookies and crypto tokens. But they can only tell you whether bits are correlated. It is very easy for an uncorrelated stream of bits to be terribly insecure: they simply have to be seeded from the same source.
It is not a good idea to suggest people test their RNGs with things like "ent". In "ent", Ruby's insecure rand() can appear competitive with /dev/random.
There's also the obvious confounding issue with testing an entropy pool by depleting it.