Skip to content

Analyzing and Mitigating Poisoning Attacks Against Flow-Based Intrusion DetectionAnalyzing and Mitigating Poisoning Attacks on Flow-Based Intrusion Detection

arXiv: Adversarial Attacks, Backdoors & Poisoning· arXiv:2610.19766· Florian Spelter, Johannes F. Loevenich, Tobias Hürten, Erik Adler, Maxime Schwarzer, Laurin Holz, Roberto Rigolin F. LopesCortAIx Labs, Thales Deutschland; Grey Solutions; Department of Mathematics/Computer Science, University of Osnabrück; Department of Informatics, Karlsruhe Institute of Technology (KIT); Department of Computer Science, Ulm UniversityIndexed by this site · 2026-10-15· Originally publishedAttacks

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors state that 0.001% poisoning can implant a flow-level IDS backdoor; in Table IV, the BruteForce poisoning ratio is 0.010, and the ASR after pruning is 0.01.

Threat modelThe attacker has only limited control over the training data and cannot directly access the model internals. The goal is to implant a backdoor in the DNN of a flow-level IDS so that samples are classified into the target class (benign in the experiments), while maintaining nominal performance on clean data. The victim system is an AI-based IDS for flow-level telemetry classification in software-defined networks.

Questions
Flow-level IDS relies on large-scale training data, and a small amount of poisoning can implant a backdoor that maintains nominal performance on clean inputs, which ordinary accuracy cannot reveal. The authors believe this directly affects situational awareness and C2 in critical infrastructure.
Methods
First apply three perturbations—Shift, Override, Sampling—to each flow feature to find the minimal change and ASR that classify samples into the target class. Then compare drift against a same-architecture distillation baseline and score the features, then delete suspicious samples and retrain, or prune relevant neurons and fine-tune on clean data.
Experiments and results
The authors state that 0.001% poisoning is sufficient to implant a backdoor. With FlowDuration and FwdIATTot poisoned, BruteForce has an ASR of 0.8 at 0.002%, and DDoS and Botnet have 1.0 at 0.005%. In Table IV, the 0.005 row has a post-pruning ASR of 0.26.
Limitations and future work
The authors state that pruning does not guarantee complete removal, and that analysis and baseline training incur additional cost, making the method suitable for offline diagnosis during retraining. Evaluation is limited to one dataset and one model family; extension across datasets, architectures, and attack classes is future work. The paper does not report metrics after data cleaning, the number of repetitions, or the pruning stopping threshold.
Experimental setupDNN · CSE-CIC-IDS2018 · ASR、accuracy et al.
Evaluated models
DNN
Benchmarks
CSE-CIC-IDS2018
Metrics
ASRaccuracyprecisionrecallF1-scoreAvg. Score
AI summaryThe research shows that poisoning only 0.001% of training data can implant a latent backdoor in flow-based intrusion detection (IDS) models, with the model performing near-normally on clean inputs while maintaining a high attack success rate. The authors propose a diagnosis-first approach: locating trigger-related features through restricted perturbation analysis and comparing with a distilled baseline model to detect poisoning-induced behavioral drift. The method also enables targeted mitigation through automatic data cleaning or neuron pruning.

