[Paper Review] SCARL: Side-Channel Analysis with Reinforcement Learning on the Ascon Authenticated Cipher
SCARL introduces a reinforcement learning-based side-channel analysis method that autonomously identifies leakage models in power traces without prior knowledge or training data. By combining an autoencoder for feature extraction and actor-critic networks for clustering, SCARL recovers the secret key of the Ascon cipher using only 24,000 power traces—outperforming traditional DPA and CPA methods, which fail even with 40,000 traces under standard linear models.
Existing side-channel analysis techniques require a leakage model, in the form of a prior knowledge or a set of training data, to establish a relationship between the secret data and the measurements. We introduce side-channel analysis with reinforcement learning (SCARL) capable of extracting data-dependent features of the measurements in an unsupervised learning approach without requiring a prior knowledge on the leakage model. SCARL consists of an auto-encoder to encode the information of power measurements into an internal representation, and a reinforcement learning algorithm to extract information about the secret data. We employ a reinforcement learning algorithm with actor-critic networks, to identify the proper leakage model that results in maximum inter-cluster separation of the auto-encoder representation. SCARL assumes that the lower order components of a generic non-linear leakage model have larger contribution to the leakage of sensitive data. On a lightweight implementation of the Ascon authenticated cipher on the Artix-7 FPGA, SCARL is able to recover the secret key using 24K power traces during the key insertion, or Initialization Stage, of the cipher. We also demonstrate that classical techniques such as DPA and CPA fail to identify the correct key using traditional linear leakage models and more than 40K power traces.
Motivation & Objective
- To address the limitation of traditional side-channel attacks that require predefined leakage models or extensive training data.
- To develop a self-supervised method for side-channel analysis that automatically discovers data-dependent features in power traces.
- To improve the efficiency of key recovery in lightweight cryptographic implementations like Ascon on FPGA.
- To demonstrate that reinforcement learning can effectively identify non-linear leakage models in physical side-channel traces.
Proposed method
- An autoencoder compresses raw power traces into a lower-dimensional internal representation, filtering noise and preserving salient features.
- Reinforcement learning with actor-critic networks clusters the autoencoder’s encoded features based on a reward function emphasizing inter-cluster separation and balanced cluster assignment.
- The reward function is designed to maximize the mean difference between two clusters while ensuring even distribution of features across clusters.
- The method assumes that lower-order terms in a generic non-linear leakage model contribute more to observable power leakage, guiding the RL agent toward meaningful feature extraction.
- After clustering, a low-order leakage model is estimated per key candidate, and the inter-cluster difference in features is used as a rank statistic to identify the correct key.
- The approach is applied to a lightweight Ascon implementation on an Artix-7 FPGA, using 24K power traces for key recovery.
Experimental results
Research questions
- RQ1Can reinforcement learning be used to discover leakage models in side-channel traces without prior knowledge or training data?
- RQ2Does an unsupervised approach using autoencoders and RL outperform traditional model-based side-channel attacks like DPA and CPA?
- RQ3Can the method identify non-linear leakage features that are missed by standard linear models such as Hamming weight?
- RQ4How many power traces are required for successful key recovery using this self-supervised method compared to classical techniques?
- RQ5Can the RL agent effectively learn to separate features corresponding to different key hypotheses based solely on reward signals?
Key findings
- SCARL successfully recovers the secret key of the Ascon authenticated cipher using only 24,000 power traces during the key insertion phase.
- The method outperforms classical DPA and CPA attacks, which fail to identify the correct key even with 40,000 traces when using standard Hamming weight or most-significant-bit leakage models.
- The reinforcement learning agent identifies a meaningful leakage model by maximizing inter-cluster differences in the autoencoder’s encoded features, indicating effective feature extraction.
- The reward function stabilizes after 350 learning steps, with the total reward converging to the inter-cluster difference component, indicating balanced and effective clustering.
- The autoencoder reduces noise and preserves major power trace features, with reconstruction error stabilizing after 22 epochs and fully converging by epoch 25.
- The correct key is ranked first when at least 24,000 traces are used, confirming the method’s efficiency and robustness in low-trace scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.