When Is Trust Useful? Leak-Free Evaluation of Representation- and Aggregation-Based Backdoor Defenses in Federated Intrusion DetectionWhen Does Trust Help? A Leakage-Free Evaluation of Representation- and Aggregation-Based Defenses Against Backdoors in Federated Intrusion Detection
The authors evaluate FL-IDS trust defenses, saying all methods fail under strong triggers, while RepGuard reduces ASR to 0.48 at α=0.1.
Cross-device federated learning (N=10, Dirichlet α=0.3). At most f=2 malicious clients perform sign-flipping update poisoning and table backdoor poisoning (additive trigger on the first k features, flipping triggered samples to Benign), or run adaptive attacks to make clean representations close to the global model. The honest server holds a root dataset Dr disjoint from clients and knows the upper bound f, but does not know the backdoor trigger.
- Federated intrusion detection systems are vulnerable to client data poisoning and backdoor attacks. Existing trust-score-based defenses claim backdoor robustness, but may suffer from evaluation biases such as test set leakage due to full-dataset standardization, overlap between root dataset and clients, single random seed evaluation, and known triggers, so their actual protective effect is questionable.
- The authors design an evaluation protocol that eliminates data leakage and prior-knowledge assumptions, and propose a representation-similarity-based defense method called RepGuard. The server fine-tunes a reference model on a disjoint clean root dataset, scores and aggregates clients by combining the cosine similarity of penultimate-layer feature centroids, logit similarity, and root-data accuracy, without relying on trigger information.
- In experiments on three network intrusion detection datasets, the authors report that RepGuard maintains classification utility under harsh heterogeneous settings; when trigger strength reaches 2 or above, all defenses have ASR close to 1.0; canary tests show that previously reported near-zero ASRs mainly relied on prior knowledge of triggers, and DP-SGD cannot reduce backdoor ASR.
- Experiments use only a single MLP architecture and additive triggers; trust defenses assume an independent clean root dataset and known upper bound on malicious clients; P4P reproduction did not transfer successfully, so no superiority comparison was made; other recent defenses were not reproduced; adaptive attacks do not cover dynamic or trigger-free attacks.
- Evaluated models
- RepGuardRepGuard+RepGuard-Weibull
- Benchmarks
- CSE-CIC-IDS2018NF-ToN-IoTNF-UNSW-NB15-v2
- Metrics
- macro-F1balanced accuracyaccuracybackdoor ASR(ε, δ)
The paper re-evaluates trust-based backdoor defenses in federated intrusion detection using a leak-free evaluation protocol, finding that these defenses are only effective against weak triggers; under strong triggers, the backdoor attack success rates of all methods remain close to 0.95. The protocol includes training-set-only standardization, a trusted root set disjoint from client data, paired tests with n=6 random seeds, (ε,δ) accounting via RDP, and defense-aware adaptive attackers, and is run on three datasets: CSE-CIC-IDS2018, NF-ToN-IoT, and NF-UNSW-NB15-v2. The authors' proposed representation-similarity aggregator RepGuard achieves a macro-F1 0.058 higher than FLTrust under heavy non-IID poisoning, with about 4 times smaller seed variance, and reduces backdoor attack success rate to 0.48 at Dirichlet α=0.1, compared to 0.86 for FLTrust. Trigger amplitude sweeps show that at amplitude 0.5, RepGuard's attack success rate is 0.10 and no-defense is 0.40; after amplitude reaches 2, all methods approach 1.0.
Paper analysis
What problem does this paper attempt to solve?
The authors investigate whether trust-based federated intrusion detection defenses can truly resist backdoor attacks after eliminating evaluation biases such as test set leakage and known triggers.
The core question is: after eliminating test leakage and prior assumptions, under what attack strength, heterogeneity, and malicious proportion can trust-based aggregation defenses reduce backdoor risk?
- Scenario and importance: Federated learning allows distributed network intrusion detection systems (NIDS) to train on local private traffic, but non-IID data makes the global model vulnerable to poisoning and backdoor injection by Byzantine clients. Trust-based defenses evaluate client behavior similarity using a small clean root dataset and down-weight clients, and are widely used to defend against poisoning.
- Shortcomings of existing methods: The authors state that much previous literature has evaluation biases, including test-set leakage from full-dataset standardization, overlap between root and client data, single-random-seed reporting, differential privacy clipping without reporting ε, non-adaptive attacks, and directly giving defenders prior knowledge of attacker triggers.
- Threat model:
- Attacker goal: Perform sign-flip update poisoning and tabular backdoor poisoning, flipping malicious traffic classification to Benign by adding additive triggers to the first k features.
- Attacker knowledge: In the adaptive attack setting, the attacker knows the server uses a representation filter, penalizing deviations of clean-data representations from the global model while embedding the backdoor (escape strength λ).
- Attacker capability: At most f=2 clients are Byzantine malicious out of N=10 total clients.
- Victim system: Cross-device federated learning system (N=10, Dirichlet α=0.3 non-IID data); the server is honest, holds a root dataset Dr disjoint from clients, knows the upper bound f of malicious clients, and by default does not know the backdoor trigger.
- Core observation and proposed solution: The authors believe that the robustness demonstrated by previous trust defenses largely stems from evaluation flaws and trigger priors. The paper proposes a leak-free, multi-random-seed statistical testing evaluation protocol and a representation-similarity-based trust aggregator called RepGuard.
What related research exists?
The paper reviews classic Byzantine-robust aggregation, deep learning FL-IDS trust defenses, and backdoor attack research, pointing out that benchmarks suffer from leakage and non-standard evaluation issues.
Classic Byzantine-robust aggregation
- Krum (Blanchard et al., 2017): Selects the model update closest to its neighbors as the aggregation result, designed against general poisoning attacks.
- Trimmed-Mean (Yin et al., 2018): Removes extreme parameter values coordinate-wise and takes the mean, providing statistically optimal rates, mainly against non-targeted poisoning.
- FoolsGold (Fung et al., 2020): Penalizes updates from Sybil clients with high behavioral similarity via cosine similarity.
- FLTrust (Cao et al., 2021): Uses a small clean root dataset on the server to guide trust, weighting clients via cosine alignment; the authors note these classic methods cannot defend against targeted backdoors.
Deep learning-based FL-IDS defenses
- WeiDetect (Sameera et al., 2025): Fits a Weibull distribution on validation scores to detect poisoned clients.
- P4P (Thai et al., 2026): Combines probe-response cosine similarity, L2-norm filtering, ensemble anomaly detection, and temporal suspicion scores; the authors state its code is not open-sourced and reimplementation is difficult to transfer to highly heterogeneous multi-class settings.
- Representation and structure adjustment defenses (Zukaib et al., 2025, 2026; Obioma et al., 2025): Use neural synaptic weight adjustment, gradient stabilization, and representation attention mechanisms in feature space, respectively, to defend against backdoors.
Federated learning backdoor and differential privacy research
- Bagdasaryan et al. (2020): Demonstrated model-replacement backdoor attacks and noted that participant-level differential privacy (DP) can only suppress backdoors at the cost of utility.
- Xie et al. (2023) and Liu et al. (2026): The former points out that various federated backdoor defenses remain vulnerable; the latter proposes feature-level trigger-free backdoor attacks in vertical federated learning.
- RDP differential privacy accounting (Abadi et al., 2016; Mironov et al., 2017, 2019): Provides rigorous Rényi differential privacy (RDP) accounting for subsampled Gaussian mechanisms.
Comparison baselines and benchmark datasets
- Baseline methods and benchmarks: Comparison baselines include FedAvg (McMahan et al., 2017), Krum, Trimmed-Mean, FoolsGold, FLTrust, and a reimplementation and retest of P4P; evaluation benchmarks are three network intrusion detection datasets: CSE-CIC-IDS2018, NF-ToN-IoT, and NF-UNSW-NB15-v2.
Position of this paper: The authors state that unlike previous method papers that simply propose new defenses, the core contribution is establishing a unified evaluation protocol that eliminates data leakage and prior knowledge, to clarify the true capability boundaries of trust defenses under objective benchmarks.
How does the paper address this problem?
The authors propose a leak-free multi-random-seed evaluation protocol and design the RepGuard aggregator combining representation centroids, logit similarity, and root model anchoring.
The authors propose a standardized evaluation protocol that eliminates evaluation bias and design the RepGuard representation-similarity aggregation defense framework.
Problem setting and leak-free data preprocessing
- Data partitioning and leak-free standardization: Feature standardization (z-score) is computed strictly on the training set only, completely eliminating test-set leakage. The server holds a clean root dataset Dr that is independent of clients, with a sample size of no less than 1024, and samples are drawn uniformly at random to eliminate class-ordering bias.
- System setting and network structure: Cross-device federated learning setting with N=10 clients, data generated as non-IID via Dirichlet prior (α=0.3). The network backbone is an MLP (multi-layer perceptron) with 128–64 hidden units, trained in the Flower framework using the AdamW optimizer (learning rate 0.001).
RepGuard trust scoring mechanism
RepGuard scores clients by combining penultimate-layer feature centroids, classification logits, and clean root-set accuracy. For client i with model θi and server root model θ0, the trust score si is defined as a convex combination: si = wr cos(ϕ̄i, ϕ̄0) + wℓ simz(zi, z0) + wa accDr(θi) where ϕ̄ is the class-conditional feature centroid on root data Dr, simz is logits similarity based on inverse divergence, accDr is clean root-set accuracy, and weights satisfy wr + wℓ + wa = 1.
Client filtering and root-model-anchored aggregation
- Filtering surviving clients: Each round, the server retains the top N−2f clients by trust score si, raising the scores of retained clients to power p.
- Optional enhancement mechanisms: Optionally, Weibull tail calibration fuses scores with inlier probabilities, combined with exponential moving average (EMA) over historical rounds; lightweight distillation from high-trust clients is also optional.
- Root-model-anchored aggregation: The updates of surviving clients are mixed with the update obtained by fine-tuning the root model on Dr, with weight ratio ρ, to enhance anchoring against backdoor or noisy updates.
Adaptive attacks and evaluation benchmark variants
- Defense-aware adaptive attack: The attacker knows the server relies on representation similarity detection, and while injecting the backdoor, penalizes deviations of clean-data representations from the global model with escape strength λ, forcing representations to be close to the benign distribution on Dr.
- Oracle canary upper bound with known trigger: As a control upper bound, the Oracle canary check applies the attacker's exact trigger to root-data samples and adds a trigger penalty term wc(1 - ASR_i^root); this variant serves only as a prior upper-bound ablation, and default RepGuard does not use any trigger information.
What experiments did the paper conduct?
The authors state that all defenses fail under strong triggers, RepGuard shows advantages at α=0.1, and previously near-zero ASRs essentially rely on prior knowledge of triggers.
Experimental Setup
- Model under test: MLP classifier (architecture 128–64, based on Flower framework and AdamW optimizer).
- Datasets and scale: CSE-CIC-IDS2018 (13 classes, ~1 million sampled rows), NF-ToN-IoT (7 classes), NF-UNSW-NB15-v2 (10 classes, 41 features, ~96% benign samples).
- Baseline methods: FedAvg, Krum, Trimmed-Mean, FoolsGold, FLTrust, and a reproduction of P4P.
- Evaluation metrics: macro-F1, balanced accuracy, accuracy, backdoor ASR, and differential privacy parameters (ε, δ) (δ≈10^-5).
- Evaluation regimes and parameters: divided into a stringent regime (trigger strength 5.0, 5 rounds, 100,000 rows per file, DP-SGD enabled) and a moderate regime (trigger strength 1.0, 3 rounds, DP disabled).
- Sample size and repetitions: each configuration uses a fixed set of 6 random seeds (1337, 2021, 4242, 5151, 7007, 8888) run independently, reporting mean ± standard deviation, and performing paired t-tests and Wilcoxon signed-rank tests.
Main Results
The table below shows the main results on CSE-CIC-IDS2018 under the stringent regime (from Table II, n=6):
Swipe horizontally to read the table
Method macro-F1 acc bal. acc ASR FedAvg 0.296±.042 0.739±.048 0.320±.039 0.950±.122 FLTrust 0.626±.056 0.911±.015 0.625±.051 0.930±.070 RepGuard 0.683±.012 0.924±.002 0.679±.017 0.967±.041 RepGuard+ 0.681±.017 0.920±.013 0.683±.015 0.959±.046 RG-Weibull 0.673±.028 0.924±.003 0.669±.029 0.968±.042 - Utility improvement and stability: The authors report that RepGuard improves macro-F1 by 0.058 over FLTrust (paired t-test p=0.040), and balanced accuracy by 0.054 (p=0.032), with variance across random seeds reduced by about 4 times.
- Defense failure under strong backdoors: The authors state that under the high trigger strength of the stringent regime, the backdoor ASR of all evaluated defense methods falls in the 0.93–0.97 range, indistinguishable from the undefended FedAvg (0.950); at this point, trust-based aggregators serve only as utility maintenance tools rather than backdoor defenses.
Heterogeneity, Malicious Ratio, and Adaptive Attack Evaluation
- Impact of data heterogeneity and malicious ratio: Under a fixed trigger strength of 1.0 (from Table III), at Dirichlet α=0.1, RepGuard reduces ASR to 0.48±0.31, while FLTrust is 0.86±0.15 (paired t-test p=0.008); with malicious clients f=4, RepGuard stays at 0.64, while FLTrust rises to 1.00 (p=0.036).
- Adaptive escape attacks: Under adaptive attacks (from Table IV), RepGuard's ASR is 0.387±0.218, which is not statistically different from 0.398±0.252 under standard attacks (p=0.90), and ASR remains flat at 0.39–0.44 across a 40-fold range of λ. The authors argue that there is an inherent tension between forcibly matching benign representations and implanting backdoors.
- Trigger strength sweep analysis: In the controlled trigger strength experiment (from Figure 3), at strength 0.5, RepGuard reduces ASR to 0.10 (FLTrust 0.23, FedAvg 0.40); when strength reaches 2.0 and above, all defense curves coincide with the undefended baseline at ASR≈1.0.
Oracle Ablation with Known Trigger and Cross-Dataset Exception
- Oracle prior gap: Ablation experiments under the moderate regime (from Table VI) show that the canary variant with known trigger reduces ASR from 0.490 to 0.120 (p=0.016), while utility is unaffected. The authors argue that previous near-zero ASR results rely on the prior assumption of a known trigger.
- Defense benefit on NF-UNSW-NB15-v2: On the NF-UNSW-NB15-v2 dataset (from Table V), undefended FedAvg has an ASR of 0.999, while all trust defenses reduce ASR, with RepGuard+ achieving an ASR point estimate of 0.400 (FLTrust 0.586, difference not significant at n=6, p=0.20); benign traffic accounts for 96% and minority classes (e.g., Worms with only 5 samples) cannot be effectively learned.
- Negative result of P4P reproduction failure: The authors' reimplementation of P4P achieves macro-F1 of 0.275±.057 on CSE-CIC-IDS2018 and 0.074±.061 on NF-ToN-IoT, with ASR≥0.99; they attribute this to unspecified hyperparameters and the probe mechanism excluding normal skewed clients under non-IID multiclass settings.
Additional Ablations and Analyses
- Removing root model anchoring: ASR rises from 0.490 to 0.712, macro-F1 changes from 0.655 to 0.682 (from Table VI).
- Keeping only trust memory: ASR drops from 0.490 to 0.388, macro-F1 stays at 0.657 (from Table VI).
- Adding Weibull calibration: ASR drops from 0.490 to 0.372, macro-F1 stays at 0.664 (from Table VI).
- DP-SGD noise coefficient σ=0.5: corresponds to ε=16.5, macro-F1 is 0.654, ASR is 0.90 (from Table VII).
- DP-SGD noise coefficient σ=4.0: corresponds to ε=0.32, macro-F1 is 0.623, ASR is 0.73 (from Table VII).
What are some points that can be further explored?
The authors point out limitations such as a single model architecture, additive triggers, and reliance on a clean root set, and the actual evaluation is limited to a specific MLP and three intrusion detection datasets.
Limitations and Future Directions Noted by the Authors
- Single model architecture and trigger type: the paper uses only a single MLP architecture and additive feature trigger pattern (Section VI-E).
- Strong prior assumptions of trust defenses: the trust mechanism assumes the server holds a disjoint clean root dataset and knows the upper bound f on malicious clients (Section VI-E).
- Limited reproduction of state-of-the-art baselines: the 2026 reimplementation of the P4P defense did not transfer successfully, so the paper does not claim superiority; exact comparison awaits the authors' official code release (Section VI-E).
- Some recent defenses not reproduced: the paper discusses recent defenses such as WeiDetect but does not reimplement or experiment with them (Section VI-E).
- Adaptive attacks weaker than novel attacks: the adaptive attacks used in evaluation are defense-aware and tune λ, but are weaker than recent dynamic or trigger-free backdoor attacks (Section VI-E).
- Future extensions: the authors plan to extend the evaluation protocol to deeper network architectures, more trigger types, and dynamic/trigger-free attacks, and to rerun comparisons once P4P code is available (Section VI-F).
Experimental Coverage
- Model architecture coverage: the model under test is an MLP classifier (hidden layers 128–64), 1 architecture in total (Section IV-D).
- Dataset coverage: evaluation covers 3 network intrusion detection datasets: CSE-CIC-IDS2018, NF-ToN-IoT, and NF-UNSW-NB15-v2 (Section IV-A).
- Defenses and baseline comparisons: compared methods include FedAvg, FLTrust, Krum, Trimmed-Mean, FoolsGold, and a reproduction of P4P (Sections IV-E, IV-F).
- Statistical testing setup: each configuration uses n=6 random seeds run independently with paired statistical tests (Section IV-C).
- Privacy-preserving experiments: DP-SGD experiments on CSE-CIC-IDS2018 test noise coefficients σ from 0.5 to 4.0 (ε from 0.32 to 16.5) (Section V-H, Table VII).
Summarize the main content of the paper
The paper establishes a leak-free evaluation protocol for FL-IDS and proposes RepGuard, pointing out that defenses fail under strong triggers and that trigger priors overstate robustness.
- Paper positioning: This study is a systematic evaluation and methodological study of trust-based backdoor defenses in federated network intrusion detection (FL-IDS).
- Core problem to be solved: The authors question whether the backdoor resistance of trust defenses shown in previous literature is falsely supported by evaluation biases such as full-dataset standardization leakage, single-random-seed evaluation, and direct knowledge of attacker triggers.
- Method design highlights: Proposes an evaluation protocol that strictly separates training-set feature engineering, uses an independent clean root set Dr, and statistical testing with n=6 random seeds; designs the RepGuard defense that combines representation centroid similarity, logit similarity, and root-model-anchored aggregation.
- Key experimental findings:
- Under the harsh CSE-CIC-IDS2018 setting, RepGuard improves macro-F1 over FLTrust by 0.058 (0.683 vs. 0.626, p=0.040), but all defenses have backdoor ASR between 0.93 and 0.97, unable to resist strong triggers.
- Under severe non-IID distribution with Dirichlet α=0.1, RepGuard reduces ASR to 0.48±0.31, outperforming FLTrust's 0.86±0.15; when malicious clients increase to f=4, RepGuard's ASR is 0.64, while FLTrust saturates to 1.00.
- Trigger strength sweep shows that at strength 0.5, RepGuard achieves an ASR of 0.10, but at strength 2.0 and above, all defenses' ASR rises back to near 1.0; under moderate settings, the oracle canary prior with known trigger reduces ASR from 0.490 to 0.120.
- Authors' conclusions and implications: The authors believe that trust-based aggregation methods are essentially tools for ensuring classification utility under non-IID data; they provide some suppression of moderate-strength backdoors but cannot defend against strong backdoors; future evaluations of FL-IDS defenses should adopt trigger strength sweeps, trigger-unknown ASR, and strict multi-random-seed testing as basic norms.