Abstract
The convergence of edge computing and deep learning empowers endpoint hardware to perform inferences locally via deep neural network (DNN) accelerators. This trend invites new attack vectors distinct from software-oriented adversarial examples. Current hardware threats focus on model parameter manipulation, which is often detectable. We investigate an imperceptible misclassification attack that introduces infrequent, instantaneous glitches into the clock signal. By disrupting intermediate computations intermittently, this attack leaves no digital trace. We demonstrate this on a Xilinx FPGA-based accelerator running nine ImageNet models. Our attack achieves over 98% misclassification on most models with only 10% glitch intensity. For ResNet50, targeted glitches can achieve 100% misclassification with as little as 1.7% injection.
Introduction
As AI moves to the "edge"—powering autonomous vehicles, surveillance, and IoT devices—it relies on dedicated Deep Learning Accelerators (DNAs). While software-based adversarial examples are well-studied, hardware-level security is a critical emerging concern. Most existing hardware attacks involve manipulating model weights in memory; however, such changes leave permanent traces detectable by checksums. Other attacks, like "RAM-Jam," cause conspicuous system crashes. This research addresses the need for a stealthy, transient attack that tricks the AI into a wrong decision for a specific input while leaving the system in a perfectly "clean" state immediately afterward.
Attack Methodology
The core of the attack is Clock Glitch Injection. Digital circuits require a minimum clock period ($T_{clk}$) for signals to propagate through logic gates. By momentarily shortening a single clock cycle (a glitch), the attacker forces a "timing violation." Because higher-order bits in arithmetic operations take longer to settle, these glitches disproportionately flip significant bits during convolution operations without crashing the entire system.
The researchers implemented this on a Xilinx ZCU102 FPGA using a clock multiplexer to swap the standard clock with a 90-degree phase-shifted version for specific cycles. They explored two scenarios:
- Black-box Attack: Glitches are injected at a fixed frequency throughout the entire inference process without model knowledge.
- Gray-box Attack: The attacker uses a "Hardware Profiler" to identify when specific layers execute, targeting only those windows for maximum efficiency.
Experimental Evaluation
The attack was evaluated using the ImageNet validation set (50,000 images) against nine state-of-the-art models, including Inception, ResNet50, and VGG16.
Key Results
In black-box testing, injecting glitches into just 10% of computation cycles achieved over 98% misclassification across 8 of the 9 models. Gray-box attacks proved even more efficient; for ResNet50, a 100% success rate was achieved with a glitch intensity of only 1.7%.
As shown in the results, different architectures exhibit varying levels of robustness. VGG16 proved to be the most resilient model, likely due to its architectural depth and parameter density, though it still reached a 40% misclassification rate under heavy attack.
Insights and Countermeasures
This attack exploits the fact that modern accelerators often separate the clock domains of the Processing Engine (PE) array from peripheral controllers. This allows an attacker to "poison" the math in the PE array without desynchronizing the data controllers that keep the system running. Because the glitch only affects intermediate results, the corrupted data is overwritten by the next inference, leaving no permanent footprint.
To defend against such threats, the authors suggest two primary strategies:
- Defensive Quantization: Using mathematical constraints during training to prevent error amplification between layers.
- Hardware Redundancy: Merging clock domains or adding redundant logic units, though this incurs a significant "tax" on power efficiency and hardware area (up to 33% more logic resources).
Summary updated