NetAgent: Multi-Task Agentic Network Traffic Analysis Made Practical
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.
Create a lesson
Metadata
- Categories
- cs.CR, cs.NI
- Comments
- 23 pages,8 figures
Related papers
Unravel: Robust Multi-Tab Website Fingerprinting through Reinforcement Learning-Based Sequential Traffic Disentanglement
Shared title terminologycs.CRHao Fu, Degang Sun, Jinxia Wei et al.
A Language for Composing Multi-Agent Protocols
Shared title terminologycs.CRHugo O'Connor
GROB: A Multi-Agent Architecture for Public-Trace Investigation of Candidate Agentic Activity
Shared title terminologycs.CRChiara Bonfanti, Cataldo Basile
Multi-Aspect Runtime Verification for Simulation-Based V&V of LLM-Enabled Autonomous Agents
Shared title terminologycs.CRNikolaos Kekatos, Dimitrios Nikou, Anastasios Temperekidis et al.
Compromise Is Not Consequence: Evaluating Task-Scoped Authorization in LLM Agents with Paired Replay
Shared title terminologycs.CRTural Hagverdiyev
MIRROR: Multipath Quorum Integrity for LLM Multi-Agent Communication
Shared title terminologycs.CRRyuichi Yamafuji Lun, Jingzhen Wang, Shreyas Kolte et al.