TL;DR
This paper tackles the challenge of recovering RSA secret keys from noisy analog data, a scenario common in physical attacks like side-channel analysis and cold boot attacks. The authors introduce novel algorithms that leverage this analog information, outperforming previous methods that relied on quantized (binary) data, and demonstrate their effectiveness in recovering keys even with significant noise.
What Problem Does This Paper Address?
Recovering cryptographic secret keys is a critical aspect of security analysis. While much research has focused on recovering keys from noisy binary data (where bits are either flipped or missing), real-world physical attacks often yield analog data. This analog data, such as power consumption traces or timing variations, contains richer information than simple binary representations. However, extracting this information and using it to recover the secret key, especially when the noise is substantial, is a significant challenge. Previous work on key recovery from noisy binary data, like correcting bit errors or erasures, doesn't fully exploit the continuous nature of analog leakage. This paper aims to bridge this gap by developing algorithms that can effectively recover RSA secret keys from noisy analog measurements.
Methods
The core contribution of this paper lies in two novel algorithms for recovering RSA secret keys from noisy analog data. These algorithms are generalized versions of Paterson et al.'s work, adapted to handle continuous, noisy observations.
- Maximum Likelihood Approach: The primary method employed is a maximum likelihood-based approach. This involves defining a "score" function that quantifies how well a candidate secret key bit aligns with the observed analog data.
- Generalized PPS Algorithm: This algorithm is a key innovation. It maintains a list of candidate secret keys and iteratively prunes this list based on the calculated scores. The algorithm works by expanding potential key candidates and then pruning them based on their likelihood. A crucial aspect is the use of a "score function" derived from the log-likelihood ratio of the observed data given a candidate bit.
- Two Algorithm Variants:
- Algorithm 1 (Known Noise Distribution): This algorithm requires the exact form of the noise distribution (e.g., Gaussian) to compute the score. It offers strong theoretical guarantees, showing that key recovery is possible if the noise standard deviation is below a certain threshold (e.g., $\sigma < 1.767$ for Gaussian noise with specific parameters).
- Algorithm 2 (Unknown Noise Distribution): This variant is more practical as it does not require prior knowledge of the noise distribution. It uses a score function similar to that used in Differential Power Analysis (DPA), which relies on the difference between observed data averages for candidate bits 0 and 1. While the theoretical conditions are slightly relaxed compared to Algorithm 1, it can achieve similar performance for Gaussian noise.
The paper also connects these methods to communication theory, framing key recovery as a form of soft-decision decoding for a convolutional code.
Datasets
Not discussed in the paper. The paper focuses on theoretical algorithms and experimental validation using simulated noisy analog data derived from RSA keys.
Key Insights and Ideas
- Analog Data is Richer: The paper strongly advocates that analog leakage data, rather than quantized binary data, provides significantly more information for secret key recovery. Exploiting this continuous information is key to overcoming higher noise levels.
- Generalized PPS Algorithm: The proposed algorithm is a significant advancement, effectively adapting existing binary-correction techniques to the analog domain. Its iterative pruning mechanism based on likelihood scores is central to its success.
- Symmetric Capacity as a Bound: The paper demonstrates that the symmetric capacity of the channel (relating the secret key bits to the observed data) is the relevant metric for key recovery, not the full channel capacity. This is because the secret key bits are assumed to be uniformly distributed.
- DPA-like Score for Unknown Noise: The development of a DPA-inspired score function that works without knowing the exact noise distribution is a practical breakthrough, making the algorithms more applicable to real-world scenarios.
- Theoretical Guarantees: The paper provides theoretical bounds on the error probability, showing that key recovery is possible with high probability under certain noise conditions, and that the error decreases as the list size of candidates increases.
Key Results
- Improved Noise Tolerance: The proposed algorithms can recover RSA secret keys with a higher noise standard deviation ($\sigma$) compared to quantization-based approaches. For Gaussian noise, the first algorithm can recover keys when $\sigma < 1.767$ (for specific parameters), which is shown to be superior to quantization-based methods.
- Experimental Validation: Numerical experiments confirm the theoretical predictions. The generalized PPS algorithm demonstrates high success rates for $\sigma$ values up to approximately 1.7, matching theoretical bounds.
- Parameter Sensitivity: Experiments show that the choice of parameters (like
tandLin the algorithm) impacts performance, with largerLgenerally leading to higher success rates, albeit with increased computational cost.
Limitations and Future Work
- Computational Cost: While the algorithms are polynomial in
L, they can be exponential int. The paper notes that for practical performance, smalltand largeLare preferred. - Assumption on Noise: The first algorithm requires precise knowledge of the noise distribution, which may not always be available. The second algorithm addresses this but has slightly weaker theoretical guarantees in some cases.
- Specific RSA Implementation: The paper focuses on standard RSA and PKCS#1. Extensions to other RSA variants or cryptographic schemes might require further research.
- Future Work: The paper suggests exploring the application of these techniques to other cryptographic primitives and investigating more advanced communication theory techniques (like stack algorithms) to potentially further improve success rates. The connection to communication theory also opens avenues for applying insights from coding theory to cryptographic attacks.
Summary updated