Manuscript Offprint
arXiv:2610.32765Clean-label Poisoning Attack and Defense Game for Federated Learning in Vehicular Networks
Yalin E. Sagduyu*, Tugba Erpek*, Nathan Stephenson*, Mengran Xue†
*Nexcepta Inc., Gaithersburg, MD, USA
†RTX BBN Technologies, Cambridge, MA, USA
Abstract—This paper studies interactions between clean-label poisoning attack and defense in vehicular networks using federated learning (FL). Basic Safety Message (BSM) classification for anomaly detection is modeled as a distributed learning problem over a vehicular network with dynamic topology. As a critical threat to FL, a feature-space clean-label attack is introduced, wherein benign samples are perturbed toward malicious feature extremes, degrading class separability while preserving labels. To counter this, a feature-consistency relabeling defense is proposed to detect and relabel suspicious samples. A game-theoretic framework is developed to capture attack-defense interactions and characterize equilibrium strategies based on attack effectiveness and cost parameters. Results show that the attack scales effectively with compromised nodes, while the proposed defense keeps attack success low without degrading clean accuracy and shifts equilibrium regions toward attack-averse regimes.
Index Terms—Vehicular networks, anomaly detection, federated learning, poisoning attack, defense, game.
I. INTRODUCTION
Vehicular networks rely on continuous exchange of Basic Safety Messages (BSMs) to support situational awareness and safety-critical applications such as collision avoidance and traffic management. These messages carry time-sensitive vehicle state information, and their reliability is critical, as falsified data can lead to hazardous outcomes. Hence, accurate classification into benign and malicious messages is essential.
Centralized anomaly detection approaches struggle in vehicular networks due to data heterogeneity, privacy constraints, and dynamic topology. Federated learning (FL) enables distributed training without raw data sharing and plays a key role in enhancing vehicular security applications [1]–[5]. However, FL introduces new vulnerabilities, as compromised nodes can inject poisoned data into global model training [6]–[10], posing serious threats to vehicular networks [11], [12].
Among adversarial threats, clean-label poisoning attacks are difficult to detect, as they preserve labels and avoid obvious anomalies, evading standard validation and detection methods. We present a clean-label attack for FL that manipulates features while preserving labels to blur class boundaries and shift decisions. Attack success is evaluated by applying the same feature replacements to malicious test samples, without a learned trigger. We show that the attack propagates through FL aggregation, degrading malicious-sample detection while preserving high accuracy on clean (unperturbed) data.
To address these challenges, defense methods must go beyond conventional anomaly detection and explicitly account for feature-label consistency. To that end, we present a defense method that identifies samples whose features are statistically inconsistent with their labels and relabels suspicious samples, removing residual outliers. By combining feature-to-class distance, malicious-tail and neighborhood-label consistencies, model-loss inconsistencies, and duplicate-pattern indicators, this defense significantly reduces attack success while preserving nominal performance in FL.
Attack and defense effectiveness depends on costs, deployment decisions, and adversarial scale, leading to strategic interactions. We model these interactions as a non-cooperative game, where the attacker and defender each optimize their strategy in response to the other. The attacker trades off attack success against the cost for launching an attack, while the defender balances reduction in attack success against defense cost. We then characterize Nash equilibria for attacker and defender strategies, identify operating regions, and analyze how system parameters influence security outcomes.
The main contributions are: (i) a feature-space clean-label attack for FL in vehicular networks; (ii) a feature-consistency relabeling defense; and (iii) a game-theoretic analysis of attack-defense interactions and system-level impacts.
The remainder of the paper is organized as follows. Sec. II describes anomaly detection with FL in vehicular networks. Sec. III presents the clean-label poisoning attack. Sec. IV introduces the feature-consistency-based defense. Sec. V formulates the game and derives equilibria. Sec. VI characterizes equilibrium regions and utilities. Sec. VII concludes the paper.
A. Anomaly Detection Problem in Vehicular Networks
We consider the VeReMi extension dataset for misbehavior detection in vehicular networks [14]. The dataset consists of BSMs exchanged among vehicles in a dynamic vehicular network (VANET). Each received message is represented as a feature vector , where denotes the feature dimension of each safety-message sample. The underlying features encode kinematic states (e.g., position, velocity, acceleration), temporal consistency, and cross-vehicle plausibility metrics derived from neighboring observations.
Each sample is associated with a binary label , where denotes a benign (physically consistent) message and denotes a malicious (falsified or inconsistent) message. The learning objective is to construct a classifier
(1) that predicts the label y from x. At each node, a deep neural network is trained with d input features (up to 22), two hidden layers of sizes 128 and 32 with ReLU activations, and a 2-unit output layer, using cross-entropy loss. Malicious samples often lie in sparse or extreme feature regions yet overlap with benign ones, enabling label-preserving attacks that exploit feature correlations rather than obvious anomalies.
B. Federated Learning over Vehicular Networks
We adopt an FL framework over a set of vehicles V. Each vehicle maintains a local dataset
where is the number of samples at vehicle , is the -th feature vector, and is its label. At communication round , each node maintains a local model . The FL process consists of two steps. (i) Local Training. Each client updates its model by minimizing empirical risk:
where is a classification loss function. (ii) Graph-Constrained Aggregation. Model updates are shared over a time-varying communication graph . Each node aggregates neighbor models as
where denotes the neighbor set and are normalized weights. Federated averaging is applied over graph-induced connected components. This decentralized learning process reflects realistic vehicular constraints, including dynamic connectivity and data heterogeneity, but introduces vulnerabilities as poisoned local updates can propagate through aggregation.
III. CLEAN-LABEL POISONING ATTACK
We consider a clean-label poisoning attack in which adversarial samples retain their labels but their features are modified. Let and denote benign and malicious samples, respectively, at vehicle . The attacker selects a subset
and modifies their feature vectors while preserving labels:
For feature-space manipulation, let denote informative features selected by top SHAP scores. A target vector is built using upper-tail statistics of malicious samples:
where denotes the empirical -th quantile, i.e., the value below which a fraction of the samples lie. In numerical results, high malicious-tail quantiles (> 0.99) are used for the attack target. Each selected benign sample is modified as

