Next Article in Journal
Digitalized Quality Management for Cybersecurity Conformity Assessment: ISO/IEC 17025-Based Automated Workflows, Evidence Analytics, and EN 18031 Readiness for the Radio Equipment Directive
Previous Article in Journal
QR-MetaSSI: A Quantum-Resistant Self-Sovereign Identity Framework for Metaverse Platforms
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Robust Stealthy High-Impact Malicious Hardware Attacks on Deep Neural Networks

1
Department of Computer Science, Tikrit University, Tikrit 34001, Iraq
2
Department of Math, Tikrit University, Tikrit 34001, Iraq
3
Department of Artificial Intelligence, Tikrit University, Tikrit 34001, Iraq
4
Department of First Grades Teacher, University of Anbar, Ramadi 31001, Iraq
5
Departments of Cybersecurity and Petroleum Systems Control Engineering, Tikrit University, Tikrit 34001, Iraq
*
Author to whom correspondence should be addressed.
J. Cybersecur. Priv. 2026, 6(4), 112; https://doi.org/10.3390/jcp6040112
Submission received: 3 April 2026 / Revised: 17 June 2026 / Accepted: 22 June 2026 / Published: 30 June 2026
(This article belongs to the Section Security Engineering & Applications)

Abstract

The rapid advancement of modern deep neural networks (DNNs) has played a crucial role in aiding humans across many real-world applications; yet, their hardware accelerators have been proven to be vulnerable to malicious attacks. One particularly severe and serious attack involves inserting a hardware Trojan (HT) into DNN accelerator hardware in order to enable attackers to stealthily manipulate model predictions during the supply chain. In this paper, we present a possible stealthy HT architecture that is difficult to detect and has a significant impact on the performance of DNN models. To successfully achieve this goal, we introduce the Sensitivity-Based Weight Selection (SBWS) algorithm, a novel technique that adapts machine learning (ML) sensitivity analysis to identify and modify a small number of weights that have the highest impact on DNN performance, compared to previous work. We evaluate the proposed attack on five DNN model tests (two distinct DNN models and four different datasets) using two designed payload types (weight zeroing and sign-flipping) and record the results based on various security metrics. The experimental results show average accuracy reductions of 26.7% for the zeroing attack and 48.1% for the sign-flipping attack, yielding an overall average of 37.4%, calculated over five independent runs per dataset with standard deviation <2%. The sign-flipping technique consistently outperforms zeroing because it preserves the magnitudes of the attacked weights while inverting their signs, thereby disrupting the learned decision boundaries more severely and amplifying error propagation in subsequent layers. These results significantly exceed those of previous random-weight perturbation attacks (typically 12–20% drops) and other targeted HT approaches while incurring lower computational and hardware resource overheads. This work provides a more effective and scalable method for assessing the vulnerability of DNN accelerators under real supply chain threat models.

1. Introduction

In contemporary research and applications, neural networks (NNs) have been considered to be a prevalent choice for executing different tasks including object detection, image classification, and speech recognition [1,2,3,4]. DNN models have become valuable forms of intellectual property (IP) for many businesses. They were first used only for basic tasks, such as image classification in on-site facilities (local systems). However, they are currently applied in many more important applications, including traffic monitoring [5], autonomous driving [6], medical diagnostics [7], and weather prediction and forecasting [8]. Currently, it is expected that the utilization of artificial intelligence (AI) will continue to experience substantial global market growth in the coming years [9]. Despite their significant accomplishments and noticeable benefits, the increasing dependence on hardware DNN accelerators to achieve real-time and energy-efficient inference in limited-resource environments—e.g., medical diagnostics, edge devices, and autonomous vehicles—has introduced severe security vulnerabilities from both general hardware trust [10] and DNN-specific hardware  [11,12] perspectives. In fact, DNN accelerators, often implemented utilizing third-party IP cores and fabricated using global supply chains, have been shown to be particularly susceptible to hardware Trojans (HTs). HTs are malicious hardware circuit modifications inserted during the integrated circuit (IC) design or fabrication processes, which can stealthily decrease model accuracy or leak sensitive information [13,14]. Many defensive techniques against various HTs have been presented in order to protect digital IC systems and networks from serious malicious intrusions [7,8].
DNNs outperform human beings in terms of providing very high accuracy and performance in many applications; however, they require a large number of parameters, which significantly elevates memory usage, power consumption, and system complexity. Unfortunately, the high power consumption requirements and server farm costs prevent the design from being fabricated on a real chip. Therefore, there is a need to shift from server-based infrastructure to local infrastructure, leveraging mobile devices, tablets, drones, and autonomous systems in order to achieve real-time processing and improve data privacy at lower energy dissipation [15,16,17].
Deep learning accelerators (DLAs) are promising techniques that are integrated into electronic devices, including resource-limited Internet of Things (IoT) devices. These incorporate many components into a single IC [18], including controllers, processors, memory, network-on-chip, converters, and input/output (I/O) units [19]. The main goal of DLAs is to reduce power dissipation and cost compared to software platforms. However, due to the complexity of the design, validation, and manufacturing processes, DLAs frequently depend on global supply chains, which unfortunately exposes them to many hardware security issues [20,21]. Growing hardware-level threats to DNN accelerators include various HTs, fault injections, and memory-based manipulations, which can stealthily compromise the model integrity without being detected [22,23]. Although software-level attacks (e.g., adversarial examples) have been well studied, hardware-oriented threats have not been fully explored [11,24]. Despite their significant accomplishments and noticeable benefits, the NN reliability has become a major challenge. Adversarial attacks can threaten the reliability of NNs by exploiting input vulnerabilities in order to mislead them and produce inaccurate outputs. Moreover, third-party IPs may contain malicious components, such as HTs and their variations, e.g., backdoors, fault induction, memory Trojaning, and interconnection tampering [10,11,12]. Therefore, ensuring DLA security is essential because hardware vulnerabilities can significantly affect the reliability of the system.
Several HT attacks targeting DNN accelerators have been introduced in recent years. Early works focused mainly on inserting Trojans into FPGA-based CNN accelerators by modifying the activation parameters or utilizing the rare input patterns as triggers [25]. Memory Trojan attacks [26] and noise injection into ReLU activations [27] were later introduced in order to decrease the model accuracy or leak sensitive information. Other approaches have targeted off-chip memory or leveraged the statistical analysis to detect or insert serious hardware Trojans. Even though these techniques have demonstrated the feasibility of HT attacks on DNN hardware, they have generally suffered from one or more of the following limitations: (i) moderate relative accuracy or performance reduction (typically between 15 and 35%), (ii) high hardware overhead requirements due to the complex designed trigger logic or the large required numbers of modified elements, (iii) less stealthy triggers with higher activation probability, and (iv) non-targeted or random weight perturbations, which render them unable to correctly exploit the structural sensitivity of the DNN weights. These shortcomings decrease both the practical effect and the stealthiness of the previously presented attacks in real supply chain threat models.
In this work, two critical observations have motivated us, as follows: (1) existing HT attacks on DNN accelerators have not achieved a high reduction in the performance of the model (typically between 20 and 30% reduction) or require a large number of modifications, which leads to the detection of the malicious circuit due to the high required hardware overhead or by using side-channel signatures; (2) most of previous methods depend on the random, non-targeted, or broadly distributed perturbations, which in turn fail to exploit the structural sensitivity of DNN weights, especially in early layers where small changes can be propagated and amplified through the network. These limitations reduce both the practical impact and the stealthiness of the attacks, limiting their ability to be real threat models against robust modern accelerators. To address these gaps, the following main contributions have been presented in this work:
  • We have proposed the SBWS, a novel and scalable algorithm that adapts the gradient-based sensitivity analysis in order to select the smallest possible number of the most affected weights to achieve up to 2 × higher reduction efficiency per modification than the random or non-targeted approaches.
  • We design and evaluate a lightweight possible stealthy HT architecture that leverages the SBWS-selected weights and activates only under rare net-signal conditions using the simple logic gates (NAND trigger + configurable payload for zeroing or sign-flipping).
  • The experimental results have been conducted on five DNN model tests (two distinct DNN models and four different datasets), and the results demonstrate that this proposed HT can reduce the DNN accuracy by an average of 26.7% for weight zeroing and 48.1% for sign-flipping (overall 37.4%). This outperforms random perturbations (12–20% drops) and other previously presented HTs, with ultra-low overhead (0.3–0.4%) and extremely rare trigger probability ( 10 5 ). Such strong HT ensures the real need for a strong and robust detection technique in supply chain hardware implementations.
  • Beyond the technical contributions, this work will have important implications on AI security. By illustrating how small stealthy HT inserted during the supply chain can significantly decrease the DNN performance (up to a 48% accuracy loss), it highlights the real need for the hardware-rooted trust techniques, supply chain provenance verification, and AI-specific hardware security standards. These findings are particularly relevant for the safety systems, such as medical AI, autonomous vehicles, and critical infrastructure.
