Precision Strike: Targeted Misclassification of Accelerated CNNs with a Single Clock Glitch

Arsalan Ali Malik, Furkan Aydin, Aydin Aysu

Abstract

As Deep Neural Networks (DNNs) transition to edge devices, hardware-level security becomes paramount. This study demonstrates a "precision strike" attack against FPGA-based CNN accelerators using a single, well-timed clock glitch. By targeting the sequential logic of the final argmax layer, the attack achieves an 80-87% success rate in forcing targeted misclassifications without requiring access to model weights or training data.

Introduction

The deployment of DNNs on specialized hardware like Field-Programmable Gate Arrays (FPGAs) for edge applications—such as autonomous systems and medical devices—introduces new physical vulnerabilities. While traditional Fault Injection Attacks (FIAs) often cause broad, non-deterministic corruption, this research explores evasive, targeted strikes. The goal is to disrupt a specific class (e.g., misclassifying a "7") while maintaining the system's overall perceived integrity.

Methodology: Targeting the Argmax Layer

The researchers identify the argmax layer as a critical vulnerability. In resource-constrained FPGA implementations, this layer often processes class scores sequentially to minimize hardware footprint. This sequential nature creates a predictable temporal window for each class.

Overview of the targeted clock glitching attack on the Argmax layer.

The attack utilizes Clock Glitching via a two-phase approach:

  1. Profiling: The attacker sweeps through glitch parameters (width and offset) to identify the hardware's timing violations.
  2. Execution: During active inference, a single glitch is injected at the precise moment the "true" class score is processed. This prevents the hardware from registering the correct high score, causing the system to "skip" it and select the next-highest-scoring class.

Experimental Setup

The attack was validated using an Artix-7 FPGA running a CNN with a systolic array architecture, controlled by a ChipWhisperer-Lite. The model was trained on the MNIST dataset (60,000 training images, 10,000 test images), achieving a baseline accuracy of 94.7%.

Results

The "precision strike" proved highly effective, yielding a success rate between 80.0% and 87.0% for targeted misclassifications. When the attack was active, the model's accuracy for the target class plummeted, while the profiling phase ensured the attack remained near-instant and repeatable once vulnerable parameters were established.

Demonstration of successful targeted misclassification of the digit '7' into classes '2' and '3'.

As shown in the experimental results, injecting a clock glitch successfully shifts the prediction from the correct label ('7') to incorrect labels ('2' or '3') by suppressing the primary probability peak.

Key Insights and Limitations

A primary takeaway is that the mathematical simplicity of the argmax function leads to a lack of security hardening, making its sequential hardware implementation a "sitting duck." Furthermore, this is a gray-box attack; the adversary only needs to understand hardware timing, not internal model parameters.

However, current limitations include a lack of perfect "redirection control"—the attacker can force a skip but cannot yet guarantee which specific incorrect class will be chosen. Future work will focus on deterministic redirection and developing hardware-centric countermeasures, such as redundant logic or randomized comparison ordering.

Summary updated

Abstract

Fault injection attacks (FIAs) present a significant threat to the integrity of deep neural networks (DNNs), particularly in hardware-accelerated deployments on field-programmable gate arrays (FPGAs). These attacks intentionally introduce faults into the system, leading the DNN to generate incorrect outputs. This work presents the first successful targeted misclassification attack against a convolutional neural network (CNN) implemented on FPGA hardware, achieved by injecting a single clock glitch at the final layer (argmax) to manipulate the predicted output class. Our attack targets the commonly adopted argmax layer, a lightweight replacement for softmax in resource-constrained implementations. By precisely injecting a single clock glitch during the comparison phase of the argmax operation, the attack reliably induces misclassifications, forcing the model to 'skip' a specifically chosen class and output an incorrect label for it without affecting the computed scores of other classes. Unlike prior works that only cause random misclassifications, our attack achieves a high success rate of <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$80-87 \%$</tex> for a targeted class, without inducing collateral misclassifications of other classes. Our evaluations show a significant reduction in classification accuracy, with the model's performance dropping from an initial 94.7 % to an average final accuracy ranging from <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$7.7-14.7 \%$</tex>. Our attack is demonstrated on a CNN model implemented using a common systolic array architecture, which is well-suited for resource-constrained edge devices and artificial intelligence (AI) accelerators. Our study confirms the vulnerability of hardware-accelerated machine learning systems to low-cost physical attacks, emphasizing the critical need for hardware-level countermeasures in safety-critical machine learning applications.
BibTeX
@article{malik2025precision,
  author = {Arsalan Ali Malik and Furkan Aydin and Aydin Aysu},
  title = {{Precision Strike: Targeted Misclassification of Accelerated CNNs with a Single Clock Glitch}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2025},
}

Loading related content...

Figure