Fig. 1: Attack and defense effects on FL.
The attack modifies selected features coordinate-wise. The poisoned benign feature distribution is modeled as
where denotes the original benign feature distribution, denotes the attacker-defined target feature distribution concentrated near malicious feature extremes, and is the poisoning rate, i.e., the fraction of benign samples that are poisoned. This approach reduces class separability and shifts the decision boundary. As a result, the classifier is trained on feature-manipulated benign-labeled samples that resemble malicious patterns, leading to
causing target-pattern samples to be classified as benign. Thus, the attack success probability increases. Attack success is evaluated by modifying malicious test samples using the same feature replacements, replacing selected coordinates with target values. This avoids explicit triggers and tests whether they are classified as benign.
For numerical results, we set and select from top-scoring informative features, with the subset size chosen to maximize attack success. Fig. 1 shows that clean accuracy remains nearly constant as the number of attacked nodes, , increases, indicating that the attack preserves clean accuracy while maintaining label consistency. Without defense, attack success increases significantly with more compromised nodes, demonstrating scalability in FL. Attack success is measured on malicious samples with selected features modified according to the attack. With the proposed defense, attack success remains low while preserving clean accuracy, indicating effective mitigation through improved feature-label consistency.
IV. FEATURE-RELABEL DEFENSE
To counter clean-label poisoning, we propose a feature-consistency-based relabeling defense that identifies benign-labeled samples exhibiting malicious characteristics. For feature subspace modeling, class means and coordinate-wise standard deviations are estimated as and over a selected informative feature subset capturing the most discriminative variations. A diagonal covariance approximation is adopted for efficient computation.
(i) Distance-based suspicion score is given by
where
A larger indicates that the sample is closer to the malicious distribution than to the benign distribution.
(ii) Tail-consistency score is given by
where is the set of malicious-sample values in feature dimension and the malicious quantile thresholds are .
(iii) Neighborhood consistency score is given by
and computed as the fraction of malicious labels among the K nearest neighbors of each sample (K = 11 is used in results).
(iv) Loss-based inconsistency score is given by
where is cross-entropy loss with benign label .
(v) Duplicate-pattern consistency score counts near-identical samples, as deterministic overwriting may produce repeated patterns. Thus, increases with the multiplicity of such samples in the benign-labeled set.
All suspicion scores are then combined as weighted sum:
where , , and are set in numerical results. The defense operates on benign-labeled samples and is applied once per node as a preprocessing step before federated updates. It identifies a subset of suspicious samples based on the standardized (z-score) suspicion score and threshold . In numerical results, this threshold is set to 2.25. From , a subset of highest-score samples (up to a relabeling budget) is relabeled as malicious ( ). Relabeling is performed before removal. The remaining samples are considered for removal; those exceeding a stricter threshold or within a removal budget are discarded. This procedure mitigates feature-label inconsistency by relabeling likely poisoned samples and removing extreme outliers, reducing benign contamination, improving class separability, and decreasing attack success.
V. GAME FOR ATTACK-DEFENSE INTERACTIONS
We consider a two-player normal-form game between the defender and the attacker, where the defender chooses whether to deploy protection and the attacker decides whether to attack. The number of attacked nodes, , is a fixed parameter, with corresponding to no attack.
A. Strategy Spaces
The strategy sets are given by
where D and ND denote defense and no defense, and A and NA denote attack and no attack, respectively. Action A attacks nodes. If , the action is NA.
B. Payoff Model
Let and denote the attack success probabilities under no defense and under defense, respectively. By construction, we have
i.e., defense reduces attack effectiveness as shown in Fig. 1. The attacker incurs a cost for attacking, and the defender incurs a cost for defending. Utility is defined as reward minus cost for each player. The attacker's reward is the attack success probability, while the defender's reward is the reduction in attack success probability. For , the payoff matrix is then given by
\begin{array}{c|ccc}{{{A}}}&{{{NA}}} \\{{{\hline D}}}&{{{(-r_{D}(n_{A})-c_{D},\ r_{D}(n_{A})-c_{A})}}}&{{{(-c_{D},0)}}} \\{{{ND}}}&{{{(-r_{A}(n_{A}),\ r_{A}(n_{A})-c_{A})}}}&{{{(0,0)}}} \\\end{array} \tag{19}When , the attacker does not launch an attack and the outcome reduces to for . Note that clean accuracy (evaluated on non-triggered test data) is comparable under both defense and no-defense settings as shown in Fig. 1; therefore, it is not explicitly included in the defender utility, which focuses on attack success and defense cost.
C. Best Responses
Define the benefit of defense as
The following best-response conditions hold for . The attacker prefers to attack if
The defender prefers to defend against an attack if
If attacker chooses NA, defender prefers ND for any .
D. Pure-Strategy Nash Equilibria
is a Nash equilibrium if and only if
is a Nash equilibrium if and only if
is a Nash equilibrium if and only if
For , is not a Nash equilibrium. It is a weak Nash equilibrium when and .
E. Mixed-Strategy Equilibrium
For , let denote the probability that the defender plays , and let denote the probability that the attacker plays . The defender is indifferent when
which yields
The attacker is indifferent when
which yields
In equilibrium, this indifference implies zero attacker payoff. A strict mixed equilibrium exists if and only if
When , no nodes are attacked and the attacker does not incur any attack cost. In this case, the outcome corresponds to no attack, and for , the defender does not deploy defense. Therefore, the equilibrium reduces to .
VI. GAME EQUILIBRIUM REGIONS AND UTILITIES
For given , the equilibrium structure derived in Sec. V induces a partition of the parameter space. Let
The equilibrium regions follow from the best-responses of the attacker and defender. The attacker is indifferent at
which correspond to the vertical boundaries
The defender is indifferent when
which defines a horizontal boundary. These thresholds partition the plane into four regions:
(36)
Mixed:
The equilibrium is defined by vertical boundaries , , and a horizontal boundary . The region plot is constructed by filling rectangular subsets of a bounded domain :
(37)