The proposed technique has several unique features, as follows: (i) a novel SBWS algorithm is implemented to identify only a smaller possible number of the highly influential weights (typically 5–7); (ii) each Trojan can accomplish significant accuracy reduction (26.7% with weight zeroing and 48.1% with sign-flipping) while incurring ultra-low hardware overhead (0.3–0.4%); (iii) the trigger circuit is extremely rare ( 10 5 probability), rendering each proposed Trojan very stealthy; and (iv) sign-flipping consistently outperforms the zeroing attack because it can carefully preserve the weight magnitude while significantly disrupting the learned decision boundaries. These features make the proposed Trojans effective and practical under real supply chain threat models.
This paper has been organized as follows: Section 2 provides background on DNNs and related HT attacks. Section 3 presents the proposed possible HT architecture in detail, including the SBWS algorithm, threat model, and circuit-level insertion. Section 4 shows the experimental setup, results, and discussion, including the comparison with related work. Finally, the conclusion and future work are given in Section 5.

2. Background and Related Work Analysis

2.1. Analysis of Deep Neural Networks (DNNs)

DNNs mainly comprise enormous interconnected neuron layers that can process their inputs. Each neuron applies a function to its inputs and then forwards the outputs to incoming (subsequent) [1]. The Input layers feed the hidden layers, in which neurons aggregate weighted inputs and then apply the used activation functions. The common activations include the sigmoid σ ( x ) = 1 1 + e x (0 to 1 range), the tanh ( x ) = e x e x e x + e x (−1 to 1), and the SoftMax ( x i ) = e x i j e x j for the probabilities [28,29]. During the training phase, the weights of DNNs are repeatedly updated by utilizing backpropagation and gradient descent functions in order to minimize the loss and obtain the most possible and accurate output [30,31].

2.2. Analysis of Hardware Trojans Insertion into DNN

Due to proven vulnerabilities in DNNs, many hardware attacks, including reverse engineering, HTs, and side-channel attacks (SCA), have been presented. In this paper, we have mainly focused on a malicious insertion via the HTs because they represent a proactive and embedded threat that permanently alters the functionality of the DNN hardware, and this, in turn, makes them stealthier and more severe in supply chain scenarios compared to others. The detection evasion is further refined by polymorphic triggers, e.g., varying based on model hyperparameters, and a minimal footprint.
HTs, also called malicious insertion, are unauthorized hardware manipulations that compromise the security of a hardware circuit by leaking sensitive information [32,33]. The purposes of HTs are to either decrease the performance or trigger denial-of-service. They consist of the trigger, which is activated under rare conditions, and the payload, which represents the malicious effect or action [34]. Triggers use rare signals in the original hardware design, and the payloads modify the circuit’s function. HTs can be in different places, including the transistor, gate, bus, or IP levels [35]. Detecting them is very difficult using traditional verification tools [32,36,37]. Unlike reverse engineering-based attacks [38], which primarily expose hardware designs for copying or replication without direct runtime impact, or Side-Channel Attacks (SCAs) [39], which exploit observable emissions and can often be mitigated through shielding or monitoring the design, HTs enable undetectable small added hardware circuit that can effectively degrade the DNN accuracy during the normal operation. This paper is mainly focused on designing a targeted HT insertion method using the SBWS algorithm, which significantly reduces the performance of the DNN accelerator without being detected. Recent works ensure that HTs are considered more severe than others due to their ability to evade different traditional verification methods and directly compromise critical hardware systems.

2.3. Analysis of Literature Review

HTs are malicious IC modifications that are inserted by attackers before manufacturing the IC in order to leak information or reveal DNN accelerators’ functionality [13].
Current studies are grouped into trigger-based attacks, where rare conditions have been employed to activate payloads. For example, HTs can be embedded in DNNs via supply chain adversaries [14], or HTs can be inserted into field-programmable gate array (FPGA)-based CNNs using multiply–accumulate-based matrix architecture (MAT) [25]. These trigger techniques aim to remain stealthy by activating them only under specific rare inputs or conditions. However, they are often limited by practical implementation due to the difficulty in designing reliable controllable rare triggers, which can be potentially detected through side-channel monitoring of activation patterns and due to the increase in hardware overhead when complex trigger logic is required [40]. Also, the memory Trojaning technique has been shown to negatively impact DNN’s performance without being detected [23].
Payload-based attacks directly impact attacked hardware designs. For instance, they can reduce the accuracy via DNN services [41], inject a malicious without incorporating input disturbances  [42], employ statistical analysis [43], attack an off-chip memory [26], insert noise into ReLU activation functions [27], and target static random-access memory (SRAM) in caches [13]. Such payload approaches concentrate on persistent or direct reduction and manipulation without depending on explicit input triggers. Even though they are effective in reducing the performance or leaking sensitive information [40], many of these methods incur noticeable performance overhead, provide limited fine-grained control over the degree of degradation, or are subject to statistical anomaly detection and runtime monitoring techniques.
Moreover, other studies have further clarified the effectiveness of these threats on DNN models, as follows: provide a comprehensive evaluation on HT attacks and defenses on DNN architectures [44], explore resilient CNN accelerators against different HT attacks [45], and propose Siamese NNs to effectively detect HTs using side-channels [46]. These contributions have highly advanced the understanding of HT vulnerabilities in many DNN accelerators and proposed different countermeasures. Nevertheless, attack and defense techniques focus on broad or generic HT insertion and detection mechanisms, which leads to suboptimal reduction efficiency per the given modification, limited scalability on different accelerator architectures, and insufficient focus on the targeted model with smaller possible modification-based attacks that can be used to highly elevate the accuracy loss and preserve the stealthiness at low overhead.
Overall, although previous research has shown the feasibility and impact of HTs on DNN accelerators through utilizing both trigger and payload mechanisms, there are still significant limitations in achieving high performance reductions with smaller possible changes and ultra-low overhead, including wider applications on accelerator designs. In this paper, we propose SBWS, a systematic algorithm for selecting the most sensitive weights, with a stealthily designed HT. The proposal outperforms other previous methods by achieving higher degradation efficiency with minimal possible modifications and overhead, which in turn addresses current gaps in the targeted and scalable attacks presented in recent related works.
In order to clearly clarify research gaps and place this work, we compare related HT attacks on DNN accelerators with the proposal in different terms, including trigger mechanism, payload type, reported accuracy drops, modifications, overhead, stealth (trigger rarity), and attacker knowledge required. Table 1 briefly summarizes this comparison. The previous techniques have typically achieved moderate reduction in the design’s performance (20–35%) with higher required overhead (0.5–1.5%) and less rare triggers ( 10 3 10 4 ). The terms “Moderate” and “Variable” in the table correspond to a 20–35% accuracy reduction and 0.5–1.5% area/power overhead, respectively. However, the SBWS-based technique attacks only the most sensitive weights to accomplish significantly higher performance loss with smaller possible changes (only 5–7 weights modified), ultra-low overhead (0.3–0.4%), and extremely rare trigger activations ( 10 5 probability). This design renders the possible HT architecture efficient, scalable, and stealthy.

3. The Proposed Attack

3.1. Modifying the Most Impact Neurons

Modifying weights in the early hidden layers of a given DNN propagates its effects throughout the entire network, which significantly impacts the overall accuracy. Figure 1 shows the effectiveness of modifying weights to incoming layers. This cascading effect usually occurs because the output of each neuron serves as input to the next incoming layers, which can highly amplify the initial perturbations. Mathematically, the output of a neuron can be represented by o = f i w i x i + b , where the f is the activation function, w i are weights, x i are primary inputs, and b is a bias of the network. Changing a single value, e.g., w i , in an early layer influences all of the downstream computations and can potentially lead to a substantial drop in the accuracy when the modification is strategically selected. This principle underpins the main basis of the proposed attack since it can produce a larger possible disruption in the performance by making smaller possible changes.

3.2. Threat Model

As mentioned before, the main purpose of designing this proposed HT attack is to degrade the accuracy of DNNs by targeting and manipulating the most affected weights in the model during the design or fabrication phase. This has been modeled as a white-box attack, in which adversaries have complete knowledge about the architecture and structure of the DNN, e.g., layer structure, neuron connections, and its hyperparameters, e.g., weight and bias values. Such knowledge allows precise SBWS algorithm targeting and rare trigger selection. However, they do not have access to or knowledge about the training and testing datasets. Also, note that the supply chain compromise assumes that the legitimate owner has no visibility into the malicious modifications inserted by untrusted third-party vendors or insiders. Therefore, the owner will perform standard functional verification on the unmodified specification, while the Trojan is still dormant and undetectable during the testing.
Capabilities of the adversary include the ability to adjust the values of the weights and biases during the design, manufacturing, or implementation phases of the DNN accelerator hardware. During these phases, the attacker can carefully and stealthily insert an HT that should be activated only under rare and predefined conditions, e.g., specific input signals or patterns, thereby flipping the weight signs or resetting them to zero without being triggered during the standard verification processes. In fact, this introduced threat model reflects the real-world scenarios and applications, such as
  • Insider threats: A malicious contractor or employee can access the design files and modify the hardware netlist.
  • Supply chain compromises: The third-party fabrication facilities or vendors carefully embed the hardware Trojan during the global IC production without the owner’s knowledge.
  • Outsourcing vulnerabilities: For example, when DNN IP cores are sourced from untrusted vendors (e.g., via platforms like GitHub or commercial IP marketplaces), attackers can pre-insert Trojans before integration.
  • Post-deployment updates: Adversaries could exploit firmware updates in edge devices to inject Trojans via over-the-air mechanisms.
