MalRAG: A Retrieval-Augmented LLM Framework for Open-set Malicious Traffic Identification
Xiang Luo, Chang Liu, Gang Xiong, Chen Yang, Gaopeng Gou, Yaochen Ren, and Zhen Li

TL;DR
MalRAG introduces a retrieval-augmented framework using large language models for open-set malicious traffic identification, enabling effective detection of both known and novel threats without task-specific tuning.
Contribution
It is the first LLM-driven retrieval-augmented framework for open-set malicious traffic detection, utilizing multi-view traffic databases and adaptive retrieval techniques.
Findings
Achieves state-of-the-art results on real-world datasets.
Effectively detects both known and novel malicious traffic.
Does not rely on task-specific LLM tuning.
Abstract
Fine-grained identification of IDS-flagged suspicious traffic is crucial in cybersecurity. In practice, cyber threats evolve continuously, making the discovery of novel malicious traffic a critical necessity as well as the identification of known classes. Recent studies have advanced this goal with deep models, but they often rely on task-specific architectures that limit transferability and require per-dataset tuning. In this paper we introduce MalRAG, the first LLM driven retrieval-augmented framework for open-set malicious traffic identification. MalRAG freezes the LLM and operates via comprehensive traffic knowledge construction, adaptive retrieval, and prompt engineering. Concretely, we construct a multi-view traffic database by mining prior malicious traffic from content, structural, and temporal perspectives. Furthermore, we introduce a Coverage-Enhanced Retrieval Algorithm that…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsInternet Traffic Analysis and Secure E-voting · Network Security and Intrusion Detection · Authorship Attribution and Profiling
