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

An FPGA-Based Open-Source Hardware-Software Framework for Side-Channel Security Research

Davide Zoni, Andrea Galimberti, Davide Galli

Introduction

Side-Channel Analysis (SCA) is a potent class of security attacks where adversaries extract secret cryptographic keys by observing physical leakages—such as power consumption, electromagnetic emissions, or timing variations—during a device's operation. For Internet of Things (IoT) developers, defending against SCA is notoriously difficult because most commercial chips are "black boxes." This lack of internal visibility makes it nearly impossible to correlate specific software instructions or hardware signals with observed physical leakages.

To address this, the JARVIS framework provides an open-source, hardware-software ecosystem designed to streamline SCA research. By integrating a transparent RISC-V System-on-Chip (SoC) with a high-precision debug infrastructure, JARVIS allows researchers to pinpoint the exact hardware mechanisms responsible for data leakage.

The JARVIS Framework Workflow

The JARVIS ecosystem is designed to bridge the gap between Register Transfer Level (RTL) simulation and physical FPGA prototyping. The framework follows an automated three-stage pipeline: Configure, Measure, and Analyze.

Overview of the JARVIS automated research flow, spanning from configuration to analysis.
  1. Configure: The flow begins with SoC implementation (synthesis, place-and-route) and software compilation (OS and application code).
  2. Measure: This stage involves both RTL simulation to collect switching activity and physical execution on an FPGA to collect power traces. A critical feature of JARVIS is its ability to achieve temporal alignment between these two domains using hardware "triggerpoints."
  3. Analyze: The final stage processes the collected data to generate Power, Performance, and Area (PPA) statistics alongside security metrics derived from various SCA attacks.

Hardware-Software Co-Design

At the heart of JARVIS is a 32-bit RISC-V core (RV32IM) built on a Wishbone interconnect. The SoC is specifically designed for security research, featuring integrated "actuators" such as a True Random Number Generator (TRNG) and a Dynamic Frequency Scaling (DFS) unit.

The JARVIS SoC architecture and its integration with the physical measurement environment.

As shown in the architecture diagram, the SoC includes a sophisticated debug infrastructure. The Global Debug Unit manages communication with a host PC via UART, while Local Debug Units provide fine-grained control over the CPU and DFS. This setup enables the framework to synchronize an external oscilloscope with internal SoC events, ensuring that physical power traces perfectly match the internal switching activity captured in simulations.

On the software side, JARVIS supports FreeRTOS, enabling the study of OS-level countermeasures. This allows researchers to evaluate techniques like "chaffing," where dummy threads are executed to inject noise into the power profile.

Experimental Evaluation and Results

The framework was evaluated using standard cryptographic implementations (AES-128, Camellia, Clefia, and Seed) from the OpenSSL library. Physical traces were collected using a PicoScope 5000 series oscilloscope and a NewAE CW305 Artix-7 FPGA board.

The research yielded several key insights into the effectiveness of hardware and software countermeasures against Correlation Power Analysis (CPA), Template Attacks, and Deep Learning (CNN)-based attacks:

  • Vulnerability of Unprotected Designs: An unprotected AES implementation was easily compromised, requiring only 180 traces for a successful CPA attack and just 3 traces for a Template attack.
  • Effectiveness of Randomization: Clock frequency randomization proved highly effective, reducing the success rate of all tested attacks to near zero.
  • The Robustness of Chaffing: Software-level multithreading (chaffing) was the most robust countermeasure. By using the TRNG to randomly schedule dummy tasks alongside real cryptographic operations, the framework achieved a 0% success rate for all attack types.
  • Resource Efficiency: Despite its advanced features, the SoC remains lightweight, utilizing approximately 10,667 LUTs, making it accessible for affordable, mid-range FPGA hardware.

Conclusion and Future Work

JARVIS demonstrates that temporal alignment between simulation and physical measurement is essential for identifying the root causes of side-channel leakage. While the current single-core architecture is highly effective for power analysis, future iterations of the framework will expand to include dual-core architectures for studying inter-core leakage and dedicated hardware cryptographic accelerators. Additionally, the authors plan to extend the framework to support Fault Injection (FI) research, further broadening its utility for the hardware security community.

Summary updated

BibTeX
@article{zoni2024fpga,
  author = {Davide Zoni and Andrea Galimberti and Davide Galli},
  title = {{An FPGA-Based Open-Source Hardware-Software Framework for Side-Channel Security Research}},
  journal = {IEEE Trans. Computers},
  year = {2024},
}
Figure