Abstract
Power side-channel attacks (SCAs) have become a major concern to the security community due to their non-invasive feature, low-cost, and effectiveness in extracting secret information from hardware implementation of cryto algorithms. Therefore, it is imperative to evaluate if the hardware is vulnerable to SCAs during its design and validation stages. Currently, however, there is little-known effort in evaluating the vulnerability of a hardware to SCAs at early design stage. In this paper, we propose, for the first time, an automated framework, named RTL-PSC, for power side-channel leakage assessment of hardware crypto designs at register-transfer level (RTL) with built-in evaluation metrics. RTL-PSC first estimates power profile of a hardware design using functional simulation at RTL. Then it utilizes the evaluation metrics, comprising of KL divergence metric and the success rate (SR) metric based on maximum likelihood estimation to perform power side-channel leakage (PSC) vulnerability assessment at RTL. We analyze Galois-Field (GF) and Look-up Table (LUT) based AES designs using RTL-PSC and validate its effectiveness and accuracy through both gate-level simulation and FPGA results. RTL-PSC is also capable of identifying blocks inside the design that contribute the most to the PSC vulnerability which can be used for efficient countermeasure implementation.
Introduction
Power Side-Channel Attacks (SCAs) pose a significant threat to cryptographic hardware by allowing adversaries to extract secret keys through monitoring power consumption. Traditionally, assessing these vulnerabilities occurs post-silicon, which is prohibitively expensive if redesigns are required. While pre-silicon assessment exists at the Gate-Level (GTL) or Layout level, these stages are computationally intensive and often fail to pinpoint specific leaky components.
RTL-PSC is the first automated framework designed to detect power side-channel vulnerabilities at the Register-Transfer Level (RTL). By using switching activity as a proxy for power consumption, it identifies "leaky" hardware blocks significantly faster than traditional gate-level simulations while maintaining high correlation with real-world silicon results.
Methodology
The RTL-PSC framework follows a multi-step automated pipeline designed to integrate seamlessly into the hardware design flow.
The process begins with Functional Simulation, using standard tools like Synopsys VCS to run the RTL design. From this, Switching Activity Extraction generates SAIF (Switching Activity Interchange Format) files. Instead of complex power modeling, the framework utilizes the transition count of nets and registers as a high-level proxy for power consumption.
To maximize the probability of detecting leaks, a Worst-Case Key Selection strategy is employed, comparing key pairs with maximum Hamming Distance. Vulnerability is then quantified using two primary statistical metrics:
- Kullback-Leibler (KL) Divergence: Measures the statistical distance between power distributions; higher distance indicates greater leakage.
- Success Rate (SR): Uses Maximum Likelihood Estimation to determine the number of plaintexts required for a successful key guess.
Finally, the hierarchical nature of RTL allows for Fine-Grained Localization, isolating leakage to specific sub-modules like individual S-Boxes.
Key Insights and the Efficiency-Flexibility Trade-off
A core contribution of this work is demonstrating that switching activity at the RTL is a valid and highly correlated proxy for physical power consumption. This approach offers several advantages:
- Technology Independence: Assessment is independent of specific foundry libraries.
- Optimal Design Stage: As shown in Figure 2, while accuracy increases at lower design levels, the flexibility to implement changes drops precipitously. RTL-PSC targets the "sweet spot" where accuracy is sufficient for early detection and simulation time is minimized.
Experimental Results
The framework was evaluated using two open-source AES implementations: AES-GF (Galois-Field based) and AES-LUT (Look-Up Table based). Validation against Gate-Level netlists and physical FPGA implementations (SAKURA-G board) yielded the following results:
- Speedup: RTL-PSC achieved a 42x speedup over gate-level assessment, completing analysis in ~46 minutes compared to ~31 hours for AES-GF.
- Accuracy: Results showed a Pearson correlation coefficient of >90% with Gate-Level results and >80% with physical FPGA power traces.
- Vulnerability Ranking: The tool successfully identified AES-GF as more vulnerable than AES-LUT, requiring fewer plaintexts for a successful attack.
Conclusion and Future Work
RTL-PSC provides a practical, automated solution for early-stage security validation. By identifying specific leaky blocks, such as the GFinvComp block in AES-GF, designers can apply targeted countermeasures like masking more efficiently.
While the current framework does not account for physical-layer phenomena like glitches or clock gating, it establishes a robust foundation for RTL-level security analysis. Future work will focus on extending the framework to detect residual leakage in designs that already incorporate side-channel countermeasures.
Summary updated