eX-NIDS: A Framework for Explainable Network Intrusion Detection Leveraging Large Language Models
Not on the map. Why?
Abstract (arXiv)
This paper introduces eX-NIDS, a framework designed to enhance interpretability in flow-based Network Intrusion Detection Systems (NIDS) by leveraging Large Language Models (LLMs). In our proposed framework, flows labelled as malicious by NIDS are initially processed through a module called the Prompt Augmenter. This module extracts contextual information and Cyber Threat Intelligence (CTI)-related knowledge from these flows. This enriched, context-specific data is then integrated with an input prompt for an LLM, enabling it to generate detailed explanations and interpretations of why the flow was identified as malicious by NIDS. We compare the generated interpretations against a Basic-Prompt Explainer baseline, which does not incorporate any contextual information into the LLM's input prompt. Our framework is quantitatively evaluated using the Llama 3 and GPT-4 models, employing a novel evaluation method tailored for natural language explanations, focusing on their correctness and consistency. The results demonstrate that augmented LLMs can produce accurate and consistent explanations, serving as valuable complementary tools in NIDS to explain the classification of malicious flows. The use of augmented prompts enhances performance by over 20% compared to the Basic-Prompt Explainer.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 16 of its 29 references that are in the map. First posted on arXiv 22 Jul 2025.
Builds on
16 of 29 references.
References · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,184
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 71
- 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 39
- 2022Explainable Intrusion Detection Systems (X-IDS): A Survey of Current Methods, Challenges, and Opportunitiescited by 25
- 2023HuntGPT: Integrating Machine Learning-Based Anomaly Detection and Explainable AI with Large Language Models (LLMs)cited by 25
- 2023FlowTransformer: A Transformer Framework for Flow-based Network Intrusion Detection Systemscited by 24
4 more
- 2022CAN-BERT do it? Controller Area Network Intrusion Detection System based on BERT Language Modelcited by 17
- 2024Towards Explainable Network Intrusion Detection using Large Language Modelscited by 14
- 2024Can LLMs Understand Computer Networks? Towards a Virtual System Administratorcited by 11
- 2023Explaining Tree Model Decisions in Natural Language for Network Intrusion Detectioncited by 7
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025Unified Threat Detection and Mitigation Framework (UTDMF): Combating Prompt Injection, Deception, and Bias in Enterprise-Scale Transformerscited by 1
- 2025ReGAIN: Retrieval-Grounded AI Framework for Network Traffic Analysiscited by 0
- 2026Attribution-Driven Explainable Intrusion Detection with Encoder-Based Large Language Modelscited 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
- 2026Attribution-Driven Explainable Intrusion Detection with Encoder-Based Large Language Models7 Apr 2026
- 2025ReGAIN: Retrieval-Grounded AI Framework for Network Traffic Analysis23 Dec 2025
- 2025Unified Threat Detection and Mitigation Framework (UTDMF): Combating Prompt Injection, Deception, and Bias in Enterprise-Scale Transformers6 Oct 2025