Fig. 2: Equilibrium regions in the plane.
where
The equilibrium exhibits a threshold structure governed by and , with boundaries at , , and . Region variations are driven by , , and , causing attack and no-attack regions to expand or contract. The mixed region arises when , where attacking is profitable without defense but not under defense, leading to randomization and zero attacker payoff. The defender's utility decreases with and is maximized in the no-attack region.
Fig. 2 illustrates this partition for , where small changes in near and cause sharp transitions. Larger raises the threshold , expanding the defense-relevant and mixed regions, corresponding to greater reduction in attack success, while the no-attack region is determined by .
The attacker and defender utilities are given by
In the mixed region, the equilibrium probabilities given in (28) and (30) imply and .
Fig. 3 shows that attacker utility is positive only in pure attack regions and zero in the mixed and regions, with the mixed region forming a zero-utility plateau. Fig. 4 shows defender utility is maximized in , independent of in , and decreasing with in and mixed regions. These confirm the threshold structure and that shifts with are driven by , , and .
For each fixed , total equilibrium areas are computed over using thresholds , , and , where

Fig. 3: Equilibrium attacker utility over the plane.

Fig. 4: Equilibrium defender utility over the plane.

Fig. 5: Equilibrium areas for attack/defense decisions.
. Pure-strategy regions contribute rectangular areas directly, while the mixed region is apportioned using equilibrium mixing probabilities. For , the equilibrium is over the full domain. Fig. 5 shows areas versus under fixed . For , areas vary with , , and . The attack and defense regions increase with , while the no-attack and no-defense regions decrease, since larger , , and expand the corresponding thresholds. Consequently, larger strengthens defense impact and shifts the system toward no-attack dominance, enabling attack-deterring equilibria.
VII. Conclusion
This paper presented a unified framework for clean-label poisoning and defense in FL used for anomaly detection in vehicular networks. The feature-space attack exploits feature overlap to remain stealthy and scalable, and is evaluated by modifying malicious samples without explicit triggers. The relabeling defense improves feature-label consistency using distance, tail, neighborhood, loss-based, and duplicate-pattern evidence. Game-theoretic analysis reveals threshold structures governing equilibria and how defense effectiveness reshapes attacker incentives. Results show reduced attack success and a shift toward no-attack equilibria, strengthening the FL security of vehicular networks under emerging threat conditions.
ACKNOWLEDGEMENTS
Research was sponsored by the Army Research Laboratory under RTX BBN Technologies, Inc. subcontract and was accomplished under Cooperative Agreement Number W911NF-24-2-0131. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Army Research Laboratory or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein.
REFERENCES
[1] A. M. Elbir, B. Soner, S. Çöleri, D. Gündüz, and M. Bennis, “Federated learning in vehicular networks,” in IEEE International Mediterranean Conference on Communications and Networking (MeditCom), 2022.
[2] J. Huang, Y. Jiang, S. Gyawali, Z. Zhou, and F. Zhong, “Semi-supervised federated learning for misbehavior detection of BSMs in vehicular networks,” in IEEE Vehicular Technology Conference (VTC), 2024.
[3] C.-K. Tham, L. Yang, A. Khanna, and B. Gera, “Federated learning for anomaly detection in vehicular networks,” in IEEE Vehicular Technology Conference (VTC), 2023.
[4] Z. Wang and T. Yan, “Federated learning-based vehicle trajectory prediction against cyberattacks,” in IEEE International Symposium on Local and Metropolitan Area Networks (LANMAN), 2023.
[5] B. Li, X. Chen, T. Zhang, H. Sun, L. Dong, B. Chen, W. Zhuang, and G. Yin, “Fed-SecTP: A federated learning-based framework for secure vehicle trajectory prediction using surrounding vehicle data,” IEEE Internet of Things Journal, 2025.
[6] V. Tolpegin, S. Truex, M. E. Gursoy, and L. Liu, “Data poisoning attacks against federated learning systems,” in European Symposium on Research in Computer Security. Springer, 2020.
[7] M. Fang, X. Cao, J. Jia, and N. Gong, “Local model poisoning attacks to Byzantine-Robust federated learning,” in USENIX Security, 2020.
[8] Z. Ma, J. Ma, Y. Miao, Y. Li, and R. H. Deng, “ShieldFL: Mitigating model poisoning attacks in privacy-preserving federated learning,” IEEE Transactions on Information Forensics and Security, 2022.
[9] Y. E. Sagduyu, T. Erpek, and Y. Shi, “Securing NextG systems against poisoning attacks on federated learning: A game-theoretic solution,” in IEEE Military Communications Conference (MILCOM), 2023.
[10] Y. E. Sagduyu, T. Erpek, and Y. Shi, “Poisoning attack and defense game for federated learning in resilient nextg networks,” Autonomous Cyber Resilience, pp. 319–346, 2026.
[11] U. Demir, Y. E. Sagduyu, T. Erpek, H. Jafari, S. Kompella, and M. Xue, “Distributed federated learning for vehicular network security: Anomaly detection benefits and multi-domain attack threats,” in ACM Workshop on Wireless Security and Machine Learning, 2025.
[12] U. Demir, T. Erpek, Y. E. Sagduyu, S. Kompella, and M. Xue, “Targeted attacks and defenses for distributed federated learning in vehicular networks,” in IEEE Military Communications Conference, 2025.
[13] G. Severi, S. Boboila, A. Oprea, J. Holodnak, K. Kratkiewicz, and J. Matterer, “Poisoning network flow classifiers,” in Annual Computer Security Applications Conference (ACSAC), 2023.
[14] J. Kamel, M. Wolf, R. W. Van Der Hei, A. Kaiser, P. Urien, and F. Kargl, “VeReMi extension: A dataset for comparable evaluation of misbehavior detection in VANETs,” in IEEE International Conference on Communications (ICC), 2020.