The research shows that poisoning only 0.001% of training data can implant a latent backdoor in flow-based intrusion detection (IDS) models, with the model performing near-normally on clean inputs while maintaining a high attack success rate. The authors propose a diagnosis-first approach: locating trigger-related features through restricted perturbation analysis and comparing with a distilled baseline model to detect poisoning-induced behavioral drift. The method also enables targeted mitigation through automatic data cleaning or neuron pruning.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    A flow-level IDS can implant a latent backdoor using 0.001% of training data; the paper uses post-hoc diagnosis to locate trigger features and mitigate.

    Flow-level IDS can be implanted with latent backdoors using very little training data; the paper aims to localize trigger features after training and apply targeted mitigation.

    • Scenario: the authors state that AI-based IDS uses a DNN to classify flow-level telemetry in software-defined networks, with outputs feeding into situational awareness and Command and Control (C2). Training data, frequent retraining, and cross-domain sharing expose the model to training-time poisoning and backdoor implantation.
    • Existing gaps: the authors state that existing work mostly performs trigger inversion in the image domain or training-time defenses in federated learning. Looking only at classification accuracy misses latent backdoors because nominal performance on clean inputs can be maintained.
    • Observation: on CSE-CIC-IDS2018, modifying as little as 0.001% of training data is sufficient to implant a backdoor. The authors state that temporal features and multi-feature combinations are especially likely carriers.
    • Proposed content: a diagnostic-first pipeline: search for trigger features using constrained perturbation, compare behavioral drift against a distillation baseline and rank, then proceed with data cleaning or neuron pruning.
    • Threat model:
      • Goal: implant hidden, attacker-controlled behavior that classifies samples into a target class while maintaining normal performance. In experiments, benign is chosen as ytgt.
      • Knowledge: the attacker has limited control over training data and cannot directly access model internals. The paper does not label the attacker as white-box, black-box, or gray-box.
      • Capability: can modify flow features of a small number of training samples, including single features and feature combinations. For diagnosis, since the specific strategy is unknown, Shift, Override, and Sampling are evaluated for each feature.
      • Victim system: a DNN IDS classifying flow-level telemetry.
  2. What related research exists?

    Related work covers classical poisoning backdoors, IDS poisoning, and defenses during federated training; this paper performs flow-level post-training feature diagnosis.

    Classical poisoning and backdoors

    • Biggio et al. (2012): poisoning can reduce classifier accuracy.
    • Gu et al. (2017) BadNets: embeds hidden, attacker-controlled behavior while maintaining normal performance.
    • Poison Frogs (Shafahi et al., 2018) and label-consistent backdoor (Turner et al., 2019): the paper states these two studies argue that a very small poisoning budget can achieve such disruption.

    Grouped IDS and image trigger inversion

    • Spelter et al. (2025): ML IDS on grouped data has limited resilience to poisoning; once the trigger is correctly identified, performance on poisoned inputs can be recovered, with recovery rates up to 99%.
    • Neural Cleanse (Wang et al., 2019): uses input perturbation to invert triggers for image classification models. The authors state that applying this approach directly to IDS is not effective and requires substantial modification.

    Evaluation on CSE-CIC-IDS2018 and training-time defenses

    • Songma et al. (2023) and Göcs and Johanyák (2024): evaluate IDS on this dataset. The paper states these works focus on classification accuracy and detection rate, with less discussion of how high-dimensional features can be used to embed persistent, hidden backdoors.
    • SecFedNIDS (Zhang et al., 2022) identifies anomalous client updates in federated training; Thein et al. (2024) study poisoning and defense under data heterogeneity and personalization settings. The paper categorizes these works as training-time defenses.

    Model-level backdoors in federated learning

    • Zhuang et al. (2023) attack components such as backdoor-critical layers; CrowdGuard (Rieger et al., 2022) uses model inspection and client update anomaly detection for federated backdoor detection. The paper states they operate at training time and focus on model-level behavior.

    Baselines and benchmarks

    • The comparison baseline is a distilled model with the same architecture, mimicking benign behavior using a small assumed-complete dataset. The benchmark is CSE-CIC-IDS2018. The introduction also cites Goldblum et al. (2023): poisoning can cause targeted misclassification while maintaining validation performance.

    The authors position this work on post-training diagnosis of high-dimensional tabular, flow-level IDS, with feature-level attribution and targeted mitigation, distinguishing it from image-domain trigger inversion and training-time defenses.

  3. How does the paper address this problem?

    Use univariate perturbation to search for trigger features, then compare drift rankings against a distillation baseline, and then clean the data or prune.

    diagnostic-first: first find perturbations in the feature layer that activate the backdoor, then compare drift against a distillation baseline, and finally clean the data or prune. Fig. 1 is divided into trigger search, feature ranking, and two paths: data cleaning and neuron pruning.

    Problem Setting

    • Attack assumption: the attacker has limited control over the training data and cannot directly access the model internals. The experiments use benign as ytgt. The authors say this is to remain operable when the attack target is unknown; the method can switch to other target classes.
    • Search object: only on the subset S of samples not yet classified as ytgt, search for scalar perturbations per feature, rather than jointly optimizing all features. The authors say the scales, distributions, and semantics of streaming features are inconsistent, making joint optimization unstable.
    • Success condition: the proportion classified as ytgt after perturbation must be no less than τ. The paper gives examples that τ can be fixed at 0.8, or set relative to the baseline misclassification rate or by false-activation tolerance. The experiments do not report the actual τ used. The constraint is 𝔼x∼ S[f(ϕi(x,δ))=ytgt]≥τ, where φi modifies only the i-th feature.

    Univariate Trigger Search

    • Three modes: Shift adds δ to that feature; Override writes that feature as δ; Sampling draws from the distribution of that feature in the target class. The authors say these correspond respectively to explicit modification, structural rewriting, and imitating target-class values.
    • Search: Algorithm 1, for each target class, each feature, and each mode, takes the δ in the candidate set Δ with the smallest absolute value and ASR no less than τ. ASR is the proportion of S classified as ytgt.
    • Acceleration: subsampling, stopping once τ is reached, feature-level parallelism, and searching only high-variance or domain-relevant features. The paper does not give the values of Δ or the subsampling ratio, nor does it report the specific feature values written when implanting the backdoor or whether labels were changed.

    Comparison with Distillation Baseline

    • Why compare: the authors say clean models naturally differ in sensitivity across features, so high ASR or small perturbations are insufficient to establish poisoning; multi-feature triggers also dilute single-feature signals.
    • Baseline: train a same-architecture model with knowledge distillation, using a small subset assumed to be complete, as a proxy for clean behavior. The paper does not report the size of this subset.
    • Drift and scores: structural drift is the difference in minimum perturbation magnitude between the two models; behavioral drift is the difference in maximum ASR across the three modes. After normalizing each by the maximum absolute value across all features, they are combined with Euclidean distance and arithmetic mean into a score: Scorei=(Δnorm,i+ASRnorm,i+Scomb,i)/3. Scomb is the Euclidean distance of the two normalized drifts.
    • Ranking: by Score from high to low. The authors say high-scoring features are most likely to belong to the implanted trigger.

    Two Mitigations

    • Data side: if a training sample matches the feature pattern of a high-ranking trigger, delete or correct it, then train a new model on the cleaned data. The authors say feasibility depends on access to the original training set and the cost of full retraining.
    • Model side: compare neuron activations on trigger-containing inputs versus clean samples. The authors use a statistical test on activation variance when the trigger appears to select neurons; the paper does not report the test name or threshold. Zero out weights in descending order of contribution to ASR, recomputing ASR at each step, until ASR falls below a preset threshold and nominal classification is still maintained. The paper does not give this stopping threshold.
    • Wrap-up: after pruning, fine-tune on a small previously unseen clean validation set. The paper does not report the size of this set. The authors say this path does not require modifying the training set.

    Network Under Test

    • Architecture: TensorFlow/Keras fully connected DNN, hidden layers 512, 256, 128, 64, 32, ReLU, Batch Normalization after each layer, Dropout decreasing from 0.3 to 0.1, Softmax output.
    • Training: Adam, learning rate 0.001, sparse categorical cross-entropy, batch 512, up to 50 epochs; early stopping with weight restoration when validation loss stalls, and learning rate decay on validation plateau.
    • Data: numeric label encoding, removal of invalid samples, feature normalization, 80/20 stratified split. Metrics include accuracy, precision, recall, F1-score, and confusion matrix.
  4. What experiments did the paper conduct?

    Fine-tuning and pruning on BruteForce mostly reduce ASR to 0.01, but at a poisoning ratio of 0.005 a residual of 0.26 remains (Table IV).

    Experimental Setup

    • Model: Five-layer fully connected DNN (512, 256, 128, 64, 32, TensorFlow/Keras), and a distillation baseline with the same architecture. The paper does not specify the random seed or the number of training repetitions.
    • Data: CSE-CIC-IDS2018, the main text states over 80 features, 80/20 stratified split. The poisoning experiments focus on Botnet, BruteForce, DoS, DDoS. The class names in Fig. 2 are Benign, Bot, BruteForce, DDOS, DoS.
    • Attack setup: In Fig. 3, the single-feature poisoning percentage ranges from 0.0005% to 1%. In the two-feature experiments, the poisoning ratio is the total proportion of modified samples across the target feature set. The axis labels in Fig. 4 are 0.001, 0.002, 0.005, 0.01, 0.05; Fig. 5 ranges from 0.0005 to 0.05.
    • Metrics: ASR is the proportion classified into the target class; the figures also show accuracy on clean data. The comparison diagnostics use ∆ Drift, ASR Drift, Avg. Score. Precision, recall, and F1-score are listed as metrics, but the main text does not provide specific values.
    • Judgment: ASR is computed from the tested classifier's own predictions; the paper does not use a separate review model. The pruning stopping threshold is not given a numerical value.
    • Controls: The clean confusion matrix in Fig. 2, and the distillation baselines in Tables II and III.

    Main Results

    Table IV shows the ASR before and after fine-pruning on BruteForce. The main text refers to 0.005 in the table as 0.005%. The table does not specify the poisoned feature name.

    Poisoning RatioOriginal ASRFine-Pruned ASR
    0.0010.280.03
    0.0020.790.01
    0.0051.000.26
    0.0101.000.01
    0.0501.000.01
    • The authors state that after pruning, the backdoor in most configurations is reduced to near zero, with backdoor effectiveness reduced by up to 99%, while nominal classification performance is maintained; this table does not list the clean accuracy after pruning.
    • The authors call the lowest poisoning ratio at which Original ASR reaches the highest value in the table the backdoor saturation threshold, and state that the residual anomaly after pruning at that level is unusually high, with the main text writing approximately 0.25.
    • The abstract states that as little as 0.001% can achieve high attack success rate. The lowest row in this table is not the same reading as that claim; the paper does not explain whether the two refer to the same feature or the same attack class. The authors state that pruning does not guarantee complete removal of the backdoor.

    Single-Feature Poisoning and Ranking

    • Fig. 3: Average ASR for seven features across four attack classes, with poisoning percentages from 0.0005% to 1%. The authors state that Bwd IAT Tot, Flow IAT Max, and Fwd IAT Tot achieve near-maximum ASR at lower poisoning percentages; Fwd Pkts/s, Bwd Pkts/s, and especially Flow Pkts/s require higher poisoning ratios. The figure labels the latter three features as Bwd Pkts, Fwd Pkts, Flow Pkts.
    • Single-model ranking: Table I uses Backward Pkts/s as an example; Bwd Pkts/s has min|∆| of 4.0000 and ASR of 0.987, ranking 21st; the 1st-ranked Fwd IAT Std has min|∆| of 0.4776 and ASR of 0.804. The authors state that absolute perturbation or ASR alone cannot identify the poisoned feature.
    • Comparison with baseline: The main text states that when Bwd Pkts/s is poisoned, the average score is 0.986. In Table II, Flow Duration has an Avg. Score of 1.070, and the next, Active Min, is 0.667; the authors state that under this setting, Flow Duration is the only plausible trigger feature. Table III is titled Bwd IAT Tot vs Baseline, yet the highest score is Bwd Pkts/s at 0.914, with Bwd IAT Tot at 0.889. This is inconsistent with the main text's claim that "the average drift score of the poisoned feature is always higher," and the table takes precedence.

    Two-Feature Poisoning

    • Definition: Fig. 4 poisons Flow Duration and Fwd IAT Tot simultaneously; Fig. 5 poisons Fwd Pkts/s and Flow Pkts/s simultaneously. The poisoning ratio is the total proportion of modified samples across the two features.
    • Points given in the main text for Fig. 4: BruteForce has an average ASR of 0.8 at 0.002%; DDoS and Botnet have an ASR of 1.0 at 0.005%. The authors state that the nominal accuracy on unperturbed data remains approximately 0.97. The pointwise ASR for DoS is not given in the main text.
    • Fig. 5: The authors state that when these two rate features, which are not individually dominant, are modified together, the average ASR for each attack class quickly approaches 1.0 even at the lowest evaluated poisoning level. The main text does not provide pointwise numbers.

    Other Ablations and Analyses

    • Table I top four min|∆| / ASR: Fwd IAT Std 0.4776 / 0.804; Flow IAT Min 0.5893 / 0.806; Flow IAT Mean 0.8026 / 0.805; Flow IAT Std 0.9262 / 0.824.
    • Table II remaining Avg. Score: Flow IAT Std 0.527, Flow Pkts/s 0.449, Flow IAT Max 0.448; corresponding ∆ Drift are 3.96, 1.02, 0.76.
    • Table III remaining: Bwd IAT Max has ASR Drift 0.1685 and Avg. Score 0.667; Bwd IAT Std has 0.1635 / 0.647; Active Min has 0.1350 / 0.534. All three have ∆ Drift of 0.00.
    • Fig. 2: The authors state that benign flows and Botnet and DDoS have high precision and recall, DoS and BruteForce are mutually misclassified, and a small number of attack samples are classified as benign. The main text does not provide counts for each cell.
    • The paper does not report the ASR for each of the three perturbation modes, nor the accuracy or ASR after data cleaning. The authors do not explain the residual at the saturation threshold level.
  5. What are some points that can be further explored?

    The authors state that complete removal is not guaranteed, and evaluation is limited to one dataset and one model family.

    Limitations and future directions noted by the authors

    • Fine-tuning pruning does not guarantee complete removal of the backdoor (Section IV, Section V).
    • Perturbation analysis and baseline training incur additional computational cost; the authors state the method is suitable for offline diagnosis during periodic retraining (Section V).
    • Evaluation was conducted on one dataset and one model family (Section V).
    • The authors state the method is model-agnostic and expect it to generalize; extending evaluation to more datasets, model architectures, and attack categories is left as future work (Section V).

    Experimental coverage

    • The reported dataset is CSE-CIC-IDS2018, with the text stating over 80 features; training and testing use an 80/20 stratified split (Section IV-A).
    • The tested classifier is the five-layer fully connected DNN described in the paper; the comparison is a distillation baseline with the same architecture (Section III, IV).
    • The attack classes specified for the poisoning experiments are Botnet, BruteForce, DoS, DDoS; the ASR in Fig. 3 is the average over these four classes. The target class is benign (Section III, IV).
    • The quantitative mitigation result is fine-pruning on BruteForce (Table IV). The data cleaning procedure is described in Section III; the paper does not report ASR or accuracy after cleaning.
    • The paper does not report the number of repetitions, distillation subset size, pruning stopping threshold, fine-tuning set size, candidate set Δ, or the feature values written during implantation and whether labels were changed.
  6. Summarize the main content of the paper

    Flow-level IDS is sensitive to 0.001%-level poisoning; distillation baseline drift is used for localization, and pruning can reduce ASR but does not guarantee removal.

    This work studies training-time poisoning of flow-level IDS and provides post-training diagnosis and mitigation. The authors state that backdoors can be implanted without degrading clean-data performance, rendering accuracy-only checks ineffective.

    • Problem: a DNN classifies flow features in software-defined networks. The attacker has limited ability to modify training data and no direct access to model internals, with the goal of classifying samples into a chosen class while maintaining nominal performance. The experimental target class is benign.
    • Method: for each feature, search for the minimal perturbation and ASR using Shift, Override, and Sampling, then compare drift against a same-architecture baseline distilled on a small assumed-clean dataset to obtain a feature Score. Then delete or correct suspicious samples and retrain, or prune based on activation differences and fine-tune on unseen clean data.
    • Attack results: the authors state that modifying 0.001% of training data is sufficient to implant an effective and hidden backdoor. In the text for Fig. 4, when Flow Duration and Fwd IAT Tot are poisoned together, BruteForce has an average ASR of 0.8 at 0.002%, DDoS and Botnet have an ASR of 1.0 at 0.005%, and clean accuracy is stated by the authors to be approximately 0.97.
    • Diagnosis and mitigation: in Table I, Bwd Pkts/s has an ASR of 0.987 but ranks 21st by minimal perturbation. In Table II, Flow Duration has an Avg. Score of 1.070. In Table IV, fine-pruning on BruteForce reduces ASR from 1.00 to 0.01 at Poisoning Ratios 0.010 and 0.050, while the 0.005 row remains at 0.26.
    • Authors' conclusions: temporal flow features are prone to carrying backdoors; drift against a distillation baseline can localize trigger features. Pruning can reduce ASR but does not guarantee complete removal. The authors state the evaluation is limited to one dataset and one model family, and extension across datasets, architectures, and attack classes remains future work.

Related papers

Read originalarxiv.org