Skip to content

DiffuVader: Effectiveness-Constrained Discrete Diffusion for Flow-Level NIDS Red TeamingDiffuVader: Validity-Constrained Discrete Diffusion for Flow-Level NIDS Red Teaming

Hamed Fard, Ilya Komarov, Gerhard Wunder
Department of Computer Science, Freie Universität Berlin; Bundesdruckerei GmbH; Abteilung Innovations
arXiv: Jailbreaks, Prompt Injection, Poisoning & DefensesarXiv:2612.01796CITS 2026Originally published Indexed by this site · 1 days agoAttacks

Quick read

Attacks

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

The authors propose DiffuVader for flow-level NIDS red-team generation, reporting 99.99% validity and family plausibility, with XGBoost VER at 24.8%.

Threat modelOffline generation of structurally valid, family-plausible synthetic flow records to expose detector blind spots; red teaming does not include packet-level traffic generation or adaptive interaction with the detector. Generation requires no gradients, query feedback, surrogate model, or access to detector internals, and the victim system is a frozen flow-level NIDS.

Questions
Adversarial evaluation of flow-level NIDS often counts structurally infeasible records as evasions, and generation, output verification and evasion scoring are coupled with one another. The authors focus on how to generate valid traffic under offline conditions without detector feedback, and on distinguishing detector blind spots from generation capability.
Methods
DiffuVader encodes 12 flow features into four coupled discrete tokens, generates with a family-conditioned D3PM and a DiT denoiser, then checks protocol, telemetry, training support and family plausibility with a four-gate validator; VER counts only samples that pass all gates and are predicted benign.
Experiments and results
On the NetsLab-5GORAN-IDD network-layer split, DiffuVader's validity and family plausibility are both 99.99%, and its VER against XGBoost and semi-supervised HGB is 24.8% and 27.2%, respectively. Per-family results and duplicate analysis show that the high-evasion portion comes from the detectors' originally low detection rates.
Limitations and future work
The authors point out that only static flow records from a single 5G O-RAN testbed are used, and the gate verifies the plausibility of flow records rather than packet-level realizability; future directions include cross-testbed validation, component ablation, stronger detectors, and packet-level generation. The VER conclusions are conditioned on XGBoost, semi-supervised HGB, and 1% FPR.
Experimental setupDiffuVader、XGBoost et al. · NetsLab-5GORAN-IDD · VER、validity rate et al.
Metrics
VERvalidity ratefamily-plausibility ratesupport coverageJS divergenceAUC-ROCTPR @ 1% FPRalarm rate
AI summaryDiffuVader uses family-conditioned discrete diffusion to generate adversarial traffic for flow-level NIDS red teaming, achieving 99.99% effectiveness and plausibility. On NetsLab-5GORAN-IDD, the model is evaluated against frozen detectors by valid evasion rate (VER) without gradients, query feedback, or surrogate model access. Experiments show that token support alone is insufficient to generate valid flow records, and offline hardening reveals a trade-off between attack robustness and benign-traffic calibration.

