NetAgent: Multi-Task Agentic Network Traffic Analysis Made Practical
Hao Fu, Dawn Song, Peng Gao
Key points
From the paper's conclusion- These results reveal that existing methods owe much of their reported success to overfitting dataset-specific patterns and degrade sharply in realistic network environments, while NetAgent's agentic design remains accurate, generalizable, and robust.
Abstract
Network traffic analysis is central to network security, spanning tasks from intrusion detection to encrypted traffic classification. Existing approaches either train task-specific models that generalize poorly or rely on costly traffic foundation models that still struggle under distribution shift. We present NetAgent, the first agentic framework for multi-task traffic analysis. Through a carefully designed agent loop, NetAgent supports complex task understanding, on-the-fly decomposition and orchestration, dynamic replanning, and long-horizon analysis, without task-specific training. It introduces five key designs: (1) knowledge-augmented workflow planning that maps attack knowledge to traffic features to bridge the semantic gap; (2) a comprehensive tool action space with 150+ verified tools extracted from 50+ published systems; (3) a unified code execution space for flexible action composition; (4) a three-tier memory for long-term knowledge consolidation; and (5) sandboxing and runtime repair for reliable execution. Across 9 major benchmarks, NetAgent outperforms all baselines (23 single-task and 5 multi-task) on nearly all tasks and generalizes substantially better to unseen traffic distribution (90.04% F1 vs. 2.74% and 3.04% for the best single-task and multi-task baselines) and under realistic background shift (4.85-point F1 drop vs. 74.88-point and 74.80-point drop for the best single-task and multi-task baselines). These results reveal that existing methods owe much of their reported success to overfitting dataset-specific patterns and degrade sharply in realistic network environments, while NetAgent's agentic design remains accurate, generalizable, and robust.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- TrafficInstruct: A Multi-Task Network Traffic Dataset and Benchmark for Instruction TuningarXiv · 2026
- TrafficLLM: LLMs for improved open-set encrypted traffic analysisComputer Networks · 2025
- Airlock: Robust Sandboxing and Governance of Rogue AgentsarXiv · 2026
- TriAlign-ATG: protocol-constrained adversarial traffic generation for learning-based traffic analysisCybersecurity · 2026
- Large language models for agentic NetOps and AIOps: Architectures, evaluation, and safetyComputer Science Review · 2026
- RoutingBench: Can Agentic Routing Analysis Scale to Production Datacenter Networks?arXiv · 2026