NetGuise: Adversarial Traffic Generation for Early Classifier EvasionNetGuise: Adversarial Traffic Generation for Early-Stage Classifier Evasion
NetGuise performs targeted traffic transformation against early-stage classifiers: on VANT, the oracle's T-ESR is 82.0%, and the causal interface is 33.2%.
Tunnel shaping at both ends: on the path, the censor sees only bidirectional packet metadata, and by default uses the first 30 packets for blocking. The attacker uses a client-side proxy and an outside collaborating relay, adding only tunnel-layer padding and non-negative delay, preserving direction, order, and packet count. Knowledge is no-query black-box transfer, with no querying at inference. The default bandwidth and delay budgets are 30% and 50%.
- Early-stage encrypted traffic classifiers block or classify based only on the metadata of the first several packets of a connection. The authors argue that existing adversarial generation often assumes full flows, feature perturbations, or runtime queries, which does not match the setting of short windows, only padding and non-negative delay allowed, and causal submission required.
- NetGuise selects references within a fixed target class by morphability, uses a shared encoder and cross-attention to decode packet-level padding and delays, then projects them into the MTU, bandwidth, and delay budgets. Ioracle sees the full early-stage window as an upper bound; Icausal only sees history and submits packet by packet, and inference does not query the censor.
- Under Ioracle, three datasets, four-censor average T-ESR, NetGuise is 85.7% on VideoPF and 82.0% on VANT. Under Icausal, the VANT average drops to 33.20%, still above BAP's 15.48%; after four rounds of retraining, it is still 43.5% on VANT.
- The authors point out that the evaluation is mainly on the censorship evasion use case, and does not model IP, SNI, TLS fingerprints, or active probing; the actions preserve packet count, and the payload experiments come from Mininet rather than carrier hardware at line rate. The experiments cover four types of censors, three datasets, two observation interfaces, and four rounds of adaptive retraining.
- Evaluated models
- GGFASTGrad-BPFastFlowUniNet
- Benchmarks
- UTMobileNet-2021VANT-2024VideoPF-2025
- Metrics
- T-ESRU-ESRVRδ_bwδ_lat
NetGuise is a target-conditioned traffic morphing framework that evades early encrypted traffic classifiers through packet-level padding and non-negative delays while keeping packet direction, order, and count unchanged. On VANT, the causal interface achieves an average targeted evasion rate of 33.2%, and the full-window oracle interface 82.0%; on UTMobileNet, 5.6% and 81.8% respectively, outperforming the strongest causal baseline BAP.
Paper analysis
What problem does this paper attempt to solve?
Early-stage classifiers look only at the first several packets, and directional morphability under realistic shaping lacks evaluation with a matched setting.
Early-stage encrypted traffic classifiers only look at the first few packets of a connection to make decisions; how easily they can be directionally morphed under achievable shaping constraints still lacks evaluations matching this setting.
- Scenario: The authors state that both high-speed networks and censorship infrastructure push classifiers to look only at the first few packets of a connection, to reduce decision latency and per-flow state.
- Existing shortcomings: The authors state that existing methods often assume full flows, feature perturbations, or runtime feedback; perturbations do not necessarily map to legal packet sequences, and queries are also impractical on short windows.
- Observation: Early-stage direction, handshake, and timing leave little room for achievable modifications. Real-world shaping is asymmetric, allowing only padding and non-negative delays. Under stricter conditions, only existing history can be seen and submitted all at once.
- Threat model:
- Victim system: A censor on the path, observing bidirectional packet sizes, directions, and inter-arrival times, not looking at encrypted payloads. The default maximum window is the first T=30 packets.
- Goal: Morph the source class ysrc into a specified allowed class ytgt. At length k, the censor predicting the morphed window as ytgt counts as targeted success; non-targeted only requires predicting it is not ysrc.
- Knowledge: no-query black-box transfer. The local surrogate is trained on independently collected traffic. No access to the deployed censor's parameters, gradients, logits, confidence, training data, or query interface; no queries at inference.
- Capability: Tunnels at both ends perform shaping; the client proxy and the outer cooperating relay each shape packets sent from their own end. Only tunnel-layer padding and non-negative delays are added, preserving direction, order, packet count, and payload. The default bandwidth and delay budgets are 30% and 50%.
- This paper's approach: The authors propose NetGuise, which offline-trains a reusable morpher on a local differentiable surrogate, then transfers without queries. Ioracle sees the full window before generation, which the authors treat as an upper bound; Icausal only sees history and submits packet by packet. The use case is censorship evasion: blocked traffic must be morphed into a specific allowed application. The authors state that to their knowledge, this is the first work to systematically evaluate early-stage MTC robustness under realistic packet-level shaping constraints.
What related research exists?
Related work covers early-stage classification, white-box/black-box evasion, and generative traffic synthesis; baselines are RandP, BAP, Amoeba, and PANTS-BB.
The paper's Related Work is divided into three groups; experimental baselines are listed separately below.
Early-stage traffic classification
- Motivation and deployment: The authors state that carriers or nation-state gateways must classify from the first few packets [5, 45, 57, 65]. Early methods use statistical features or fixed windows; lightweight or hybrid ML can be placed on programmable switches, and buffering long flows at line rate is not suitable [19, 39, 74].
- Specific systems: GGFAST [45] uses n-gram fingerprints of the first 50 packets; FlowPic [50] turns traffic into time-binned images and then uses a CNN; Grad-BP [71] uses an SVM on cumulative statistics.
- Deep models: The authors state that FastFlow [5] uses an adaptive LSTM and UniNet [63] uses Transformer self-attention, and they state that these two are recent SOTA. The authors state that discriminative power is concentrated in the initial packets (e.g., TCP/TLS handshake), and evasion must occur on this most constrained segment of traffic.
Adversarial evasion
- Morphing and white-box: Wright et al. [62] reshape observable flow features to evade classification. BAP [41] learns input-independent perturbations for real-time traffic and uses remapping and regularization to constrain traffic features. PANTS [29] uses gradient-coupled SMT solvers to guarantee achievability; the authors state that it requires white-box access, has high solving overhead, and often yields UNSAT under real jitter.
- Black-box: Amoeba [36] uses reinforcement learning to search for evasion policies. The authors state that the reward comes only from misclassification, easily producing inefficient or anomalous perturbations, and iterative inference latency exceeds 1 s.
- The paper's overall assessment: The authors state that both white-box and black-box face limitations against real censors; weakly constrained perturbations may break flow semantics, while black-box has a semantic gap.
Traffic generation
- Synthetic headers: DoppelGANger [34], NetShare [70], and NetDiffusion [27] use GANs or diffusion models to generate synthetic headers, serving privacy-preserving analysis.
- Misalignment with evasion: The authors state that their goal is distributional fidelity, whereas evasion must deviate from the decision boundary; they work in abstract feature space and do not map results back to discrete, legal packet sequences.
Baselines and data
- Baselines: RandP randomly pads and delays under the same overhead budget, with no classifier feedback. The rest are BAP, Amoeba, and PANTS-BB, which is generated only against the local surrogate and then transferred to unseen censors.
- Data and censors: UTMobileNet-2021, VANT-2024, VideoPF-2025; censors are GGFAST, Grad-BP, FastFlow, UniNet.
The authors' positioning is: existing methods cannot be directly used as a controlled robustness evaluation framework for early-stage MTC; what is needed is an evader that can produce concrete packet-level actions, is achievable under a given threat model, supports full-window oracle, and can do history-only causal testing without runtime queries.
How does the paper address this problem?
NetGuise selects compatible references within a fixed target class, decodes padding and delays and projects them into shaping constraints, and is evaluated under two interfaces, oracle and causal.
NetGuise turns early-stage directional morphing into reusable conditional generation: select a compatible reference, align source and target, decode packet-level padding and delays, then project into tunnel shaping constraints. The same architecture is evaluated under two observation interfaces.
Problem setting
- Each packet is size, direction, inter-arrival time. Default window T=30. Given a source window and ytgt≠ysrc, the goal is for the censor to classify the morphed window as ytgt.
- The deployed censor is a black box. The generator is trained offline against a local differentiable surrogate; the surrogate is frozen, and gradients update only the generator. The targeted objective is Ladv=CE(S(X̃1:T), ytgt), i.e., the surrogate's cross-entropy on the target class over the default window.
- Causal evaluation can evaluate the same classifier at decision points k≤T; oracle uses T=30.
Reference selection and alignment
- Intra-class reference selection: The target class is fixed by the evaluation objective. References are selected only from the evader training pool of that class, without using the deployed censor's outputs, gradients, confidence, or test-time success rate.
- Morphability score: Additive shaping cannot shrink packets, send earlier, or change direction, so S=α Cs+β Cτ+γ Cd is used for ranking. The three terms measure size, timing, and direction compatibility, and the weights sum to 1. The experiment uses (0.3, 0.3, 0.4). Each source window takes the highest score from the candidate set; the paper does not give the candidate set size K. The definition is in Appendix A.
- Encoding and decoding: The source window and target reference (or class prototype) share an encoder. The source hidden state serves as query, the target as key and value, and the residual preserves source structure. An MLP maps each aligned state to padding and delay logits, which are not applied directly.
Constraint projection
- The action is a non-negative size increment and delay increment per packet; direction, order, and packet count are unchanged. Logits are mapped to [0,1] via Sigmoid, then multiplied by the remaining MTU headroom, remaining bandwidth, or delay budget.
- MTU is 1500 bytes in Appendix Table 9; at deployment the authors state it should be configured according to the encapsulated tunnel PMTU to avoid fragmentation. The budget is consumed packet by packet, and earlier packets may receive a larger share. Appendix I.4 uses full-window ex-post allocation as a comparison.
- Therefore it cannot shrink, delete, inject, split, reorder, or change direction. The default bandwidth and delay budgets are 30% and 50%.
Observation interfaces and training configuration
- Ioracle: Generates the actions for all T packets in one forward pass, used for controlled comparisons across datasets, censors, and source–target pairs. Early-packet actions may depend on later packets; the authors treat this as an upper bound and do not count window collection latency toward the shaping delay budget.
- Icausal: At step t it only sees packets that have arrived, replaces future positions with a learnable MASK, and submits only the current action, which cannot be changed again. It supports online packet-by-packet execution, and inference does not query the censor.
- Training (Appendix Table 9): batch 128, 20 epochs, AdamW, learning rate 5×10−4 with cosine decay, weight decay 1×10−5. The morpher has 2 layers, embedding dimension 64, feedforward dimension 128, 4 heads, dropout 0.1, Pre-LayerNorm.
Success determination
- Targeted success: the censor predicts the morphed early-stage window as ytgt. Non-targeted success: the prediction is not ysrc. Unless otherwise stated, invalid flows count as failures in T-ESR and U-ESR.
- Valid means only additive padding and non-negative delays are used, the MTU and both budgets are satisfied, and there is no transport-layer inconsistency. End-to-end checks include tcpreplay replay, Wireshark expert analysis, and application-layer fingerprints when available.
What experiments did the paper conduct?
Under Ioracle, the four-censor average T-ESR is 85.7% on VideoPF; the VANT causal interface averages 33.20%.
Experimental setup
- Data: UTMobileNet-2021 (12 classes), VANT-2024 (5 classes: C2, Streaming, Chat, VoIP, File Transfer), VideoPF-2025 (self-built 4-class ABR). Split 50%/30%/20%, class composition in Appendix Table 8. The paper does not separately list the number of evaluation-set entries.
- Censors and baselines: GGFAST, Grad-BP, FastFlow, UniNet. Surrogates are only the latter two; the main oracle experiments use the UniNet surrogate, averaged over four independently trained targets. Baselines are RandP, BAP, Amoeba, and PANTS-BB.
- Interfaces: Ioracle is T=30 with the same shaping budget. Icausal hides future packets and submits at once; BAP does not depend on future packets; the adapted Amoeba changes only the current packet but retains per-packet queries. Decision points k are 5, 10, 15, 20, 30.
- Metrics: T-ESR is the proportion predicted as the target class, U-ESR is the proportion predicted as a non-source class. VR is the proportion satisfying the constraints, and invalid flows count as failures. Bandwidth and delay overhead caps default to 30% and 50%.
- Repetitions and clean performance: Unless otherwise stated, the mean of four independent runs. Generation latency is averaged on a single RTX 4090, batch size 1, over 1000 inferences. The authors state that Macro F1 on unperturbed traffic is above 92% in all cases (Appendix Table 10), and UniNet accuracy is 96.50% with standard deviation 0.70; they also state that clean performance saturates around T=30 (Appendix C).
Main results
The table below is Ioracle, four-censor average T-ESR (%), per Table 1.
Swipe horizontally to read the table
Dataset RandP BAP Amoeba PANTS-BB NetGuise VideoPF 4.5±1.3 28.6±12.1 73.7±3.8 66.8±5.3 85.7±2.7 UTMobileNet 3.2±0.3 22.2±5.0 64.0±4.4 58.2±9.7 81.8±1.5 VANT 3.8±0.6 18.5±1.9 61.7±2.6 61.6±5.8 82.0±1.6 - The authors state that targeted is harder than untargeted. In the same table, NetGuise's U-ESR is VideoPF 92.8±1.7, UTMobileNet 89.7±1.3, VANT 90.1±1.3. The authors state the gap is below 8% and T-ESR is above 80%. The main text states it is 20.3% higher than Amoeba (61.7%) on VANT; Table 1 annotates an improvement of +32.9 next to 82.0±1.6.
- Three environments, four-censor average: NetGuise, PANTS-BB, and RandP have VR of 100.0, BAP is 52.7±5.2, Amoeba is 78.5±3.3. NetGuise's bandwidth overhead is 26.1±2.1, delay overhead 38.2±5.9, generation latency 1.13±0.09 ms; Amoeba is 117.9±18.6 ms.
- The authors state that on UTMobileNet PANTS-BB's T-ESR is 58.2%. Appendix Table 15 (VideoPF): NetGuise's T-ESR against Grad-BP, GGFAST, FastFlow, and UniNet is 89.5%, 84.2%, 86.8%, and 82.4%, with VR all 100.0%. The authors state it is above 82% on that dataset in all cases. Appendix Tables 16–17 give per-censor results for the other two datasets.
Causal execution
- VANT: The main text states that in Fig. 4 NetGuise's T-ESR is 24.82%–37.86%; BAP goes from 11.3% at k=5 to 18.6% at k=30. Table 3 averages across k: NetGuise's T-ESR 33.20%, U-ESR 56.32%; BAP 15.48%, 31.34%; Amoeba 13.89%, 44.14%. The authors state that, like BAP, it is query-free, and the 17.72% difference comes from the design. Amoeba is 40.00% at k=5 and drops to 2.86% at k=10.
- Overhead: Table 3, NetGuise bandwidth 3.02%, delay 49.91%, generation 1.16 ms/flow, no runtime queries; BAP 19.80%, 26.71%, 37.42 ms/flow. The authors state BAP has lower delay overhead, and state a 32.3× speedup in generation latency relative to BAP.
- UTMobileNet: Appendix Table 18 mean T-ESR is NetGuise 5.60%, BAP 4.11%, Amoeba 1.63%; U-ESR is 41.89%, 30.22%, 34.34%. At k=20 and k=30, BAP is slightly higher than NetGuise. The main text states that relative to Amoeba, bandwidth goes from 24.52% to 13.53%, and per-packet decision from 3.843 ms to 0.018 ms.
Adaptation and interface defenses
- Retraining (Table 14, VANT, Ioracle): NetGuise's T-ESR goes from 82.4% to 43.5% at r=4, with U-ESR 55.5% in that round. PANTS-BB goes from 61.5% to 17.8%, Amoeba from 60.1% to 15.8%, BAP from 18.4% to 4.5%. The authors state the marginal gains against NetGuise are 19.6%, 10.4%, 5.6%, 3.3% (Fig. 5b). Each round's training set is the union of the original set and an equal amount of morphed flows from the most recent round.
- Longer windows (Table 4): Only the first 30 packets are changed. Clean F1 for 30/50/100 packets is 97.2%, 98.8%, 97.7%, and T-ESR is 82.4%, 43.6%, 26.1%. The authors state that packets outside the window still carry source-class information.
- Feature restriction (Table 4): Direction plus inter-arrival T-ESR 42.3%, F1 62.1%; direction only 2.74%, 41.5%. The authors state that extending observation delays decisions but clean performance remains high; restricting features lowers clean accuracy as well.
Transfer, replay, and load
- Zero-shot (Fig. 6 main text): Censor UniNet trained on UTMobileNet; transformer trained on VideoPF or VANT without adaptation. T-ESR is 48.5% and 42.1%, U-ESR is 66.2% and 63.4%. The abstract writes targeted 48%, untargeted over 63%. The authors state the untargeted improvement over the strongest baseline exceeds 45%.
- Surrogates: The main text states that on VideoPF and GGFAST, the UniNet surrogate T-ESR is 84.2%, and the FastFlow surrogate 72.6%. Appendix Table 22: against the surrogate used for training itself, FastFlow is 89.2%–91.4%, UniNet 92.7%–93.9%; the transfer gap is 5.8%–14.4%.
- Replay and queues: Full evaluation-set tcpreplay success rate 100%, Wireshark alerts 0; JA3 and JA4 match rate 100%. After replaying 200 VANT flows, T-ESR 80.1%, direct-through 3.2%. Table 6: offered load 25% to 75% packet loss 0.00%; at 100% effective payload 123.7%, packet loss 1.84%; at 125% 154.3%, 4.26%. Reordering rate is 0.00% in all cases.
Other ablations and analyses
- Table 2 (VANT, UniNet): C2→Streaming T-ESR 85.8% (PANTS-BB 65.4%), VoIP→Streaming 85.1% (65.5%), C2→Chat 80.2% (58.8%), VoIP→Chat 78.5% (Amoeba 56.5%). The authors state gains of 19.6%–22.0%.
- Appendix Table 20: random reference average T-ESR 68.9%, morphability-aware reference 82.4%. Fig. 10 distance-matched control is 76.2%.
- Appendix Table 21, static/after one round of adaptation T-ESR: cross-attention 79.5%/58.4%, MLP-Concat 66.5%/42.8%, Target-Label 58.2%/34.5%.
- Appendix Table 7: weights (0.3, 0.3, 0.4) give T-ESR 82.4%, and the remaining configurations are at least 80.3%. The authors state the difference is at most 2.1%.
What are some points that can be further explored?
The authors point out that the evaluation focuses on censorship evasion and the TCP early-stage window, and they plan to extend the use cases, transport protocols, and protocol-aware defenses.
Limitations and future directions noted by the authors
- Use-case scope: Mainly instantiated and evaluated in censorship evasion; anomaly detection, website fingerprinting, and IoT traffic classification have not yet been evaluated. The results establish effects in the evaluated censorship settings, not general generalization across all metadata-based MTC tasks (§7 Limitations).
- Detection signals: The threat model targets censorship decisions based on packet metadata, and does not model endpoint IP, SNI, TLS fingerprints, or active probing; the authors leave joint evaluation of these signals to future work (§7).
- Action space: The original packet count is deliberately kept; when target traffic packet structures differ greatly, morphability may be limited. Padding must respect the tunnel PMTU including encapsulation overhead. Added delay may overlap with natural congestion or jitter (§7).
- Target scale and load: A larger target set would expand the reference selection and conditioning space and requires further evaluation. The load experiments characterize a software Mininet testbed and should not be read as carrier-grade hardware line-rate scalability (§7).
- Transport and decision timing: The experiments focus on TCP flows and early-stage windows of at most 30 packets. Extending to QUIC and other modern transports would encounter multiplexing, different loss and retransmission, and application-controlled packetization. Causal execution is evaluated at a set of classifier decision points (§7).
- Future work: The authors write that evaluation should continue across multiple use cases, richer decision-point policies, a larger target space, and defenses that combine adversarial retraining with protocol-aware features (§7).
Experimental coverage
- Censors are GGFAST, Grad-BP, FastFlow, UniNet; datasets are UTMobileNet-2021 (12 classes), VANT-2024 (5 classes), VideoPF-2025 (4 classes). The split ratio is 50%/30%/20% (§5.1). The paper gives class composition (Appendix Table 8) and does not separately list the number of evaluation-set entries.
- Interfaces are Ioracle (T=30) and Icausal (k of 5, 10, 15, 20, 30). Main numbers are the mean of four independent runs. Generation latency is measured on a single RTX 4090, batch size 1, over 1000 inferences (§5.3, §6).
- Defenses include four rounds of adaptive retraining, observation windows of 50 and 100 packets, and direction-plus-inter-arrival and direction-only representations (§6.3, Table 4, Table 14).
- There is also zero-shot cross-environment (censor trained on UTMobileNet, transformer trained on VideoPF or VANT), two surrogates FastFlow and UniNet, Mininet replay of 200 VANT flows, and queue experiments offering loads of 25%, 50%, 75%, 100%, and 125% (three times per condition, 20 flows each) (§6.4–§6.6).
- Inference is set to no-query; if a baseline requires runtime queries, the paper marks it separately. The paper does not report statistical significance tests.
Summarize the main content of the paper
NetGuise directionally morphs early-stage traffic under shaping constraints; on VANT the oracle T-ESR is 82.0%, and the causal interface is 33.2%.
NetGuise uses target-conditioned packet-level tunnel shaping to evaluate the morphability of early-stage encrypted traffic classifiers in censorship evasion.
- Problem: The censor looks only at the metadata of the first several packets of a connection. The evader must, inside tunnels at both ends, using only additive padding and non-negative delay, directionally turn a blocked application into a specified allowed class, without querying the deployed censor at inference time.
- Approach: The target class is fixed; within the class, references are selected by size, timing, and direction compatibility, then cross-attention decodes actions and projects them onto the MTU and overhead budget. Ioracle sees the full window and is treated by the authors as an upper bound; Icausal sees only history and submits packet by packet.
- oracle: Averaged over four censors, the T-ESR for VideoPF, UTMobileNet, and VANT is 85.7%, 81.8%, and 82.0% (Table 1). The main text states it is 20.3% higher than Amoeba (61.7%) on VANT. After four rounds of retraining, it is still 43.5% on VANT (Table 14).
- Causal and transfer: On VANT the causal average T-ESR is 33.20%, and BAP is 15.48% (Table 3); on UTMobileNet they are 5.60% and 4.11%. When the transformer is trained on VideoPF and the censor is trained on UTMobileNet, the zero-shot T-ESR is 48.5%.
- Authors' conclusion: The authors argue that high clean accuracy does not rule out morphability; evaluation should count directional morphability, observation interface, shaping constraints, defender adaptation, and operating conditions together. Extending observation or removing directly manipulable features can reduce evasion, but respectively delays decisions or lowers clean classification performance.