DiffuVader uses family-conditioned discrete diffusion to generate adversarial traffic for flow-level NIDS red teaming, achieving 99.99% effectiveness and plausibility. On NetsLab-5GORAN-IDD, the model is evaluated against frozen detectors by valid evasion rate (VER) without gradients, query feedback, or surrogate model access. Experiments show that token support alone is insufficient to generate valid flow records, and offline hardening reveals a trade-off between attack robustness and benign-traffic calibration.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The core is to separate structurally valid flow-level adversarial generation from escape scoring, to avoid infeasible records inflating the NIDS escape rate.

    Core question: how to generate structurally valid, family-plausible flow records offline, and evaluate flow-level NIDS with metrics that do not count invalid outputs as evasions.

    • Problem setting: The authors argue that there are hard constraints among protocols, connection states, counters and application fields, and that treating features as independent continuous variables generates impossible combinations; computing evasion rates on such outputs confuses generation capability with output infeasibility.
    • Existing gaps: The authors state that many adversarial NIDS methods rely on full gradients or unrestricted queries and do not verify structural feasibility; generative intrusion detection research is mostly used for data augmentation, class balancing or detector improvement, and adversarial red-team generation aimed at validity remains understudied.
    • Core observation: Generation, output verification and evasion scoring should be separated; also, high evasion for a family may come from the detector being unable to detect it in the first place rather than from generator capability, so per-family and repeated-sample analysis is also needed.
    • Threat model:
      • Goal: Offline generation of structurally valid synthetic flow records to expose detector blind spots; the authors explicitly exclude packet-level traffic generation or adaptive interaction with the detector.
      • Knowledge and access: No detector internals, gradients, query feedback or surrogate access are needed; the training corpus, family labels and training split are used for modeling and verification.
      • Capability and victim system: Records are generated by bruteforce, flood, probe and web families and evaluated against a frozen detector; only samples that are valid, family-plausible and predicted as benign count toward VER.
    • Proposed approach: The paper proposes DiffuVader, including family-conditioned discrete diffusion, a four-token coupled representation, a four-gate verifier and VER, and compares it with learned generative baselines, token-marginal control, weighted replay and random perturbation.
  2. What related research exists?

    Related work is divided into traffic diffusion generation, constrained adversarial traffic and generative NIDS applications; this paper focuses on decoupling generation from verification.

    Diffusion models for traffic synthesis and purification

    • NetDiffus (2024): converts traffic time series into images and trains guided diffusion; the authors relay that its distribution fidelity is higher than that of GAN traffic generators.
    • NetDiff (2024): proposes service-guided hierarchical diffusion, generating network flow traces according to application usage patterns.
    • Merzouk et al. (2025): applies a forward-reverse diffusion cycle to remove adversarial perturbations from NIDS inputs. The authors state that these works do not address adversarial generation of structurally valid flow records.

    Adversarial traffic and constraint evasion

    • Sheatsley et al. (2022) and Alhussien et al. (2024): the former discusses how protocol, value and dependency constraints make network adversarial examples different from image perturbations; the latter categorizes constraints as feature mutability, value range, inter-feature dependency, distribution preservation. The authors state that although the latter shows evasion remains possible under constraints, it does not check output validity after perturbation.
    • IDSGAN (2022) and DIGFuPAS (2021): generate attacks with a discriminator simulating a black-box IDS and with a functionality-preserving objective, respectively; the authors point out that neither has post-generation structural validity gating or verification.
    • DiffuPac (2024) and NetDiffuser (2026): the former uses BERT-backed continuous diffusion and a mutable/immutable field partition, but does not report a formal validity metric; the latter is flow-level continuous diffusion and requires white-box gradient access to the victim NIDS.

    Positioning of generative intrusion detection research

    • Halvorsen et al. (2024) and Deng et al. (2025): systematic reviews of generative machine learning in intrusion detection. On this basis the authors state that most works target data augmentation, class balancing or detector improvement, rather than validity-constrained adversarial generation.

    Baselines and data in this paper

    • Learned baselines: CTGAN, TabDDPM, TVAE, NFlow; non-learned controls: token-marginal control, weighted replay, random perturbation. All are mapped to a shared flow representation and pass through the same four-gate validator and detector stack.
    • Data and detectors: uses the network-layer conn.log split of NetsLab-5GORAN-IDD; detectors are XGBoost, semi-supervised HGB, Isolation Forest, INNE, ECOD.

    The authors position this paper as separating validity-aware denoising, independent output verification and VER, rather than continuing to couple the three in a single evasion score.

  3. How does the paper address this problem?

    DiffuVader generates with a four-token coupled D3PM, then filters invalid evasions via independent four-gate verification and VER.

    The overall approach is to first discretize the 12 original flow features into four tokens with dependency relationships, then use DiffuVader's family-conditioned D3PM to learn the joint structure; after generation, an independent validator determines validity and family plausibility, and only then is VER computed against the frozen detectors.

    Corpus, split and structured representation

    • Corpus construction: Zeek conn.log is extracted from NetsLab-5GORAN-IDD network-layer packet captures, with HTTP and file-transfer fields attached by UID; 48 testbed sessions are retained, yielding 24.58M connection records.
    • Cleaning and split: rows with missing traffic-shape values (7.16%) and 346 rows with unknown protocol are excluded; the 22.82M usable rows are de-duplicated by within-session 12-feature signature to 2.50M, with repeat counts stored in dup_count. A session-disjoint split is made in within-family chronological order, with training, validation and test having 1,064,221, 77,322 and 1,358,219 rows, respectively.
    • Four-token encoding: mapped as x → (g1, g2p, g2m, g3). g1 encodes the joint state of proto, conn_state, service_clean; g2p encodes the zero pattern of five traffic-shape fields, and g2m discretizes only the non-zero magnitudes under that pattern; g3 encodes the joint state of four application fields.
    • Training vocabulary: g2m is binned in log(1+x) space by dup_count-weighted quantiles, with each g2p pattern corresponding to a non-overlapping g2m block. Vocabulary sizes are 43, 10, 2,256 and 104, respectively; the vocabulary, rare states and quantile boundaries are computed from the training set only.

    Coupled diffusion and training objective

    • Forward corruption: g1, g2p and g3 use validity-aware transition kernels constructed from the training set, removing transitions to unobserved states and renormalizing; linear noise runs from 10^-4 to 0.02 over T=128 steps.
    • Pattern–magnitude coupling: when g2p changes, g2m uses MASK to indicate identity invalidation; when the pattern is unchanged, corruption stays within the valid magnitude block for that pattern. Reverse sampling first obtains g2p,t-1, then restricts the real-token support of g2m,t-1 to the corresponding block.
    • Training loss: standard token groups use Lk(t)=KL(qt(k)|pθ,t(k))+λ Ck (t>1), where Ck is the clean-token cross-entropy; at t=1 it becomes (1+λ)Ck. For g2m, when not MASK and t>1, the KL is restricted to the block corresponding to the clean pattern.
    • Optimization settings: the four group losses are summed with equal weights, λ=0.01; AdamW training for 40 epochs, 2,000 steps per epoch, learning rate 2×10^-4, weight decay 0.01, gradient clipping 1.0, FP16, EMA decay 0.9999.

    Denoiser and generation process

    • DiT architecture: 6 Transformer blocks, 8 attention heads, width 256, MLP ratio 4, dropout 0.1, SiLU; time and family embeddings are injected via adaptive layer normalization, with self-conditioning probability 0.5.
    • Conditional generation: during training, the family label is replaced with an unconditional label with probability 0.1. 10,000 seed tuples are drawn per family, weighted by dup_count, corrupted to the terminal state and run through the full reverse chain.
    • Decoding settings: classifier-free guidance scale is 1.0, and the four group temperatures are (1.2, 1.3, 1.0, 1.0); decoding maps to the canonical 12-feature representative values in the training vocabulary, falling back to the observed median when missing. Five generations use seeds 42–46, with both generator and detectors frozen.

    Four-gate verification and evasion determination

    • Gates 1–2: check, respectively, the protocol legality of the decoded original features and the telemetry consistency of connection state with counters, e.g., protocol–connection-state compatibility, binary field values and non-negative numeric values.
    • Gates 3–4: Gate 3 checks global training support for g1, g2p, g3 and the block to which g2m belongs; Gate 4 requires these groups to each be supported by the requested family's training distribution, and is a marginal family-support check.
    • VER definition: VERf,d=1/Nf∑i 1[vi∧ ai∧(ŷi,d=0)], where vi requires Gates 1–3 all to pass, ai corresponds to Gate 4, and a prediction of 0 indicates benign; failure of any gate means no evasion is counted.
    • Auxiliary diagnostics: support coverage measures the proportion of family training four-token tuples recovered; base-2 JS divergence compares the generated distribution with the dup_count-weighted training distribution; duplicate analysis checks whether full tuples are in the training support. None of the three is an evasion criterion; for benign generation, each detector's alarm rate is reported.

    Baselines and offline hardening

    • Unified comparison: CTGAN, TabDDPM, TVAE, NFlow and the three non-learned controls all use the shared representation, frozen vocabulary, and the same validator and detector stack. The token-marginal control samples g1, g2p, g3 independently, then samples magnitudes according to P(g2m | g2p, f), removing the cross-group learning dependency.
    • Hardening procedure: only valid and family-plausible generated rows are used to augment the training set; attack and benign augmentation proportions are both {0, 1, 5, 10, 25, 50}%, plus a combined 5%+5%. XGBoost and semi-supervised HGB are each retrained with five independent seeds and measured on the fixed generated evaluation set and the true held-out test set, respectively.
  4. What experiments did the paper conduct?

    The experiments cover five detectors, seven generation controls, per-family and duplicate analyses, and offline hardening; the VER conclusions focus on the two gradient-boosted detectors.

    Experimental setup

    • Detectors under test: XGBoost, semi-supervised HGB, Isolation Forest, INNE, ECOD, all using the same 12 features; the first two are a fully supervised and a self-training semi-supervised model, respectively, and the latter three are trained only on benign data.
    • Data scale: the NetsLab-5GORAN-IDD network-layer split contains four attack families and benign traffic; training, validation and test have 1,064,221, 77,322 and 1,358,219 rows, respectively, using a family-stratified, session-disjoint chronological split.
    • Generation controls: DiffuVader is compared with CTGAN, TabDDPM, TVAE, NFlow, and empirical token-marginal, weighted replay, random perturbation; the main table uses an equal-weight average over the four attack families.
    • Metrics and criteria: validity is the conjunction of Gates 1–3, family plausibility is Gate 4; VER counts only samples that are valid, family-plausible and output as benign by the detector. Support coverage, JS divergence, duplicate rate and benign alarm rate are also reported.
    • Detection evaluation: thresholds are calibrated on benign validation rows to a fixed 1% FPR, reporting AUC-ROC and overall/per-family TPR; there is no LLM review or human judgment, and success is determined by the binary prediction of the frozen detector.
    • Repetition and sample size: 10,000 seed tuples are generated per family, and the table is the mean over sampling seeds 42–46; the hardening experiments additionally use five detector seeds. Standard deviations are shown inline only when they reach 1.0 percentage point across seeds or 0.01 for JS/AUC.

    Main results

    According to Table III, values are five-seed means of the equal-weight average over the four attack families; VER corresponds to XGBoost and semi-supervised HGB, respectively.

    Swipe horizontally to read the table

    MethodValid. (%)Fam.-pl. (%)XGB VER (%)HGB VER (%)Cov. (%)JS div.
    DiffuVader99.9999.9924.827.250.20.199
    TabDDPM96.0197.3024.926.533.50.455
    TVAE65.2567.7220.234.311.80.959
    CTGAN58.7265.5814.026.18.10.976
    NFlow48.2450.899.313.69.30.958
    Emp. marginal86.9699.9629.336.621.70.589
    Weighted replay100.00100.0024.626.756.10.195
    Rand. perturb.100.0099.9627.131.157.00.582
    • Validity and fidelity: the authors state that DiffuVader is the only one of the five learned generative models to exceed 99% on both validity and family plausibility; its JS divergence is close to weighted replay, but its generation mechanism is not direct replay of training rows.
    • Effect of joint structure: the token-marginal control preserves family support and the g2p→g2m constraint, but has lower validity than DiffuVader and higher JS divergence; on this basis the authors argue that single-token support is insufficient to recover valid flow records and that cross-group structure must be learned.
    • Exceptions in evasion scores: TabDDPM's XGBoost VER is slightly higher than DiffuVader's, TVAE's HGB VER is higher, and random perturbation's two VERs are also higher; the authors emphasize that these results must be interpreted together with validity or distribution fidelity, not by VER alone.

    Detector baselines and per-family VER

    • True test detection: according to Table II, the overall TPR of XGBoost and semi-supervised HGB is 87.1% and 87.0%, respectively, but bruteforce TPR is only 0.8% and 0.4%, and web TPR is 23.9% and 21.8%; the two have probe TPR of 98.1% and 98.0%. The authors state that 18.0% of bruteforce flows share an exact feature signature with at least one benign flow.
    • Anomaly detector results: INNE's overall TPR is 47.7%, of which flood is 51.4%; Isolation Forest and ECOD both have an overall TPR of 0.0%. Under ECOD's native anomaly-score orientation, AUC-ROC is 0.008; the paper notes that sign flipping yields 0.992, but this was not adopted because unsupervised calibration at a fixed FPR cannot use label information.
    • Per-family evasion: according to Table IV, DiffuVader's VER on bruteforce against XGBoost/HGB is 78.3%/82.3%, and weighted replay also reaches 79.8%/83.7%; the authors interpret this as a detector blind spot. On flood, DiffuVader is 5.3%/8.5%, on probe 13.2%/15.3%, and on web 2.6%/2.7%; TabDDPM is 34.8%/37.0% on probe, and TVAE's HGB VER on flood is 49.0%, but its overall validity is only 65.25%.

    Duplicate samples and cross-detector overlap

    • Two duplicate measures: DiffuVader's full-token duplicate rate is 99.31%, and weighted replay's is 100%; at the level of the decoded 12-feature rows actually read by the detector, the exact training-signature duplicate rate drops to 46.0%, ranging by family from 1.4% for bruteforce to 85.0% for probe.
    • Non-replay evasion: each seed generates about 1,500 decoded-unseen, valid and family-plausible probe samples, of which 70.8% evade XGBoost and 77.4% evade semi-supervised HGB; they contribute 10.6 of the 13.2 percentage points of XGBoost probe VER and 11.6 of the 15.3 percentage points of HGB, respectively. The corresponding contributions for flood are 5.1 of 5.3 and 8.3 of 8.5 percentage points.
    • Overlap analysis: the main text of Figure 4 reports that among valid family-plausible samples evading at least one detector, 94.4% of bruteforce samples evade both, versus 60.9% for flood, 78.7% for probe and 93.6% for web; web's evasion pool accounts for only 2.7% of its valid family-plausible samples. The authors state that transfer overlap varies with family and detector sensitivity.

    Offline hardening and benign calibration

    • Attack augmentation: according to Table V, 5% attack augmentation lowers VER on the fixed generated attack set from 24.8% to 8.3% (XGBoost) and from 27.0% to 20.5% (HGB); XGBoost's true flood TPR drops from 87.0% to 85.6%, while probe TPR remains 98.1%. The authors state that at 25–50% VER continues to fall, but at a greater cost to flood TPR.
    • Benign augmentation: 5% benign augmentation lowers the alarm rate on the fixed generated benign set from 15.1% to 0.4% (XGBoost) and from 7.7% to 0.6% (HGB); at the same time, attack-set VER rises from 24.8% to 30.5% and from 27.0% to 30.8%. On this basis the authors call it calibration rather than hardening.
    • Combined configuration: under combined 5%+5%, XGBoost's overall TPR, attack VER and generated-benign alarm rate are 86.3%, 27.1% and 3.2%, respectively; HGB's are 89.0%, 26.6% and 8.6%. The authors state that this configuration mixes the two objectives and does not outperform both single-objective settings simultaneously.

    Other ablations and analyses

    • Token-marginal control: after removing the cross-group learning dependency, validity in Table III is 86.96%, while family plausibility remains 99.96%.
    • Decoding fallback paths: across the five sampling seeds, the g2m fallback/rare-state path in the decoded-unseen evasive subset is below 3% in all cases, and rare g3 decoding is at most 0.16%.
    • Per-family table exclusions: Table IV excludes CTGAN and NFlow, whose validity is below 60%; the authors state that per-family decomposition is unreliable in that case; the token-marginal control is omitted as a diagnostic rather than a learned generator.
    • Runtime cost: the authors report DiffuVader training time of 1 h 47 min, and generation of the four families in under eight minutes per seed; hardware is a single NVIDIA RTX A5500.
  5. What are some points that can be further explored?

    The authors explicitly limit the work to static flow records from a single testbed, and propose directions including cross-testbed work, component ablations and packet-level generation.

    Limitations and future directions noted by the authors

    • Data scope: the Conclusion explicitly states that the current analysis uses static flow records from a single 5G O-RAN testbed; the authors list cross-testbed validation as a natural extension.
    • Verification semantics: the Conclusion notes that these gates establish conservative flow-record plausibility, not packet-level realizability; Section III-E also states that the gates do not test whether a packet trajectory can realize the decoded record.
    • Component studies: the Conclusion lists targeted ablations of the coupling and kernel components as a future direction.
    • Detector scope: the Conclusion lists stronger detector families as a future direction.
    • Generated releases and layers: the Conclusion also lists privacy-aware de-duplication for generated releases, and packet-level or cross-layer O-RAN generation using the corpus's radio metrics.

    Scope of experimental coverage

    • Detectors and conditions of the conclusions: the detector suite has five members in total; Section IV-A explicitly focuses the evasion analysis on XGBoost and semi-supervised HGB, and the VER conclusions are conditioned on these detector families and the 1% FPR operating point.
    • Data and split: the experiments use the network-layer conn.log portion of NetsLab-5GORAN-IDD, retaining 48 sessions; training, validation and test are split by a session-disjoint chronological split.
    • Generation and repetition: 10,000 seed tuples are drawn per attack family, and the main results are the mean over five sampling seeds; hardening uses five detector seeds. The paper does not report human evaluation or inter-rater agreement.
    • Defense evaluation: offline retraining covers attack, benign and combined 5%+5% augmentation, with proportion sets of {0, 1, 5, 10, 25, 50}%; only generated rows that pass the validity and family-plausibility checks are used for augmentation.
    • Validity boundary: the four-gate check in Section III-E operates at the decoded flow-record level; Gate 4 is a per-token-group marginal family-support check, and joint structure is evaluated separately by the validity gates, support coverage, JS divergence and duplicate analysis.
  6. Summarize the main content of the paper

    DiffuVader combines coupled discrete diffusion, independent validity verification and VER to distinguish valid evasions from detector blind spots.

    DiffuVader is an offline red-team generation framework for flow-level NIDS, addressing invalid flow records being counted as evasions and the difficulty of distinguishing high evasion from detector blind spots.

    • Method highlights: The 12 conn.log features are encoded into four tokens—structural state, zero pattern, coupling magnitude and application state—and a family-conditioned D3PM with a DiT denoiser learns the joint distribution; generation requires no detector gradients, query feedback or surrogate access.
    • Evaluation: A four-gate verifier checks protocol, telemetry, global training support and family plausibility respectively, and VER counts only samples that pass all gates and are judged benign by the frozen detector; JS divergence, coverage and decoded-row repetition analysis are also used to check generation quality.
    • Main results: On the equal-weight average of the four attack families in NetsLab-5GORAN-IDD, DiffuVader's validity and family plausibility are both 99.99%, XGBoost/HGB VER is 24.8%/27.2%, and JS divergence is 0.199 (Table III). TabDDPM's XGBoost VER is 24.9%, and TVAE's HGB VER is 34.3%, but their validity is 96.01% and 65.25% respectively.
    • Interpretation of results: On bruteforce, DiffuVader's XGBoost VER is 78.3%, but the true test TPR for that family is only 0.8%, which the authors classify as a detector blind spot; the full-token repetition rate is 99.31%, while the repetition rate of decoded 12-feature rows is 46.0%, from which the authors conclude that valid evasion cannot be attributed to exact replay of decoded rows.
    • Hardening results: 5% attack augmentation lowers XGBoost's VER on the fixed generated attack set from 24.8% to 8.3%, and true flood TPR from 87.0% to 85.6%; 5% benign augmentation lowers generated benign alarms from 15.1% to 0.4%, but raises attack VER to 30.5% (Table V).

    The authors conclude that flow-level red teaming needs both generators that obey structural constraints and evaluation frameworks that independently enforce the constraints; current evidence is limited to static flow records from one 5G O-RAN testbed, and gate verification is not equivalent to packet-level realizability.

Research lineage

Connected via shared benchmarks in library
Explore in knowledge graph →
Read originalCITS 2026