TL;DR
This paper demonstrates that Convolutional Neural Networks (CNNs) can effectively perform side-channel attacks on the EdDSA public-key cryptography algorithm with just a single measurement in the attack phase. This highlights the power of deep learning for breaking cryptographic implementations and suggests commonalities in attack strategies across different cryptographic primitives.
What Problem Does This Paper Address?
Side-channel attacks (SCAs) are a significant threat to the security of cryptographic implementations, allowing attackers to extract secret information by observing physical leakage (e.g., power consumption). While machine learning (ML), particularly deep learning, has shown great success in profiling attacks against symmetric-key ciphers like AES, its application to public-key cryptosystems has been less explored, with sparse results. This paper aims to bridge this gap by investigating the effectiveness of various ML techniques for power analysis attacks on EdDSA, a widely used public-key digital signature algorithm.
Methods
The researchers employed several machine learning techniques for profiling attacks on EdDSA:
- Template Attack (TA): This is a standard, information-theoretic profiling attack used as a baseline for comparison.
- Random Forest (RF): An ensemble learning method that builds multiple decision trees.
- Support Vector Machines (SVM): A powerful classification algorithm that can handle both linearly separable and inseparable data, explored with both linear and radial basis function (RBF) kernels.
- Convolutional Neural Networks (CNNs): Specifically, a VGG-16-like architecture adapted for time-series data. CNNs are designed to mimic biological visual processing and have shown promise in SCA.
The study also explored Principal Component Analysis (PCA) for dimensionality reduction to investigate its impact on attack performance.
Datasets
The paper introduces a newly created, publicly available dataset for EdDSA side-channel analysis. This dataset follows the format of the ASCAD database, which is a benchmark for symmetric-key cipher attacks. The dataset consists of power traces from an Ed25519 implementation on an STM32F4 microcontroller. It is divided into profiling and attack traces, with a focus on the lookup table (LUT) operation within the scalar multiplication, which is a critical part of EdDSA's signature generation.
Key Insights and Ideas
- CNNs Excel in Public-Key SCA: The most striking finding is the exceptional performance of CNNs, achieving 100% accuracy with just a single measurement in the attack phase when no dimensionality reduction is applied. This is a significant advancement for profiling attacks on public-key cryptography.
- Common Ground for Deep Learning Attacks: The CNN architecture used in this paper was previously shown to be effective against AES implementations. This suggests that deep learning models can generalize well across different cryptographic algorithms and their implementations, indicating potential commonalities in how these models learn to exploit side-channel leakage.
- Dimensionality Reduction Trade-offs: While PCA can reduce the computational burden, it can also lead to a significant performance drop for CNNs, as they tend to perform best with raw, unprocessed features. SVM, on the other hand, showed more resilience to dimensionality reduction.
- Minimal Training Data Needed: Remarkably, the researchers found that only 30 traces per class were sufficient to achieve perfect profiling accuracy with CNNs on their dataset, translating to less than 500 total measurements for training.
Key Results
- CNNs achieve 100% accuracy in recovering a single nibble of the EdDSA key when using all available features (1000 samples per trace) and no dimensionality reduction.
- CNNs achieve a success rate of 1 (meaning the correct subkey is ranked first) with only 30 traces per class for training.
- Template Attack (TA) generally performed the worst among the considered methods, especially when dimensionality reduction was applied.
- SVM and RF demonstrated strong and stable performance across different feature set sizes, consistently achieving high accuracy.
- Cumulative accuracy for a full 256-bit key (derived from individual nibble accuracies) shows CNNs leading when no dimensionality reduction is applied, while SVM becomes competitive or superior when PCA is used.
Limitations and Future Work
- No Countermeasures: The Ed25519 implementation attacked in this paper did not feature any specific countermeasures against side-channel analysis (beyond constant-time implementation). This is a crucial limitation, as real-world implementations often include such defenses.
- Future Work: The authors plan to evaluate CNNs on Ed25519 implementations that incorporate various countermeasures to test the limits of deep learning in more challenging scenarios. They also aim to further explore the commonalities in deep learning-based SCA across different cryptographic algorithms.
Summary updated