Slashdot Mirror


OpenSSL Timing Attack Can Intercept Private Keys

Trailrunner7 writes "Remote timing attacks have been a problem for cryptosystems for more than 20 years. A new paper shows that such attacks are still practical ... The researchers, Billy Bob Brumley and Nicola Tuveri of Aalto University School of Science, focused their efforts on OpenSSL's implementation of the elliptic curve digital signature algorithm, and they were able to develop an attack that allowed them to steal the private key of an OpenSSL server."

31 comments

  1. No one uses ECDSA certificates. by Mysteray · · Score: 4, Informative

    The EFF's SSL observatory project found a handful of them on servers on the internet, but none of them actually rooted to a well known CA.

  2. OpenSSH is not vulnerable by dmiller · · Score: 4, Interesting

    OpenSSH isn't vulnerable to this attack: https://twitter.com/#!/damienmiller/status/72814031941017600

    1. Re:OpenSSH is not vulnerable by rastoboy29 · · Score: 1

      It would be more accurate to say, "isn't *believed* to be vulnerable..." don't you think?

    2. Re:OpenSSH is not vulnerable by dmiller · · Score: 4, Informative

      No, it is not vulnerable to this attack. The Brumley/Tuveri paper describes a timing leak in a specific algorithm that is only used for elliptic curve crypto over binary/GF(2m) fields. OpenSSH uses ECC over prime fields that use different algorithms that have no known timing leaks. A result against ECC using prime fields would be more difficult because the curve point components are integers and so can use well-tested modular arithmetic code.

  3. Re:Fr1sr psot by Anonymous Coward · · Score: 0

    Indeed sir that sounds like a good idea

  4. How much of this is FUD? by alcourt · · Score: 1

    This sounds like another the sky is falling alert. That alone makes me suspicious.

    I'm not exactly an expert on this, but reading it, I see several assumptions built in that seem at best infeasible. First, while they admit that they can do it on a LAN, they admit that it is much harder, and over a larger or busier network crossing multiple routers, this may not be feasible. Second, they seem to believe that "cloud computing" makes it more feasible because they believe the odds of being stacked on the same physical server as your target is good.

    I'm not by any means saying that they haven't identified a weakness that needs to be fixed, but right now, I'd need more to accept their claim of how vulnerable everyone is to this.

    --
    "I may disagree with what you say, but I will defend unto the death your right to say it." -- Voltaire
    1. Re:How much of this is FUD? by betterunixthanunix · · Score: 1

      It depends on the environment you are in. Doing it across a LAN could be feasible if you are a bank employee trying to defraud your employer.

      The real question is, how many people are using ECDSA right now?

      --
      Palm trees and 8
    2. Re:How much of this is FUD? by alcourt · · Score: 1

      That still impacts the risk factor.

      As for ECDSA, I've seen extremely few implementations that used it, but I'm focused on the OS side, not the application side, so maybe apps use it more than I realize.

      --
      "I may disagree with what you say, but I will defend unto the death your right to say it." -- Voltaire
    3. Re:How much of this is FUD? by Mysteray · · Score: 4, Insightful

      It's not FUD and it's not "the sky is falling" either.

      This is cryptographers communicating with one another. Terms like "attack" are being used here in their academic meaning. It's an interesting result, exciting even, but shouldn't be emotionally charged.

      If there are any real systems at risk, I don't know of them. But it's certainly possible that someone somewhere is really screwed by this attack, so it should be taken seriously. Anyone using ECDSA should probably apply the forthcoming patches as soon as is practical. This is good advice in any case.

    4. Re:How much of this is FUD? by alcourt · · Score: 1

      The Q&A linked from the summary isn't cryptographic researchers communicating with each other, but speaking specifically to the public saying how terrible this is. More than one statement is made about real world exploitability and how vulnerable the world is.

      --
      "I may disagree with what you say, but I will defend unto the death your right to say it." -- Voltaire
    5. Re:How much of this is FUD? by Mysteray · · Score: 4, Interesting

      This is just what you get when you have a Threatpost reporter interviewing a cryptographer. I think Brumley does a fine job answering the questions factually, without feeding the hype. There really is a timing attack to which most every implementation of OpenSSL is vulnerable.

      The problem is that some people interpret that kind of as some kind of armageddon for internet security, whereas the great majority of secure systems probably aren't affected at all because they don't run the vulnerable code. But for those who are affected the problem may be really really serious for them. It is to these people that the researcher must communicate (via a journalist) without being able to select his audience in advance.

    6. Re:How much of this is FUD? by houghi · · Score: 1

      possible that someone somewhere is really screwed by this attack, so it should be taken seriously

      /I would disagree.
      No systems are known. It is not certain there are even people affected. So it should NOT be taken seriously. It should be looked at with interest from an academic point of view at most.

      "Taking it seriously" is already emotionally charged. People take terrorist children seriously.

      --
      Don't fight for your country, if your country does not fight for you.
    7. Re:How much of this is FUD? by Ja'Achan · · Score: 1

      Ah, but is he any good at it?

    8. Re:How much of this is FUD? by Anonymous Coward · · Score: 0

      What are you talking about? A viable attack is a viable attack. The only question left unanswered is whether people care enough about you to launch that attack.

  5. Just introduce a fixed delay, problem solved. by Co0Ps · · Score: 2

    Well the solution should be pretty simple. Just patch OpenSSH and introduce a delay in responding to a challenge thats makes the total time be a sufficiently large chunk to allow any crypto calculation to run in that frame for that machine. They even mention this in TFA. Isn't challenge delay crucial anyway to make dictionary attacks and other brute force attacks significantly harder? This seems like the most waterproof way to solve it since it prevents any timing attack, no matter what crypto system is used (in this case the elliptic curve digital signature algorithm).

    1. Re:Just introduce a fixed delay, problem solved. by bersl2 · · Score: 2

      If this attack is like previous timing attacks I've read about, then no, adding a fixed delay doesn't help, and adding a random delay doesn't help enough.

      The best way to hinder timing attacks is to use invariant-time algorithms. This does tend to reduce performance, though.

      Now, let me RTFA.

    2. Re:Just introduce a fixed delay, problem solved. by Anonymous Coward · · Score: 1

      OpenSSH isn't vulnerable. OpenSSL is.

    3. Re:Just introduce a fixed delay, problem solved. by Co0Ps · · Score: 4, Insightful

      "Fixed delay" refers to a fixed and delay-padded time frame the whole operation runs in where the total time of the frame is equal or longer than the worst case of any cryptosystem - or for either of them - but preferably longer to account for safety margin and because delay makes brute force harder anyway.

    4. Re:Just introduce a fixed delay, problem solved. by Anonymous Coward · · Score: 1

      There are alternatives to adding fixed or random delays to mitigate timing channel attacks (see Askarov, Zhang, and Myers, 2010)

    5. Re:Just introduce a fixed delay, problem solved. by russotto · · Score: 0

      OpenSSH isn't vulnerable. OpenSSL is.

      Should we expect an OpenSSM to correct this regression?

    6. Re:Just introduce a fixed delay, problem solved. by thsths · · Score: 1

      > If this attack is like previous timing attacks I've read about, then no, adding a fixed delay doesn't help, and adding a random delay doesn't help enough.

      We already have a random delay, it is called "the internet". And of course it only makes it more difficult to use this side channel attack, but not impossible.

      However, you could also respond a fixed delay after the *start* of the calculation. That should eliminate any timing difference in the algorithm itself.

      You still have access to the timing side channel if you are logged on, but a) that is a rare situation, and b) the data you get from top is typically pretty bad.

    7. Re:Just introduce a fixed delay, problem solved. by Co0Ps · · Score: 1

      Random delays don't work in theory. All you have to do is to get a couple of extra data points and then average them. The result should be pretty accurate. It might be effective in practice though if the number of extra data points is too great.

    8. Re:Just introduce a fixed delay, problem solved. by solinym · · Score: 1
  6. Here's the whole thread: by reiisi · · Score: 1

    The thread on marc.

    --
    Computer memory is just fancy paper, CPUs just fancy pens with fancy erasers; the 'net is just a fancy backyard fence.
  7. Radio Community by ah_kanta · · Score: 1

    It would be more accurate to say, it will be vulnerable..." don't you think? http://www.ruposhibangla.net/

  8. Who actually uses ECDSA? by WaffleMonster · · Score: 1

    While I'm sure people are using it.. I never have and I don't know of anything that does.

  9. Incompetence here? (TFA) by udippel · · Score: 1

    Though I have a pretty good idea what a side-channel attack is (I am a cryptographer), I can't fathom the 'intercept private key' part of the message. Eavesdropping means interception and interception means that Eve can intercept the private key as sent. There is, however, no reason to send the private key, ever. So the term 'intercept the private key' sounds suspicious.
    Like in the Bernstein Attack (google for it, I'm too lazy to offer a link), a symmetric key (AES) can be reconstituted from the timing sequence, which is a typical side-channel attack. Though without the spy-programme, no chance.
    I am not trying to say the original document was crap, though I am not sure it has been interpreted correctly.
    [10 minutes later]
    I read the original paper and I'm vindicated: No transfer of the private key, no interception. Over.
    The attack is on factorization sequences of the original message which - depending on the circumstances - allows for regeneration of the original key. Which is vastly different from the term 'interception'.