BadSNN: Backdoor Attacks on Spiking Neural Networks via Adversarial Spiking Neuron DOI: XXXXXXX.XXXXXXX Conference: Make sure to enter the correct conference title from your rights confirmation email; June 03–05, 2018; Woodstock, NY Abdullah Arafat Miah, Kevin Vu, Yu Bi Abstract . Spiking Neural Networks (SNNs) are energy-efficient counterparts of Deep Neural Networks (DNNs) with high biological plausibility, as information is transmitted through temporal spiking patterns. The core element of an SNN is the spiking neuron, which converts input data into spikes following the Leaky Integrate-and-Fire (LIF) neuron model. This model includes several important hyperparameters, such as the membrane potential threshold and membrane time constant. Both the DNNs and SNNs have proven to be exploitable by backdoor attacks, where an adversary can poison the training dataset with malicious triggers and force the model to behave in an attacker-defined manner. Yet, how an adversary can exploit the unique characteristics of SNNs for backdoor attacks remains underexplored. In this paper, we propose BadSNN , a novel backdoor attack on spiking neural networks that exploits hyperparameter variations of spiking neurons to inject backdoor behavior into the model. We further propose a trigger optimization process to achieve better attack performance while making trigger patterns less perceptible. BadSNN demonstrates superior attack performance on various datasets and architectures, as well as compared with state-of-the-art data poisoning-based backdoor attacks and robustness against common backdoor mitigation techniques. Codes can be found at https://github.com/SiSL-URI/BadSNN . 1. Introduction Deep Neural Networks (DNNs) have demonstrated significant performance across tasks ranging from computer vision to natural language understanding. To increase the performance of DNNs, models are becoming increasingly complex with large numbers of learnable weights and other parameters, consuming substantial energy for both training and inference ( 5 ) . To make models more energy-efficient and hardware-friendly, Spiking Neural Networks (SNNs) emerge as a promising alternative. SNNs operate with event-driven data similar to Recurrent Neural Networks (RNNs), with information flowing through the model via discrete spikes rather than continuous values, making them energy-efficient and well-suited for edge devices ( 20 ; 9 ; 26 ; 6 ) . Like DNNs, SNNs are also vulnerable to backdoor attacks ( 10 ) . In a backdoor attack, the attacker is a malicious trainer or dataset provider who poisons the training dataset with triggers and forces the model to learn the association between a trigger and a target label. During inference, when the victim uses the backdoored model, the adversary can control the model’s output by injecting the trigger into clean inputs. While backdoor attacks have been extensively studied in the DNN domain, SNNs’ vulnerabilities to backdoor attacks remain largely underexplored. In terms of backdoor attacks on SNNs, most recent works primarily focus on neuromorphic data manipulation. Neuromorphic data is event-based data with a temporal dimension, where semantic information is represented through two different polarities (0/1). In Sneaky Spikes ( 1 ) , triggers are replicated from the BadNet ( 10 ) attack and adapted for time-encoded and spike-encoded versions suitable for neuromorphic data. Because neuromorphic sensors such as DVS cameras naturally emit asynchronous spikes in response to changes in light intensity ( 16 ) , physical triggers can take the form of flashes, strobes, or patterned bursts of light, which seamlessly blend with normal scene dynamics ( 24 ) . However, this attack paradigm primarily focuses on neuromorphic data manipulation rather than exploiting vulnerabilities inherent to the SNN model itself. The unique characteristic of SNNs is that they contain spiking neurons ( 7 ) , which convert input analog data into spike trains that flow through the network’s layers. To address this research gap and understand backdoor attacks from the perspective of SNNs’ architectural uniqueness, we investigate the following research question in this paper: Can an attacker exploit the spiking neurons of SNNs to embed a backdoor attack? To answer this question, we propose BadSNN , a novel backdoor attack on spiking neural networks that exploits the sensitivity of SNNs to the hyperparameters of spiking neurons. Instead of traditional trigger poisoning, we employ malicious spike poisoning by tuning the hyperparameters of spiking neurons during training. We also propose a trigger optimization process to activate the backdoor during inference. Our attack targets both static images and neuromorphic data. The attack overview of the proposed BadSNN is given at 1 . Our contributions are as follows: • We study the vulnerability of SNNs to the hyperparameters of spiking neurons and the number of spikes generated for a sample by these spiking neurons. • We propose BadSNN , a novel backdoor attack on spiking neural networks through malicious spike poisoning by tuning the hyperparameters of spiking neurons during training. • We propose a trigger optimization process to generate minimally perceptible trigger perturbations that activate backdoor behavior during inference. • Through extensive experiments across four datasets and three architectures, we demonstrate the effectiveness of the proposed attack and its robustness against state-of-the-art backdoor mitigation techniques. 2. Related works Backdoor attacks in deep learning have been thoroughly studied. For example, BadNets ( 10 ) demonstrated that injecting poisoned samples with a static trigger can reliably cause targeted misclassification. TrojanNN ( 18 ) and WaNet ( 27 ) extended this approach by embedding subtler, more stealthy triggers. These works established that poisoning during training poses a severe threat even when the attacker controls only a small portion of the dataset. In response, a wide range of defenses have been proposed, such as STRIP ( 8 ) , ANP ( 30 ) , and TSBD ( 17 ) . Backdoor attacks on SNNs are relatively recent but are rapidly gaining attention. One important study, the Sneaky Spikes framework ( 2 ) , showed that injecting a small fraction of poisoned temporal event bursts into training data can embed highly effective backdoors in surrogate-trained SNNs. Beyond digital poisoning, physical neuromorphic backdoors exploit the properties of event-based sensors. Flashy Backdoor ( 24 ) demonstrated that real-world DVS recordings can be compromised with timed light flashes or strobing patterns that blend naturally into the event stream. Such physical triggers remain effective under varying lighting and motion conditions, underscoring the real-world risks associated with neuromorphic sensing. Other works show that the sparseness of spiking activity and conditional firing dynamics make backdoors resistant to traditional defense strategies. Data-poisoning attacks targeting supervised SNN learning have been shown to persist even after fine-tuning or pruning ( 12 ) . However, existing backdoor attacks cannot be easily adapted to static images because they primarily focus on exploiting the temporal dimension of neuromorphic data. 3. Methodology Figure 1 . Overview of the proposed BadSNN . 3.1. Threat Model We adopt the threat model conventionally used in state-of-the-art backdoor attacks ( 11 ; 22 ; 4 ) . The adversary is assumed to have white-box access to the victim model and full control over the training process. Their objective is to maximize the attack success rate while preserving the model’s clean utility. In contrast to conventional approaches that perform data poisoning using mislabeled samples, the adversary in our setting manipulates the hyperparameters of spiking neurons during training to embed the backdoor. Furthermore, unlike traditional methods that predefine the trigger function prior to backdoor training, the attacker constructs and optimizes the trigger function after the training phase. 3.2. Preliminaries The spiking neural network (SNN) is the counterpart of conventional deep neural networks, where the core unit is the spiking neuron, which converts input data into spike trains to mimic biologically plausible neurons. The most popular model for simulating biological neurons in SNNs is the Leaky Integrate-and-Fire (LIF) model ( 19 ) . LIF neurons take inputs from one layer of an SNN model and fire a spike to the next layer when the membrane potential of the neurons exceeds a threshold. The working principle of an LIF neuron can be described by Equation 1 . (1) \displaystyle\tau\frac{dV(t)}{dt} \displaystyle=-[V(t)-V_{rest}]+RI(t) \displaystyle S(t) \displaystyle=\begin{cases}1,&\text{if }V(t)\geq V_{thr}\\ 0,&\text{if }V(t)1 ) consistently generates a larger number of spikes compared to the original image ( q=1 ), causing the SNN to treat the transformed input as out-of-distribution data, as evidenced in both Figure 2(a) and Figure 2(b) . Remark 1. This phenomenon suggests that there exists a feature space for a given SNN where input samples generate elevated spike counts and are subsequently considered as out-of-distribution. If the spiking neuron hyperparameters can be tuned in a way that the model exhibits a bias toward a target label for these out-of-distribution samples, nonlinear transformations on input samples can be leveraged to launch a backdoor attack. 3.3. Proposed Attack Inspired by Remark 1, we propose a novel backdoor attack scheme on spiking neural networks, namely BadSNN , where we deviate from the conventional poisoning-based backdoor attacks. Instead, we follow a variable LIF hyperparameter tuning approach to embed backdoor behavior in the model. The affected SNN treats samples that generate spikes outside the normal spike range as in-distribution data belonging to the target label. We refer this method as malicious spike poisoning. After backdoor training, we propose a trigger optimization approach, where we employ a trigger surrogate model that generates trigger perturbations to fool the model into predicting its input as the target label. 3.3.1. Backdoor Training Consider a spiking neural network ( F ) consisting of spiking neurons \mathcal{S}(V_{\text{thr}},\tau) following the LIF model as described in Equation 1 , with a fixed number of time steps T . Let D=\{(\boldsymbol{x}_{i},y_{i})\}_{i=1}^{N} denote the training set containing N samples, where \boldsymbol{x}_{i}\in\mathcal{X} represents the input sample space and y_{i}\in\mathcal{Y} represents the output classification space. The network F is trained on D to learn the mapping F_{\theta}:\mathcal{X}\to\mathcal{Y} , where \theta denotes the learnable parameters (weights) of F . To facilitate backdoor training, we partition the training set into three subsets. Let y_{t} denote the target label, and let D_{n} and D_{t} represent the subsets of D corresponding to non-target and target label classes, respectively. We further partition D_{t} into D_{t}^{c} and D_{t}^{p} , where the poisoning ratio is defined as P=\frac{|D_{t}^{p}|}{|D|} . We define nominal hyperparameters of \mathcal{S} as V_{\text{thr}}^{n} and \tau^{n} , and malicious hyperparameters as V_{\text{thr}}^{t} and \tau^{t} . During backdoor training, we employ two spiking neuron configurations: \mathcal{S}_{n}=\mathcal{S}(V_{\text{thr}}^{n},\tau^{n}) and \mathcal{S}_{t}=\mathcal{S}(V_{\text{thr}}^{t},\tau^{t}) to represent the nominal and malicious spike generation configurations, respectively. The backdoor training objective of minimizing the backdoor loss \mathcal{L_{B}} is formalized in Equation 2 , where \theta_{c} and \theta_{b} denote the clean and backdoor weights, respectively. (2) \displaystyle\arg\min_{\theta=\theta_{c}\cup\theta_{b}}\Big[\underbrace{\sum_{D_{n}\cup D_{t}^{c}}\mathcal{L}(F(x_{i};\theta_{c};\mathcal{S}_{n}),y_{i})}_{\text{Nominal Spikes Learning}}+\underbrace{\sum_{D_{t}^{p}}\left[\mathcal{L}(F(x_{i};\theta_{c};\mathcal{S}_{n}),y_{i})+\mathcal{L}(F(x_{i};\theta_{b};\mathcal{S}_{t}),y_{i})\right]}_{\text{Dual Spikes Learning}}\Big] The dual spike learning methodology enforces a subset of samples from the target label class to be trained with both \mathcal{S}_{n} and \mathcal{S}_{t} , enabling the model to learn the distinction between nominal and malicious spikes. Notably, we only tune the spiking neuron’s hyperparameters without adding any trigger function to generate poisoned samples during backdoor training. When selecting malicious hyperparameters V_{\text{thr}}^{t} and \tau^{t} , the adversary must satisfy two criterion: i) With malicious hyperparameters, the SNN expects to regard in-distribution data as out-of-distribution (i.e., exhibiting low accuracy), and ii) Malicious hyperparameters need to be configured distant from the nominal hyperparameters preventing their interference with the SNN’s clean model performance. 3.3.2. Trigger Optimization Based on the previous analysis, we observe that there exist nonlinear transformations that elevate spike activity and deceive the model into associating these transformed images with the target label. This occurs because the model has become trained biasing toward the target label for certain spike patterns that deviate from the nominal range. We initialize our trigger function ( \mathcal{T}_{p} ) with the nonlinear power transformation defined in Equation 3 , where \mathcal{D}(\boldsymbol{x}_{\text{norm}})=\boldsymbol{x}_{\text{norm}}\odot\boldsymbol{\sigma}+\boldsymbol{\mu} , with \boldsymbol{\mu} and \boldsymbol{\sigma} representing the mean and standard deviation of the normalization process, respectively. (3) \mathcal{T}_{p}(\boldsymbol{x}_{\text{norm}})=[\mathcal{D}(\boldsymbol{x}_{\text{norm}})]^{q} However, \mathcal{T}_{p} has two major limitations: (1) the perturbations generated by this transformation may compromise the semantic information of the input samples, and (2) the perturbations may be perceptible to human observers due to their noticeable differences from the original images. To address these limitations, we propose a trigger optimization process to generate minimally perceptible perturbations that can fool the classifier toward the target label. Let \mathcal{T}_{o} denote a conditional image transformation function with learnable parameters \theta_{t} . After training, \mathcal{T}_{o} should generate trigger perturbations that are less perceptible than those produced by \mathcal{T}_{p} while offering stronger attack performance. To solve this complex optimization problem, we leverage the trained backdoor SNN to search for minimal perturbations for each training sample, which \mathcal{T}_{o} will subsequently learn to generate. Given a training sample \boldsymbol{x} , we use the backdoor SNN to generate adversarial examples by adding imperceptible noise that pushes the sample beyond its original decision boundary. Less intensive nonlinear transformations are expected to shift predictions toward the target label for adversarial examples, since samples with adversarial perturbation already lie outside their original decision boundary. Let \boldsymbol{\delta}_{\text{DF}} denote an adversarial example generator following the DeepFool algorithm ( 21 ) . We perform an adaptive blending operation to obtain a minimally transformed image \boldsymbol{x}^{\text{blend}} that will be classified as the target label by the backdoor SNN. The adaptive blending strategy is formalized in Equation 4 , where \alpha represents an adaptive blending ratio determined through grid search over k candidates. (4) \displaystyle\boldsymbol{x}^{\text{blend}} \displaystyle=(1-\alpha)\cdot|\boldsymbol{x}-\mathcal{T}_{p}(\boldsymbol{x})|+\alpha\cdot(\boldsymbol{x}+\boldsymbol{\delta}_{\text{DF}}(\boldsymbol{x})) \displaystyle\Delta_{\boldsymbol{x}} \displaystyle=|\boldsymbol{x}-\boldsymbol{x}^{\text{blend}}| For a given \boldsymbol{x} , \mathcal{T}_{o} is trained to generate \Delta_{\boldsymbol{x}} . The total training loss \mathcal{L}_{\text{total}} of \mathcal{T}_{o} is a weighted combination of three learning objectives given in Equation 5 : (5) \arg\min_{\theta_{t}}\mathcal{L}_{\text{total}}=\lambda_{1}\mathcal{L}_{\text{sim}}+\lambda_{2}\mathcal{L}_{\text{adv}}+\lambda_{3}\mathcal{L}_{\text{wmse}} Here, \mathcal{L}_{\text{sim}} corresponds to the cosine similarity loss, which enforces structural alignment between the generated perturbation and the target perturbation; \mathcal{L}_{\text{adv}} is the adversarial loss function that ensures the perturbed image is successfully misclassified to the target label; and \mathcal{L}_{\text{wmse}} is the weighted mean squared error (MSE) loss that matches the magnitude and spatial distribution of the generated perturbation with the target perturbation. The weight coefficients \lambda_{1},\lambda_{2},\lambda_{3} are set to 1.0, 0.1, and 1.0, respectively. The formulations of these loss components are described in Equation 6 , where \langle\cdot,\cdot\rangle denotes the inner product, \text{CE}(\cdot,\cdot) is the cross-entropy loss, and C , H , W are the channel, height, and width dimensions of the input samples, respectively. We utilize the U-Net architecture ( 25 ) as our trigger model \mathcal{T}_{o} . (6) \displaystyle\mathcal{L}_{\text{sim}} \displaystyle=1-\frac{\langle\mathcal{T}_{o}(\boldsymbol{x},y_{t};\theta_{t}),\Delta_{\boldsymbol{x}}\rangle}{\|\mathcal{T}_{o}(\boldsymbol{x},y_{t};\theta_{t})\|_{2}\|\Delta_{\boldsymbol{x}}\|_{2}} \displaystyle\mathcal{L}_{\text{adv}} \displaystyle=\text{CE}\left(F_{\theta}(\boldsymbol{x}+\mathcal{T}_{o}(\boldsymbol{x},y_{t};\theta_{t});\mathcal{S}_{n}),y_{t}\right) \displaystyle\mathcal{L}_{\text{wmse}} \displaystyle=\frac{1}{C\cdot H\cdot W}\sum_{c,h,w}w_{c,h,w}\cdot\left(\mathcal{T}_{o}(\boldsymbol{x},y_{t};\theta_{t})_{c,h,w}-\Delta_{\boldsymbol{x},c,h,w}\right)^{2} 3.3.3. Extension to Neuromorphic Data Neuromorphic data is event-based data recorded using neuromorphic hardware, consisting of discrete spikes rather than the continuous analog values of static images. Therefore, our proposed trigger optimization approach cannot be directly applied to neuromorphic data. However, given the Remark 1, BadSNN can remain true for neuromorphic data in the case that if we apply a transformation function that elevates the number of spikes, the model will classify the input to the target label. We propose a trigger function \mathcal{T}_{s} that introduces temporally-varying random perturbations to the spike frames, as illustrated in Equation 7 . Here, \boldsymbol{\epsilon} is a random perturbation tensor with elements drawn from a uniform distribution \mathcal{U}(-\beta,\beta) , where \beta controls the trigger intensity. In our experiments, we set \beta=0.03 . The \text{clip}(\cdot,0,1) operation ensures the perturbed data remains within valid spike frame boundaries. As this transformation introduces random spikes into the input, the total spike activity generated by the transformed data exceeds the nominal range, thereby activating the backdoor. (7) \mathcal{T}_{s}(\boldsymbol{x};\beta)=\text{clip}(\boldsymbol{x}+\boldsymbol{\epsilon},0,1) 3.3.4. Inference During inference with the backdoored SNN, we can activate the backdoor by applying either \mathcal{T}_{p} or \mathcal{T}_{o} for static images, and \mathcal{T}_{s} for neuromorphic data. However, a critical question arises: what should be the hyperparameters of the spiking neurons ( \mathcal{S} )? If we use nominal hyperparameters ( V_{\text{thr}}^{n} and \tau^{n} ), the clean task performance will be higher but attack effectiveness will be lower. Conversely, if we use malicious hyperparameters ( V_{\text{thr}}^{t} and \tau^{t} ), the attack effectiveness will be highest but the clean task performance will be compromised. Therefore, the adversary must choose attack hyperparameters ( V_{\text{thr}}^{a} and \tau^{a} ) that lie between the nominal and malicious hyperparameters and satisfy the conditions in Equation 8 , where y_{g} denotes the ground truth label of input sample \boldsymbol{x} and \mathcal{T}\in\{\mathcal{T}_{p},\mathcal{T}_{o},\mathcal{T}_{s}\} . (8) \displaystyle F_{\theta}(\boldsymbol{x},\mathcal{S}(V_{\text{thr}}^{a},\tau^{a})) \displaystyle=y_{g} \displaystyle F_{\theta}(\boldsymbol{x}+\mathcal{T}(\boldsymbol{x}),\mathcal{S}(V_{\text{thr}}^{a},\tau^{a})) \displaystyle=y_{t} 4. Experiments 4.1. Experimental Settings To investigate the effectiveness of the proposed BadSNN , we design our experiments by incorporating four popular datasets consisting of static images and neuromorphic data: CIFAR-10 ( 13 ) , GTSRB ( 28 ) , CIFAR-100 ( 13 ) , and N-MNIST ( 23 ) . We train spiking ResNet-19 ( 15 ) to classify CIFAR-10 classes, spiking VGG-16 ( 15 ) to classify GTSRB and CIFAR-100 datasets, and N-MNIST-Net ( 1 ) (a two-convolutional and fully connected layer architecture with spiking neurons) to classify the neuromorphic N-MNIST dataset. We use a fixed timesteps 4 for spiking ResNet-19 and VGG-16. All the spiking neurons in our experiments employ the LIF neuron model. We also compare our proposed BadSNN with four state-of-the-art conventional backdoor attacks: BadNet ( 10 ) , Blended Attack ( 3 ) , WaNet ( 22 ) , and Clean Label Attack (CL) ( 29 ) . Additionally, we evaluate five state-of-the-art backdoor defense methods: Fine-Tuning, CLP ( 31 ) , ANP ( 30 ) , TSBD ( 17 ) , and NAD ( 14 ) . Four evaluation metrics are used as: (1) Clean CA: the accuracy of the clean task for clean models, (2) Base CA: the accuracy of the clean task for the backdoor model under nominal hyperparameter configurations ( V_{\text{thr}}=1.0 , \tau=0.05 ) of spiking neurons, (3) CA: the accuracy of the clean task for the backdoor model under attack hyperparameter configurations of spiking neurons, and (4) Attack Success Rate (ASR): the accuracy of how many samples are predicted toward the target label when triggered. Besides, two types of ASR are evaluated for BadSNN : ASR_{p} illustrates the ASR when triggered with \mathcal{T}_{p} or \mathcal{T}_{s} , while ASR_{o} describes the ASR when triggered with \mathcal{T}_{0} . 4.2. Attack Effectiveness To demonstrate the effectiveness of BadSNN , we summarize the results for different datasets and models when they are trained with given malicious hyperparameters ( V_{\text{thr}}^{t} and \tau^{t} ) and evaluated under different attack hyperparameters ( V_{\text{thr}}^{a} and \tau^{a} ) in Table 1 . An acceptable accuracy degradation of Base CA from Clean CA can be observed across all datasets. The CA and ASR vary greatly for different V_{\text{thr}}^{a} and \tau^{a} . For most datasets, we can converge to the highest CA at V_{\text{thr}}^{a}=1.10 and \tau^{a}=0.05 , where ASR_{o} of +80% for CIFAR-10, +75% for GTSRB and +55% for CIFAR-100 can be achieved. Interestingly, a higher attack effectiveness can be accomplished for CIFAR-100 ( ASR_{p} = +70%) with simple power transformation. Besides, with the increase of attack hyperparameters, we observe consistent increase in both ASR_{p} and ASR_{o} yet degradations in CA. The CA degradation becomes more visible for CIFAR-10. For neuromorphic dataset N-MNIST, we observe that the Base CA is extremely close to Clean CA, while we can achieve 100% ASR for all configurations. We conclude that by deliberately selecting attack hyperparameters, high CA and ASR can be achieved for all datasets and models. Table 1 . Performance analysis of BadSNN for different datasets and models. Dataset Model Poisoning Ratio (%) Clean CA (%) V_{\text{thr}}^{t} / \tau^{t} Base CA (%) V_{\text{thr}}^{a} / \tau^{a} CA (%) / ASR_{p} (%) / ASR_{o} (%) CIFAR-10 ResNet 19 2 91.34 1.5 / 0.5 87.68 1.10 / 0.5 87.22 / 77.79 / 82.65 1.15 / 0.5 51.22 / 98.71 / 95.47 1.20 / 0.5 11.94 / 99.97 / 99.96 GTSRB VGG 16 5 96.05 1.5 / 0.8 93.02 1.10 / 0.5 92.57 / 39.81 / 75.59 1.15 / 0.5 91.43 / 54.81 / 79.75 1.20 / 0.5 87.43 / 71.92 / 85.08 CIFAR-100 VGG 16 1 71.85 1.5/ 0.5 65.19 1.10 / 0.5 60.91 / 73.88 / 57.20 1.15 / 0.5 55.04 / 82.16 / 64.28 1.20 / 0.5 44.98 / 86.19 / 72.88 N-MNIST N-MNIST Net 3 96.06 1.5/ 0.5 95.10 1.10 / 0.5 94.06 / 100 / - 1.15 / 0.5 93.04 / 100 / - 1.20 / 0.5 92.19 / 100 / - 4.3. Attack Robustness In this section, we compare our proposed BadSNN with four baseline attacks and analyze its robustness against five state-of-the-art backdoor mitigation methods summarized in Table 2 . 5% poisoning ratio is applied to all baseline attacks. To measure the ASR, we report ASR_{o} for CIFAR-10 and GTSRB, and ASR_{p} for CIFAR-100. After performing vanilla fine-tuning on all attack models, we observe that the ASR is substantially reduced for all four baseline attacks across the three datasets. In contrast, our proposed BadSNN remains effective on CIFAR-10. For GTSRB and CIFAR-100, although the ASR decreases, the clean accuracy (CA) also drops significantly. Both CLP ( 31 ) and ANP ( 30 ) are backdoor neuron pruning techniques. CLP with a fixed threshold of 3 largely shows ineffective for most attacks. For ANP, we set the perturbation budget to 0.4 and the hyperparameter \alpha = 0.5, and assume access to 5% clean test data. ANP can degrade the ASR to a meaningful extent for all baseline attacks except BadSNN . Since there is no explicit trigger to learn and both nominal and malicious spikes are learned through the dual-spike learning paradigm, backdoor neurons in BadSNN are more thoroughly blended with clean neurons, causing CLP and ANP to fail. TSBD ( 17 ) and NAD ( 14 ) are two advanced fine-tuning–based backdoor mitigation techniques. TSBD performs activeness-aware fine-tuning instead of vanilla fine-tuning, and successfully mitigates all four baseline attacks except for BadSNN which remains robust across all three datasets. NAD uses a guided fine-tuning approach through neural attention distillation, and removes backdoor effects from all four baseline attacks across all datasets except for the CIFAR-10 where BadSNN preserves its effectiveness. Because BadSNN leverages a novel malicious spike poisoning strategy rather than conventional trigger-based poisoning, it does not produce trigger-specific feature maps like other attacks, leading to the fact that fine-tuning-based defenses are ineffective against BadSNN . Table 2 . Baseline comparison and robustness analysis of BadSNN . Attacks with the highest ASR are boldfaced. Dataset Attack Before Defense CA (%) / ASR (%) Fine Tuning CA (%) / ASR (%) CLP CA (%) / ASR (%) ANP CA (%) / ASR (%) TSBD CA (%) / ASR (%) NAD CA (%) / ASR(%) CIFAR-10 BadNet 91.05 / 100 56.66 / 34.0 92.25 / 34.94 82.38 / 19.25 82.11 / 9.4 59.97 / 13.07 Blend 89.88 / 99.69 84.7 / 16.85 89.33 / 99.22 72.89 / 49.45 85.15 / 17.73 81.71 / 8.6 WaNet 88.24 / 99.58 77.76 / 22.48 86.96 / 99.01 68.43 / 25.89 87.11 / 17.31 84.83 / 15.7 CL 91.84 / 43.23 52.47 / 8.22 93.07 / 47.02 73.87 / 29.9 79.93 / 20.32 67.55 / 9.39 BadSNN 87.22 / 82.66 82.25 / 84.55 83.83 / 72.59 28.93 / 98.43 71.27 / 82.61 87.02 / 81.89 GTSRB BadNet 87.09 / 80.80 70.93 / 2.92 86.59 / 76.43 65.89 / 5.26 87.58 / 3.02 88.42 / 3.41 Blend 93.29 / 96.71 93.52 / 6.25 93.29 / 96.71 88.61 / 80.10 92.05 / 73.81 90.64 / 6.94 WaNet 95.99 / 99.78 16.53 / 2.68 95.99 / 99.83 2.14 / 0.0 93.49 / 3.00 31.94 / 2.90 CL 67.05 / 0.99 76.23 / 3.46 67.05 / 0.99 49.10 / 0.89 72.90 / 4.62 75.50 / 4.85 BadSNN 87.43 / 84.99 38.70 / 1.69 3.33 / 100.0 11.05 / 99.80 87.65 / 84.99 70.10 / 9.86 CIFAR-100 BadNet 70.49 / 99.98 9.73 / 0.51 70.13 / 98.07 1.05 / 0.0 5.48 / 0.12 10.63 / 0.08 Blend 71.08 / 98.49 11.41 / 0.0 71.13 / 90.88 1.09 / 0.0 5.18 / 2.61 11.23 / 0.05 WaNet 70.24 / 95.12 11.24 / 0.89 70.24 / 95.19 0.94 / 4.83 4.56 / 0.0 9.96 / 0.78 CL 71.76 / 2.18 6.36 / 0.12 71.93 / 2.34 0.97 / 0.0 4.78 / 2.3 9.21 / 0.01 BadSNN 61.18 / 74.23 6.27 / 16.49 66.73 / 6.66 1.07 / 100.0 2.45 / 53.09 5.9 / 7.4 4.4. Ablation Studies 4.4.1. Attack performance analysis for different V_{\text{thr}}^{t} and \tau^{t} To gain deeper insight into the selection of malicious hyperparameters during backdoor training and the choice of attack hyperparameters during inference, we train CIFAR-10 on a spiking ResNet-19 using different values of V_{\text{thr}}^{t} and \tau^{t} , and analyze the CA and ASR_{p} for varying V_{\text{thr}}^{a} and \tau^{a} in each scenario. The results are summarized as heatmaps in Figure 3 . For all experiments, we set V_{\text{thr}}^{n}=1.0 and \tau^{n}=0.5 . When V_{\text{thr}}^{t}V_{\text{thr}}^{n} with small difference, it is possible to find such a pair. Yet, because the malicious spikes are leaning towards the nominal spikes, achieving strong attack performance results in accepting a slightly lower CA. When V_{\text{thr}}^{t}=1.5 , the regions of high CA and high ASR become more visibly separated, making it easier to find a middle ground where both CA and ASR are satisfactory. Based on such analysis, we infer that malicious hyperparameters should be chosen such that V_{\text{thr}}^{t}>V_{\text{thr}}^{n} with a sufficiently large difference between them to ensure effective attack behavior without excessively degrading clean accuracy. (a) V_{\text{thr}}^{t}=0.8 , \tau^{t}=0.5 (b) V_{\text{thr}}^{t}=1.25 , \tau^{t}=0.5 (c) V_{\text{thr}}^{t}=1.5 , \tau^{t}=0.5 Figure 3 . CA/ASR heatmaps for different V_{\text{thr}}^{t} and \tau^{t} . (a) Performance for different poisoning ratios (b) Performance for different perturbation magnitudes Figure 4 . Attack effectiveness analysis for different poisoning ratios and perturbation magnitudes. 4.4.2. Attack performance for different poisoning ratios We analyze the performance of BadSNN under different poisoning ratios on CIFAR-10 using the spiking ResNet-19 model and observe the corresponding variations in CA and ASR_{p} shown in Figure 4(a) . Poison ratios of 1%, 3% and 5% present better attack performance with both high CA and ASR, while poison ratios of 2% and 4% experience significant ASR drops despite preserved clean accuracy. The above results suggest that the relationship between poisoning ratio, CA and ASR_{p} is highly non-linear orthogonal to experimental observation in state-of-the-art attacks ( 11 ; 3 ; 22 ; 29 ) . 4.4.3. Perturbation magnitude analysis We analyze the ASR_{o} of CIFAR-10 on the spiking ResNet-19 model for various perturbation magnitudes generated by \mathcal{T_{o}} presented in Figure 4(b) . We also report the L2 norm between the clean and triggered images with perturbation. It can be seen that a sharp increase in ASR_{o} , reaching 99% with a perturbation magnitude of only 2.0. However, as the perturbation magnitude continues up, the L2 norm also grows approximately linearly leading to rising sample distortion. The clean image, the triggered image obtained by adding perturbations from \mathcal{T_{o}} , and the normalized trigger perturbation are illustrated in Figure 5 . Figure 5 . Different images from CIFAR-10, GTSRB, and CIFAR-100 with their corresponding triggered versions. 4.4.4. LIF vs. PLIF All the previous experiments are based on the assumption that spiking neurons adapt the LIF model. However, recent study named Parametric LIF (PLIF) ( 7 ) adopts a learnable \tau for spiking networks. To evaluate the effectiveness of BadSNN on PLIF, we vary only V_{\text{thr}} for nominal and backdoor training, setting V_{\text{thr}}^{t}=1.5 and V_{\text{thr}}^{a}=1.15 for both LIF and PLIF models. The performance differences between LIF and PLIF are shown in Figure 6 . At V_{\text{thr}}^{a}=1.15 , LIF achieves lower CA for CIFAR-10, while PLIF maintains considerably higher CA, with both models demonstrating strong ASR_{p} . Both CA and ASR, however, are comparable between LIF and PLIF models for CIFAR-100 and GTSRB. Figure 6 . LIF vs PLIF 5. Conclusion In this paper, we propose BadSNN , a novel backdoor attack on spiking neural networks that exploits hyperparameter variations of spiking neurons to embed backdoor behavior. We further propose a trigger optimization process to enhance attack performance while maintaining imperceptibility. BadSNN offers two key advantages over conventional data poisoning-based attacks: (i) it eliminates the need for input data manipulation, providing greater stealthiness, and (ii) it demonstrates superior robustness against state-of-the-art backdoor mitigation techniques. This work motivates the development of more effective defenses for spiking neural networks.