The main assumptions include: (1) The attacker cannot modify runtime data flows post-deployment to avoid detection by integrity checks; (2) Standard testing covers 99% of common inputs, but rare triggers (e.g., specific pixel patterns in images) are untested; (3) The DNN is deployed on hardware like FPGAs or application-specific integrated circuits (ASICs) without real-time weight monitoring. Note that accessing the data is restricted by the privacy regulations, e.g., the General Data Protection Regulation (GDPR) and the Health Insurance Portability and Accountability Act (HIPAA), or by the security policies, and this in turn limits the attacker’s ability to exploit the model’s architecture rather than the dataset itself. This setup emphasizes real practical vulnerabilities in DNN implementations and highlights the need for more robust hardware security techniques.

3.3. Algorithm for Identifying Most Sensitive Weights

In order to systematically identify the most affected weights (“sensitive weights”), we propose the Sensitivity-Based Weight Selection (SBWS) algorithm that is demonstrated in Algorithm 1. Our novel presented algorithm has been implemented based on the sensitivity analysis approaches from the machine learning, such as the gradient-based saliency maps in adversarial attacks and the importance scoring in the pruning techniques, and they are uniquely adapted to be used for hardware Trojan insertion into the DNN accelerators. By iteratively grouping weights and evaluating the reduced accuracy of the model when they are modified, the SBWS algorithm efficiently isolates the smallest set of weights that can cause the most significant performance drops in the performance. This targeted approach reduces the Trojan’s hardware footprint, e.g., fewer hardware logic gates are needed without being detected. This algorithm outperforms the non-targeted and the random selection technique in previous related works by achieving up to 2X higher reduction efficiency per the modified weight, as will be shown in the experiments Section 4.
Algorithm 1 Sensitivity-Based Weight Selection (SBWS)
Require: 
DNN model M, validation dataset D, modification type m o d (“zero” or “flip”), initial group size i n i t i a l G , minimum group size m i n G , degradation threshold θ
Ensure: 
Set of sensitive weights S
  1:
a c c original Acc ( M , D )                                                     ▹ Compute baseline accuracy
  2:
S
  3:
for each layer L in M do
  4:
       w e i g h t s L extract weights from L
  5:
       g r o u p s divide w e i g h t s L into groups { G 1 , , G n } where | G i | = i n i t i a l G
  6:
       c a n d i d a t e s
  7:
      for each G i in g r o u p s  do
  8:
             T e m p M copy of M
  9:
            modify G i in T e m p M according to m o d           ▹ set to zero or negate the sign
10:
             a c c drop a c c original Acc ( T e m p M , D )
11:
            if  a c c drop > θ  then
12:
               add G i to c a n d i d a t e s
13:
            end if
14:
      end for
15:
      while  | c a n d i d a t e s | > 0  and min { | G i | : G i c a n d i d a t e s } > m i n G  do
16:
             n e w _ c a n d i d a t e s
17:
            for each G i in c a n d i d a t e s  do
18:
                    s u b g r o u p s subdivide G i into { G s 1 , , G s m } where | G s j | = | G i | / 2
19:
                   for each G s j in s u b g r o u p s  do
20:
                          T e m p M copy of M
21:
                         modify G s j in T e m p M according to m o d
22:
                          a c c drop a c c original Acc ( T e m p M , D )
23:
                         if  a c c drop > θ  then
24:
                               add G s j to n e w _ c a n d i d a t e s
25:
                         end if
26:
                 end for
27:
            end for
28:
             c a n d i d a t e s n e w _ c a n d i d a t e s
29:
      end while
30:
       S S union of all weights in c a n d i d a t e s
31:
   end for
32:
   return S
The algorithm starts by processing the DNN layer-wise and takes advantage of the network’s hierarchical structure, in which small changes in the early layers strongly impact many incoming downstream computations in the next layers. It employs a degradation threshold θ that is experimentally tuned via the grid search on the validation sets, e.g., 0.5% in our experiments, in order to prune the low-impact groups and ensure maintaining the design scalable. For models with millions of hyperparameters (N), we have used the divide-and-conquer technique to further reduce the computational complexity from O ( N ) (exhaustive per-weight testing) to O ( log N × G ) , where the G represents the initial number of the groups.
Furthermore, the SBWS algorithm supports two modification techniques: zeroing (setting the values of the weights to 0, mimicking a hardware reset) or flipping the sign of the weights (multiplying by −1 to invert the sign of a given weight and retain the magnitude). The experimental results indicate that flipping the sign of the weights often yields a substantial reduction, as it disrupts the learned optimization directions without removing the connections entirely.
It is worth mentioning that one possible limitation of the group-based dichotomy search is that some affected weight combinations on different initial groups may not be fully explored. However, because the algorithm keeps any subgroup whose impact exceeds the threshold θ and because the perturbations in early layers propagate globally, the selected weights will still have a high impact in the search process. The ablation studies show only a small difference from the exhaustive search on small models and significantly decrease the search time.
Following the weight selection, we further analyze the DNN hardware implementation to find the storage positions for the sensitive set S; this has been done utilizing the Synopsys Verdi tools for the netlist inspection and simulation. Before we start with inserting the two designed Trojans into the DNN netlist, we consider a simple implementation of these Trojans, shown on the left side of Figure 2. Both attacks utilize a combination logic gates of triggers and payloads in order to maliciously manipulate the state of the circuit. Normally, the Trojans are inactive, and the design works correctly, e.g., the set and reset signals of the D flip-flops (DFFs) are ‘0’. The trigger network is activated when the selected rare combination of signals ( n 0 to n N ) drives the NAND gate, which (in combination with the set and reset control signal) will force the XNOR gate output to ‘1’. For the zeroing attack, once triggered, the payload will drive the reset signal of the DFF to be flipped in order to switch the stored value to ‘0’. For the sign-flipping attack, when triggered, the payload will drive the set signal of the DFF to be ‘1’ and, in this case, the most significant bit (MSB) of an architecture’s weight will be flipped to a negative sign (set to ‘1’). The designed hardware Trojan can then be carefully inserted during the untrusted stages of the DNN chip fabrication process, shown on the right side of Figure 2. The rare net—signals that are extremely low switching during the normal operations are served as triggers. These rare nets have been fed to an XNOR gate. This will make the Trojan be activated only when a condition on the rare signals is satisfied. More specifically, the sign-flipping attack will flip the most significant bit (MSB) of the selected DNN weight registers, which will flip the sign of the corresponding weights. This manipulation will significantly decrease the performance of the DNN mode or produce wrong classification without showing any immediate functional failures. For the zeroing attack, the targeted DFFs will be reset by the Trojan, which will corrupt the stored weight values in the DNN accelerator.
The proposed Trojan architecture has been designed using a small number of gates, which require very small area, power, and delay overheads, and therefore cannot be easily detected through the design-time verification. Furthermore, because the Trojan is obscure and can only be activated when the rarely signal patterns are set, it is highly resistant to conventional functional testing, random input stimulation, and side-channel analysis techniques. As a result, the Trojan cannot be easily detected during post-fabrication validation and will cause a severe impact after the DNN chip is fabricated.

3.4. Insertion of the Designed Hardware Trojan

The hardware Trojan can be inserted during the hardware design or fabrication phase of the DNN accelerator, specifically targeting the on-chip memory or register files where weights are stored, e.g., SRAM arrays or flip-flop-based buffers in the processing elements. The low-activity (rare signal) nets are identified post-synthesis in the weight storage datapath utilizing the netlist analysis. These nets are deliberately chosen from non-critical paths (with timing slack greater than 20 % of the clock period) in order to ensure that the added Trojan logic gates do not introduce detectable timing or power side effects. Because the weights selected by the SBWS algorithm have been mapped to specific register files, their corresponding read ports naturally provide the rare signal nets required for triggering. The design choice will directly couple the trigger technique to the SBWS output without any conflict, since the trigger selection is operated on the read ports of the already-selected weight registers. As a result, the Trojan will achieve both high attack impact and strong stealthiness against conventional detection approaches. The insertion of the designed HT process involves the following two steps:
  • Netlist Modification: Post-synthesis, add the Trojan logic (NAND and XNOR gates for trigger and payload) between the weight read port and the multiply–accumulate (MAC) units in the accelerator’s computation pipeline. For zeroing, connect to the clear input of DFFs storing weights. For sign-flipping, use an XOR on the MSB of floating-point weights (IEEE 754 format).
  • Placement in Supply Chain: The Trojan can be embedded by a malicious foundry during RTL-to-GDSII conversion or by an insider in the IP integration stage, ensuring it bypasses pre-silicon verification by activating only under post-deployment rare conditions (e.g., specific input data patterns not in test benches). For evasion, we select triggers from non-critical paths to avoid power/timing anomalies detectable by side-channel analysis (e.g., <0.1% power increase).
