Safeguarding Spiking Neural Networks Against Hardware Trojan Attacks

Pioneering a revolution in energy-efficient computation, Spiking Neural Networks (SNNs) stand ready to drive the next generation of intelligent systems across edge computing, robotics, and the expansive Artificial Intelligence of Things (AIoT) landscape. Yet, this immense potential is overshadowed by a serious vulnerability. That being the sophisticated input-triggered Hardware Trojan (HT) attack, revealed in a research paper released at the end of the first quarter of 2025, titled “Input-Triggered Hardware Trojan Attack on Spiking Neural Networks” by Raptis et al. As SNNs become essential to sectors like autonomous vehicles, industrial automation, and smart infrastructure, their security requires urgent attention. This attack exposes flaws that could trigger catastrophic failures—robotic arm malfunctions in factories, sensor errors in self-driving cars, or security breaches in AIoT devices—incurring monetary costs projected to exceed $10 trillion annually for cybersecurity incidents and social consequences like diminished public trust and compromised safety. This article examines the mechanics of this stealthy attack, its implementation details, defensive countermeasures, integration with cybersecurity frameworks, future research directions, and the critical need to strengthen neuromorphic systems against such threats by bad actors.
The Essence of Spiking Neural Networks
In contrast to conventional Artificial Neural Networks (ANNs) that process continuous data, SNNs encode information in the timing or frequency of discrete spikes—short bursts of activity, similar to on/off signals, that neurons use to communicate. This event-driven approach enables real-time, low-latency inference with significantly reduced energy consumption, while also supporting solid temporal data processing and closer alignment with biological neural systems. These qualities establish SNNs as a foundation for next-generation AI hardware, supported by platforms like Intel’s Loihi, SpiNNaker, and the Nengo framework. These platforms facilitate development and deployment in applications ranging from real-time sensory processing to cognitive computing, with ongoing research advancing specialized neuromorphic silicon. However, the security landscape for SNNs remains largely uncharted territory compared to ANNs, where threats like adversarial attacks, backdoors, and side-channel exploits are well-studied, leaving SNNs exposed as their adoption grows.
The Hardware Trojan Attack: A Stealthy Threat
The Hardware Trojan (HT) attack, detailed by Raptis et al., targets a single neuron—a basic processing unit in the network, similar to a node that handles incoming signals—within an SNN, embedding trigger and payload mechanisms (the part of malware that performs a malicious action) within its circuitry. A carefully crafted input spike pattern serves as the trigger, prompting the targeted neuron to produce an anomalous spike sequence that activates the HT, forcing the neuron into permanent saturation. Saturation occurs when the neuron continuously fires spikes without stopping, overwhelming the network. This flood of spikes cascades through the network, corrupting outputs and causing mispredictions, effectively creating a denial-of-service condition that disrupts system functionality. Beyond the Machine Learning as a Service (MLaaS) scenario, where a client relies on a third-party provider for training, HTs could also emerge through malicious IP cores—pre-designed hardware components—integrated during neuromorphic hardware manufacturing or through supply chain vulnerabilities, expanding the threat landscape.
The attack begins with neuron selection, where attackers conduct fault injection simulations to pinpoint critical neurons in dense hidden layers—internal network components that process data between input and output—to minimize detection risks. Saturated neuron faults, which cause continuous spiking, are prioritized for their severe impact. Simulations on NMNIST, IBM DVS128 Gesture, and SHD datasets—standard benchmarks for testing SNN performance—reveal that saturated faults consistently dominate, with accuracy drops reaching 89.29% in NMNIST’s fourth layer, 77.27% in IBM’s third layer, and 72.08% in SHD’s fourth layer. For trigger design, attackers use gradient back-propagation with Gumbel-Softmax and Straight Through Estimator techniques—optimization methods to refine the input pattern—to craft an input spike pattern that elicits a rare spike sequence, such as “1010101010” for the IBM SNN. This sequence is verified to be absent in normal operations, ensuring the HT remains dormant until deliberately activated. The IBM SNN’s 15 ms trigger, generated in roughly two minutes, balances stealth and reliability. Short triggers reduce detectability but risk unreliable activation, while longer ones may arouse suspicion, complicating detection efforts. Attackers might empirically test various input patterns on the target SNN to identify the shortest reliable trigger window for their specific HT. Upon trigger detection, the HT induces neuron saturation, disrupting network decisions. Its localized design and minimal footprint make it nearly undetectable, as demonstrated in the IBM SNN, where post-activation spiking shifted a correct classification (left arm clockwise gesture) to an erroneous one (right hand wave gesture).
The term “trigger length ≤10” refers to the duration of the input spike pattern, measured in time steps, needed to activate the HT. In SNNs, time steps are discrete intervals, often milliseconds, during which spikes can occur. A trigger length of up to 10 time steps means the pattern consists of a sequence of spikes spread over 10 or fewer intervals. For example, a 10-time-step trigger might be a specific on/off spike pattern, like “1010101010,” delivered over 10 milliseconds. This short duration makes the trigger hard to detect, as it blends with normal network activity, but it must be precise to activate the HT. The challenge for attackers is ensuring the pattern is unique enough to avoid accidental activation during normal operation, while defenders struggle to identify such brief, specific patterns among millions of possible inputs.
In the MLaaS scenario, a client outsources SNN training to a neuromorphic system provider, who, as the adversary, accesses the SNN architecture and dataset, embedding the HT during hardware design and mapping a critical neuron to it via a tampered compiler—a software tool that translates code into hardware instructions. The client receives the compromised accelerator, unaware of its latent vulnerability, which can be exploited for sabotage, industrial espionage, or unauthorized control.
Simulation and Hardware Insights
The attack’s effectiveness was validated through simulations on NMNIST, IBM DVS128 Gesture, and SHD benchmarks, covering handwritten digits, gestures, and spoken digits, respectively, using the SLAYER framework, a software tool for SNN simulation. Fault injection experiments confirmed the dominance of saturated neuron faults, with NMNIST reporting 1598 critical saturated faults versus 192 benign ones, and SHD showing 404 critical saturated faults with none benign. Hardware implementations highlight its stealth. In analog designs, a switch in an Integrate & Fire neuron—a model mimicking biological neuron behavior—short-circuits a transistor, causing constant capacitor charging and saturation with negligible overhead. In digital designs, multiplexers in a neuromorphic core, controlled by a Finite State Machine—a control unit managing state transitions—force fake spike emissions, compatible with modern accelerators. On a Zynq UltraScale+ MPSoC ZCU104 FPGA—a programmable hardware platform—for card symbol recognition, the HT reduced accuracy from 85% to 25%, with a mere 0.138% increase in Look-Up Tables (LUTs, basic FPGA building blocks) and 0.028% power overhead, skewing outputs toward one class (Hearts).
Defensive Strategies Against the Threat
Defending against this HT poses significant challenges, as the defender possesses the SNN model, dataset, and potentially compromised hardware but lacks knowledge of the trigger. Countermeasures fall into generic and SNN-specific categories, each grappling with the asynchronous nature of SNNs. Reverse engineering involves de-packaging and imaging the chip to extract its layout, potentially revealing the Trojan neuron’s altered circuitry within SNNs’ modular designs. This process, however, is destructive, costly, and time-consuming, and the asynchronous spiking of SNNs complicates anomaly detection. Attackers may camouflage the HT across all cores, activating it only in the Trojan’s core, further evading detection.
Logic testing through spiking-domain Automated Test Pattern Generation (ATPG) tools could generate spatio-temporal inputs to activate Trojans. The vast search space—approximately 18.33 million inputs for NMNIST with 1790 neurons and a trigger length of up to 10 time steps—renders exhaustive testing impractical, requiring statistical methods and fault injection to prioritize critical neurons. Challenges include modeling rare spike patterns and optimizing test efficiency, with neural network-based pattern generation offering a potential solution. Statistical side-channel fingerprinting uses physical measurements, such as power transients or spike timing variations, to distinguish HT-infected chips, but it requires a trusted model, unavailable here, and the HT’s minimal footprint blends with noise in SNNs’ sparse firing patterns. Non-destructive side-channel analysis, including optical circuit analysis, electromagnetic emanations, thermal mapping, backscattering, or laser probing, can detect the always-on trigger checker’s activity against sparse neuron firing, with success hinging on isolating subtle HT signals.
SNN-specific defenses include real-time neuron monitoring to detect saturation, halting applications to prevent errors. Tracking spike counts at the feature map level—a group of neurons processing related data—and feeding them into a classifier trained to identify anomalies is one approach, but SNN hardware often lacks internal spike recording. Hardware modifications, like dedicated spike counters, could enable monitoring but increase power and area overhead, presenting trade-offs. Attackers might manipulate the Trojan neuron’s output, necessitating adaptive classifiers. Input filters could screen outlier triggers, distinct from typical spike patterns, building on noise-reduction or adversarial attack detection methods. Designing filters that avoid blocking legitimate but rare spike patterns is challenging, potentially addressable through bio-inspired mechanisms mimicking neural adaptation. Probabilistic defenses, using statistical methods to identify suspicious activity with confidence levels, provide a practical alternative to deterministic detection, leveraging SNNs’ variability. Runtime attestation, verifying hardware and software integrity during operation, could further bolster security. A layered defense, combining neuron monitoring, input filtering, probabilistic detection, and side-channel analysis, offers the most robust protection, as no single countermeasure fully addresses the HT’s stealth.
Integration with Cybersecurity Frameworks
Deploying defenses against HT attacks on SNNs requires alignment with established cybersecurity frameworks to ensure comprehensive protection. The NIST Cybersecurity Framework’s Identify, Protect, Detect, Respond, and Recover functions guide organizations in assessing SNN vulnerabilities, implementing safeguards, detecting anomalies, mitigating attacks, and restoring system integrity. For instance, under the ‘Protect’ function, implementing robust input filters in SNN hardware directly safeguards assets against potential HT activation. ISO 27001’s risk management approach supports regular security assessments of neuromorphic hardware supply chains and MLaaS providers, integrating HT countermeasures into information security management systems. The CIS Controls, emphasizing hardware inventory and secure configuration, ensure neuromorphic devices are monitored for unauthorized modifications. COBIT’s governance framework aligns SNN security with organizational objectives, ensuring stakeholder accountability in deploying countermeasures like runtime attestation. The MITRE ATT&CK framework maps HT tactics, such as supply chain compromise or hardware tampering, to develop targeted detection strategies, including side-channel analysis. Integrating these frameworks embeds SNN-specific countermeasures within broader cybersecurity practices, enhancing resilience.
Future Research Directions
Addressing the HT attack demands focused research to develop effective defenses and secure SNN architectures. Key questions include: How can spiking-domain ATPG tools be optimized for efficiency, possibly through machine learning to predict trigger patterns? What architectures enable robust input filters in SNN hardware, balancing sensitivity and specificity? Can bio-inspired anomaly detection, drawing from neural adaptation or inhibition, enhance monitoring? How can provably secure SNN architectures be designed, ensuring resilience against HTs? What are the trade-offs between security, performance, and energy efficiency in SNNs, and how can they be quantified? Research should explore integrating probabilistic defenses and runtime attestation, alongside developing standardized security benchmarks and evaluation metrics tailored for neuromorphic systems to assess countermeasures systematically. Dealing with these complex challenges will require stringent interdisciplinary collaboration among neuromorphic engineers, cybersecurity experts, and hardware security researchers.
Conclusion
The input-triggered HT attack, meticulously detailed by Raptis et al., poses a formidable threat to neuromorphic computing, exploiting SNNs’ spike-based dynamics to inflict severe disruptions with minimal footprint. Beyond safety-critical systems like autonomous vehicles and industrial robots, compromised SNNs could jeopardize privacy-sensitive applications such as biometric authentication, destabilize financial systems like high-frequency trading, and disrupt AI-driven infrastructure like smart grids. The economic impact of such breaches could align with global cybersecurity incident costs, projected to surpass $10 trillion annually by 2025, while social repercussions—waning public trust, endangered safety, and interrupted critical services—could prove equally devastating. Simulations and FPGA deployments underscore the attack’s potency, with accuracy drops up to 60% and overheads as low as 0.028% in power. Unchecked, these vulnerabilities threaten to erode confidence in SNNs’ critical applications. The research community, hardware developers, and policymakers must respond decisively, advancing spiking-domain ATPG tools, perfecting input filters, embedding real-time monitoring, and aligning defenses with frameworks like NIST, ISO 27001, and MITRE ATT&CK. Failure to act could derail SNN adoption, but swift, collaborative measures can build a fortified neuromorphic ecosystem, unlocking its revolutionary potential.
Citation
S. Raptis, P. Kling, I. Kaskampas, I. Alouani, and H.-G. Stratigopoulos, “Input-Triggered Hardware Trojan Attack on Spiking Neural Networks,” arXiv:2503.21793 [cs.NE], 2025. Available: https://doi.org/10.48550/arXiv.2503.21793
