NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Power Side-Channel Analysis of the CVA6 RISC-V Core at the RTL Level Using VeriSide

Behnam Farnaghinejad, Antonio Porsia, Annachiara Ruospo, Alessandro Savino, Stefano Di Carlo, Ernesto SanchezarXiv 2025

TL;DR

This paper presents the first pre-silicon side-channel security evaluation of the popular 64-bit CVA6 RISC-V core. By leveraging VeriSide, an optimized RTL power-profiling framework, the authors successfully performed a Correlation Power Analysis (CPA) attack on software-based AES encryption, revealing significant leakage and recovering secret key bytes without the massive storage overhead typical of traditional RTL simulations.

What Problem Does This Paper Address?

As open-source RISC-V architectures gain traction in security-critical applications, verifying their resilience against physical attacks before fabrication is paramount. Power-based Side-Channel Attacks (PSCAs) exploit subtle variations in a processor's dynamic power consumption to extract cryptographic keys.

To catch these vulnerabilities early, hardware designers use Register-Transfer Level (RTL) simulations. However, traditional RTL power analysis relies on generating massive waveform files—such as Value Change Dump (VCD) or Switching Activity Interchange Format (SAIF). For complex, application-class processors like the 64-bit, Linux-capable CVA6 core, parsing these multi-gigabyte files introduces massive computational and storage overhead, making iterative security testing highly impractical.

Methods

To bypass the waveform bottleneck, the authors utilize VeriSide, a modified Verilator-based simulation framework. Instead of dumping every signal transition to a file for post-processing, VeriSide calculates the Hamming Distance (HD) and Hamming Weight (HW) of internal signals on-the-fly during simulation. Because dynamic power consumption in CMOS circuits is directly proportional to signal switching activity ($\alpha$), these metrics serve as an accurate proxy for power traces.

The experimental pipeline consists of:

  1. Running a C program executing standard software AES-128 encryption on the CVA6 core.
  2. Extracting power traces (switching activity) directly via VeriSide across 3,000 encryption operations.
  3. Performing Correlation Power Analysis (CPA) using the Pearson correlation coefficient to target the initial AES SBox operation and match hypothetical power models against the simulated traces.

Datasets

Because this is a hardware security evaluation rather than a machine learning study, the "dataset" consists of the cryptographic inputs used to stimulate the core:

  • Secret Key: A fixed 128-bit AES key (00ff00ff11ee22dd33cc44bb55aa6699).
  • Plaintexts: 3,000 structured plaintexts generated by assigning sequential values (0 to 3000) to repeated 16-bit blocks within the 128-bit input space. This specific structuring ensures a wide data distribution in the first byte of each segment to optimize key recovery.

Key Insights and Ideas

  • Waveform-Free Profiling is a Game Changer: Tracking switching activity directly within the simulator runtime eliminates the need for disk-heavy VCD files, transforming pre-silicon side-channel analysis from a storage-bound nightmare into a lightweight step.
  • CVA6 Architectural Leakage: The CVA6 core, despite its high performance and advanced features (like branch prediction and hardware page table walkers), exhibits clear, exploitable power side-channel leakage when executing unhardened cryptographic software.
  • Plaintext Structure Dictates Success: The way input plaintexts are distributed heavily influences which parts of the key leak first at the RTL level, emphasizing that pre-silicon verification requires careful test-vector generation.

Key Results

  • Massive Efficiency Gains: VeriSide reduced simulation disk usage from 5.55 GB (using standard Verilator workflows) down to just 3.8 MB—a massive reduction that enables scalable, long-duration security testing. It also eliminated the need for hundreds of gigabytes of RAM or hours of post-simulation VCD parsing.
TABLE I: Performance Comparison of VeriSide
  • Successful Key Recovery: The CPA attack successfully identified clear correlation peaks corresponding to the secret key bytes (99, aa, bb, cc, dd, ee, ff), confirming that the CVA6 core is vulnerable to PSCAs if countermeasures are not implemented.
Fig. 1: Power Traces (SA) of the Actual Keys
Fig. 2: Maximum Correlation Over Time

Limitations and Future Work

While the attack successfully proved the vulnerability of the core, the chosen structured plaintext distribution limited full 128-bit key extraction, reliably recovering only the first byte of each segment.

Moving forward, the authors plan to extend this methodology to evaluate the RISC-V scalar cryptographic extension, assessing whether hardware-accelerated instructions inherently provide better side-channel resilience compared to pure software implementations, and exploring robust hardware-level countermeasures.

Summary updated

BibTeX
@misc{farnaghinejad2025power,
  author = {Behnam Farnaghinejad and Antonio Porsia and Annachiara Ruospo and Alessandro Savino and Stefano Di Carlo and Ernesto Sanchez},
  title = {{Power Side-Channel Analysis of the CVA6 RISC-V Core at the RTL Level Using VeriSide}},
  year = {2025},
  eprint = {2512.21362},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.21362},
}
Figure