This targeted insertion in early-layer weight storage can increase propagation effects while maintaining stealth, as it avoids altering control signals that can trigger side-channel detectors. The detection evasion is further enhanced by the polymorphic triggers, e.g., varying based on model hyperparameters, and a smaller footprint, making it resistant to tools like Trust-Hub benchmarks or ML-based anomaly detectors.
The trigger circuits have been placed on non-critical paths (slack > 20% of the clock period, verified with the PrimeTime static timing analysis) and consist of the low-activity nets (<1% toggle rate during 10 6 random input simulations). These nets are identified in post-synthesis utilizing netlist analysis in the weight storage datapath and have been directly coupled to the SBWS-selected weight registers, which will, in turn, ensure a higher possible impact with lower observability.

3.5. Illustrative Example

In order to clearly demonstrate the core idea of the attack, we provide a simple example employing a small neural network that implements an XNOR gate, shown in Figure 3 and Table 2. In this example, a simple trained neural network is considered to implement an XNOR gate, which explains the main idea of this work. After applying 10,000 training iterations with a sigmoid activation, the given model achieves 100% accuracy. By flipping the sign of specific weights, e.g., the second upper weight in layer zero, the accuracy has been reduced by 25, while by applying the same setup to the next lower weights, the accuracy has been dropped to 50%. In larger and more complex models that have millions of hyperparameters, such targeted modifications become exceedingly difficult to detect during the verification process since they blend into normal parameter variability (hide within the normal parameter noise), which highlights the stealth and effectiveness of the proposed approach.
Moreover, the weights are fundamentally used to determine and control the model’s output, and the strategic tampering enabled by SBWS can efficiently degrade the reliability of the model without overt signs of compromise. Note that, in this example, we leverage 64-bit floating-point (IEEE 754 double) weights in order to clarify the presentation. In real hardware NN implementations, especially on embedded and edge devices, much lower precision is typically used, such as 8-bit integers (INT8), 16-bit floating-point (FP16 or bfloat16), or even lower-bit fixed-point and quantized representations. The attack principle demonstrated here is still applicable to the aforementioned lower-precision formats, even though the exact sensitivity of individual weights may vary with the chosen quantization scheme. We have discussed this further in Section 4.

4. Results and Discussion

4.1. Experimental Setup

All of the experiments have been conducted utilizing Jupyter Notebook version 7.0 on a high-performance server that is equipped with an NVIDIA RTX 4080 SUPER GPU (16 GB GDDR6X VRAM), 32 GB system RAM, and the Intel Core i7 processor operating at 2.66 GHz base frequency (with turbo boost up to 4.6 GHz). This setup provides sufficient computational resources for both training and evaluating the DNN models in order to effectively handle the datasets and attack simulations.
The employed datasets include different real-world DNN application scenarios, ranging from the high-dimensional image classification to the low-dimensional tabular medical data, which allows us to comprehensively assess the proposed attack’s generalization. The Date Fruit dataset (multiclass image classification) has been obtained from Kaggle [47] and contains approximately 900 high-quality images for 7 date fruit varieties (Barhee, Deglet Nour, Sukkary, Rotab Mozafati, Ruthana, Safawi, and Sagai) captured with controlled computer vision systems. The images have been preprocessed with standard resizing, e.g., 224 × 224 for CNNs, and augmented with random flips and rotations during the training phase. The HT attack has been tested on the color image features with moderate complexity. The UCI Heart Disease dataset is a tabular binary classification obtained from the UCI ML Repository. It is based on the original Cleveland database and consists of 303 instances with 13 features, including age, sex, cholesterol, chest pain type, etc. It can be used to predict the presence and the absence of the heart disease. The dataset contains both the numerical and categorical features, which are normalized to the [0, 1] range, and it has been selected due to its low dimensionality and high real-world impact in medical diagnostics, where even small accuracy drops can lead to serious consequences. Fashion MNIST is a standard multiclass gray-scale image classification dataset released by Zalando Research. It includes 60,000 training and 10,000 test 28 × 28 gray-scale images, each with a resolution of 28 × 28 pixels, to cover 10 clothing classes: the T-shirt/top, Trouser, Pullover, Dress, Coat, Sandal, Shirt, Sneaker, Bag, Ankle boot. No heavy preprocessing has been applied beyond normalization to the [0, 1] range, and it has been used to evaluate the attack performance on the distributed lower-resolution image representations. The fashion CNN variant is built on the Fashion MNIST dataset using a convolutional architecture, e.g., Conv2D layers + pooling + dense layers, to represent the modern accelerator-targeted CNNs. Finally, the Histopathologic Cancer Detection, which is a binary medical image classification dataset obtained from the Kaggle competition, consists of about 220,000 labeled histopathology image patches extracted from the larger whole-slide images, used to classify the metastatic cancer presence or absence in the small tissue patches and regions. Preprocessing with resizing and augmentation has been applied to this dataset, and we have chosen it due to its high-stakes medical domain and its large-scale, high-resolution image data that allows us to test the scalability of the proposed attack. We also use different models for the evaluation purposes, as follows: multilayer perceptron (MLP) and CNN variants, trained to obtain the baseline accuracies leveraging the standard optimizers, e.g., the Adam optimizer, and loss functions, e.g., cross-entropy. The accuracy has been calculated as Acc = TP + TN Total number of the test samples ( images or records ) , while the absolute accuracy drop is computed as Δ Acc = Acc orig Acc attacked .

4.2. Results

