Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

Like people always say: “Attacks only get worse…” — which is why I'm asking early.

I have been reading the paper “RSA Key Extraction via Low-Bandwidth Acoustic Cryptanalysis” published December 18, 2013 by Daniel Genkin, Adi Shamir, Eran Tromer.

In short, they discovered that it is possible to crack 4096-bit RSA encryption keys using a microphone to listen to high-pitch noises generated by internal computer components. In one of their setups, they only used a mobile phone which was placed 30 cm from a target laptop, with the phone's internal microphone pointing towards the laptop’s fan vents… successfully achieving a full key extraction in this configuration and distance.

The proof in that 57-page paper is hard enough to start thinking about related crypto-solutions. Especially since the paper mentions that rather simple hardware like parabolic microphones and laser vibrometers can be used for distant acquisition.

Now, I know this audio-based key recovery attack is a new one (published December 18, duh) but there has been quite some research on hardware-related attacks in the past already — like measuring the electrical potential of a computer's chassis during encryption etc. — and beyond that, the crypto-community tends to search for a solution to every problem encountered. So, I can imagine that there might be something out there I'm not aware of, which might be fit enough to lift one or more security impacts of acoustic cryptanalysis; especially in the described case(s) of acoustic key recovery attacks.

Can we ensure the security of a crypto-algorithm and/or -scheme against acoustic cryptanalysis? Does any generally acknowledged crypto-scheme, crypto-solution, or crypto-protocol exist which would be able to provide cryptographic security/defense against the described and maybe even other acoustic cryptanalysis of (non-RSA) ciphers?

I'm thinking along the lines of algorithm-tuning (somewhat like key whitening, which was once invented and implemented in iterated block ciphers to enhance security).

Related to solutions, the paper's website mentions

…software countermeasures…

but also notes

How vulnerable are other algorithms and cryptographic implementations?

We don't know. Our attack requires careful cryptographic analysis of the implementation, which so far has been conducted only for the GnuPG 1.x implementation of RSA.

which practically means that chances are, there is no general, one-fits-all solution to the problem. Especially not when thinking about non-RSA ciphers.

Yet, if there is something… can that be used or adapted to successfully protect against all acoustic cryptanalysis, even beyond the vulnerabilities the paper describes? What cryptographic measures enable us to ensure the security of a crypto-algorithm and/or -scheme against acoustic cryptanalysis?

share|improve this question
2  
Nice and timely question ;) –  DrLecter Dec 21 '13 at 8:17
1  
Didn't investigate the details, but does the attack still work with standard constant time code? These techniques cost a bit of security but not that much. (no secret memory access, always executing the very same instructions, only with different data) –  CodesInChaos Dec 22 '13 at 21:39
    
@CodesInChaos Is there a "standard constant time code" implementation for RSA? (I know that they exist for symmetric algorithms like AES.) –  Paŭlo Ebermann Dec 24 '13 at 1:19
    
@PaŭloEbermann I haven't looked for one yet, since I'm mostly using ECC. But it shouldn't be too hard to write one. mpz_powm_sec from GMP has a promising description, but I didn't look into the details. –  CodesInChaos Dec 24 '13 at 10:18
1  
There are measures to avoid side channel leaks like this, and some are mentioned in the paper. Blinding works (because you don't know which ciphertext is decrypted). And you can implement the RSA decryption in a way, that you can't identify internal workings of the control flow (one step would be to always compute the multiplication in square and multiply, keep the number of multiplications and modulo operations independent of they key, etc.). The main problem is, that these things are usually not considered in software, but only in hardware modules (e.g. dongles). –  tylo Feb 19 at 9:46
add comment

3 Answers

up vote 7 down vote accepted

The problem is a very old one going back at least as far as the late 1940's early 1950's and has been shown to exist with Quantum Key Exchange as well.

You need to think of it in terms of entropy down to heat pollution where a coherent signal energy steps down due to inefficiency via various transducers to what is basically thermal noise where the noise threshold is significantly above any residual coherent signal.

Most people incorrectly think that TEMPEST is all about EM energy, it's not. It's about any energy (EM, acoustic/mechanical conducted or radiated even gravity) in one or more Shannon channels which have bandwidth, noise and propagation delay giving rise to phase as well as amplitude effects. It's also about transducers which can be bidirectional (a DC Motor/Generator being such a beast, as are some types of microphone/speaker by moving coil or piezo effects).

Put simply, a capacitor is two metal plates with an insulated gap. When current flows into the plates a magnetic field is generated that will cause the plates to move fractionally in sympathy with the current. Also some insulators are dielectrics which have a piezo effect as the voltage rises the dielectric deforms mechanically. Both of these effects will cause the capacitors to emit sound. Likewise inductance effects designers of RF oscillators are well aware that mechanical vibration of the inductive component will cause the resulting output of the oscillator to be modulated, it's frequently called microphonics.

These basic physical effects cannot be prevented only reduced or mitigated. In EmSec you look to reduce the bandwidth of any signal path such that it is less than the information bandwidth and also at signal containment/absorption.

Theses mitigations when done properly all add significant cost to a product. Therefor in a price sensitive market such as PC manufacture anything that is not regulated will cause a race for the bottom. And even where there are regulations (EMC) the market will still look at avoidance rather than meeting the intent of the regulations. One such avoidance is "direct sequence spreading" of the PC master clocks/oscillators such that the energy in a spur/sprog is spread so that it's energy/Hz decreases and thus meets the regulatory masks. Unfortunately the energy is still there and still caries the signal information and only needs de-spreading to recover the signal information.

One solution to "singing caps" is high melt temperature wax or some hot melt glues they absorb the audio signals and reduce the effective channel bandwidth. Another partial solutions is 'sound absorbing foam' that also lets air flow through and the right selection of materials will significantly reduce the audio channel through fan and ventilation grills.

But as I noted all steps are "mitigations" not real "solutions", but may well be sufficiently effective in their own right if (and only if) implemented correctly.

share|improve this answer
add comment

I haven't read the paper, but the "RSA Key Extraction via Low-Bandwidth Acoustic Cryptanalysis" web page mentions that GnuPG's RSA implementation was patched to avoid the current attack. I got the impression that this was a problem along the lines of implementing AES without cache timing attacks, not "RSA is ruined forever".

share|improve this answer
1  
I never said "RSA is ruined forever". If that would be the case, I would probably start crying instead of posting a question. ;) –  e-sushi Dec 21 '13 at 8:08
2  
Software was patched, yes, but see Q9: Some of the effects we found (including RSA key distinguishability) remain present. –  rath Dec 22 '13 at 21:56
add comment

Start by reading the paper. They have an entire section on defences: it is Section 11, Mitigation, pp.46-48.

As far as software countermeasures for RSA specifically, they mention blinding as a good defence. Blinding is a standard defence against many kinds of side-channel attacks, and it is apparently effective against acoustic cryptanalysis as well. Blinding seems like an attractive defence; it imposes relatively little performance overhead (when the RSA public exponent is small), and helps protect against a broad range of side channel attacks (more than just acoustic side channels).

They also mention other possible countermeasures as well.

Of course, the best defense will be dependent upon the specific algorithm: for instance, you can use blinding to protect RSA, but not AES. So, don't expect to get a single definitive answer that works for all algorithms: the best defense will depend upon which algorithm you are trying to predict.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.