Slashdot Mirror


New NSA-Approved Encryption Standard May Contain Backdoor

Hugh Pickens writes "Bruce Schneier has a story on Wired about the new official standard for random-number generators the NIST released this year that will likely be followed by software and hardware developers around the world. There are four different approved techniques (pdf), called DRBGs, or 'Deterministic Random Bit Generators' based on existing cryptographic primitives. One is based on hash functions, one on HMAC, one on block ciphers and one on elliptic curves. The generator based on elliptic curves called Dual_EC_DRBG has been championed by the NSA and contains a weakness that can only be described as a backdoor. In a presentation at the CRYPTO 2007 conference (pdf) in August, Dan Shumow and Niels Ferguson showed that there are constants in the standard used to define the algorithm's elliptic curve that have a relationship with a second, secret set of numbers that can act as a kind of skeleton key. If you know the secret numbers, you can completely break any instantiation of Dual_EC_DRBG."

69 of 322 comments (clear)

  1. umm by superwiz · · Score: 4, Interesting

    Don't look for malice where incompetence will do.

    -- Napoleon
    --
    Any guest worker system is indistinguishable from indentured servitude.
    1. Re:umm by Anonymous Coward · · Score: 2, Insightful

      This is the NSA, not the FBI.

    2. Re:umm by bhima · · Score: 5, Insightful

      But this is the NSA we're talking about... Not the Bush administration.

      --
      Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.
    3. Re:umm by niceone · · Score: 3, Insightful

      Either way best not use Dual_EC_DRBG.

      And if it is incompetence, in this case the malice can come later if anyone ever figures out the 'secret numbers'.

    4. Re:umm by nuzak · · Score: 2, Insightful

      > Either way best not use Dual_EC_DRBG.

      I'm pretty sure that if they backdoored one, they backdoored them all. Best to not use any of the new algorithms, period.

      --
      Done with slashdot, done with nerds, getting a life.
    5. Re:umm by bhima · · Score: 4, Insightful

      How do you back door an Open algorithm you didn't design and don't distribute?

      --
      Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.
    6. Re:umm by Anonymous Coward · · Score: 2, Funny

      1 2 3 4

    7. Re:umm by someone1234 · · Score: 3, Interesting

      The weakness of the encryption is not incompetence.
      The incompetence is that they failed to hide it.

      --
      Patents Drive Free Software as Hurricanes Drive Construction Industry
    8. Re:umm by cayenne8 · · Score: 3, Funny
      "5! you forgot the 5!"

      Still..........I'd better go change the combination on my luggage....

      --
      Light travels faster than sound. This is why some people appear bright until you hear them speak.........
    9. Re:umm by sacrilicious · · Score: 4, Insightful
      Don't look for malice where incompetence will do.

      Don't tolerate incompetence.

      Especially when the party involved should know better, and when there's a lot at stake.

      --
      - First they ignore you, then they laugh at you, then ???, then profit.
    10. Re:umm by Anonymous Coward · · Score: 3, Informative

      And when there's a lot at stake, don't blame ignorance, but greed.
      USA has done these things before. Just google for Crypto AG.

    11. Re:umm by bhima · · Score: 5, Informative

      No. I was replying to someone who said the NSA had put backdoors in all available Random Number Generators and I wondered how the NSA could possibly get a backdoor in all of such algorithms. My line of thinking was this

      1: Open algorithms are the mainstay of the crypto community
      2: All those algorithms described in the article have been published
      3: The NSA did not sponsor, develop, or promote all of random number generators described in article (much less all that are available)
      4: The NSA is not the sole distributor of the source or binary versions of these algorithms

      I know the NSA has a bunch of really sharp folks but how could they pull off having a backdoor in an Random Number Generator algorithm which they did not design, did not sponsor development of, and do not distribute?

      As far as Dual_EC_DRBG goes it is clear how they could have pulled off a stealthy backdoor, the algorithm is their own design.

      --
      Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.
    12. Re:umm by sveiki_neliels · · Score: 2, Informative

      Don't look for malice where incompetence will do. -- Napoleon Napoleon? Try Hanlon's Razor.
      --
      New slang when you notice the stripes, the dirt in your fries.
    13. Re:umm by Goaway · · Score: 2, Informative

      Huh? You seem to be implying either that the algorithm criticized by Bruce is in fact secure, or that the insecure algorithm is unlike the other three in some way that renders the other three immune to a similar insecurity. Neither implication makes any sense. Sorry, the second implication is both completely true, and makes perfect sense. I don't really understand how you could claim otherwise.

      It is unlike the other three, just as the other three are all unlike each other. It uses elliptic curves, where the other three don't, and the attack is specific to elliptic curves.
  2. The answering machine by Verteiron · · Score: 5, Interesting

    Anyone else reminded of the little Black Box from Sneakers? The one that used a mathematical backdoor to break any encryption based on a certain algorithm that was only used in the USA?

    --
    End of lesson. You may press the button.
    1. Re:The answering machine by Shakrai · · Score: 4, Insightful

      Anyone else reminded of the little Black Box from Sneakers? The one that used a mathematical backdoor to break any encryption based on a certain algorithm that was only used in the USA?

      More to the point, anyone else remember the premise of that movie? That said black box was utterly useless for doing anything other then spying on Americans, which (prior to Dubya anyway) was outside of the NSAs mandate.

      --
      I want peace on earth and goodwill toward man.
      We are the United States Government! We don't do that sort of thing.
    2. Re:The answering machine by harryHenderson · · Score: 3, Interesting

      Of course the truly paranoid individual would realize that the backdoor in Dual_ECD_RBG was merely an "obvious" decoy designed to herd us all onto the other three which also have backdoors. ;) (not to make light of what Mr. Schneier's point - the NSA has every reason to deny others effective cryptographic tools)

    3. Re:The answering machine by maxwell+demon · · Score: 2, Funny

      Anyone else reminded of the little Black Box from Sneakers?

      It's a movie. A movie. Ya know, fiction.

      That's what they tell you. :-)
      --
      The Tao of math: The numbers you can count are not the real numbers.
  3. Ummm...encryption standard? by morgan_greywolf · · Score: 2, Interesting

    Is what is essentially a random number generator really an 'encryption' standard? And if it's really a backdoor, don't you still need to know rather quite a bit more than the random number seeds to break something like AES or RSA?

    1. Re:Ummm...encryption standard? by orclevegam · · Score: 3, Informative

      This seems to be more an issue with something like SSL in which the security of the system is reliant on not being able to guess the next number out of the PRNG.

      --
      Curiosity was framed, Ignorance killed the cat.
    2. Re:Ummm...encryption standard? by ioshhdflwuegfh · · Score: 5, Informative

      What happens in the article is that one of the algorithms proposed by NSA for standardization contains possibly a major backdoor because the constants it uses to generate numbers are such that there might be other constants, unknown by looking at the algorithm itself but nevertheless possibly known to the authors at NSA that allow to get the whole generated sequence of numbers based on only 32 byte sequence of generated numbers. Maybe or maybe not, depending on whether there are such constants, which only NSA knows.

    3. Re:Ummm...encryption standard? by starfishsystems · · Score: 5, Insightful
      Randomness is absolutely at the heart of cryptography. So yes, to answer your question, it does matter.

      If I can predict the value of a symmetric key, or the value whose two factors constitute an asymmetric key pair, I have effectively broken the encryption. Even supposing that I can't do this deterministically, but merely somewhat better than random, I'm still that much further ahead.

      --
      Parity: What to do when the weekend comes.
    4. Re:Ummm...encryption standard? by peacefinder · · Score: 4, Insightful

      starfishsystems gives a good answer, but I'll say it a bit differently in case it helps.

      The random number generator in question is a mathematical tool for generating randomness, not a cryptosystem of any kind. It has many potential applications. However, modern cryptography is absolutely dependent on high-quality randomness, so cryptosystems tend to use exactly this sort of tool. The thing is, if the "random" data stream one uses in a cryptosystem is actually predictable, then the whole cryptosystem is insecure right from the start no matter how good it otherwise appears.

      It's is very much analagous to building a house on sand: if the foundation is unstable, it pretty much doesn't matter how good the rest of the construction on top of it may be; the whole structure is in dire and immediate peril.

      The random number generator itself may be just fine for many applications. However, any cryptosystem built on this random number generator is presumed to be useless just because there exists a set of keys which can easily predict the whole random number stream given a tiny part of it. We don't actually know if anyone holds the keys, but if someone does then that person could undetectably open any cryptographic locks built on this random number generator, or release the keys so everyone could open the locks.

      That help?

      --
      With reasonable men I will reason; with humane men I will plead; but to tyrants I will give no quarter. -- William Lloyd
    5. Re:Ummm...encryption standard? by peacefinder · · Score: 3, Informative

      "[...] it's still nontrivial to generate the plaintext from the ciphertext, or am I completely offbase on this?"

      I Am Not A Cryptanalist, but it is my impression that you are off base in this. Generating the plaintext may not become a completely trivial task with the backdoor key, but it at least would become so many orders of magnitude easier that the system would be essentially useless.

      In really basic broad-brush terms, we can say that the ciphertext consists of the plain text added to a keystream by a method defined in a certain protocol. To decrypt the ciphertext, the legitimate recipient needs to subtract the keystream from the ciphertext using the same protocol. Any attacker who could capture the whole ciphertext usually should also discover the protocol in use. (That's not necessarily a trivial step, but often it is... especially with computers using known protocols.*) So the only unknown the attacker needs in order to reveal the plaintext is the keystream.

      Schneier's article says that by observing a mere 32 consecutive bytes of randomness, an attacker with the key to the backdoor can generate the whole random stream, at least from that point forward. So if such an attacker can suss out that small portion of the keystream or plaintext - and that's what cryptanalysis is all about - then they can use that to break the whole message with relative ease.

      [*: It is widely thought, and has been repeatedly proven by real world cryptosystem breaks where the protocol is unknown to the breaker, that for the most part hiding the protocol does no damn good. This is what's meant by "obscurity is not security".]

      --
      With reasonable men I will reason; with humane men I will plead; but to tyrants I will give no quarter. -- William Lloyd
  4. From TFA: by Spy+der+Mann · · Score: 5, Informative

    * WHAT WE ARE NOT SAYING:
    NIST intentionally put a backdoor in this PRNG

    * WHAT WE ARE SAYING:
    The prediction resistance for this PRNG (as presented in NIST-SP800-90) is dependent on solving one instance of the elliptic curve discrete log problem.
    (And we do not know if the algorithm designer knew this beforehand.)

    On the last slide, the researchers add some suggestions:

    Truncate off more than the top 16 bits of
    the output block.
    - Results on extractors from x coordinates of
    EC points of prime curves suggest truncating
    off the top bitlen/2 bits is reasonable.
    * Generate a random point Q for each
    instance of the PRNG.
    1. Re:From TFA: by Saint+Aardvark · · Score: 5, Interesting
      And this bit from Bruce's article:

      If this story leaves you confused, join the club. I don't understand why the NSA was so insistent about including Dual_EC_DRBG in the standard. It makes no sense as a trap door: It's public, and rather obvious. It makes no sense from an engineering perspective: It's too slow for anyone to willingly use it. And it makes no sense from a backwards-compatibility perspective: Swapping one random-number generator for another is easy.

      My recommendation, if you're in need of a random-number generator, is not to use Dual_EC_DRBG under any circumstances. If you have to use something in SP 800-90, use CTR_DRBG or Hash_DRBG.

      In the meantime, both NIST and the NSA have some explaining to do.

  5. T-shirts by hoggoth · · Score: 5, Funny

    secret numbers appearing on T-shirts in Finland in 3.. 2.. 1..

    --
    - For the complete works of Shakespeare: cat /dev/random (may take some time)
  6. What part of "NSA Approved" don't you understand? by second+class+skygod · · Score: 2, Insightful

    They're in the business of national security. That's generally at odds with personal security and liberty. Those who would trust such a product from them are suckers.

    --scsg

  7. Fix by daveschroeder · · Score: 3, Informative

    "It's possible to implement Dual_EC_DRBG in such a way as to protect it against this backdoor, by generating new constants with another secure random-number generator and then publishing the seed. This method is even in the NIST document, in Appendix A. "

  8. Everyone who is not in NSA... by SlipperHat · · Score: 4, Interesting

    Should use the one that is hardest to break. If the NSA thinks elliptic curves are the best, only the NSA should use it. Let's see how happy they are having their own "unbreakable" code just for them.

    Personally, I wish the NSA was a bit more chivalrous when it comes to these kind of things. If it is your **JOB** to break codes, why whine when people pick the one that is hardest to break. The rest of the world doesn't have the luxury to pick how hard their job gets to be, so why should you?

    The NSA is like an anti-virus / a pharmaceutical company where a cure is only good if it's in the company's best interests. Not to say that anti-virus / pharmaceutical companies are not ethical. But there is a saying along the lines of "If you can't come up with the solution, there is good money to be made in the problem."

  9. Re:One wonders what we can ever do right by BlowHole666 · · Score: 3, Insightful

    Well I know one thing that is not right...your thinking. Perhaps you do not know about how engineering works? When you design something you design it to the best of your ability. If you notice a flaw, you fix it. You try and prepare for all known and unknown problems, but you are not going to catch them all. You are looking at specific examples and not at the whole picture. Yes maybe the 787 was flawed, maybe the NSA's choice is wrong. But what have we done right? Well you brought up airplanes lets see. The B2 bomber, that has a good trace record. How about the F16 it has never been shot down. Maybe the Mars rovers they appear to be doing quite well, and lasting longer then expected. So yes you win some and you loose some. Thats why it is engineering. If you had all the answers and knew all the potential problems then it would be called following the directions.

    --
    I smoked pot once. But I DID NOT inhale. Will you hire me?
  10. Lock the Trojan Horse in a Stable by Jeremiah+Cornelius · · Score: 4, Insightful
    Strategy: Legerdemain.
    1. Close the obvious backdoor.
    2. Create the public perception that this has been dealt with - while the subtly flawed algorithms are used.
    3. Profit!
    --
    "Flyin' in just a sweet place,
    Never been known to fail..."
  11. Re:What part of "NSA Approved" don't you understan by arkane1234 · · Score: 2, Funny

    That would explain why SELinux isn't widely used.

    --
    -- This space for lease, low setup fee, inquire within!
  12. Trust the Spies by Doc+Ruby · · Score: 5, Insightful

    The NSA is spying on all telecom signals passing through the US (including this message. Hi, Dick Cheney!). Despite the Constitution's prohibitions. Why would you trust them not to make your crypto crackable?

    This situation shows one of the strongest arguments for open source. Trust no one.

    --

    --
    make install -not war

    1. Re:Trust the Spies by caluml · · Score: 2, Funny

      -----BEGIN PGP MESSAGE-----
      Version: GnuPG v1.4.6 (GNU/Linux)

      jA0EAwMCPPnmI+wr8DVgyRye1U/9KBxX5jcOp0oidm/5y9TesyWpjQbYvE3j
      =pvFV
      -----END PGP MESSAGE-----

      This is secure. The password is foo. Let's have a symmetrically encrypted discussion using GPG. All passwords are foo.

  13. Re:Give everyone the key by superwiz · · Score: 5, Informative

    Read the post above. Getting the key involves solving a discrete log problem for one instance of an elliptic curve. Discrete log problem is an unsolved mathematical problem. So its solution essentially (you mileage may vary slightly) requires brute force. Either NSA has a solution and was hoping the weakness would go unnoticed, or they don't have it. If they don't have it, no one will have it for a long time. These are more difficult to compute (and therefore more time consuming) than the traditional encryption schema (discrete log problems for Z/pZ). Now the question of whether you believe malice or incompetence is at play here is essentially up to you.

    --
    Any guest worker system is indistinguishable from indentured servitude.
  14. Don't trust any encryption by FranTaylor · · Score: 2, Insightful

    Sessions can be recorded and cracked later when cpu is even more plentiful.

    Encryption keys can be demanded by the government, they'll throw you in jail for not complying.

    Keep your dirty laundry out of your computer.

    The government doesn't think that your data is something that should be protected from unreasonable search, you shouldn't either.

  15. I can't be the only one: by rilister · · Score: 5, Interesting

    I can't be the only one who clicked on the link and was astonished to see:
    "On the Possibility of a Back Door in the NIST SP800-90 Dual Ec Prng - by Dan Shumow, Niels Ferguson, Microsoft"

    Microsoft are exposing this? Are they funding the group making these kind of claims? If this was true, wouldn't this intensely annoy the NSA to have this exposed? Am I missing something here? .

    - I see the disclaimer ("What we are NOT saying") where they seem to be saying - "No way did the NSA intentionally make this broken - maybe it was an errant developer and maybe they knew what they were doing", but it amounts to the same thing, surely?

    --
    'This writing business. Pencils and what-not. Over-rated if you ask me. Silly stuff. Nothing in it' - Eeyore
    1. Re:I can't be the only one: by jbf · · Score: 4, Insightful

      Well I'm not surprised. Microsoft Research has tons of sharp security guys working there. Niels Ferguson is quite well-known in security circles. You don't get your company's name as an "author" unless your employees actually did the work; funding is not good enough. It might annoy the NSA, but academics don't care that much.

  16. Re:What part of "NSA Approved" don't you understan by kebes · · Score: 4, Insightful

    They're in the business of national security. That's generally at odds with personal security and liberty. Those who would trust such a product from them are suckers. The problem is that this flaw is a much bigger threat to national security than to personal security. These "official recommendations" from the NSA are used to form official policies and guidelines in just about every branch of government (FBI, CIA, DOD, etc.).

    So, if the NSA was indeed intentionally creating a backdoor, then they were doing a disservice to the "national security" they are supposedly protecting. By allowing (encouraging, in fact) top-secret government data to be encrypted in this way, they would be making the nation's secrets quite vulnerable. By comparison, private citizens and corporations can use whatever encryption they like, regardless of NSA recommendations.

    I suppose one could argue that the NSA thought that no one would figure it out, so that they (and they alone) would be able to break that encryption for all time (so that they can spy on other branches of the government?). I think a simpler explanation is that NSA just made a mistake in endorsing that algorithm, and never intended to threaten national security. Of course it will be interesting to see what position they take now that a flaw has been publicly identified.
  17. Ummm, parent is right. by iknownuttin · · Score: 5, Interesting
    But this is the NSA we're talking about... Not the Bush administration.

    I wish I could remember the show I saw. But the scientist (MIT, PhD scientist) was amazed at the intellect of the NSA folks who came to see him about his research. I can't remember who it was - it was a NOVA episode (but it stuck in my head because of his fear!). And after talking to friends who work with various internet security companies and defense contractors, I have to reiterate their opinion of these guys - they're really sharp. And as much as I like to disparage Government workers, these guys aren't to be trifled with.

    And, as I was previewing, I noticed that the parent was moderated "Offtopic".

    As an Offtopic note: 2 out of 3 down mods that I meta mod are unfair. Keep that in mind. It's really pissing me off.

    --
    I prefer Flambe as apposed flamebait.
    1. Re:Ummm, parent is right. by failedlogic · · Score: 2, Insightful

      If you find out the episode, please reply to this thread. I'd be interested in watching it (and its likely on Youtube which will make it easy to watch or my public library will have it).

    2. Re:Ummm, parent is right. by cayenne8 · · Score: 3, Funny
      Nah....they had to put a backdoor here in hopes of getting it adopted.

      Turns out Vista doesn't have the uptake they thought it would...so, they really can't exploit the windows backdoor any longer...

      They gotta try something!!

      :-D

      --
      Light travels faster than sound. This is why some people appear bright until you hear them speak.........
    3. Re:Ummm, parent is right. by Bearhouse · · Score: 3, Insightful

      Agree with both.

      1. CIA=sharp, Academe=smart. The NSA boys are both smart and sharp. They've got the budget.
      Wonder when the 'super brains' from Google will get into crypto? They have the market cap now - thanks to the inexplicable hype over Android...
      2. Yup - I tend to metamod the -ve mods as 'unfair', because they seem to be driven by bigotry than than sense.

      So, inserting one trapdoor? Likely, but not probable. Insert an easy one to find, so we miss the others...now that's smart 'n' sharp

    4. Re:Ummm, parent is right. by bjohnson · · Score: 2, Insightful

      CIA=sharp???

      Uhh, go read "Legacy of Ashes" and weep. http://www.randomhouse.com/doubleday/legacyofashes/

      Yes, there are smart people who have worked for the CIA, but they've been lead by clueless frat boys drunk on power and prodigious quantities of booze.

      Suffice it to say that anything the CIA as an agency has done right it's been entirely by accident.

    5. Re:Ummm, parent is right. by sgt_doom · · Score: 2, Funny
      You (iknownuttin) are absolutely right, of course!

      I recall years ago when I was a contracter at NSA and they were using the reverse-Polish security system, i.e., the passage monitors were keyed to one's security badge, therefore all one needed to do to go to a higher-level access area was to remove one's security badge.

      Unfortunately, regardless of higher intelligence, anyone who subscribes to the bureacratic gods always behave stupidly.....

    6. Re:Ummm, parent is right. by Anonymous Coward · · Score: 3, Insightful

      It's spelled "contractor". And you've never been in the NSA's building. They use ACLs tied to biometric data everywhere.

    7. Re:Ummm, parent is right. by aproposofwhat · · Score: 5, Insightful
      I think the point of Schneier's article is that everybody (i.e. everybody who means anybody in terms of cryptoanalysis) has crawled over each algorithm, and there's only one that has failed the peer review.

      It's somewhat surprising that an algorithm with a documented flaw made it through to the standard, but Schneier makes it clear that the NSA pressured NIST to let it through, so there are grounds for concern.

      --
      One swallow does not a fellatrix make
  18. Things we know we don't know. by ColaMan · · Score: 5, Interesting

    The NSA is a lot more competent than you think.
    Go google "NSA DES" sometime.

    "The NSA was embroiled in controversy concerning its involvement in the creation of the Data Encryption Standard (DES), a standard and public block cipher used by the US government. During development by IBM in the 1970s, the NSA recommended changes to the algorithm. There was suspicion the agency had deliberately weakened the algorithm sufficiently to enable it to eavesdrop if required. The suspicions were that a critical component -- the so-called S-boxes -- had been altered to insert a "backdoor"; and that the key length had been reduced, making it easier for the NSA to discover the key using massive computing power, although it has since been observed that the changes in fact strengthened the algorithm against differential cryptanalysis, which was not publicly discovered until the late 1980s."

    So they made some small changes to DES... then a *decade* later, the rest of the crypto world says, "Huh. We've just done the sums and that actually made it better."

    Not to say that in this case they're just screwing with the algorithm though :-P

    --

    You are in a twisty maze of processor lines, all alike.
    There is a lot of hype here.
    1. Re:Things we know we don't know. by Deanalator · · Score: 5, Interesting

      The same thing happened with SHA. Even creepier was that they just threw a "leftshift 1" in the middle of the algorithm. This is the difference between SHA0 and SHA1, yet 10 years later new attacks on hashing algorithms emerged that broke SHA0 wide open, but SHA1 was resistant.

      This 10 year thing starts to tickle my paranoia. NIST has the stated goal to make all of it's algorithms unbreakable for at least 10 years, and the NSA claims on their website that they are always 10 years ahead of what is known publicly (with respect to computational power and cryptographic research).

  19. Clipper Chip by starfishsystems · · Score: 3, Informative
    I'm getting a distinct feeling of déjà vu about this. Anyone remember the Clipper Chip? Key escrow? Same basic idea, and that proposal came out of the NSA as well. Only then the backdoor was explicit.

    The crypto community spoke out strongly against it, and the proposal, despite having a great deal of political muscle behind it, did not fly very far. Another sensible reason for its failure to gain acceptance was that it would have had no chance of success on the international market. Even if domestic use could have been forced through legislation, let's say, no other nation with a clue would pick it up.

    --
    Parity: What to do when the weekend comes.
  20. Not the same thing by Moraelin · · Score: 4, Insightful

    It's not the same thing. For a start, it's not even necessarily software. It's a mathematical algorithm.

    So, yes, the implementation can be buggy, but for something like cryptography you'd at least expect the maths behind it to be rock-solid.

    A lot of cryptography is based on stuff like that it's _far_ easier to multiply two prime numbers, than to find out which two large primes are the factors of a very large number. (I don't know this particular algorithm in TFA yet, so I used RSA as a simple example.) Once some maths guy has figured that out, and how it can be used, then the actual implementation in software tends to be actually very simple and straightforward. You just do one operation over and over again to encrypt the stuff, and another operation again and again to decrypt it. So even an error in the implementation is pretty inexcusable, because it's not a lot of code and you have a step-by-step description of exactly what to do.

    Usually when an error in the implementation happens, it's not as much a programming bug, as the fact that (again) someone didn't understand the underlying maths and principles. E.g., I vaguely remember a disk encryption program which used a secure algorithm, but... had an invariable and huge block of known text at the beginning of it, which meant it was crackable anyway.

    Anyway, to get back to the important part: it's not software, it's maths. Pure old-fashioned maths.

    And... well, I'm not saying that that maths is easy. The average code monkey trying to invent encryption _will_ come with something ridiculously easy to crack.

    But I'll say this: if the best and brightest mathematicians the NSA can find, still aren't competent enough, then I'd worry about the USA. I'm not even an American, and my attitude is somewhat anti-American (or at least anti-Bush), but even I in my crankiest hour wouldn't have _that_ bad an opinion of the USA.

    To put it in perspective: something like this isn't like your average piece of code that someone typed on a Friday afternoon and never bothered to test. Something like this is bound to be reviewed by at least 2-3 other pairs of eyes before it becomes an official spec. So if they simply couldn't find anyone qualified enough to review it... I'd worry. A lot.

    The conspiracy theory there is actually the _far_ more flattering alternative.

    --
    A polar bear is a cartesian bear after a coordinate transform.
  21. why put all your eggs in one basket? by Sloppy · · Score: 3, Interesting

    I see how it could be a problem for embedded work. But on personal computers, which nowdays have tremendously abundant resources, why not use multiple algorithms and entropy sources to build your pool? (Yes, I know some systems already do this.) NSA may be able to predict one sequence, but they sure as hell can't predict a bunch of them, XORed. They'd need mathematicians to crack all the RNGs, have a camera on your lava lamp, a microphone listening to the room, a tap on your power line, etc. By the time they do all of that, they might as well have just asked you what your plaintext is.

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  22. alternate explanation for incompetence by Anonymous Coward · · Score: 5, Interesting

    There is another explanation; difference of opinion between management and staff

    - Management wants a backdoor in public standard, orders their very smart math geeks to make it so
    - Math geeks say it can't be done
    - Management insists
    - Math geeks go away and come up with something out of left field that technically fulfils the request of management, knowing it's vulnerabilities. They probably tell management that their solution is the best they could do, but it still has all the following problems (slow, crypto-nerds will see through it sooner or later, etc)
    - Management hears the 'best' and 'done' part, discounts possibility of anyone outsmarting their 'uber-elite' NSA math geeks

    predictable results follow.

  23. Doesn't work by Sycraft-fu · · Score: 3, Insightful

    Again, because we are talking about public algorithms. Things like this are public, open algorithms. Anyone can evaluate them, as Bruce noted. As such you can't "hide" something in there unless you are waaaay better than anyone else. If that is the case, well then why bother with any deception in the first place? This isn't a "This is a black box just trust it." It's an open algorithm and any experts can look at it, as has happened.

  24. Don't Use Dual_EC_DRBG by The+Real+Nem · · Score: 5, Informative

    In my final year in CS, I wrote a lengthy paper researching various DRBGs. To my surprise, there were very few good candidates for cryptographic DRBGs, but of the 7 I looked at, Dual_EC_DRBG rated the worst. I was unable to find any theoretic proofs for Dual_EC_DRBG, but I did find a few papers exposing serious flaws in Dual_EC_DRBG including this one which describes a tractable distinguisher so efficient it can run on a modest desktop.

    The other three DRBGs recommended by NIST were all reliant on the security of various other cryptographic primitives such as SHA (Hash_DRBG), HMAC (HMAC_DRBG - which is often based on SHA) and AES or 3DES (CRT_DRBG). They were all reasonably obvious, and only really tried to set out some sort of standard for jumbling the output of their respective primitives enough that they would be resilient to any unknown vulnerabilities in said primitives (though certain paths also failed to do this). This was mostly accomplished by calling the primitives several times (HMAC_DRBG with the NIST HMAC implementation called for 6 SHA hashes per SHA sized output) which isn't very efficient.

    I suspect they only included Dual_EC_DRBG because it wouldn't have looked too good if they were unable to come up with a single number theoretic or otherwise novel DRBG. They shouldn't be too disappointed, however, as the only one I was able to find was Blum Blum Shub which is terribly inefficient. CryptMT (Cryptanalysis) also deserves a mention as it looks like a promising pseudo-number theoretic DRBG, at least a better candidate than Dual_EC_DRBG.

  25. No, it *does* have a backdoor by peacefinder · · Score: 2, Insightful

    I thought the article was saying something slightly different: The standard does have a backdoor, it's just not clear who - if anyone - holds the keys.

    The safe assumption is that someone does hold the keys and therefore the standard is useless for cryptography, even though it might be just fine for other applications.

    --
    With reasonable men I will reason; with humane men I will plead; but to tyrants I will give no quarter. -- William Lloyd
  26. You misunderstood 'you' :) by pavon · · Score: 2, Informative

    bhima's comment was alluding to the fact that while NSA designed and distributed the Dual_EC_DRBG algorithm, they had no part in the other two algorithms (that we know of) other than as an outside commentator, and thus could not put a backdoor into them. In other words 'you' referred to the NSA, not to you, a user of the algorithms.

  27. Open Source not enough... by 0ptix · · Score: 2, Interesting

    Open source alone is not enough. In fact these algorithms ARE open source. There even public domain standards!

    Crypto is a special case. While it's true that "open source" cryptographic algorithms/protocols tend to be far safer choices then proprietary/secret/home-brew algorithm the problem is that correctness of a cryptographic algorithm is a far stronger notion to achieve and verify then for a normal program. For a normal program "correct" implies producing the right out put. In a cryptographic setting we want the the "correct" output which must be "secure". Precisely understanding the meaning of "secure" for a given app. and context is a central concern of cryptographers.

    What is needed for crypto is the next step beyond open source, namely open process. That is along with an algorithm the NSA (or NIST or IBM or whoever) should be publishing a complete security definition, analysis and reasoning behind the design choices. (See The Making of Rijndael for example.)

    If the NSA had provided ANSI, NIST and the public with such documentation then the problems pointed out by Shumow and Ferguson would not exist. The reasoning behind the choice of all constants would be clear to all.

    On a realistic note it's not exactly likely that the an organisation like the NSA would ever do such a thing. Take the case of the DES algorithm developed by IBM with help from the NSA. Only a decade later later when Eli Biham and Adi Shamir published their work on Differential Cryptanalysis did the reasons for the choices of constants in DES become clearer. However at the time of DES's creation this (very powerful) cryptanalytic method was not known to the public. Thus by demanding open process the NSA would effectively have been required to release what was probably one of their most guarded technological advancements.

    Thus since it can not be expected that the NSA adhere to open process development I think our best bet is to simply go with another algorithm which does. Like rijndael for example...

  28. Fixed that for ya... by Foerstner · · Score: 3, Informative

    The thirty-year-old F-15 has been "defeated" during exercises with allied powers, flying planes developed twenty-five years later that are it's equal in technology, with pilots as well trained as ours.

    --
    The US free market: two halves of a government-granted duopoly are free to set the market price.
  29. Re:Of course! Just look what they did with the tel by Burz · · Score: 3, Interesting

    Hardware manufacturers? How about certificate authorities?

    If any of you think this is the least bit specious, the VeriSign website proudly proclaims that they will subcontract to telcos/ISPs that are ordered to eavesdrop in a "legal intercept" capacity. There is no other reason for VeriSign to be in that line of work unless they are using their ability as CA to stage undetectable MITM surveillance attacks.

  30. Re:What part of "NSA Approved" don't you understan by logicnazi · · Score: 2, Insightful

    Using the backdoor requires solving a discrete log problem. The NSA may have an actual proof of hardness for these problems putting a minimum bound on the amount of computer power required. This in turn might give them a minimum bound of a decade or so (someone really needs to check just how hard this discrete log problem turns out to be) for anyone else to discover the secret keys and they can just announce finding a security flaw in the algorithm 2 years before anyone might have found the keys.

    Supposing they have separate classified advice for top secret material and this RNG will only be used on low security documents the tradeoff between an enemy potentially having access to low security information from several years ago and giving them potential access to other people's communications might be favorable.

    Still, the problem with this scenario is that it seems implausible that they were ever going to get widespread adoption of this RNG outside the government. Then again many things agencies do can't be explained by smart people behaving reasonably. Maybe some mucky mucky over at the Bush admin got a bug in their britches about us helping the terrorists when they found out that they were using strong encryption the NSA had helped strengthen (like DES) and ordered them to start putting in back doors ignoring arguments to the contrary.

    I can certainly see the 9/11 changed everything attitude justifying this sort of crap to some self-righteous and idiotic official.

    --

    If you liked this thought maybe you would find my blog nice too:

  31. Why not swap out the broken part then? by Weaselmancer · · Score: 2, Interesting

    Why not use the encryption as-is, but swap out the random number generator with something else?

    I've always wondered why random number generators don't pull values from an A/D converter hooked to a white noise generator or Lorenz attractor or some such.

    --
    Weaselmancer
    rediculous.
    1. Re:Why not swap out the broken part then? by plover · · Score: 2, Informative
      The problem is that the amount of randomness from any of these sources is testably small.

      A simple example would be something like one of the games we were all taught to program as kids. The first line was always something like 10 RANDOMIZE TIMER. Well, if you know the program was run at 8:19, the value of TIMER was likely somewhere between 29940 and 29999. It may be random enough for MONOPOLY.BAS, but it's not much of a challenge to try all 60 values. Entropically speaking, time of day is good enough for only a couple of bits, no more.

      Let's say you had a message from DOMAIN\JOHN timestamped 2007-11-15 08:19:02, and you know I come in at about 8:00 every morning and turn on my computer. You can probably make some educated guesses about the values of GetLocalTime() and GetTickCount(). You know my user name. Process ids on Windows are sequentially assigned as of boot up, and probably wouldn't vary by more than a hundred, especially for a creature of habit. Memory and disk space are also likely to be in a similar range, so checking my desktop on another day might reveal some good guesses for those ranges.

      All those values plus a few others are used by the Windows pseudo-random number generator, as revealed earlier this week. Sure, they mix in some harder-to-guess values, but who knows how easy or hard they might be to discover, especially with access to the hard drive? If you use only 32 bits of entropy to seed a cryptographic routine to emit 128 bytes of random numbers, that's still only 32 bits of guessing that needs to happen.

      --
      John
  32. Don't forget: THANK YOU Bruce Schneier by KWTm · · Score: 2, Interesting

    Kudos to Bruce Schneier for being a respected voice of reason and (seen to be) a disinterested party to critically analyze the strengths and weaknesses of what will be a backbone of computing (and, indeed, our daily lives).

    If I were the NSA trying to work in a back door, instead of coming up with a subtle flaw in the algorithm, I'd get Bruce Schneier to publicly praise an algorithm known to have flaws, while simultaneously offering to pay him a gajillion bucks and threatening his family if he refuses. That would probably derail publicly available encryption for a while. ("Bruce Schneier recommends: WinCrypt Terrorist Edition!")

    --
    404555974007725459910684486621289147856453481154 in hex is "You sank my Battleship?"
    [GPG key in journal]
  33. Re:Mod AC Down by kliklik · · Score: 2, Informative

    Would that be Kryptos?

    --
    guru in training
  34. Re:Unbreakable encryption by Skippy_kangaroo · · Score: 2, Insightful

    That isn't really encryption is it. The raison d'etre of encryption is that someone else can recover the message following a defined process.

    If I take a signal and add random noise to it then remove all references to the specific random numbers I won't be able to recover the original signal. That's not encryption - that's more like shredding and burning.

  35. Obligatory War Games Quote by guttentag · · Score: 2, Funny

    "Mr. Potato Head? Mr. Potato Head! Back doors are not secrets!"

  36. Healthy Case of Paranoia by Propaganda13 · · Score: 2, Informative

    I know the NSA has a bunch of really sharp folks but how could they pull off having a backdoor in an Random Number Generator algorithm which they did not publicly design, did not publicly sponsor development of, and do not distribute? Fixed your question and hopefully answered it for you too.