Table 3 shows the results for the zeroing attack, where the selected weights have been reset to zero, in which the hardware reset via D flip-flops (DFFs) is simulated. The average reported absolute accuracy drop is 26.7%, which has been calculated as the mean of individual drops: 26.1%, 33.0%, 5.7%, 36.7%, 32.1%. This demonstrates that the SBWS algorithm is very efficient in identifying the most affected weights, with only a few attacks needed, even for complex datasets, including the Heart Disease, where the results show that only changing four neurons drops the accuracy by 33%. It is worth noting that the variation in the number of attacked neurons on different datasets is the direct result of the adaptive nature of the SBWS algorithm, which iteratively refines groups of weights until the reduction threshold, θ = 0.5 % , is met utilizing the smallest possible set. The high-dimensional image datasets with the distributed feature representations, e.g., Fashion MNIST grayscale images or date fruit color images, require more targeted weights (up to 12 for the MLP variant) in order to accumulate sufficient error propagation to cross θ . However, the low-dimensional tabular data, such as the Heart Disease, or the highly structured medical patches (Histopathologic Cancer), allow the concentrated impact on fewer highly sensitive early-layer weights. This adaptivity ensures the maximal possible impact per modification while preserving stealth. The presented results highlight the vulnerability of the DNN accelerator in practical applications, such as medical diagnostics, in which even very small modifications can lead to substantial misclassifications and potentially endanger patient outcomes or the reliability of the system. This in turn underscores the real need for the adaptive attack techniques that account for the data dimensionality.
We also report the impact of the sign-flip attack, as shown in Table 4, where inverting the weights (w → −w) is achieved via flipping the most significant bit (MSB). The average absolute drop is 48.1%, where the individual drops are: 37.1%, 42.0%, 31.7%, 79.9%, 49.6%. Based on the obtained results, it has been pointed out that sign-flipping achieves higher impact than the zeroing attack because it preserves the weight magnitude while reversing contributions, which mathematically disrupts the decision boundaries more severely, e.g., inverting the gradients in the backpropagation paths. For instance, in the Fashion CNN, flipping only two weights causes a catastrophic 79.9% drop in the accuracy, and this highlights the SBWS’s ability to target the most critical and important neurons in the convolutional layers. The overall average drop on both attacks is 37.4%, underscoring the effectiveness of the proposed attack. Also, the difference between zeroing and sign-flipping underscores the importance of keeping the magnitude in the attacks. The zeroing completely eliminates the contributions, which, at the same time, allows the network redundancy to partially compensate for the loss. Whereas the sign-flipping keeps the magnitude, but reverses the direction, which exploits the learned model optimizations and causes high values in the downstream layers. Such results indicate broader implications for the hardware security in the smart systems, such as the autonomous vehicles and defense applications, where the sign-flipping attack can induce stealthy failures without being detected. These emphasize the real need for strong defensive techniques.
In order to directly assess the performance under a fixed number of attacked neurons, we have evaluated the performance by attacking exactly the top-five most affected and sensitive weights, selected by SBWS under the zeroing attack. The results are as shown in Table 5, where the average dropped accuracy is 24.7% (individually: 21.8%, 34.2%, 4.1%, 31.5%, 32.1%). This ensures that the proposed algorithm is still substantially higher than the random selection ( 9.3% avg) and assures the SBWS’s superiority even without adaptation. Note that this smaller reduction than adaptive (26.7%) is expected since some datasets benefit from 1–2 extra weights in order to fully exploit cascading effects. However, fixing the weights at 5 maintains ultra-low overhead and still delivers a strong real-world impact on the safety-critical applications.
Furthermore, we have implemented and applied the Sensitivity-Based Weight Selection (SBWS) algorithm with different hyperparameters, as follows: initial group size i n i t i a l G = 100 (to balance between the granularity and the computation), minimum group size m i n G = 1 (for the single-weight precision), and the reduction threshold θ = 0.5 % (optimized via leveraging the grid search on the validation subset in order to obtain highly impact with the smaller possible runtime). A 20% validation split from each dataset has been used to compute the accuracy during the SBWS algorithm and the post-attack evaluations, and this, in turn, ensures that the results will be unbiased during the assessment. We also evaluate the robustness of the SBWS algorithm by conducting the ablation studies on different θ values (0.1%, 0.5%, 1.0%) across 5 different runs for each value. The lower θ (0.1%) identifies 15% more weights, but the runtime is doubled (average is 2.1×), and this happens due to broader candidate retention. A higher θ (1.0%) reduces the targets by 20%, but unfortunately, it lowers the average degradation by 5–7% since fewer sensitive weights have been captured. The 0.5% threshold optimizes and balances the trade-off as confirmed by the Pareto analysis of impact versus computational cost. Note that all these results are averaged over 5 runs per dataset, with a standard deviation less than 2%. We also provide a comparison between the impact of setting the sensitive weights to zero and flipping the sign of the weight value. Table 6 shows this comparison in detail and reveals that the sign-flipping outperforms zero attacking by exploiting the learned optimizations.
The trade-off between average accuracy drop and runtime across varying degradation thresholds θ is calculated and taken into consideration. Figure 4 illustrates the Pareto front for this trade-off. The data points correspond directly to the ablation results: θ = 0.1 % achieves a high 40.2% drop but at the cost of 120 s runtime; θ = 0.5 % achieves a strong 37.4% drop with a more efficient 65 s; and θ = 1.0 % reduces the drop to 32.1% but runs quickest at 45 s. The curve confirms θ = 0.5 % and i n i t i a l G = 100 as the optimal balance, increasing impact with smaller computational overhead, as determined via multi-objective optimization. We extend the implementation to initial group size ( i n i t i a l G : 50, 100, 200), finding i n i t i a l G = 100 optimal (37.4% drop, 65 s runtime). Smaller groups increase precision but runtime (1.5× for 50), while larger groups reduce impact (32% for 200). Table 7 summarizes this Pareto front, confirming θ = 0.5 % , i n i t i a l G = 100 as the sweet spot via multi-objective optimization. We further implement the SBWS algorithm at different thresholds θ and compare it with the exhaustive per-weight search technique. As explained in Table 8, the SBWS with θ = 0.5 % accomplishes 37.4 % an average accuracy drop, which is close to the 39.8 % obtained by exhaustive search, while reducing the runtime by about 12× faster. As a result, elevating θ will further decrease the runtime, but will also decrease the attack effectiveness. This hyperparameter analysis reveals the real practical trade-offs that the attackers encounter in the limited resource environments, such as the embedded systems, where the lower runtime (higher θ ) is preferred by the attackers on a very high performance reduction. The low standard deviation (<2%) on different runs indicates that the SBWS is robust and reliable on different DNN architectures. Such reliability also points to the need for defenses against such strong attacks. Moreover, in order to assess the effectiveness of the SBWS algorithm, we directly compare it with the random weight selection utilizing the same number of modified weights. As shown in Table 9, attacking the selected weights by the SBWS algorithm will cause significantly higher accuracy degradation than the random selection on all models. In fact, this demonstrates that the sensitivity-guided selection is very critical to achieving a higher possible impact with a smaller possible number of modifications.
In fact, the proposed SBWS enables higher impact on the performance of the model with only a few modifications compared to random weight attacks, where the baseline average drops 12% based on the tests with very small Trojan overhead. It is worthy to mention that the design has been synthesized using the Synopsys Design Compiler on TSMC 45 nm library, and results show that the HT incurs very low area overhead (0.4%) and power dissipation (0.3%), which is much better than the ones in the related literature on the DNN HTs, which are typically < 1 % for stealth attacks. To further validate this work, we use the statistical analysis via the paired t-tests, 10 runs per model, n = 50 samples, and the p-value < 0.01 , and the results confirm a significant reduction in the accuracy. Compared to prior works that included the recent resilient designs [45] and the general noise injection, with 20–30% drops [48], the proposed Trojan is much stealthier due to careful selection of rare triggers and the implemented SBWS-targeted selection, which also evades Siamese NN detection [46] by minimizing side-channel signatures. Note that the low overhead further improves the stealthiness since the SBWS can be integrated into the limited-resource IoT devices without triggering the design verification alarms. The statistical validation ( p < 0.01 ) shows that the observed performance reduction is not random, and this implies that the proposed SBWS can be extended to bypass strong defenses, e.g., the runtime monitoring, if it has been combined with the polymorphic triggers.
Even though the proposed attack is significant and powerful, it is important to mention its limitations, where the white-box assumption is used. This may not hold in the fully obfuscated systems, and also gives a lack of evaluation on certain transformers, such as BERT. Furthermore, fixed-point quantization may mitigate the impact by reducing bit-flip sensitivity, and large-scale models, e.g., GPT-like models, may require scaled SBWS to be feasible. Ethically, this research highlights vulnerabilities to inform defenses, not enable attacks; all experiments were simulated without real hardware deployment to avoid harm. In addition to these limitations, this technique requires white-box access, which makes it less applicable in black-box attack settings in which the attackers do not have knowledge about the model architecture. One can carefully address this issue by augmenting the approximation methods, such as the query-based the sensitivity estimation. Also, the impact of this work has not been evaluated on the transformer models since the attention techniques have different sensitivity patterns.

4.3. Performance Hardware Overhead

The added Trojan logic utilizes only a small number of logic gates, e.g., 5–10 gates per targeted weight, resulting in <0.5% area overhead and <0.3% power overhead, verified via the post-synthesis evaluation using the Synopsys Design Compiler and the PrimeTime on the 45 nm Taiwan Semiconductor Manufacturing Company Standard Cell (TSMC) library. Compared to baseline DNN accelerators, such as the Eyeriss-style accelerator designs, this overhead is negligible, while maintaining the original clock frequency to be at 1 GHz.

4.4. Security Analysis of the Proposed Trojans

It is worth analyzing and showing why the proposed Trojan attacks are difficult to detect. Generally, there are three main ways to detect an inserted design [39]:
  • Logic testing—supply the possible input patterns to activate and detect the Trojan. Some of the best tools to run the logic testing are Automatic Test Pattern Generation (ATPG), controllability and observability analysis, and heuristic search, e.g., MERO, AdaTest. Unfortunately, since the DNN is very large and complex (with millions of neurons and weights), these techniques cannot detect such a strong Trojan. Similarly, when employing the brute force tools.
  • Hardware performance overhead analysis—using Synopsis tools to measure how much the performance overhead of the design, e.g., the area, has been increased. However, since the proposed Trojan is very small (it has only a few logic gates compared to the DNN, which has millions of gates), the increased overhead is negligible, and many testing tools will not detect any difference.
  • Identification of the Trojan layout—during the fabrication process, the location gates of the Trojan will be intermixed with the original DNN circuitry since the logic synthesis and physical design (place and route) tools will automatically determine the gate placement during the process of creating the final GDSII layout. Also, the logic synthesis tools apply optimization techniques that will change the types and structures of the logic gates to satisfy the design constraints, such as the power dissipation, area, and timing. Due to the extremely large number of logic gates in modern DNN hardware architectures, recognizing and isolating a sophisticated hardware Trojan within the layout will be highly challenging.
In short, the proposed Trojans are very hard to detect as the DNN model size is very large, the relative overhead of the Trojan is significantly decreased, and there are fewer gates for the Trojan versus several million weights, while the rarity of the trigger remains 10 5 because SBWS focuses on a fixed small number of weights (5–12).

4.5. Precision Considerations in Real Hardware Implementations

The illustrative example in Section 3.5 utilizes 64-bit floating-point weights for readability purposes. However, modern DNN accelerators that are implemented on edge devices and embedded systems rarely leverage the full-precision floating-point arithmetic. Instead, they usually employ the low-bit-width representations, including 8-bit integers (INT8), fixed-point quantization, or 16-bit floating-point formats (FP16, bfloat16), in order to highly decrease the memory footprint, power consumption, and latency. Since the core attack technique (identifying the sensitive weights via the SBWS algorithm and applying the sign-flipping or zeroing attack) remains valid on different numeric formats, the effectiveness of the bit-flip-style or sign-flip attacks can vary depending on the quantization approach used and bit-width. For instance, in the highly quantized networks, flipping the sign of a weight may have a more (or less) pronounced effect due to the reduced dynamic range and the presence of the scaling factors. The proposed attack can be assessed under real quantization settings, e.g., post-training INT8 quantization and quantization-aware training, on the NVIDIA Jetson and Google Coral Edge TPU hardware platforms.

4.6. Comparing Analysis with Previous Works

To further highlight this approach, we compare it against the recent HT attacks on DNNs. Table 10 shows a comparison between this proposal and other works leveraging different metrics, including the accuracy reduction, number of modifications, hardware overhead, and stealth, which is used to measure the trigger rarity probability, where the lower values indicate the higher stealthier.
Note that these drops are model-specific and verified through 10 runs (p less than 0.01 via t-tests); random perturbations yield about 12–20% drops in accuracy based on the provided tests. However, this method, supported by the SBWS algorithm, achieves higher drops with fewer modifications and lower overhead. Also, the stealth has been improved by selecting rarer triggers, e.g., 1 in 100,000 inputs, and this outperforms noise-injection methods [27], which often require more than 1% overhead and can be detected by utilizing statistical tests. This refinement comes from the proposed SBWS’s gradient-based sensitivity analysis, which allows more precise targeting than broader approaches in previous works, resulting in up to 2× better reduction in the efficiency per each modification. Consequently, these results put the proposed Trojan to be considered as a baseline for the future HT designs and expose weaknesses in existing defensive techniques.

