Towards Explainable Network Intrusion Detection using Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have revolutionised natural language processing tasks, particularly as chat agents. However, their applicability to threat detection problems remains unclear. This paper examines the feasibility of employing LLMs as a Network Intrusion Detection System (NIDS), despite their high computational requirements, primarily for the sake of explainability. Furthermore, considerable resources have been invested in developing LLMs, and they may offer utility for NIDS. Current state-of-the-art NIDS rely on artificial benchmarking datasets, resulting in skewed performance when applied to real-world networking environments. Therefore, we compare the GPT-4 and LLama3 models against traditional architectures and transformer-based models to assess their ability to detect malicious NetFlows without depending on artificially skewed datasets, but solely on their vast pre-trained acquired knowledge. Our results reveal that, although LLMs struggle with precise attack detection, they hold significant potential for a path towards explainable NIDS. Our preliminary exploration shows that LLMs are unfit for the detection of Malicious NetFlows. Most promisingly, however, these exhibit significant potential as complementary agents in NIDS, particularly in providing explanations and aiding in threat response when integrated with Retrieval Augmented Generation (RAG) and function calling capabilities.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 18 of its 26 references that are in the map. First posted on arXiv 8 Aug 2024.
Builds on
18 of 26 references.
References · 18
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2024ORPO: Monolithic Preference Optimization without Reference Modelcited by 556
- 2024Large Language Models: A Surveycited by 506
- 2023TaskMatrix.AI: Completing Tasks by Connecting Foundation Models with Millions of APIscited by 184
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
- 2020NetFlow Datasets for Machine Learning-based Network Intrusion Detection Systemscited by 45
- 2021Towards a Standard Feature Set for Network Intrusion Detection System Datasetscited by 40
- 2023Revolutionizing Cyber Threat Detection with Large Language Models: A privacy-preserving BERT-based Lightweight Model for IoT/IIoT Devicescited by 38
- 2022Explainable Intrusion Detection Systems (X-IDS): A Survey of Current Methods, Challenges, and Opportunitiescited by 25
- 2023FlowTransformer: A Transformer Framework for Flow-based Network Intrusion Detection Systemscited by 24
- 2022CAN-BERT do it? Controller Area Network Intrusion Detection System based on BERT Language Modelcited by 17
- 2024Can LLMs Understand Computer Networks? Towards a Virtual System Administratorcited by 11
6 more
- 2022On Generalisability of Machine Learning-based Network Intrusion Detection Systemscited by 8
- 2022DI-NIDS: Domain Invariant Network Intrusion Detection Systemcited by 7
- 2021Benchmarking the Benchmark -- Analysis of Synthetic NIDS Datasetscited by 5
- 2022Network Intrusion Detection System in a Light Bulbcited by 3
- 2023Correlation-Aware Neural Networks for DDoS Attack Detection In IoT Systemscited by 3
- 2022NLP Methods in Host-based Intrusion Detection Systems: A Systematic Review and Future Directionscited by 2
Built on by
Citing papers per year: 2025: 7; 2026: 5.
12 papers.
- 2025Large Language Models for Security Operations Centers: A Comprehensive Surveycited by 9
- 2025eX-NIDS: A Framework for Explainable Network Intrusion Detection Leveraging Large Language Modelscited by 5
- 2025Large Language Models for Network Intrusion Detection Systems: Foundations, Implementations, and Future Directionscited by 4
- 2026AI-Native Closed-Loop Security for 6G-Enabled Cyber-Physical Systems: From Edge Detection to Network-Wide Mitigationcited by 1
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
- 2025An LLM-Powered AI Agent Framework for Holistic IoT Traffic Interpretationcited by 0
- 2025ReGAIN: Retrieval-Grounded AI Framework for Network Traffic Analysiscited by 0
- 2025Chat-Driven Optimal Management for Virtual Network Servicescited by 0
- 2026Evaluating Jailbreaking Vulnerabilities in LLMs Deployed as Assistants for Smart Grid Operations: A Benchmark Against NERC Standardscited by 0
- 2026Threat Modelling using Domain-Adapted Language Models: Empirical Evaluation and Insightscited by 0
- 2026(EC)2: Event-Centric Explainability for Cybersecurity Through Multi-Agent LLM Investigationscited by 0
- 2026BlueSTAR: Tiered Agentic Architecture for Autonomous Cyber Defensecited by 0
- 2026BlueSTAR: Tiered Agentic Architecture for Autonomous Cyber Defense10 Sep 2026
- 2026(EC)2: Event-Centric Explainability for Cybersecurity Through Multi-Agent LLM Investigations28 Jul 2026
- 2026AI-Native Closed-Loop Security for 6G-Enabled Cyber-Physical Systems: From Edge Detection to Network-Wide Mitigation6 Jun 2026
- 2026Threat Modelling using Domain-Adapted Language Models: Empirical Evaluation and Insights11 May 2026
- 2026Evaluating Jailbreaking Vulnerabilities in LLMs Deployed as Assistants for Smart Grid Operations: A Benchmark Against NERC Standards25 Apr 2026
- 2025Chat-Driven Optimal Management for Virtual Network Services31 Dec 2025
- 2025ReGAIN: Retrieval-Grounded AI Framework for Network Traffic Analysis23 Dec 2025
- 2025An LLM-Powered AI Agent Framework for Holistic IoT Traffic Interpretation15 Oct 2025
- 2025Large Language Models for Security Operations Centers: A Comprehensive Survey13 Sep 2025
- 2025eX-NIDS: A Framework for Explainable Network Intrusion Detection Leveraging Large Language Models22 Jul 2025
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
- 2025Large Language Models for Network Intrusion Detection Systems: Foundations, Implementations, and Future Directions7 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2026A Protocol-Language Model for Network Intrusion (Without Deep Packet Inspection)
- 2024Sentinels of the Stream: Unleashing Large Language Models for Dynamic Packet Classification in Software Defined Networks -- Position Paper
- 2025Poster: Enhancing GNN Robustness for Network Intrusion Detection via Agent-based Analysis
- 2025DefenderBench: A Toolkit for Evaluating Language Agents in Cybersecurity Environments
- 2025Security Concerns for Large Language Models: A Survey
- 2025AttackSeqBench: Benchmarking the Capabilities of LLMs for Attack Sequences Understanding
- 2026Large Language Models (LLMs) and Generative AI in Cybersecurity and Privacy: A Survey of Dual-Use Risks, AI-Generated Malware, Explainability, and Defensive Strategies
- 2025LLM-FS-Agent: A Deliberative Role-based Large Language Model Architecture for Transparent Feature Selection