Slashdot Mirror


Cryptography Expert Sounds Alarm At Possible Math Hack

netbuzz writes "First we learn from Bruce Schneier that the NSA may have left itself a secret back door in an officially sanctioned cryptographic random-number generator. Now Adi Shamir is warning that a math error unknown to a chip makers but discovered by a tech-savvy terrorist could lead to serious consequences, too. Remember the Intel blunder of 1996? 'Mr. Shamir wrote that if an intelligence organization discovered a math error in a widely used chip, then security software on a PC with that chip could be "trivially broken with a single chosen message." Executing the attack would require only knowledge of the math flaw and the ability to send a "poisoned" encrypted message to a protected computer, he wrote. It would then be possible to compute the value of the secret key used by the targeted system.'"

49 of 236 comments (clear)

  1. The NSA by proudfoot · · Score: 5, Insightful

    The problem with backdoors, is that noone can guarantee who uses them. While it allows for (possibly) justified surveillance by our government, it also allows for it by others.

    The United States, or the NSA, doesn't have all the world's best cryptographers. Russia, China, etc, other nations have excellent skill in these endeavors. Ironically, by trying to protect the nation, the NSA runs the risk of opening us up to foreign espionage.

    1. Re:The NSA by hax0r_this · · Score: 2, Insightful

      Which is why I, for one, doubt that the back door was intentional. The approval that NSA gives is primarily for use by the US government itself, and most of the obstacles that NSA faces in spying on our own government are bureaucratic ones, not technical ones.

    2. Re:The NSA by Anonymous Coward · · Score: 3, Interesting
      Exactly, which is sort of the best proof against the NSA trying to do something like this. If anything they aren't that stupid and they seem to take their mission pretty seriously. Don't forget that half of their goal is to protect US signals.


      I'm not sure, maybe it's election season and so some of these guys are tying to raise the specters again. The Intel bug was with floating point operations and the vast majority of cryptography doesn't use any of that. Of course it's possible that there could be other errors but the logic and integer units on chips are tested so much more thoroughly... it's possible I guess but unlikely if you ask me that they'd know of it and the commercial world wouldn't.

      Also, such a bug generally would require a specific implementation to be affected. I guess they could some how exploit the windows crypto code, but even that runs on dozens of different chips so you'd need the same error to be present on all of them.


      If you look back, the NSA tampered with DES, they did so to increase it's security. Don Coppersmith even wrote about it in the IBM Journal of Systems Research. I can't think of any example of there being an error or weakness that suggested their tampering. I'm all about not using some algorithm that is showing any types of weaknesses which is really what Bruce first suggested which is a fairly healthy paranoia, and we must maintain our vigilance, but it's a long way from a believable example of NSA rigging something which, if you ask me, is an unhealthy type of paranoia.

    3. Re:The NSA by Workaphobia · · Score: 2, Insightful

      Just as I can't believe this article itself made it to the front page. Why the hell did someone think it was newsworthy to state that vulnerabilities are bad and flaws can be exploited? This just in: The NSA keeps secrets, Schneier fears the government, and bugs in hardware platforms can theoretically hurt their users.

      --
      Evidently, the key to understanding recursion is to begin by understanding recursion. The rest is easy.
    4. Re:The NSA by digitalchinky · · Score: 2, Insightful

      Ahhh, yes, but I'm not in your back yard, so what you feel as unjust or otherwise is of no consequence to me. :-)

      While I can't speak for the NSA or US laws, in Australia anyone at all can set up an organisation like the Defence Signals Directorate. It is fully legal to monitor communications of foreign origin and destination. For private individuals the vast majority of domestic transmissions are also legal to intercept. (Some exclusions surrounding radio based telephony exist) The government does have far more restrictions imposed on what they can and can't do than the general population. The DSD is prohibited from monitoring all domestic transmissions - with some exceptions. Perhaps much less widely known is that it is entirely legal for the DSD to receive domestic non-communications type signals such as RADAR. The laws are all open for public viewing. Three letter agencies like the DSD are quite transparent in what they can and cannot do. How they do it is what remains secret.

      --
      Signed 'Ex one of Them'

  2. So... by teh+moges · · Score: 2, Insightful

    So, if a security bug is present an exploit could happen...?

  3. Original article by sk19842 · · Score: 5, Informative

    TFA is just a summary of an article yesterday in the NYT: http://www.nytimes.com/2007/11/17/technology/17code.html?ref=technology

    1. Re:Original article by RuBLed · · Score: 2, Informative

      Yup and TFA really had nothing much to do or even related with NSA's officially sanction random number generator. Mr. Shamir is talking about math error in our processor's ever increasing complexities, much like what happened in Intel back then.

      There are no terrorist mentioned!! Sensationalist networkworld...

  4. how many encryption schemes us floating point? by Kuciwalker · · Score: 5, Interesting

    It seems to me that the most likely source of a math error is in the floating point unit, since floating point math is far more complex than integer math. I've always understood that most crypto is based on integer math, both because it's based on number theory and because floating point math isn't exact. Doesn't that make this sort of exploit extremely unlikely?

    1. Re:how many encryption schemes us floating point? by EvanED · · Score: 2, Informative

      What?

      The point the OP was trying to say was that if the error is in the FPU, that isn't used for integer calculations at all, and so wouldn't be exercised by security code. I don't know if this is true, but for instance RSA in theory is all integers.

    2. Re:how many encryption schemes us floating point? by Ann+Coulter · · Score: 2, Funny

      Maybe the FPU shares circuitry with the integer instruction circuitry.

    3. Re:how many encryption schemes us floating point? by Kuciwalker · · Score: 2, Informative
      Compared to cryptographic algorithms, floating point math isn't that much more complex then integer math.

      Yet the claim is that an actual error in the implementation of elementary amthematical operations on the processor could weaken a cryptographic algorithm run on that processor, even if the algorithm itself is implemented flawlessly in source. Therefore the relevant question remains "where are processor bugs most likely to occur?"

      Also, floating point math is exact since floating points representations (like IEEE 754) are eventually all calculations and representations in bits which are always exactly reproducible. Also irrelevant - most applications of floating point rely on the fact that floating point numbers are sufficiently precise approximations of the reals, therefore they base their algorithms on real-number math (with hedges built in to protect against numerical instability) and are satisfied with inexact answers. Encryption algorithms depend the exact answers produced, and would therefore have to be based on the specific IEEE-specified behavior of a specific precision of floating point number. While such an encryption scheme is possible, it strikes me as unlikely and unnecessarily complex.

    4. Re:how many encryption schemes us floating point? by evanbd · · Score: 4, Informative

      In the past there have existed implementations of integer math that used the floating point unit. The only one I know of off hand is the Prime95 Mersenne prime search program. I imagine there are others, though. The reason for this is simply that the floating point units were faster -- more bits per operation. The x87 FPU instructions operate on 80 bit floating point numbers, compared to 32 bit integers (the floating point numbers can't use the exponent bits, but it's still more than 32 by a lot). If your code is sufficiently parallel, and you put forth the effort, there was a performance gain to be had. I don't know if this is still the case in modern CPUs (especially 64 bit ones), but it's entirely possible to do high-performance integer math on the floating point unit.

    5. Re:how many encryption schemes us floating point? by gweihir · · Score: 3, Interesting

      The point the OP was trying to say was that if the error is in the FPU, that isn't used for integer calculations at all, and so wouldn't be exercised by security code. I don't know if this is true, but for instance RSA in theory is all integers.

      The FPU can be used for integer math. IEEE 754 states that all results from Integer calculations that can be exact, need to be. The exponent gets denormalized for this case. So DOUBLE, for example, can be used as 54 bit unsigned Integer plus sign bit. I have used this occasionally in languages with no 64 bit integers, wne 32 bit were not enough.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    6. Re:how many encryption schemes us floating point? by lpontiac · · Score: 2, Interesting

      Maybe the FPU shares circuitry with the integer instruction circuitry.
      I'm guessing the people modding you +1 funny don't realise that earlier (pre-Prescott) Pentium 4 processors implemented integer multiplication instructions using the floating point unit.
    7. Re:how many encryption schemes us floating point? by ajs318 · · Score: 2, Interesting

      That is done so that the mantissa begins with a one. You don't actually need to denormalise at all. You only lose accuracy if there are more digits in the answer than will fit in your chosen representation. Obviously, a recurring fraction won't fit into any representation (example: 0.1 in decimal is 0.0001100110011 ... 0011 ... in binary). Note that if you isolate the recurring part, the ratio between it and the same number of ones is the exact fraction. i.e. 0011 / 1111 = 3 / 15. But there is one extra 0 in front of it, so it should be 3 / 30 = 0.1. This works in other bases as well (if you replace "1" by "biggest digit") e.g. 0.66666... decimal = 6 / 9 = 2/3.

      Historically, not all computer systems have used the same floating-point mathematics, especially when it was being done in software. British 8-bit micros in particular, unconstrained by requirements to line up word boundaries, used to use a 40-bit representation for floating-point values. Eight bits for the exponent and 32 bits for the mantissa. Now we have hardware to do floating-point maths, there probably is more consistency from one machine to another.

      --
      Je fume. Tu fumes. Nous fûmes!
  5. WTF "terrorist" by Timothy+Brownawell · · Score: 4, Insightful

    Wouldn't pulling off something like this require a level of knowledge and togetherness more in line with a government agency, rather than a "terrorist" group? The results would also be more in line with what a government agency would want ("we have your secrets, ha!"), rather than what a terrorist would want ("Maybe I can't blow up a bridge / poison your water supply / whatever. But then maybe I can. So while you're deciding whether to go do things or hide under your bed all day, I have a question for you: do you feel lucky?").

    1. Re:WTF "terrorist" by the+eric+conspiracy · · Score: 3, Interesting

      While government agencies surely have the upper hand here, there is always the possibility that a mole in the NSA gets their hands on the backdoor information, or a lone genius working in say Russia finds a mathematical flaw in the system.

      As far as poisoning your water supply etc. lookie here:

      http://sandia.gov/scada/home.htm

      Hardware errors are a potential problem, but they are #3 on the list after human and software problems. Why search for hardware problems when the first two are far more likely to bear fruit?

  6. Terrorists? by Anonymous Coward · · Score: 4, Insightful

    Why does everything have to come back to terrorists? They kill a small number of people and people go nuts about them. Hunger, disease, motor cars, lightning, ... All these things have killed far more people than terrorists and they don't get brought up at every *FUCKING* opportunity. Yeah. I'm pissed off. If the terrorism obsessed turned on their brains for a picosecond they might realise that they have caused far more damage than any terrorist has.

    1. Re:Terrorists? by bigberk · · Score: 2, Insightful

      I agree, and I'd say the bigger threat in the context of this article is organized crime. Take for example the botnets/zombie networks, which are an advanced network technology made possible through software exploits. These technology attacks are leveraged for spamming, marketing, denial of service and other forms of extortion.

      As far as threats to the nation, the spam and popups are just the "tip of the iceberg".

      Obviously, the criminals use some pretty smart minds to seek and exploit software weaknesses. I think it's totally feasible that such a criminal group could be involved in more serious attacks that could compromise economic systems, national infrastructure, financial systems, etc.

    2. Re:Terrorists? by jimicus · · Score: 2, Interesting

      A very good friend of mine unwittingly gave me an insight which I think explains it very nicely.

      As far as I can tell, his source of news is "whatever the headlines in the mainstream media are this week". When the corrections come out much more quietly six months later, buried underneath an advert for a home course in Swahili, he misses them entirely.

      As far as he's concerned, Osama bin Laden is from Afghanistan (and is probably still living in a cave there), Saddam Hussein had weapons of mass destruction and Jean Charles de Menzes was wearing a heavy coat and running away from men shouting "Armed police, stop!". None of which are true, but all of which were reported as such when the news first broke.

  7. don't understand by TheSHAD0W · · Score: 3, Interesting

    I'm not sure how Mr. Shamir envisions a simple "math error" causing a problem. A buffer overflow exploit, perhaps, but not a math error... A user on a flawed but protected computer receives a "poisoned" encrypted message, opens it... And what happens? The math error, say, elicits some aspects of the user's private key in the decoded message; but how does the attacker then obtain that information without already having access to the machine? Further outgoing messages wouldn't have any usable information, no modern cryptosystem allows a received message from affecting any such message; a code exploit might affect the system's PRNG, but a math error shouldn't feed back to the PRNG unless it was horribly implemented. Without something affecting the user's machine's code execution, I can't see any way for an attacker to utilize a math error in a decryption function.

    1. Re:don't understand by SiliconEntity · · Score: 4, Insightful

      I can't see any way for an attacker to utilize a math error in a decryption function

      Actually this is a common attack scenario in security protocol analysis. While it does not always happen in real life there are ways it can occur. For example, you try to decrypt the message and get garbage. So what do you do? You send the garbage back to the guy, saying, I couldn't read your message, all I got was this junk. Now you have been tricked into acting as what is called an "oracle" for the decryption function. This opens up a number of attacks which is why the best cryptosystems are immune to such problems.

    2. Re:don't understand by Jarjarthejedi · · Score: 2, Insightful

      Wow...and I thought I knew the extend of user stupidity, sending back an unsolicited message because you couldn't decrypt it (since it's fairly obvious these people wouldn't be simply sitting around waiting for people to ask them to send an encrypted message) seems to me to be quite absurd, sending it back partially decrypted even more so.

      I mean, I could understand it if it was solicited communications, but what are the odds you'll happen to start into an encrypted conversation with someone who just wants your key?

      --
      There are two kinds of fool One says 'This is old therefore good' Another says 'This is new therefore better'- Dean Ing
    3. Re:don't understand by garompeta · · Score: 3, Insightful

      >I can't see any way for an attacker to utilize a math error in a decryption function.

      In the same way you aren't the "S" in RSA. Give him some credit, will you?

  8. Re:First Post? by Anonymous Coward · · Score: 5, Insightful

    Um, no. "The terrorists" (a pretty vauge term but I'm assuming you mean those from middle eastern countries by the way you're wording your statement) don't give a rat's ass how we live, whether we have free elections or live with an oppressive government nor do they really care much about how we go about our daily lives, etc, etc. The terrorists wants the US and western countries to stop fucking around in their countries- supporting/installing dictatorships that happen to ally with our interests while bombing and invading countries that we don't like, setting up permanent military bases and just generally exerting our will on them. After a few generations of having western powers screw with their countries and lives it should be little wonder we're not well liked.

    Of course, if you were refering to China or someone else then that might be a different story (but again, the wording sounded like someone regurgitating the drivel that gets thrown out by politicians and pundits in the mainstream media).

  9. No. by Valdrax · · Score: 5, Insightful

    Terrorists want us to stop screwing around in the Middle East and Central Asia -- specifically they want us to stop supporting Israel and to stop propping up various dictatorships in countries where there'd be a good chance of overthrowing the government and creating a theocracy.

    They don't give a flying f--- about "our freedoms" except where they think that shows we are "morally corrupt." Islamic militants are under no illusions that they're going to change our culture any time soon, though. They've got bigger fish to fry back home trying to establish a power block.

    How we govern ourselves beyond our foreign policy is utterly unimportant to their larger goals.

    --
    If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
    1. Re:No. by Anonymous Coward · · Score: 5, Insightful

      Those people are an absolutely tiny minority and can be dealt with sensibly. The majority of people would just like us to stop meddling.

      Stop pissing people off and the nut-jobs who do want us removed will have lost their primary recruitment method.

    2. Re:No. by Valdrax · · Score: 5, Insightful

      Define Terrorists please. If you're talking about Al-Queda, you're wrong. This group hates democracy as it goes against Sharia law to the most extreme. Anything governed outside this religious foundation is seen as an act of Hubris and thus punishable by death in the eyes of Allah (Arabic word for God).

      Yeah, but al-Qaeda doesn't care about our democracy. And seeing us turn into a secular or Christian dictatorship in no way helps further their goals. The more crazy fascist our government becomes, ironically, the less accepting of Islamic fundamentalism it becomes even as it becomes equally repressive. If anything, it's against their long term goals to see us harder ourselves against them.

      Next time, educate yourself about our sworn western enemies before justifying their cause. Bluntly put, I don't give a damn about their cause. These people need to die like the parasites they are on humanity.

      What does explaining their motivations have to do with justifying them? You seem to be the sort of reactionary type that associates any attempt to understand your enemy with accepting them and capitulating to them.

      Geez, it's no wonder you people are losing the War on Terrorism for us.

      --
      If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
    3. Re:No. by TheRaven64 · · Score: 2, Insightful

      Nutcases who want to establish a world-wide caliphate under sharia law? The only "sensible" way to deal with them is bombs, and lots of them. No, the sensible way of dealing with them is to lock them up somewhere where they can receive psychiatric help or, failing that, shoot them. Dropping lots of bombs just serves to cause otherwise rational people that they might have a point and that the world would be a better place without the people responsible for the death of their family.
      --
      I am TheRaven on Soylent News
  10. Terrorist & government symbiosis. by EmbeddedJanitor · · Score: 4, Insightful
    Of course there's all the stuff that terrorists want you to do, but governments need terrorists too.

    Want the citizens to give up some freedom/pay some new tax/whatever? Easy! Play the terrorism trump card.

    Without some Evil Empire force (that the US plays so well), it is very hard for terrorists to get the emotions going either. Terrorists & empire building governments need each other.

    --
    Engineering is the art of compromise.
  11. Re:National Safety Administration? by ScrewMaster · · Score: 4, Funny

    Who are the "National Safety Administration"?

    They're the sister outfit to the "National Highway Traffic Security Administration".

    --
    The higher the technology, the sharper that two-edged sword.
  12. Pentium FDIV Bug by rubicon7 · · Score: 2, Informative

    Remember the Intel blunder of 1996? Don't you mean 1994?
    --
    --- We are not in the 8th dimension. We are over New Jersey.
    1. Re:Pentium FDIV Bug by The+New+Andy · · Score: 2, Funny

      Don't you mean 1994?
      Don't you mean 1993.9999999999987
  13. NSA "Suite A" is the real problem. by Kadin2048 · · Score: 5, Interesting

    Which is why I, for one, doubt that the back door was intentional. The approval that NSA gives is primarily for use by the US government itself, and most of the obstacles that NSA faces in spying on our own government are bureaucratic ones, not technical ones. I agree, for what it's worth (not much, but we're mostly all armchair generals here, why not join in the fun?).

    The flaw seems too obvious to really have been something illicit. If it was an attempt at a backdoor, it was pretty stupid. And it was a weird/improbable way to create a backdoor -- it was PRNG, not really a cryptographic function per se, and while knowing its output could help you break a system, it wouldn't guarantee it. The people at the NSA had to know it would be combed over.

    But the fact that it seems to be incompetence rather than malice doesn't make me feel a whole lot better. There are still a bunch of secret-algorithm ciphers around and in use (and which the government, in its infinite wisdom, treats as more secure than the openly-reviewed ones), that the NSA is basically the only organization that has any access to. If they could miss such a trivial flaw in a PRNG that they knew was going to go out for public scrutiny, what could they have let slip by in a cryptographic function that was supposed to be a state secret?
    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    1. Re:NSA "Suite A" is the real problem. by 0xygen · · Score: 3, Informative

      1) is a serious problem though. We can never PROVE it is backdoored unless someone steps forward with those numbers. We can NEVER prove it is NOT backdoored, as we cannot PROVE that no-one has the numbers, so are compelled to treat it as backdoored.

      2) is about specific cases where particular categories of mathematical failures actually lead to the compromising of the private key, which is significantly more dangerous. It is not about utilitising typical exploits like buffer overflows to take over and kind of security software. For example, once they private key is known, it may allow the third party to fake messages appearing to originate from the target of the attack.

      3) indeed, the problem here is typically relating to very specific edge conditions, eg overflows, underflows, carries which are handled incorrectly, and have been known to go undetected for years. If you do not believe there are issues in the microcode, take a quick look at the current errata list for the Core2Duo, showing many unfixed bugs (and many of them unimportant due to the impossibility of them occurring in modern operating systems).

      As for "installing bad microcode", the microcode is something done purely from the software each time the OS boots into volatile memory on the cpu, and so is reset back to the original shipping microcode each time the machine is power-cycled.
      If an adversary has access to the booting OS to update the microcode, the adversary already has access to superuser priveleges on your system anyway, so I feel it is irrelevant.

  14. Re:First Post? by piojo · · Score: 2, Funny

    You wrote a bunch of counterexamples to show that the poster was wrong, and that his statement really just meant, "everyone that doesn't agree with me is an idiot." And then you called him an idiot. Good job.

    --
    A cat can't teach a dog to bark.
  15. Re:Random Numbers in .NET and in General by DrJokepu · · Score: 3, Informative

    You are aware that computers can only generate pseudo-random numbers, right? The random number generator in C# actually doesn't generate random numbers but numbers that look random. These numbers are generated by a 'seed'. If you give the same seed to the computer, it will generate the same set of numbers. The C# implementation (if you don't supply a seed yourself) uses the system clock as seed, hence if you start your random-number-generation session in the same millisecond on same computers, they will generate the same numbers! The rest of the hardware & software is irrelevant here. If you need a REAL random number generator, you should connect your computer to something naturally random, e.g. a Geiger device, because your external DLL from an other language just uses a different model to generate the default seed but it is still predetermined.

  16. Way to surrender to violence, kaffir by Anonymous Coward · · Score: 2, Interesting

    So, because they don't like US foreign policy, they think it's alright to kill, and it's the fault of the US?

    What the flying fuck planet of twisted "logic" are you living on? You're blaming the victims of murder for the acts of the murderers.

    If someone doesn't like people who paint their houses pink and purple and then goes and kills anyone living in such houses, the people who painted their houses in garish colors are not the ones at fault.

    And it's not "US foreign policy" that's fueling terrorist rage.

    It's Islam. Plain and simple.

    Specifically, the concepts of dar al-Harb and dar al-Islam. In the case of Israel, the utter insult it is to Islam to have that part of dar al-Islam revert back to dar al-Harb.

    The mere existence of Israel is an affront to fundamentalist Islam.

    And if the jihadis manage to "wipe Israel off the map" (gee, they wouldn't ever slip up and actually say that, now would they?), then those other areas of the world that were once part of dar al-Islam but reverted to dar al-Harb will be returned to the ummah. Say, like the Balkans, or Spain, er, I mean ar-Andalus.

    And if any kaffirs get in the way, too bad. They're subhumans, anyway.

    Maybe you'll get your head out of your ass before the jihadis lop it off - as their holy book directs...

    1. Re:Way to surrender to violence, kaffir by Eli+Gottlieb · · Score: 2, Interesting

      Let's just be frank: Islamism is nothing more or less than a religious twist on the old pan-Arabic-nationalism.

      Islam can coexist with the rest of the world. The type of pan-Arabism that sees all land conquered by the Arab empires of old as rightly belonging to the Arabs of today, cannot, whether or not it drapes itself in a burqa to avoid the eyes of the West.

  17. Re:first post. TFA = WTF? by NoTheory · · Score: 2, Informative

    What are you talking about? How is this hard to understand? This is one of the grand daddies of practical encryption stating that a huge freaking security hole could be opened if encryption is performed on faulty hardware. If a piece of hardware with such a fault was in wide spread use, then a large number of people would be susceptible to exploits which would be able to defeat public key encryption (e.g. HTTPS, ssh, etc).

    --
    There are lives at stake here!
  18. Re:First Post? by ozmanjusri · · Score: 2, Funny

    A little over a trillion dollars, so far.

    --
    "I've got more toys than Teruhisa Kitahara."
  19. Comment removed by account_deleted · · Score: 4, Insightful

    Comment removed based on user account deletion

  20. That's the way you'd do it by slashdotmsiriv · · Score: 2, Interesting

    Step 1: The attacker an SSL session with a web server

    Step 2: Generate the "poisoned" SSL session shared key K1, and encrypt it with the server's public RSA key

    Step 3: The server decrypts the poisoned SSL session shared key K1 with its private key and obtains a value K2, which is
    different than the original poisoned shared key K1. If the shared key K1 was not poisoned, K2 would be equal to K1,
    but the attacker is exploiting an error in the CPU implementation that causes K2 != K1.

    Step 4: All the AES-encrypted messages from the server will now be transformed with the poisoned K2, which the attacker does not know yet.

    Step 6: Carefully select the messages that you send to the server, so that when you get the AES-encrypted with K2 replies to these messages, you
    can use them to infer K2.

    Step 7: Use K2 to infer the server's private RSA key

    And that's the way you do it ...

    This is a chosen ciphertext attack, which does not exploits weaknesses of the RSA scheme, but instead exploits the faulty
    hardware.

  21. Re:Random Numbers in .NET and in General by evanbd · · Score: 2, Informative

    It doesn't have to be a geiger counter. There is plenty of randomness to be had in the exact timing of key presses, exact behavior of rotating media, incoming network information, etc etc. It can be harder to make use of (poor or unknown distribution, patterns that you might not know about), and it might be insecure (especially if it came from the network card), but there are plenty of physically derived things a modern computer can measure and generate randomness from with enough processing of the raw data.

  22. Risk evaluation by mcrbids · · Score: 2, Insightful

    People generally evaluate risk on largely emotional terms. For this reason, we frequently make gross errors in risk assessment.

    1) When we think there's somebody out to get us, we evaluate that risk very highly, even when there are more immediate but "random" risks clearly at hand. For example, a "terrorist" is a bogey-man, it's somebody out to get you. But hunger has no bad guy, and neither do disease, auto accidents, and lightning.

    2) We evaluate as "risky" situations where we are not in immediate control, even if they are carefully situated to protect us. For example, riding a horse is far more risky than flying, even in the most dangerous category of flying, single-engine piston planes. Yet people routinely are more concerned about the "motor stalling" in a carefully watched and maintained airplane than they are about their kids riding around without protection on a champion racing horse.

    3) Because of our intense pattern-matching, our ability to relate to other people, and our social nature, we routinely underrate risks that are impersonal - the flip-side of #1 above. For example, auto accidents are seen as a "way of life" and "can't be changed" by most, but freak out when the local high-school is held up for a few hours when some teenie gets involved in a love triangle and holds a SINGLE person "hostage" with a pocket knife. Look at the dichotomy - people who don't attend school drive right by a smashed up car on the way to work, tisking as they go, but sit glued to the telly when something happens at the High School.

    It's reality. Get used to it. And no, it doesn't make sense.

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
  23. Re:first post. TFA = WTF? by TheRaven64 · · Score: 4, Interesting
    When you send someone an encrypted message, their software will typically try to decrypt it. This means that it will run a known algorithm (you typically identify the decryption algorithm along with the cyphertext).

    Most chips have flaws of one kind or another. Most of these are trivial and can be worked around in microcode. The article mentions the Pentium floating point bug. This caused the original Pentium to return the wrong result for some calculations. In theory, it would be possible to produce a cyphertext that would generate this error if the key contained one of the two values that you needed to generate the error. This then lets you dramatically reduce the key search space.

    Other CPU flaws are more serious. There are a few in the Core 2 which allow a process to violate the page protection mechanism, for example. If an attacker found one that caused the program counter to be modified as a side effect of an arithmetic operation then they could create a cyphertext which contained a program at the end and some data at the beginning that caused execution to jump into the exploit code. This is much easier for cypertexts than arbitrary data because the attacker has can make some good guesses about how a cyphertext will be processed.

    It seems like this is a very theoretical category of vulnerability to use for anything more than a DoS. On the other hand, as Theo de Raadt says, the only difference between a bug and a vulnerability is the intelligence of your attacker.

    --
    I am TheRaven on Soylent News
  24. NSA/GCHQ Private IS open review, practically by igb · · Score: 4, Interesting

    There are still a bunch of secret-algorithm ciphers around and in use (and which the government, in its infinite wisdom, treats as more secure than the openly-reviewed ones),
    The breadth and depth of cryptographic skill,. experience and knowledge behind the wire at Cheltenham and Fort Meade is orders of magnitude than that outside. The review process internally is actually far higher quality than that externally. This isn't like software, where even Microsoft doesn't employ a measurable fraction of the software engineers in the world. GCHQ plus NSA is the vast majority of the cryptographers, plus they have libraries and testcases and methodologies dating back fifty years that the rest don't have access it.

    In that case, the benefit of open review (that, just possibly, someone in the small pool of non-spook cryptographers who know what they're doing might find a flaw) is far less than the downside (that your opponents get to see what a modern code system looks like). The lowdown on a modern close-world cipher system would reveal attacks they are defending against, give a good impression of their real capabilities and so on. Yes, in a real shooting war, the spooks have to allow for their crypto systems falling into the wrong hands. But in the current climate, the tactical stuff will be exposed, but the strategic stuff can be closed algorithms and closed keys: what's not to like?

    This reminds us all of the S Box hoo-hah, where elaborate theories were put forward by open community `experts' about the `flaws' in the S Boxes in DES. It turned out, of course, that they were optimal against an attack that wasn't even public, and close to optimal against other attacks that (allegedly) weren't known to anyone. I'd take a cipher system that the NSA or GCHQ approves for government use over anything advocated outside the wire., simply because the chances of an intentional weakness in the former are far smaller than the chances of an accidental weakness in the latter.

    We went through all this is the discussion about the S Boxes

    1. Re:NSA/GCHQ Private IS open review, practically by pthisis · · Score: 2, Interesting

      The breadth and depth of cryptographic skill,. experience and knowledge behind the wire at Cheltenham and Fort Meade is orders of magnitude than that outside. The review process internally is actually far higher quality than that externally. This isn't like software, where even Microsoft doesn't employ a measurable fraction of the software engineers in the world. GCHQ plus NSA is the vast majority of the cryptographers, plus they have libraries and testcases and methodologies dating back fifty years that the rest don't have access it.

      That used to be absolutely true. Over the last 15 years, there's been a huge boom in private-sector cryptography.

      This reminds us all of the S Box hoo-hah, where elaborate theories were put forward by open community `experts' about the `flaws' in the S Boxes in DES. It turned out, of course, that they were optimal against an attack that wasn't even public, and close to optimal against other attacks that (allegedly) weren't known to anyone.

      Yeah, at the time the NSA was about 20 years ahead of the open community on things like differential cryptanalysis.

      Since then, the lead has deteriorated significantly with the proliferation of public-sector mathematics. Even former NSA employees have been quoted as saying that they're still ahead, but not by very much.

      --
      rage, rage against the dying of the light