5. Conclusions and Future Work

In this work, a hard-to-detect hardware Trojan inserted into five DNN model tests (two distinct DNN models and four different datasets) has been designed in order to attack the performance of DNNs. The experimental results show that the proposed attack reduces the accuracy of models by about ∼37% on average via the novel SBWS algorithm that is incorporated to select the most sensitive weights. The proposed algorithm provides a proficient and explainable technique to find and attack most affected weights in a network, and also introduces a novel way to implement serious HT attacks. It is worth mentioning that this work emphasizes the real and urgent need to protect and secure supply chains, runtime integrity checks, e.g., hash-based verification, and standardize the AI safety measures to mitigate such serious threats that can be used to attack sensitive and essential hardware applications and systems.
Possible future work will include proposing a detection technique, e.g., runtime monitoring or adversarial training, and will also take into account black-box attack scenarios and modern DL architectures, such as transformers. Involving black-box attacks can be achieved via utilizing approximation techniques and quantifying the detailed hardware overhead across different nodes, e.g., 28 nm, and then testing it on more advanced architectures. Additional directions include integrating with federated learning for distributed attacks and developing quantum-resistant defenses against emerging threats.

Author Contributions

Conceptualization, M.F.; methodology, Q.A. and M.F.; software, M.F. and K.J.M.; validation, M.N. and O.S.A.; formal analysis, Q.A. and K.J.M.; investigation, M.N. and M.F.; data curation, E.H.H. and O.S.A.; writing—original draft preparation, Q.A. and M.F.; writing—review and editing, Q.A., M.F. and E.H.H.; supervision, Q.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research has received no external funding.

Data Availability Statement

