Slashdot Mirror


Breaking RSA Keys by Listening to Your Computer

An anonymous reader writes "Adi Shamir and crew gave a talk on preliminary results in extracting a private RSA key just by listening to the computer!. Similar to power analysis and LED leakage, this is a non-invasive, side channel attack that may have applications to tamper-resistant systems. It appears to be related to noisy capacitors on the motherboard, an effect which has been observed when CPU power saving is enabled on laptops."

22 of 186 comments (clear)

  1. That's it... screw the enviroment by Anonymous Coward · · Score: 5, Funny

    No power saving for me! My encrypted porn is far too important.

  2. Lucky for me... by relyter · · Score: 5, Funny

    I've got so many fans running in my computer that you can't even hold a conversation in the same room, much less listen for capacitors

  3. Extracting the Actual Numbers? by artlu · · Score: 5, Insightful

    The article does not deal with actually computing the encoding (Pe) and decoding functions (Pd) for q,n,d. Where q,n are unique primes. The only thing their interference spotted is the markings between computing each function for the signature, and this drastically varies based on the machine. They do have a Proof of Conept, but no quantifiable data.
    My $0.02.

    artlu

    --
    -------
    artlu.net
  4. Does anyone... by centralizati0n · · Score: 4, Interesting

    Does anyone know the range of how far you can be away from the computer to hear the sounds? The proof-of-concept website just seemed to be "look, here are pictures of computer operations... in sound! Yay!" without enlightening us on any details.

  5. reminds me of the old days by belmolis · · Score: 5, Interesting

    Twenty years ago at Bell Labs one of the speech machines (an SEL with homebrew audio i/o) had output to loudspeakers that went through unshielded speaker wires that ran past the CPU, so if you weren't playing anything back the speakers played back CPU noise. We could tell what stage a compilation was at by the noise that came over the speakers.

    1. Re:reminds me of the old days by LiquidCoooled · · Score: 5, Interesting

      I actually still get that.

      If i turn my speakers wayyyyyyyyyyyyy up and start working, I can here the data being moved around. Scares the crap out of me when something plays a sample, but fun all the same.

      Its happened on my 2 most recent boards, and I just put it down to the integrated sound cards vs the Sound blasters I used to use.

      --
      liqbase :: faster than paper
  6. Aha! by dupper · · Score: 5, Funny

    Now I have an excuse to play loud music at work: security!

  7. not so lucky by hatchetman82 · · Score: 4, Insightful

    "...For example, a high-quality analog equalizer can be used to attenuate strong low-frequency fan hums and background noise..."
    taken from the article.
    you'd need background noise in the same frequency area (dummy CPU ?)

  8. No by Transient0 · · Score: 5, Informative

    at best, they have shown that they can detect differences in the types of instructions the processor is executing by listening to the sounds of the capacitors. It is a long way from there to the point where they can extract the key itself from the information. In fact, I would venture that the data is far too noisy (haha) for any significant part of the key to ever be extracted, reagardless of the amount of computational power thrown at the problem. What they might be able to do however is use the information gleaned to eliminate large swaths of the set of possible keys. This could make cracking the key by conventional means a computationally easier task.

    So, in all, this paper is not insignificant, but it's also not a reason to completely give up on security or to install a cone of silence around your computer.

  9. Kinda like that CPU speed crack by suso · · Score: 4, Informative

    This sounds kinda like that crack that the college student found in 1995 dealing with the speed of the CPU determining what random numbers the host would pick. A good reason not to keep your CPU info in the HINFO line of a DNS zone file.

  10. Re:RSA sucks anyway by kasperd · · Score: 5, Insightful

    Nope, for it's DSA/DSS all the way, and all the noisy capacitors in the world won't help you break it.
    That wouldn't change anything. RSA as well as DSS is based on modulus exponentiation with a secret exponent. If you can get the exponent you have broken the system, it is as simple as that.

    Why do I trust it? Because it was developed by the NSA, not a bunch left leaning MIT eggheads.
    That kind of logic is useless in the security business. Basing your trust upon who designed the algorithm is stupid. How many (and who) tried to break the algorithm and failed at that is a better meassure on the security. A good rationale behind the design is another good meassure on the security. And finally mathematical proofs.

    --

    Do you care about the security of your wireless mouse?
  11. Is this actually possible? by idiot900 · · Score: 4, Interesting

    Even at a 96 kHz sampling rate, the maximum frequency that can be sampled is 44 kHz. How could one hope to extract a certain few bits from a recording when the CPU's instruction throughput is many times that? Most of the information that would need to be examined wouldn't make it onto the recording. Correct me if I'm wrong, but it seems Nyquist leaves this idea dead in the water.

    1. Re:Is this actually possible? by Insount · · Score: 4, Insightful

      > How could one hope to extract a certain few bits from a recording when
      > the CPU's instruction throughput is many times that?

      The few bits you're trying to extract may have an observable influence on global statistics, especially when you can affect the value of some other bits. See for example Boneh and Brumley's timing attack on OpenSSL.

    2. Re:Is this actually possible? by Doctor+Wonky · · Score: 5, Informative

      What they did was, create tight loops performing the same operation over and over. And found that different operations tend to result in different sorts of noise on the power supply, resulting in different sounds from the capacitors.

      Remember though with their 96,000 Hz sampling rate, a 1 Ghz CPU performs over 10,000 instructions per sample.

      Air does not vibrate fast enough, and there are no microphones with frequency response high enough to let you look at individual operations.

      So I guess, if you knew the characteristics well enough, you could record the sound of the capacitors and say 'Hey, this guy is running GnuPG' on it. I don't see a concievable way to figure out the keys and this article doesn't suggest one.

  12. I've tried this... by bhmit1 · · Score: 5, Funny

    ...but all I heard was "Dave, what are you doing Dave?"
    Hmm, maybe I should put away the screwdriver.

  13. Encryption is part of checks and balances. by Roman_(ajvvs) · · Score: 4, Insightful
    By encrypting your data, you are bringing unnecessary suspicion upon yourself

    Encryption inhibits surveillance by ANYONE. That the government falls under the category of anyone is secondary to most encryption desires and uses.

    If someone was attempting avoidence/prevention of potential government investigation, then the act of encrypting wouldn't make it more or less likely. They make use of encryption because they have some information they don't want the government to know. It's not because they use encryption but due to any relevant knowledge they have, that a person should ellicit investigation by their government. And then knowledge pertaining only to those things that governments should worry about (murder, fraud, and other criminal acts).

    So by encrypting the code on my laptop as a security precaution, you're saying I bring unnecessary suspicion upon myself? Noone but my company and its business competitors has an interest in the trade secrets I manage and create during the course of my business. Therefore I use encryption as a means of self-defense. I inhibit investigation by those not authorized by me or my company. The act of investigation could very well be illegal. I would not give my government blanket access to my trade secrets, when I have no control over what they do with them. They should have no interest in them. in fact, by wanting to enhance surveillance of those things which they declare to not have an interest in and would normally have no involvement in is suspicious in itself. Encryption is a tool and is about as dangerous as a screwdriver.

    --
    click-clack, front and back. I'm not moving this car otherwise.
  14. Re:If you have phsysical access by n0rr1s · · Score: 4, Funny

    use money/women/men/donkeys

    Btw, if you meet a woman with a donkey, don't forget that great opening line:
    "Hey babe, nice ass!"

    Sorry.

  15. The other shoe dropping by Effugas · · Score: 4, Informative

    Shamir, once again pointing out something absolutely brilliant and (in retrospect) totally obvious, did forget to include something rather important in his announcement:

    The particular pattern of CPU operations executed while an RSA private key is executed varies depending on that RSA private key. Given a rough estimate of the pattern of CPU operations executed, the set of possible RSA private keys is greatly reduced. So it becomes much, much easier -- possibly trivial, particularly if you have a chosen plaintext scenario -- to extract a private key from an otherwise secure system. Consider an e-voting machine with an audio system for handicapped access -- with nothing but a very sensitive microphone in the booth, you might be able to determine the private key used to sign votes (and thus gain the capability to spoof votes elsewhere).

    And of course, this would be a very, very successful attack against an RSA private key embedded within a trusted computing environment. Processors -- even those encased in epoxy -- still need power, and variable amounts depending on what they're doing. The brilliance here is that rather than needing some very expensive analog energy drain measurement equipment, you just need a sound card. It's a side channel attack for the masses.

    Very very cool work. Wow.

    --Dan

  16. Forget capacitors, listen to the keyboard. by Hans+Lehmann · · Score: 5, Interesting
    Other than fans & hard drives, I don't think I've ever heard noise from any machine I've ever worked on, though back in the old days we would hold an AM radio next to the computer, which would give very distinct noise patterns as the CPU went about its business.

    If you really want to do some acoustic evesdropping, listen to the keyboard. It's got a much larger signal to begin with (from across the room, instead of having to paste your ear to the computer case.) Since there are always slight mechanical differences between keys on any given keyboard, I would think that the sound spectrum would also be slightly different. Being able to always listen in on the same user would also help, since most people are somewhat consistent regarding which finger they use on which key. (Evesdropping on people who were smart enough to take a touch-typing class in high school is also a big plus.)

    Assuming you could discern between the acoustic fingerprint of 100 different keys, then it's just a matter of figuring out which sound goes with which key. It's a simple substitution cypher, which are almost trivial to break.

    Sneak your cell phone into your boss's office, set it to silent mode and plug in a headset so that you can set it to auto-answer when a call comes in. Then, while your boss is busy typing dirty notes to his mistress, you call your cell phone, start recording it, and presto, you've got a keylogger without ever having touch his computer or the software on it. Then, at your next performance review, you convince him to give you a hefty raise.

    ...Profit!!!

    --
    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
  17. Interesting... by boola-boola · · Score: 5, Interesting
    It is interesting to note that Adi Shamir (one of the co-authors) is one of the three people who came up with RSA-encryption

    R = Ron Rivest
    S = Adi Shamir
    A = Len Adleman

  18. No no (Re:No) by po8 · · Score: 4, Informative

    Uh, no. Your analysis runs contrary to cryptanalytic principles and the history of these sorts of attacks.

    If you spot me 1 bit of key information, you have by definition halved the work for an attack. In this specific analysis, I need only consider those settings of key bits (in this case, bits of p and q) that correspond to observed behavior for an interval of the spectogram. This means that I can potentially crack the key in time almost linear in the size of the key, rather than completely exponential.

    The work on timing attacks and power attacks uses very similar sorts of information, and the anlysis used here will likely be similar also. This is why Shamir, who is certainly qualified to evaluate the work at this point, describes it as "proof of concept": it would be surprising if the observed information fails to extend to a practical attack. It's just that in science, you publish when you have anything interesting to report, so that folks know you got there first.

  19. FAQ by Insount · · Score: 4, Informative

    (I'm a co-author of the presentation.)

    The web page was extended to include a FAQ discussing the issues brought up here.