mlsanityData to 7 Oct 2026

Towards Explainable Network Intrusion Detection using Large Language Models

arXiv 2408.04342 ↗First posted 8 Aug 2024cs.CR cs.AI cs.NIcited by 12

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

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2024ORPO: Monolithic Preference Optimization without Reference Modelcited by 556
  3. 2024Large Language Models: A Surveycited by 506
  4. 2023TaskMatrix.AI: Completing Tasks by Connecting Foundation Models with Millions of APIscited by 184
  5. 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
  6. 2020NetFlow Datasets for Machine Learning-based Network Intrusion Detection Systemscited by 45
  7. 2021Towards a Standard Feature Set for Network Intrusion Detection System Datasetscited by 40
  8. 2023Revolutionizing Cyber Threat Detection with Large Language Models: A privacy-preserving BERT-based Lightweight Model for IoT/IIoT Devicescited by 38
  9. 2022Explainable Intrusion Detection Systems (X-IDS): A Survey of Current Methods, Challenges, and Opportunitiescited by 25
  10. 2023FlowTransformer: A Transformer Framework for Flow-based Network Intrusion Detection Systemscited by 24
  11. 2022CAN-BERT do it? Controller Area Network Intrusion Detection System based on BERT Language Modelcited by 17
  12. 2024Can LLMs Understand Computer Networks? Towards a Virtual System Administratorcited by 11
6 more
  1. 2022On Generalisability of Machine Learning-based Network Intrusion Detection Systemscited by 8
  2. 2022DI-NIDS: Domain Invariant Network Intrusion Detection Systemcited by 7
  3. 2021Benchmarking the Benchmark -- Analysis of Synthetic NIDS Datasetscited by 5
  4. 2022Network Intrusion Detection System in a Light Bulbcited by 3
  5. 2023Correlation-Aware Neural Networks for DDoS Attack Detection In IoT Systemscited by 3
  6. 2022NLP Methods in Host-based Intrusion Detection Systems: A Systematic Review and Future Directionscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 5.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026A Protocol-Language Model for Network Intrusion (Without Deep Packet Inspection)
  2. 2024Sentinels of the Stream: Unleashing Large Language Models for Dynamic Packet Classification in Software Defined Networks -- Position Paper
  3. 2025Poster: Enhancing GNN Robustness for Network Intrusion Detection via Agent-based Analysis
  4. 2025DefenderBench: A Toolkit for Evaluating Language Agents in Cybersecurity Environments
  5. 2025Security Concerns for Large Language Models: A Survey
  6. 2025AttackSeqBench: Benchmarking the Capabilities of LLMs for Attack Sequences Understanding
  7. 2026Large Language Models (LLMs) and Generative AI in Cybersecurity and Privacy: A Survey of Dual-Use Risks, AI-Generated Malware, Explainability, and Defensive Strategies
  8. 2025LLM-FS-Agent: A Deliberative Role-based Large Language Model Architecture for Transparent Feature Selection