News for hackers. Stuff that matters.
Re:Researchers can slip an undetectable trojan into Intel’s ... by chatman on Wednesday September 18, 2013 @12:30PM (#6406231)
It is not "too easy to detect" a bad PRNG from a good one.
Re:Researchers can slip an undetectable trojan into Intel’s ... by im3w1l on Wednesday September 18, 2013 @03:03PM (#6407288)
Well this particular change to the PRNG could be detected that way. Detecting an arbitrary tampering in a black box fashion is as you say very hard, but black box detection is not what is discussed; optical inspection of the die is also allowed.
Re:Researchers can slip an undetectable trojan into Intel’s ... by ambiate on Wednesday September 18, 2013 @02:27PM (#6407019)
I agree. Sounds like a number theory halting problem.

Generate sequences of numbers continually, ad infinitum, and determine if distribution rates are (?).

How would one begin to fill in that question mark? A PRNG that spits out three million 'zeros' and a single 'four' is as reliable as a PRNG that spits out an even distribution of random numbers.

Re:Researchers can slip an undetectable trojan into Intel’s ... by AaronFriel on Wednesday September 18, 2013 @03:49PM (#6407615)
PRNGs are ultimately machines, they produce data from an input, even if that input is obscured from whoever receives the output. Statistical tests for randomness are still very valid and very important for PRNGs, and your dismissal of them is premature. Three million zeroes is so wildly improbable that any PRNG that for a reasonable seed value would produce such a sequence would be intensely scrutinized to determine if other seeds exhibited such behavior. If Dual_EC_DRBG exhibited that behavior, the cryptographic community's reaction would be swift.

The issue here is the entropy of such a sequence is extremely low, and while low entropy PRNGs do exist, and they are not considered good for cryptographic purposes. If algorithmic weaknesses led to long stable and highly compressible sequences, or rather, sequences with a very low entropy (as measured by say, Kolmogorov complexity) would be considered suspect.

Determining Kolmogorov complexity is itself a difficult problem, it's the problem of finding the shortest program (in a theoretical computer science sense) that produces a given output. And the complexity of that sequence is trivial, which is a huge problem for PRNGs. If every other seed had an extraordinarily high complexity with lots of hidden state, then maybe it would be considered, but I suspect not.

Re:Researchers can slip an undetectable trojan into Intel’s ... by claudius on Wednesday September 18, 2013 @03:16PM (#6407385)
Isn’t the problem with detecting bad randomness that you can’t be sure about your decision?

That is, if you accept a certain probability of falsely identifying a RNG as biased, I don’t see why this should be a fundamentally difficult problem, at the very least for the generator with four million 0s and a single 1: The probability that a good RNG spits out less than a thousand 1s in four million queries is negligible compared to the probability that it returns between 1.5 and 2.5 million 1s.

Of course, it will be harder to detect more sophisticatedly broken generators, but still, without requiring certainty, it should be possible to make some sensible claims?

Re:Researchers can slip an undetectable trojan into Intel’s ... by Someone on Wednesday September 18, 2013 @03:39PM (#6407544)
For background info, read the art of computer programming, chapter 3.

For practical help, see http://www.stat.fsu.edu/pub/diehard/ (linked from http://en.wikipedia.org/wiki/Diehard_tests)

Re:Researchers can slip an undetectable trojan into Intel’s ... by adsr on Wednesday September 18, 2013 @07:58PM (#6408969)
Couldn't you run the same test (say) a few thousand times, then look at the distribution of numbers? Statistically they should be distributed evenly and be equally likely to appear for large enough runs.

Any number or group of numbers that are consistently over/under represented should point to a bias as far as I can tell.

Re:Researchers can slip an undetectable trojan into Intel’s ... by dbaupp on Wednesday September 18, 2013 @10:10PM (#6409362)
For large enough runs, 0, 1, 2, ..., max, 0, 1, ... etc exhibits that behaviour. Thus, a PRNG that fails your proposal is bad, but passing it doesn't meanthat the PRNG is good. A test suite like diehard (or the moderner version dieharder) runs tests for uniform distribution as well as a lot of others, but even then, a pass is only saying "any glaring nonrandomness can't be detected by this suite".
Re:Researchers can slip an undetectable trojan into Intel’s ... by adsr on Wednesday September 18, 2013 @10:25PM (#6409411)
Thanks, that's true but my comment was mostly a response to the "three million zeroes and a single four" as a valid random sequence comment. I wasn't suggesting it as a generic method to test the quality of a PRNG.