The datasets employed in this study are publicly available. The Date Fruit dataset is available on Kaggle at https://www.kaggle.com/datasets/whenamancodes/date-fruit-datasets (accessed on 17 June 2026). The Heart Disease dataset is available at https://archive.ics.uci.edu/dataset/45/heart+disease (accessed on 17 June 2026). The Fashion-MNIST dataset is available at https://github.com/zalandoresearch/fashion-mnist (accessed on 17 June 2026). The Histopathologic Cancer Detection dataset is available at https://www.kaggle.com/c/histopathologic-cancer-detection (accessed on 17 June 2026).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef] [Scilit]
  2. Mikolov, T.; Deoras, A.; Povey, D.; Burget, L.; Černocký, J. Strategies for training large scale neural network language models. In Proceedings of the 2011 IEEE Workshop on Automatic Speech Recognition & Understanding, Waikoloa, HI, USA, 11–15 December 2011; pp. 196–201. [Google Scholar] [CrossRef] [Scilit]
  3. Hinton, G.; Deng, L.; Yu, D.; Dahl, G.E.; Mohamed, A.r.; Jaitly, N.; Senior, A.; Vanhoucke, V.; Nguyen, P.; Sainath, T.N.; et al. Deep Neural Networks for Acoustic Modeling in Speech Recognition: The Shared Views of Four Research Groups. IEEE Signal Process. Mag. 2012, 29, 82–97. [Google Scholar] [CrossRef] [Scilit]
  4. Abolghasemi, P.; Mazaheri, A.; Shah, M.; Bölöni, L. Pay Attention!—Robustifying a Deep Visuomotor Policy Through Task-Focused Visual Attention. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 15–20 June 2019; pp. 4249–4257. [Google Scholar] [CrossRef] [Scilit]
  5. Srivastava, S.; Narayan, S.; Mittal, S. A survey of deep learning techniques for vehicle detection from UAV images. J. Syst. Archit. 2021, 117, 102152. [Google Scholar] [CrossRef] [Scilit]
  6. Luo, M.; Myers, A.C.; Suh, G.E. Stealthy tracking of autonomous vehicles with cache side channels. In Proceedings of the the 29th USENIX Conference on Security Symposium (SEC’20), Boston, MA, USA, 12–14 August 2020. [Google Scholar]
  7. Fatehi, N.; Alasad, Q.; Alawad, M. Towards Adversarial Attacks for Clinical Document Classification. Electronics 2023, 12, 129. [Google Scholar] [CrossRef] [Scilit]
  8. Alahmed, S.; Alasad, Q.; Hammood, M.M.; Yuan, J.S.; Alawad, M. Mitigation of Black-Box Attacks on Intrusion Detection Systems-Based ML. Computers 2022, 11, 115. [Google Scholar] [CrossRef] [Scilit]
  9. Artificial Intelligence Market Growing at a CAGR of 36.6% and Expected to Reach $190.61 Billion by 2025. PR Newswire, 18 June 2019. Available online: https://www.prnewswire.com/news-releases/artificial-intelligence-market-growing-at-a-cagr-of-36-6-and-expected-to-reach-190-61-billion-by-2025---exclusive-report-by-marketsandmarkets-300870274.html (accessed on 18 November 2025).
  10. Hu, W.; Chang, C.H.; Sengupta, A.; Bhunia, S.; Kastner, R.; Li, H. An Overview of Hardware Security and Trust: Threats, Countermeasures, and Design Tools. IEEE Trans. Comput. Aided Des. Integr. Circuits Syst. 2021, 40, 1010–1038. [Google Scholar] [CrossRef] [Scilit]
  11. Xu, Q.; Arafin, M.T.; Qu, G. Security of Neural Networks from Hardware Perspective: A Survey and Beyond. In Proceedings of the 2021 26th Asia and South Pacific Design Automation Conference (ASP-DAC), Tokyo, Japan, 18–21 January 2021; pp. 449–454. [Google Scholar] [CrossRef] [Scilit]
  12. Zhou, T.; Zhang, Y.; Duan, S.; Luo, Y.; Xu, X. Deep Neural Network Security From a Hardware Perspective. In Proceedings of the 2021 IEEE/ACM International Symposium on Nanoscale Architectures (NANOARCH), AB, Canada, 8–10 November 2021; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  13. Wang, X.; Hoque, T.; Basak, A.; Karam, R.; Hu, W.; Qin, M.; Mu, D.; Bhunia, S. Hardware Trojan Attack in Embedded Memory. J. Emerg. Technol. Comput. Syst. 2021, 17, 6. [Google Scholar] [CrossRef] [Scilit]
  14. Mittal, S.; Gupta, H.; Srivastava, S. A survey on hardware security of DNN models and accelerators. J. Syst. Archit. 2021, 117, 102163. [Google Scholar] [CrossRef] [Scilit]
  15. Farabet, C.; Martini, B.; Akselrod, P.; Talay, S.; LeCun, Y.; Culurciello, E. Hardware accelerated convolutional neural networks for synthetic vision systems. In Proceedings of the 2010 IEEE International Symposium on Circuits and Systems, Paris, France, 30 May–2 June 2010; pp. 257–260. [Google Scholar] [CrossRef] [Scilit]
  16. Dally, B. Hardware for Deep Learning. In Proceedings of the 2023 IEEE Hot Chips 35 Symposium (HCS), Palo Alto, CA, USA, 27–29 August 2023; pp. 1–58. [Google Scholar] [CrossRef] [Scilit]
  17. Nabavinejad, S.M.; Baharloo, M.; Chen, K.C.; Palesi, M.; Kogel, T.; Ebrahimi, M. An Overview of Efficient Interconnection Networks for Deep Neural Network Accelerators. IEEE J. Emerg. Sel. Top. Circuits Syst. 2020, 10, 268–282. [Google Scholar] [CrossRef] [Scilit]
  18. Tamir, A.; Salem, M.; Lin, J.; Alasad, Q.; Yuan, J.-s. Multi-Tier 3D IC Physical Design with Analytical Quadratic Partitioning Algorithm Using 2D P&R Tool. Electronics 2021, 10, 1930. [Google Scholar] [CrossRef] [Scilit]
  19. Wu, Y.N.; Emer, J.S.; Sze, V. Accelergy: An Architecture-Level Energy Estimation Methodology for Accelerator Designs. In Proceedings of the 2019 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), Westminster, CO, USA, 4–7 November 2019; pp. 1–8. [Google Scholar] [CrossRef] [Scilit]
  20. Sumathi, G.; Srivani, L.; Murthy, D.T.; Madhusoodanan, K.; Murty, S.S. A Review on HT Attacks in PLD and ASIC Designs with Potential Defence Solutions. IETE Tech. Rev. 2018, 35, 64–77. [Google Scholar] [CrossRef] [Scilit]
  21. Zhang, J.; Qu, G. Recent Attacks and Defenses on FPGA-based Systems. ACM Trans. Reconfig. Technol. Syst. 2019, 12, 14. [Google Scholar] [CrossRef] [Scilit]
  22. Breier, J.; Hou, X.; Jap, D.; Ma, L.; Bhasin, S.; Liu, Y. Practical Fault Attack on Deep Neural Networks. In Proceedings of the the 2018 ACM SIGSAC Conference on Computer and Communications Security (CCS ’18), Toronto, ON, Canada, 15–19 October 2018; pp. 2204–2206. [Google Scholar] [CrossRef] [Scilit]
  23. Hu, X.; Zhao, Y.; Deng, L.; Liang, L.; Zuo, P.; Ye, J.; Lin, Y.; Xie, Y. Practical Attacks on Deep Neural Networks by Memory Trojaning. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2021, 40, 1230–1243. [Google Scholar] [CrossRef] [Scilit]
  24. Mukherjee, R.; Swaroopa, S.; Chakraborty, R.S. Security Vulnerabilities in AI Hardware: Threats and Countermeasures. In Proceedings of the 2024 IEEE 33rd Asian Test Symposium (ATS), Ahmedabad, India, 17–20 December 2024; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  25. Ye, J.; Hu, Y.; Li, X. Hardware Trojan in FPGA CNN Accelerator. In Proceedings of the 2018 IEEE 27th Asian Test Symposium (ATS), Hefei, China, 15–18 October 2018; pp. 68–73. [Google Scholar] [CrossRef] [Scilit]
  26. Zhao, Y.; Hu, X.; Li, S.; Ye, J.; Deng, L.; Ji, Y.; Xu, J.; Wu, D.; Xie, Y. Memory Trojan Attack on Neural Network Accelerators. In Proceedings of the 2019 Design, Automation & Test in Europe Conference & Exhibition (DATE), Florence, Italy, 25–29 March 2019; pp. 1415–1420. [Google Scholar] [CrossRef] [Scilit]
  27. Clements, J.; Lao, Y. Hardware Trojan Design on Neural Networks. In Proceedings of the 2019 IEEE International Symposium on Circuits and Systems (ISCAS), Sapporo, Japan, 26–29 May 2019; pp. 1–5. [Google Scholar] [CrossRef] [Scilit]
  28. Maas, A.L.; Hannun, A.Y.; Ng, A.Y. Rectifier Nonlinearities Improve Neural Network Acoustic Models. In Proceedings of the ICML Workshop on Deep Learning for Audio, Speech and Language Processing (WDLASL 2013), Atlanta, GA, USA, 16 June 2013; Available online: https://ai.stanford.edu/~amaas/papers/relu_hybrid_icml2013_final.pdf (accessed on 14 February 2025).
  29. Glorot, X.; Bordes, A.; Bengio, Y. Deep Sparse Rectifier Neural Networks. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, Fort Lauderdale, FL, USA, 11–13 April 2011; Volume 15, pp. 315–323. Available online: https://proceedings.mlr.press/v15/glorot11a.html (accessed on 14 February 2025).
  30. Rumelhart, D.E.; Hinton, G.E.; Williams, R.J. Learning Representations by Back-Propagating Errors. Nature 1986, 323, 533–536. [Google Scholar] [CrossRef] [Scilit]
  31. Bengio, Y. Practical Recommendations for Gradient-Based Training of Deep Architectures. In Neural Networks: Tricks of the Trade, 2nd ed.; Montavon, G., Orr, G.B., Müller, K.R., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; pp. 437–478. [Google Scholar] [CrossRef] [Scilit]
  32. Xiao, K.; Forte, D.; Jin, Y.; Karri, R.; Bhunia, S.; Tehranipoor, M. Hardware Trojans: Lessons Learned after One Decade of Research. ACM Trans. Des. Autom. Electron. Syst. 2016, 22, 6. [Google Scholar] [CrossRef] [Scilit]
  33. Alasad, Q.; Yuan, J.S.; Bi, Y. Logic Locking Using Hybrid CMOS and Emerging SiNW FETs. Electronics 2017, 6, 69. [Google Scholar] [CrossRef] [Scilit]
  34. Alasad, Q.; Bi, Y.; Yuan, J.S. E2LEMI:Energy-Efficient Logic Encryption Using Multiplexer Insertion. Electronics 2017, 6, 16. [Google Scholar] [CrossRef] [Scilit]
  35. Pan, Z.; Mishra, P. A Survey on Hardware Vulnerability Analysis Using Machine Learning. IEEE Access 2022, 10, 49508–49527. [Google Scholar] [CrossRef] [Scilit]
  36. Mohammadirad, M.; Sojodishijani, O. Improving the efficiency of DNN hardware accelerator by replacing digitalfeature extractor with an imprecise neuromorphic hardware. Turk. J. Electr. Eng. Comput. Sci. 2020, 28, 2797–2807. [Google Scholar] [CrossRef] [Scilit]
  37. Wang, X.; Zheng, Y.; Basak, A.; Bhunia, S. IIPS: Infrastructure IP for Secure SoC Design. IEEE Trans. Comput. 2015, 64, 2226–2238. [Google Scholar] [CrossRef] [Scilit]
  38. Q., A.; Yuan, J.S.; Subramanyan, P. Strong Logic Obfuscation with Low Overhead against IC Reverse Engineering Attacks. ACM Trans. Des. Autom. Electron. Syst. 2020, 25, 34. [Google Scholar] [CrossRef] [Scilit]
  39. Alasad, Q.; Lin, J.; Yuan, J.S.; Fan, D.; Awad, A. Resilient and Secure Hardware Devices Using ASL. J. Emerg. Technol. Comput. Syst. 2021, 17, 11. [Google Scholar] [CrossRef] [Scilit]
  40. Yang, C.; Hou, J.; Wu, M.; Mei, K.; Geng, L. Hardware Trojan Attacks on the Reconfigurable Interconnections of Convolutional Neural Networks Accelerators. In Proceedings of the 2020 IEEE 15th International Conference on Solid-State & Integrated Circuit Technology (ICSICT), Kunming, China, 3–6 November 2020; pp. 1–3. [Google Scholar] [CrossRef] [Scilit]
  41. Liu, T.; Wen, W.; Jin, Y. SIN2: Stealth infection on neural network—A low-cost agile neural Trojan attack methodology. In Proceedings of the 2018 IEEE International Symposium on Hardware Oriented Security and Trust (HOST), Washington, DC, USA, 30 April–4 May 2018; pp. 227–230. [Google Scholar] [CrossRef] [Scilit]
  42. Li, W.; Yu, J.; Ning, X.; Wang, P.; Wei, Q.; Wang, Y.; Yang, H. Hu-Fu: Hardware and Software Collaborative Attack Framework Against Neural Networks. In Proceedings of the 2018 IEEE Computer Society Annual Symposium on VLSI (ISVLSI), Hong Kong, China, 8–11 July 2018; pp. 482–487. [Google Scholar] [CrossRef] [Scilit]
  43. Liu, Y.; Huang, K.; Makris, Y. Hardware Trojan detection through golden chip-free statistical side-channel fingerprinting. In Proceedings of the 2014 51st ACM/EDAC/IEEE Design Automation Conference (DAC), San Francisco, CA, USA, 1–5 June 2014; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  44. Jin, L.; Wen, X.; Jiang, W.; Zhan, J.; Zhou, X. Trojan Attacks and Countermeasures on Deep Neural Networks from Life-Cycle Perspective: A Review. ACM Comput. Surv. 2025, 57, 244. [Google Scholar] [CrossRef] [Scilit]
  45. Sun, P.; Halak, B.; Kazmierski, T.J. Towards Hardware Trojan Resilient Convolutional Neural Network Accelerators. J. Hardw. Syst. Secur. 2025, 9, 89–106. [Google Scholar] [CrossRef] [Scilit]
  46. Nasr, A.; Mohamed, K.; Elshenawy, A.; Zaki, M. A Siamese deep learning framework for efficient hardware Trojan detection using power side-channel data. Sci. Rep. 2024, 14, 13013. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  47. Koklu, M.; Kursun, R.; Taspinar, Y.S.; Cinar, I. Classification of Date Fruits into Genetic Varieties Using Image Analysis. Math. Probl. Eng. 2021, 2021, 4793293. [Google Scholar] [CrossRef] [Scilit]
  48. Liu, Y.; Ma, S.; Aafer, Y.; Lee, W.C.; Zhai, J.; Wang, W.; Zhang, X. Trojaning Attack on Neural Networks. In Proceedings of the 25th Annual Network and Distributed System Security Symposium (NDSS 2018), San Diego, CA, USA, 18–21 February 2018. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Illustration of the cascading impact when modifying a single neuron in a hidden layer of a DNN, in which perturbations are propagated through the network and impact subsequent layers and final outputs.
