NetAgent: an agent framework for multi-task network traffic analysisNetAgent: Multi-Task Agentic Network Traffic Analysis Made Practical
The authors propose NetAgent; in cross-dataset web attack detection, NetAgent's F1 is 90.04%, while the best single-task baseline is 2.74%.
- Security operations often need to chain encrypted application classification, tunnel detection, and host assessment into workflows. Existing methods are mostly single-task models, or traffic foundation models pretrained then fine-tuned; the authors state that monolithic models cannot decompose complex analysis into collaborative subtasks.
- NetAgent answers natural language queries through a closed loop of decision-maker, planner, and executor. During planning, it retrieves attack rules and maps them to multi-view features; the executor calls 157 tools in a persistent Python space and repairs failed steps according to data flow; three-layer memory compresses conclusions into reusable knowledge.
- NetAgent has the highest F1 in 8 of the 9 items in Table 3. In cross-dataset testing, the single-task and multi-task baselines peak at 2.74% and 3.04%, while NetAgent achieves 90.04%; with 5x backbone background traffic, NetAgent drops to 95.1% F1, a decrease of 4.85 points.
- The authors state in the Discussion that it is not a real-time processor and its capability is constrained by the coverage of the tool library and attack knowledge base; the Conclusion plans real-time integration, expanded coverage, and parallel architecture. Experiments use 9 benchmarks, 28 baselines, F1 with 10-fold cross-validation, and generalization and background shift are each reported on one setting.
- Evaluated models
- GPT-5.5DeepSeek-V4-FlashQwen3.5-9BDeepSeek-V4-ProQwen3.7-MaxKimi-K3Grok-4.6
- Benchmarks
- UNSW-NB15CIC-IDS2017CIC-IDS2018CICIoT2023CIC-DDoS2019ISCX-VPN2016DF2018CAIDA ASDGArchiveMAWI/WIDEUSTC-TFC2016
- Metrics
- F1code execution success rate
NetAgent is the first agent framework for multi-task traffic analysis, capable of complex task understanding, dynamic decomposition and orchestration, and long-horizon analysis without task-specific training. It includes five designs: knowledge-enhanced workflow planning, an action space of 150+ tools, a unified code execution space, three-tier memory, and sandboxing with runtime repair. Across 9 benchmarks, NetAgent surpasses 23 single-task and 5 multi-task baselines on almost all tasks, achieving an F1 of 90.04% on unseen traffic distributions, while the best baselines achieve only 2.74% and 3.04%.
Related events and news
1 events · 1 news mentions
- This event's paper
NetAgent:多任务智能体网络流量分析框架
News that mentions this paper
- 公众号 大模型安全研究cites the paper's id or link大模型安全周报:决策性模型护栏也能被攻击者绕过
NetAgent: Multi-Task Agentic Network Traffic Analysis Made Practical(https://arxiv.org/abs/2610.07386)
Paper analysis
What problem does this paper attempt to solve?
The authors propose NetAgent, an agent that orchestrates multi-task traffic analysis without task-specific training.
Existing methods either train per task and are hard to combine, or rely on traffic foundation models that still degrade under distribution shift; the authors want an agent that requires no task-specific training and can decompose and orchestrate multi-task analysis.
- Scenario: Tasks include intrusion and malicious traffic detection, encrypted traffic classification, fingerprinting, and flow correlation. The authors state that SOCs need to synthesize multiple types of results. The example in the text is: first filter encrypted flows by application, then perform tunnel detection on unassigned flows, then check whether related hosts are compromised. The authors state that no single model can provide such interdependent workflows.
- Existing shortcomings: The authors state that one-task-one-model limits transfer and composition, and new tasks require re-labeling and retraining. nPrint still produces isolated shallow classifiers. TrafficFormer pretraining is expensive and fine-tuning requires many labels; the introduction states its F1 drops more than 61.2 points under distribution shift (pointing to Section 4.4). The authors state that a monolithic model cannot decompose complex analysis in a single forward pass.
- Direct LLM use: In Figure 1, on 1000 C2 beacon connections from USTC-TFC2016, five major LLMs recognize at most 3, and hallucinate attacks not present in the capture; simple code tasks have a highest correct execution rate of 78%; after adding unseen MAWI, web attack detection F1 drops below 50%. The authors summarize the reasons as semantic gaps, fragmented action spaces, and fragile long-range analysis.
- Approach: The authors believe parsing, feature extraction, aggregation, and flow classification can be made into atomic tools and dynamically orchestrated. They propose NetAgent, calling it the first unified multi-task traffic analysis agent framework, with a closed loop of decision-maker, planner, and executor for decomposition, execution, and replanning.
- Usage setting: Users are operators or analysts at enterprise gateways or SOC monitoring points, querying PCAP, NetFlow, or CSV/TXT feature tables in natural language, and can follow up based on conclusions. The authors state that existing systems mostly have fixed input-traffic, output-label interfaces.
What related research exists?
The authors review rules, deep models, traffic foundation models, and security agents, and state that previously there was no unified multi-task traffic analysis agent.
Rules and shallow machine learning
- Rules and statistics: Port-based methods map applications by registered ports (Dreger et al., 2006); Snort (Roesch et al., 1999) and Suricata perform signature matching on payload. The authors state that such methods are fast, but attackers can change ports or mutate payload to evade fixed rules; how to maintain rule sets without causing excessive false positives is cited by the authors as still an open problem.
- Handcrafted features plus shallow classifiers: Intrusion detection on flow statistics, device fingerprinting, and proxy detection on handshake and timing features. The authors state that handcrafted features must be redone for new tasks, and their discriminative power declines as applications and attacks evolve.
Deep models and traffic foundation models
- Task-trained deep models: GNNs model structural relationships between flows for malicious traffic detection and encrypted traffic classification; sequence models capture packet-level timing for DDoS detection and website fingerprinting. The authors state that they remain one-task-one-model and require large amounts of labels.
- Shared pretrained models: ET-BERT (Lin et al., 2022), TrafficFormer (Zhou et al., 2025), and MM4flow (Yang et al., 2025) are self-supervised pretrained on large-scale traffic and then fine-tuned for downstream tasks. TrafficLLM (Cui et al., 2025; the authors note unpublished) adapts general LLMs with traffic-specific tokenization and fine-tuning rather than pretraining from scratch. The authors state that pretraining is expensive, fine-tuning still requires many labels, and a monolithic model cannot be decomposed into collaborative steps; they also state that TrafficFormer and TrafficLLM generalize poorly under network drift (Section 4.4).
LLM agents
- General closed loop: ReAct (Yao et al., 2022) lets the model plan subtasks, call tools, observe feedback, and revise plans. Similar agents have been used in software engineering, biomedicine, and chemistry research. The paper only describes these works without comparing them one by one to this paper.
- Security agents: PentestGPT (Deng et al., 2024) assists human-guided penetration testing; PentestAgent (Shen et al., 2025) automates reconnaissance and exploitation; Chimera (Yu et al., 2026) uses multi-agent simulation of insider threats. CAGE (Kiely et al., 2025) evaluates reinforcement learning defense agents acting on abstract environment states, not real traffic.
- Traffic analysis agents: IDS-Agent (Li et al., 2025) applies an iterative closed loop to IoT intrusion detection. The authors state that this loop actually only aggregates predictions from a few shallow classifiers and is IoT-specific. The authors state that no prior agent simultaneously covers diverse task domains, heterogeneous inputs, and long-horizon complex analysis.
Baselines and benchmarks
- 23 single-task baselines: 7 classic ML (Random Forest, SVM, KNN, Gradient Boosting, Logistic Regression, Decision Tree, KMeans) and 16 deep methods, including HyperVision, PointCloud, RAPIER, Lemon, NetRadar, Rosetta, TFE-GNN, Sugar, Deep Fingerprinting, Swallow, Multi-tab WF, IoT Device ID, WiFinger, Semantics-Aware, Joint Adversarial Training DGA Classification, IDS-Agent.
- 5 multi-task baselines: nPrint, ET-BERT, TrafficFormer, TrafficLLM, and ReAct equipped with NetAgent's tool library. The benchmark is the 9 datasets in Table 2; robustness experiments additionally use MAWI/WIDE.
The authors position this paper on a decomposable, orchestratable, generalizable paradigm, stating that NetAgent is the first unified multi-task traffic analysis agent framework, replacing task-specific training or single forward prediction with dynamic composition of shared operations.
How does the paper address this problem?
The decision-maker, planner, and executor form a closed loop, using attack knowledge retrieval, 157 tools, and repairable code execution to complete analysis.
NetAgent answers natural language queries with an iterative closed loop of decision-maker, planner, and executor: plan the workflow, execute, then decide whether to end or replan. Supporting components are knowledge-enhanced planning, a tool library, a code execution space, three-layer memory, and sandboxing with runtime repair.
Agent Closed Loop
- Decision-maker: Summarizes findings from each round, sends planning requests to the planner specifying the analysis goal and traffic to examine. After execution, decides whether to send the next request, modify the current request, or return a final conclusion.
- Planner: Turns requests into ordered steps and records dependencies with a dataflow graph. Each step either calls a verified tool or specifies an operation implemented by the executor generating code. On failure, regenerates the failed step and its dependent steps.
- Executor: Runs workflows in a persistent code space and returns step-by-step results to the decision-maker. The planning function's inputs include the request, traffic batch, tool library, previous conclusions, and knowledge retrieved by request and observed traffic.
Knowledge-Enhanced Workflow Planning
- Multi-view features: Raw captures have mixed protocols, and the authors believe LLMs struggle to reason over them directly. The system maps each flow in a batch to a row of features. The paper writes F(x)=(f1(x),…,fm(x)), i.e., m views each give one real-valued feature, stacked into a matrix with rows as flows and columns as views. There are over 50 views, covering packet length statistics, inter-arrival times, flow statistics, protocol fields, TCP flags, and packet length distributions. The current design excludes payload; the authors' stated reason is that much traffic is encrypted and payload features drift with application versions. The planner also receives each feature's format, meaning, and expected range.
- Attack knowledge base: Each rule links an attack category to feature conditions. The paper writes ∀x. cond1(x)∧⋯∧condk(x)⇒c(x), with a natural language explanation attached. The cryptomining example in the paper uses three predicate types: connection duration, average packet length, and average inter-arrival time. Rules are extracted by an LLM from the same batch of 50+ papers used to build the tool library, then manually verified against the original sources; the authors state the same process can incorporate public threat reports.
- Retrieval: Rules are embedded once by category and formula; queries embed the request text and batch features. Cosine similarity selects the most similar ones. In Table 5, the retrieval count is k=10. The authors state these conditions indicate which features must be computed, guiding tool selection and workflow composition.
Tool Action Space
- Extraction from literature: An LLM pipeline processes 50+ published systems in security and networking, identifies target tasks, and decomposes operations into five layers. Source code is adapted when available; otherwise, implemented per the paper's description. Each tool is a Python function with a type signature and natural language description, traceable to the source paper and operation. Implementations are manually verified against the paper, tested on predefined cases, and, where applicable, reproduce original results on the same datasets. The authors state reproduction matches the original (Table 6), e.g., F1 on UNSW-NB15 from 0.9780 to 0.9758.
- Deduplication: Candidate operations overlap. The authors formulate the minimal subset preserving all operation coverage as set cover, use greedy selection with pruning, and manually remove renamed duplicates and trivial operations achievable with a few lines of generated code. The authors state that over 85% of the original candidates are removed, leaving 157 tools; the abstract also writes 150+.
- Five-layer partial order (Table 1): L1 reads PCAP, NetFlow, CSV/TXT; L2 extracts packet-level and flow-level atomic features; L3 constructs window statistics, multi-flow or host distributions, and pretrained encoder representations; L4 derives attack-related features from enhanced knowledge; L5 runs supervised classifiers, anomaly detection, or clustering. Only lower-layer outputs may enter the same or higher layers; layers can be skipped. The planner checks this order before execution. Interfaces within the same layer are unified, allowing replacement or parallel use on the same input.
Code Execution and Failure Recovery
- Code as composition medium: Actions are snippets executed in a persistent Python namespace, not isolated JSON or text calls. Tools are callable functions; intermediate results remain in variables, and later steps reference them directly. Snippets can contain loops, branches, and intermediate computations, and can be used with standard Python libraries.
- Sandbox: Each step runs in a lightweight, disposable sandbox; only explicitly recorded results are written to persistent space. Files are divided into a read-only input area, a disposable computation area, and an output area that commits only necessary artifacts.
- Pre-execution checks and runtime repair: Before execution, arguments, types, and whether referenced variables exist in the namespace with valid data are checked. The import whitelist is the standard library plus 20 approved analysis libraries; snippets failing checks are regenerated first. Runtime exceptions and step logs are returned to the executor for localization, rewriting, and rerunning in a new sandbox with the same inputs. If the error originates upstream, only the failed step and its dependencies are rerun per the dataflow graph. If still failing, the failure and namespace state are given to the planner to regenerate with a different tool. Figure 4 illustrates this process.
Three-Layer Memory
- Decision: Each round, the decision-maker receives the current request, execution results, existing conclusions, and query-relevant memory, and outputs this round's conclusion, a confidence between 0 and 1, and whether the next step is replanning or answering the user.
- Three layers: The episodic layer stores timestamped conclusions per round; the pattern layer merges similar episodes; the knowledge layer stores long-term conclusions, such as routine host behavior or recurring attack patterns. Retrieval takes the top entries by semantic similarity to the query and entry weight; in Table 5, the decision-maker retrieves 30 entries. Weights use a sigmoid mixing novelty and confidence, with novelty weight α=0.6; novelty is estimated by histogram density.
- Consolidation and drift: Similar episodes merge upward into patterns, and recurring patterns distill into knowledge; conclusions from different queries can also be merged. Entries are retained only when age, frequency, and conflict meet thresholds. In Table 5, age threshold 60, frequency threshold 0.1, conflict threshold 0.5, and the three layers have caps of 20000, 500, and 50 entries. The authors state this replaces outdated or conflicting conclusions with newer, recurring ones. The maximum closed-loop count is 30, and sandbox repair is at most 4 times.
- Prompts: Appendix B gives four types of prompts for planning, tool selection, code execution, and decision, specifying each module's inputs, outputs, and role; full prompts are in Appendix B.
What experiments did the paper conduct?
NetAgent has the highest F1 in Table 3 for 8 of 9 tasks; cross-dataset F1 is 90.04%, and 95.1% under 5x background traffic.
Experimental Setup
- Tasks and Scale: Table 2 lists 9 items. CIC-IDS2017 is 2.8M, containing 14 attack types and benign; CIC-IDS2018 is 16.2M, with 50 attackers and class imbalance; UNSW-NB15 is 2.5M, with 9 attack families; CICIoT2023 is 46.8M, with 33 attacks, 7 classes, and 105 devices; CIC-DDoS2019 is 50M+, with 12 attacks; ISCX-VPN2016 is 9.8K, with 7 applications, including VPN and non-VPN; DF2018 is 140K, with 95 Tor sites and 41K open-world traces; CAIDA AS is 70M+, with 2025 AS-level topology; DGArchive is 100M+, with 93+ families. Robustness additionally uses MAWI/WIDE, described in the paper as 200M+ and 10-Gbps backbone traces.
- Baselines: 23 single-task methods (7 classical ML, 16 deep methods) and 5 multi-task methods (nPrint, ET-BERT, TrafficFormer, TrafficLLM, ReAct equipped with the same tool library). Single-task baselines are evaluated on their target datasets; multi-task baselines cover nine datasets. Public code uses default settings; otherwise, reimplemented per the paper and verified.
- Backbone LLM: NetAgent and ReAct use GPT-5.5. Section 4.5 additionally evaluates DeepSeek-V4-Flash (284B) and Qwen3.5-9B. The main text states that the evaluated alternative LLM parameter sizes range from 9B to 284B.
- Protocol and Metrics: Each dataset is split 80%/20% for training and testing, with results averaged over 10-fold cross-validation. The primary metric is F1. Table 3 reports end-to-end F1. The paper does not mention an independent review model, decision thresholds, or human agreement.
- Authors' Claims on Training: The authors state that NetAgent does not undergo task-specific training. L5 tools include models such as existing supervised learning classifiers; before inclusion, they are reproduced per the original paper (Table 6).
- Preliminary Experiments in Figure 1: Five major LLMs are used for C2 identification, code execution, and web attack detection under drift. The main text does not list the names of these five models individually.
Main Results
The table below is taken from Table 3. Rows are tasks, as the comparison methods differ per task. To keep the table within length, VPN, where NetAgent has the lowest F1, is included, and three items are omitted; the numbers for the omitted items are written after the table.
Swipe horizontally to read the table
Task NetAgent Best Single-Task Best Multi-Task VPN, ISCX-VPN2016 0.9242 Rosetta, 0.9120 ET-BERT, 0.9454 NIDS, UNSW-NB15 0.9863 PointCloud, 0.9750 nPrint, 0.9807 Web, CIC-IDS2017 0.9995 HyperVision, 0.9920 TrafficLLM, 0.9955 IoT, CICIoT2023 0.9998 IDS-Agent, 0.9691 ReAct-Agent, 0.8262 DDoS, CIC-DDoS2019 0.9999 NetRadar, 0.9989 nPrint, 0.9850 WF, DF2018 0.9965 DeepFP, 0.9797 TrafficFormer, 0.9520 Three items not in the above table from Table 3: fine-grained (CIC-IDS2018) NetAgent 0.9999, Classical ML 0.9999, TrafficFormer 0.9985; BGP (CAIDA AS) NetAgent 1.00, Semantics-Aware 1.00, ReAct-Agent 0.9752; DGA (DGArchive) NetAgent 0.9999, Classical ML 0.9899, nPrint 0.9750. The table title calls ∆ absolute F1 differences, with cells written as percentages like +1.13%; the above table retains only the original F1 values.
- The authors state that NetAgent is highest in 8 of the 9 tasks, with the sole exception being VPN. They attribute the exception to classification relying on fine-grained byte encapsulation, while the current library lacks a byte-level encoder to avoid encrypted payload noise affecting other tasks; they state this encoder could be added as a tool without changing the framework. They state that on the remaining 8 tasks, NetAgent exceeds ET-BERT by an average of 35.51 F1 points. They also state that the F1 on these 8 tasks is all above 98.63%; the lowest cell among these 8 in Table 3 is NIDS at 0.9863.
- The authors state that multi-task baselines perform well only on some tasks. In Table 8, nPrint's VPN F1 is 0.5478; TrafficFormer, ET-BERT, and TrafficLLM's DGA F1 are 0.3556, 0.2588, and 0.5257. ReAct's website fingerprinting, VPN, and DGA are 0.4997, 0.3967, and 0.4228. The authors state that ReAct is below 49.97% on these three, and that it typically concludes after calling no more than three tools.
- The authors' conclusion is that multi-task analysis requires both task-specific feature extraction and agent reasoning and decision-making over intermediate results.
Cross-Dataset Generalization
- What was tested: web attack detection. Baselines are trained on UNSW-NB15 and tested on shared attack classes in CIC-IDS2017. Shared classes are DDoS, scanning, reconnaissance, exploits, infiltration. The authors state that community baselines on these two datasets reach 98% accuracy in-distribution. NetAgent, according to the authors, has no corresponding task-specific training.
- Results: The highest single-task and multi-task baseline F1 are 2.74% and 3.04%, dropping 95.16 and 82.56 points relative to their in-distribution results. NetAgent is 90.04%, dropping 9.91 points. Figure 6(a) title states baselines drop to about 3% F1, with NetAgent at 90.04%. The paper does not name which methods these two "highest baselines" are.
- Authors' Interpretation: Shallow classifiers like nPrint and IDS-Agent overfit dataset-specific patterns; ET-BERT and TrafficFormer underfit benign traffic, with fine-tuning concentrated on attack patterns in the training data, causing many false positives on benign traffic in new data; TrafficLLM lacks an external knowledge base and remains tied to training patterns. The authors believe NetAgent generalizes because it retrieves attack knowledge during planning and decomposes tasks over the tool library.
Robustness Under Real Background Traffic
- What was tested: web attack detection on CIC-IDS2017, injecting 5× volume of MAWI/WIDE into the test set. Injected traffic exceeds 283 million packets. Original labels are unchanged; all new flows are treated as benign.
- Results: Section 4.4 states the highest single-task and multi-task baselines lose 74.7 and 74.2 F1 points, with all baselines dropping to about 25% F1; NetAgent drops 4.85 points, with F1 at 95.1%. The abstract and introduction write the comparison drops as 74.88 and 74.80 points, with NetAgent still at 4.85 points. Figure 7 title states baselines at about 25%, NetAgent maintaining 95.1% with a 4.85-point drop. The introduction also states TrafficFormer's F1 drops more than 61.2 points under distribution shift, pointing to Section 4.4; that section's text does not repeat 61.2. The alignment of text in the figure with method columns is unreliable, so values near 0.25 in the figure are not assigned to specific baselines here.
- Components and Authors' Interpretation: Out of 100 single-task queries and 100 multi-task queries, the planner gives valid workflows for 98 and 96; the authors state multi-task is only 2 points lower. The executor succeeds on the first attempt 88% of the time, with the remaining proportions listed in the paper as parameter type errors 8%, undefined references 3%, and import errors 1%; after one repair, the success rate exceeds 99%. On the four tasks in Figure 6(b) (listed in the title as CIC-IDS2017, CIC-DDoS2019, CICIoT2023, ISCX-VPN2016), intermediate conclusions differ by at most 45.51 F1 points; the decision-maker's final conclusions average 2.26 F1 points higher than the best single conclusion. The authors state baselines collapse due to closed-world training, with unseen background flows assigned to the nearest known pattern; NetAgent only flags flows matching retrieved rules and cross-checks classifier outputs with rule matching and traffic statistics.
Other Ablations and Analyses
- Three-layer memory: Replaced with flat natural language notes on web attack detection; the text states F1 drops 35.57 points; Figure 8 axis is named F1 Drop After Component Removal (%), labeled −35.57%.
- Code execution space: Replaced with ReAct-style calls on the same tool library; the text states a drop of 26.57 points (Figure 8 labels −26.57%).
- Attack knowledge base: Drops 5.39 points when classifiers remain available; drops 68.94 points in the unsupervised setting (text; Figure 8 lists Supervised and Unsupervised separately).
- Failure recovery: Without it, executed code volume increases to 3.8× (relative to 1.0×); the text states an F1 change of 10.05 points, without specifying increase or decrease.
- Swapping LLM (Table 4, same web attack detection): All three using GPT-5.5 gives F1 of 0.9995; all using DeepSeek gives 0.9993 (code volume 1.1×, steps 1.2×); all using Qwen gives 0.7745 (5.2×, 0.7×). Swapping only the executor to Qwen3.5-9B: 0.9989, 4.9×; swapping only the planner: 0.9173, steps 0.8×; swapping only the decision-maker: 0.8241. In the table, Qwen appears as both Qwen3-9B and Qwen3.5-9B; the text consistently uses Qwen3.5-9B. The authors state all-GPT-5.5 is highest, with DeepSeek-V4-Flash within 0.02 F1 points; they also state the planner and decision-maker depend more on a stronger LLM, while the executor is less sensitive because the code space and failure recovery correct weaker model errors. The authors also state that swapping the executor increases code volume to 4.9× with F1 dropping only 0.06 points; swapping the planner shortens workflows to 80% of the original with F1 dropping 8.22 points; swapping the decision-maker drops F1 by 17.54 points.
- Feature sources (Figure 5): The authors take features from the best baseline on each task, train another Random Forest, and state the gap to the best result is within 2 F1 points. nPrint and IDS-Agent both use Random Forest on IoT; the authors state they differ by 14.59 F1 points; in Table 8 they are 0.8232 and 0.9691.
What are some points that can be further explored?
The authors state it is not real-time and is constrained by tool and knowledge coverage, and plan real-time integration, expanded coverage, and parallel architecture.
Limitations and future directions noted by the authors
- Not real-time: Each closed-loop call invokes the LLM for planning, code generation, and decision-making, and the executor may run multiple analyses on a single capture. The authors state that latency is dominated by iterative reasoning rather than packet arrival rate, and call this a deliberate trade-off: it answers open-ended questions requiring intermediate evidence, while fixed detectors quickly answer predefined questions, and the two are complementary (Section 5).
- Coverage boundary: Tasks without a matching tool fall back to LLM-generated code; attacks not in the knowledge base are analyzed with other available tools such as classifiers or anomaly detection. The authors state this is a coverage limitation, not an architectural one (Section 5).
- Parallel scaling: The authors write running planner-executor in parallel by host, time window, or attack hypothesis, aggregated by an upper-level decision-maker, as a possible extension (Section 5). The current design uses a hierarchical role structure where the decision-maker coordinates the planner and executor.
- Future work: The Conclusion states future work includes real-time integration, broader tool and knowledge coverage, and more parallel multi-agent architectures (Section 6).
Experimental coverage
- Main experiments: 9 tasks in Table 2, against 23 single-task baselines and 5 multi-task baselines; primary metric F1; 80%/20% split, averaged over 10-fold cross-validation (Section 4.1).
- LLM: Default backbone is GPT-5.5; Section 4.5 additionally swaps in DeepSeek-V4-Flash (284B) and Qwen3.5-9B, replacing the planner, executor, or decision-maker one at a time.
- Shift and ablation: Generalization is baselines trained on UNSW-NB15 and tested on shared attack categories in CIC-IDS2017 (Section 4.3). Background traffic is CIC-IDS2017 web attack detection with 5x MAWI/WIDE injected (Section 4.4). Component-wise ablation is also done on web attack detection (Section 4.5).
- Boundaries stated in the design: The feature matrix currently excludes payload (Section 3.2). The final tool count is 157, from more than 50 published systems; rules and tools are verified manually against the papers (Sections 3.2, 3.3).
- Quantities not reported in the paper: Specific values for end-to-end latency, token consumption, and query counts; statistical significance tests; execution results after converting confirmed findings into IDS or firewall rules (Section 5 only states the system supports such conversion). The five LLMs used in Figure 1 are not individually named in the text.
Summarize the main content of the paper
NetAgent orchestrates tools for multi-task traffic analysis; the authors report a cross-dataset F1 of 90.04%, dropping 4.85 points under the 5× background.
NetAgent is a multi-task network traffic analysis agent framework. The authors want analysts to use natural language to chain classification, tunnel detection, and host assessment into replanning workflows, without training a separate model for each task.
- Problem: The authors argue that single-task models are hard to transfer and combine, traffic foundation models are expensive to pretrain and still require large amounts of labels, and a single forward pass cannot decompose complex analysis. When using LLMs directly, high-level attack knowledge does not match low-level traffic features, tools are scattered, and long-horizon execution easily fails due to a single step error.
- Method: The decision-maker, planner, and executor work in a loop. Traffic is collected into multi-view features without payload; attack rules are written as conditions on these features, retrieved, and used to select tools. The 157 tools come from more than 50 published systems and are combined according to a five-layer partial order from reading data to classification. The executor uses a persistent Python space to compile tools into code and reruns only failed steps and their dependencies according to data flow. Three-layer memory compresses each round's conclusions into patterns and long-term knowledge, then replaces outdated entries by recency, frequency, and conflict.
- Main results: Of the 9 items in Table 3, the authors state that NetAgent is highest in 8, and that these 8 have F1 above 98.63%; in the table, NIDS is 0.9863 and BGP is 1.00. For VPN classification, NetAgent is 0.9242, lower than ET-BERT's 0.9454, and higher than the single-task methods in the table.
- Shift: After baselines are trained on UNSW-NB15, web attack detection is done on shared attack categories in CIC-IDS2017; single-task and multi-task peak at 2.74% and 3.04%, while NetAgent is 90.04%. After injecting 5x MAWI/WIDE, NetAgent is 95.1% F1, a decrease of 4.85 points. The abstract writes decreases of 74.88 and 74.80 points against baselines, while Section 4.4 writes 74.7 and 74.2 points.
- Authors' conclusion: The reported performance of prior methods largely comes from overfitting to dataset-specific patterns and degrades under background noise and distribution shift; the authors state that NetAgent remains accurate, generalizable, and robust in these settings, and can fold task-specific methods into a multi-task framework without task-specific training. The authors plan real-time integration, expanded tool and knowledge coverage, and more parallel multi-agent structures.