Search papers, labs, and topics across Lattice.
This paper introduces MA-IDS, a multi-agent intrusion detection system leveraging LLMs and RAG to improve IoT network security. The system uses a Traffic Classification Agent and an Error Analysis Agent that collaborate via a FAISS database to build a persistent "Experience Library" of detection rules from past misclassifications. Experiments on NF-BoT-IoT and NF-ToN-IoT datasets show MA-IDS significantly outperforms zero-shot LLM baselines and achieves competitive performance with SVM, while also providing explainable rule-based classifications.
LLMs can learn to detect network intrusions in IoT environments with high accuracy and explainability by continuously building and retrieving from an external "Experience Library" of past errors.
Network Intrusion Detection Systems (NIDS) face important limitations. Signature-based methods are effective for known attack patterns, but they struggle to detect zero-day attacks and often miss modified variants of previously known attacks, while many machine learning approaches offer limited interpretability. These challenges become even more severe in IoT environments because of resource constraints and heterogeneous protocols. To address these issues, we propose MA-IDS, a Multi-Agent Intrusion Detection System that combines Large Language Models (LLMs) with Retrieval Augmented Generation (RAG) for reasoning-driven intrusion detection. The proposed framework grounds LLM reasoning through a persistent, self-building Experience Library. Two specialized agents collaborate through a FAISS-based vector database: a Traffic Classification Agent that retrieves past error rules before each inference, and an Error Analysis Agent that converts misclassifications into human-readable detection rules stored for future retrieval, enabling continual learning through external knowledge accumulation, without modifying the underlying language model. Evaluated on NF-BoT-IoT and NF-ToN-IoT benchmark datasets, MA-IDS achieves Macro F1-Scores of 89.75% and 85.22%, improving over zero-shot baselines of 17% and 4.96% by more than 72 and 80 percentage points. These results are competitive with SVM while providing rule-level explanations for every classification decision, demonstrating that retrieval-augmented reasoning offers a principled path toward explainable, self-improving intrusion detection for IoT networks.