Figure 1. Illustration of the cascading impact when modifying a single neuron in a hidden layer of a DNN, in which perturbations are propagated through the network and impact subsequent layers and final outputs.
Jcp 06 00112 g001
Figure 2. Framework of the proposed possible hardware Trojan architecture, illustrating the trigger mechanism (rare nets), logic components (XNOR gate and DFFs), Trojan controller, and payload effects on selected weights.
Figure 2. Framework of the proposed possible hardware Trojan architecture, illustrating the trigger mechanism (rare nets), logic components (XNOR gate and DFFs), Trojan controller, and payload effects on selected weights.
Jcp 06 00112 g002
Figure 3. Example demonstrating the manipulation impact on weights of a single node in a simple XNOR neural network, showing the pre- and post-attack accuracy changes.
Figure 3. Example demonstrating the manipulation impact on weights of a single node in a simple XNOR neural network, showing the pre- and post-attack accuracy changes.
Jcp 06 00112 g003
Figure 4. The ablation study plot showing the trade-off between the dropped accuracy and the runtime for varying θ values in the DNNs, balanced with theta = 0.5% and initial_G = 100 to minimize the runtime while achieving high accuracy reduction.
Figure 4. The ablation study plot showing the trade-off between the dropped accuracy and the runtime for varying θ values in the DNNs, balanced with theta = 0.5% and initial_G = 100 to minimize the runtime while achieving high accuracy reduction.
Jcp 06 00112 g004
Table 1. Comparison between this proposal and other related works.
Table 1. Comparison between this proposal and other related works.
ReferenceTrigger MechanismPayload TypeMain Limitations/GapsRequired Attacker
Knowledge
# Mod./Overhead (%)Acc. Drop (%)Stealth (Trigger Prob.)
[37]Rare I/P patterns (FPGA MAT)Act. param. modificationHigh overhead; less targetedPartial
Multiple gates/logic15–35 10 4
[42]Input-triggeredMemory trojaningModerate degradation; memory-specificPartial
32 bits/variable20–35 10 3 10 4
[43]Rare conditionsNoise in ReLUNoticeable overhead; anomaly detectablePartial
15 elements25 10 3
[41]Statistical rare signalsInput interceptionLimited control; statistical detection riskPartial
Low–moderateVariableModerate
[13]Rare cache accessSRAM cache targetingCache-specific; runtime monitoring vulnerablePartial
LowModerateModerate
[44]Survey (various)VariousBroad/generic; suboptimal per-mod efficiencyVariable
Variable20–38 (typical)Variable
[45]Survey/resilient designsVariousFocus on defense; limited attack targetingVariable
Variable28 10 3
This workRare low-activity netsWeight zeroing/sign-flippingTargeted, min. mods, high efficiency, low penaltyPartial
5–7 weights26.7–48.1 10 5 (netlist)
Table 2. Weights of the Motivation Example (XNOR Neural Network).
Table 2. Weights of the Motivation Example (XNOR Neural Network).
Layer NumberWeights IndexWeights ValuesBinary Representation (IEEE 754 Double)
Layer zero−5.8798794992060421100000000000101100110101001111110010001011000011101001010011101
Layer zero6.0770312631443570100000000001100100101100001011000010011001100011010100001110001
Layer zero6.8275623890963420100000000001101010110010101111110010001011000011101001010011101
Layer zero−6.583299602342381100000000001101000010110111111110010001011000011101001010011101
Layer one9.4711754967925530100000000010010110100001001111110010001011000011101001010011101
Layer one9.339447578905640100000000010010110010010001111110010001011000011101001010011101
Table 3. Impact of setting sensitive weights to 0 (using SBWS).
Table 3. Impact of setting sensitive weights to 0 (using SBWS).
Model onTrain/TestOrig.# NeuronsAcc After
Dataset TypeSplitAccAttackedAttack
CNN on Date Fruit900/30091.1%765%
MLP on Heart Disease242/6189%456%
MLP on Fashion-MNIST60k/10k88.7%1283%
CNN on Fashion-MNIST60k/10k92.7%656%
CNN on Histopath. Cancer220k patches91.9%559.8%
Table 4. Impact of flipping signs.
Table 4. Impact of flipping signs.
Model onTrain/TestOrig.# Neurons Acc After
Dataset TypeSplit DatasetAccAttackedAttack
CNN on Date Fruit900/30091.1%354%
MLP on Heart Disease242/6189%247%
MLP on Fashion-MNIST60k/10k88.7%1257%
CNN on Fashion-MNIST60k/10k92.7%212.8%
CNN on Histopath. Cancer220k patches91.9%642.27%
Table 5. The impact of attacking the top-5 sensitive weights chosen by SBWS under the zeroing attack.
Table 5. The impact of attacking the top-5 sensitive weights chosen by SBWS under the zeroing attack.
Model on DatasetOrig. Acc# Neurons Attacked (Fixed)Acc After Attack
CNN on Date Fruit91.1%569.3%
MLP on Heart Disease89%554.8%
MLP on Fashion-MNIST88.7%584.6%
CNN on Fashion-MNIST92.7%561.2%
CNN on Histopath. Cancer91.9%559.8%
Table 6. A comparison between the impact of setting the sensitive weights to 0 and flipping the sign of the weight value.
Table 6. A comparison between the impact of setting the sensitive weights to 0 and flipping the sign of the weight value.
AspectTable 3 (Zeroing)Table 4 (Sign-Flipping)
Impact of AttacksModerate negative impact on accuracy (avg 26.7% drop).Higher impact, with steeper drops (avg 48.1%, e.g., 79.9% in Fashion CNN).
Dataset VariabilityConsistent drops (5.7–36.7%), less sensitive to structure.More variable (31.7–79.9%), amplifying dataset-specific sensitivities.
VulnerabilityLower overall vulnerability; partial mitigation via weight regularization.Higher vulnerability due to inversion effects; demands advanced defenses like sign-invariant training.
Model PerformanceLess disruptive in dense datasets (e.g., minimal 5.7% in Fashion MNIST).Significant decreases, especially in CNNs, emphasizing attack potency.
Defense MechanismsSuggest robust monitoring of zeroed paths.Imply issues in protection; calls for gradient masking or anomaly detection.
GeneralizabilityApplicable to various models with consistent but moderate effects.Broad impact on architectures, underscoring comprehensive security needs.
Table 7. Ablation on initial group size ( i n i t i a l G ).
Table 7. Ablation on initial group size ( i n i t i a l G ).
initial G Avg. Acc. Drop (%)Avg. # WeightsAvg. Runtime (s)
5038.57.098
10037.46.265
20032.05.150
Table 8. Ablation study on SBWS θ ablation vs. exhaustive per-weight on small models.
Table 8. Ablation study on SBWS θ ablation vs. exhaustive per-weight on small models.
Method θ Avg. Acc. Drop (%)Avg. # Selected WeightsAvg. Runtime (s)
Exh. search39.86.5780
SBWS0.1%40.28.4120
SBWS0.5%37.46.265
SBWS1.0%32.14.745
Table 9. Comparing the accuracy loss between random weight selection (RWS) and the SBWS technique.
Table 9. Comparing the accuracy loss between random weight selection (RWS) and the SBWS technique.
Model on Dataset# WeightsRWS Acc. Drop (%)SBWS Acc. Drop (%)
CNN on Date Fruit712.426.1
MLP on Heart Disease49.833.0
MLP on Fashion-MNIST124.25.7
CNN on Fashion-MNIST68.636.7
CNN on Histopath. Cancer511.332.1
Average9.326.7
Table 10. Comparison between this proposal and other HT attacks on DNNs, where the results indicate that this method offers better efficiency (higher drop per modification) with lower overhead, compared with other techniques. Note that all previous and this techniques are white-box attacks.
Table 10. Comparison between this proposal and other HT attacks on DNNs, where the results indicate that this method offers better efficiency (higher drop per modification) with lower overhead, compared with other techniques. Note that all previous and this techniques are white-box attacks.
TechniqueAvg. Acc. Drop (%)# Mod.OH (%)Stealth (Trigger Prob.)
Clements et al. (2019) [27]25151.2 10 3
Sun et al. (2025) [45]2880.6 10 3
Zhao et al. (2019) [26] (Memory T.)30320.5 10 3
Ye et al. (2018) [25] (FPGA CNN HT)– *81.5 10 4
Our SBWS (Zeroing)26.76.80.4 10 5
Our SBWS (Sign-Flipping)48.150.3 10 5
* Ye et al. (2018) [25] concentrated mainly on demonstrating the feasibility of inserting an HT into an FPGA-based CNN accelerator utilizing the rare input-pattern triggers and activation-parameter modification. A clean accuracy drop was not reported as a primary evaluation metric. The simulation of a similar attack style shows very low impact on clean data.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Frman, M.; Moulood, K.J.; Noori, M.; Hasan, E.H.; Atiyah, O.S.; Alasad, Q. Robust Stealthy High-Impact Malicious Hardware Attacks on Deep Neural Networks. J. Cybersecur. Priv. 2026, 6, 112. https://doi.org/10.3390/jcp6040112

AMA Style

Frman M, Moulood KJ, Noori M, Hasan EH, Atiyah OS, Alasad Q. Robust Stealthy High-Impact Malicious Hardware Attacks on Deep Neural Networks. Journal of Cybersecurity and Privacy. 2026; 6(4):112. https://doi.org/10.3390/jcp6040112

Chicago/Turabian Style

Frman, Maath, Kholood J. Moulood, Mustafa Noori, Ekram H. Hasan, Oqbah Salim Atiyah, and Qutaiba Alasad. 2026. "Robust Stealthy High-Impact Malicious Hardware Attacks on Deep Neural Networks" Journal of Cybersecurity and Privacy 6, no. 4: 112. https://doi.org/10.3390/jcp6040112

APA Style

Frman, M., Moulood, K. J., Noori, M., Hasan, E. H., Atiyah, O. S., & Alasad, Q. (2026). Robust Stealthy High-Impact Malicious Hardware Attacks on Deep Neural Networks. Journal of Cybersecurity and Privacy, 6(4), 112. https://doi.org/10.3390/jcp6040112

Article Metrics

Back to TopTop