TL;DR
AISY is a new open-source, Python-based framework designed to standardize deep learning-based side-channel analysis (SCA). By providing a unified environment for training, evaluation, and visualization, it addresses the "reproducibility crisis" in hardware security research, allowing researchers to generate identical results with a single click.
What Problem Does This Paper Address?
Side-channel analysis—the art of extracting secret keys from cryptographic devices by measuring physical outputs like power consumption or electromagnetic radiation—has been revolutionized by deep learning. However, the field faces a significant challenge: reproducibility.
Research papers often omit crucial details about neural network architectures, hyperparameters, or data preprocessing. Furthermore, security experts may lack deep expertise in artificial intelligence, leading to subjective interpretations of results. Because different researchers use different internal tools and frameworks, it is often nearly impossible to verify if a newly proposed attack actually outperforms the state-of-the-art.
Methods
The authors introduce AISY, a framework built on top of Keras/TensorFlow and Flask. Its core philosophy is modularity and automation. Key technical features include:
- One-Click Reproducibility: The framework can automatically generate the exact Python script used to produce a specific result stored in its database, including the specific random seeds and weight initializations.
- Integrated Web App: A Flask-based interface allows users to visualize training progress (accuracy/loss) and SCA-specific metrics (Guessing Entropy and Success Rate) in real-time.
- Gradient Visualization: AISY implements input gradient visualization, producing heatmaps that show exactly which parts of a power trace the neural network is "looking at" to make its predictions.
- Extensible Architecture: Users can easily drop custom neural network models, leakage models (like Hamming Weight or Identity), and data augmentation techniques into a specific
custom/folder without modifying the core engine. - Automated Search: It supports both Grid Search and Random Search for hyperparameter tuning, which is critical for finding efficient SCA models.
Datasets
AISY comes with built-in support for the most prominent benchmarks in the SCA community:
- ASCAD (Fixed & Random Keys): The industry standard for evaluating deep learning attacks on masked AES implementations.
- CHES CTF 2018: Traces from a masked AES-128 implementation on a 32-bit microcontroller.
- AES HD & AES HD ext: Datasets focusing on unprotected hardware implementations (FPGA), including an extended version with 500,000 traces.
The framework currently requires datasets to be in the .h5 format, consistent with the ASCAD database structure.
Key Insights and Ideas
- Bridging the Expertise Gap: AISY is designed so that a security expert can run state-of-the-art deep learning attacks without needing to write complex Keras code from scratch.
- The Database is the Truth: By storing every analysis in an SQLite database, the framework treats experimental data as a first-class citizen, enabling teamwork where researchers share databases rather than just screenshots of plots.
- Visualizing Leakage: The use of gradient heatmaps provides a "sanity check" for researchers. If the network is focusing on time samples that shouldn't contain sensitive information, it suggests the model is over-fitting to noise rather than learning the actual cryptographic leakage.
- Standardizing Metrics: The paper emphasizes that standard ML metrics (like categorical cross-entropy) don't always correlate with SCA success. AISY prioritizes Guessing Entropy (GE)—the average rank of the correct key among all candidates—as the definitive measure of an attack's strength.
Key Results
The paper serves as a "system paper" rather than a benchmark report. However, it demonstrates the framework's efficacy by:
- Successfully reproducing known results on the ASCAD Random Keys dataset using a Multilayer Perceptron (MLP).
- Demonstrating that the framework can compute Guessing Entropy across 100 independent experiments to ensure statistical significance.
- Showing how custom "early stopping" criteria (e.g., stopping training once Guessing Entropy reaches 1) can be implemented to save computational resources.
Limitations and Future Work
- Cipher Support: Currently, the framework is heavily optimized for AES-128. The authors note that future releases will support a wider variety of cryptographic algorithms.
- Data Formats: It is currently limited to
.h5files. While common, this requires users to convert raw oscilloscope data before use. - Masking Interpretation: While it supports datasets with countermeasures (like masking), the core framework does not yet have native "mask-aware" interpretation tools, though users can add these as custom functionalities.
- Community Driven: The authors intend for AISY to be a living project, inviting the community to request and contribute new features via their GitHub repository.
Summary updated