Towards Explainable Network Intrusion Detection using Large Language Models
Paul R. B. Houssel, Priyanka Singh, Siamak Layeghy, Marius, Portmann

TL;DR
This paper explores the potential of large language models like GPT-4 and LLama3 for explainable network intrusion detection, highlighting their limitations in detection accuracy but promising role in providing explanations and aiding threat response.
Contribution
It evaluates LLMs as explainable NIDS, comparing them to traditional models, and proposes their use as complementary agents for threat explanation and response.
Findings
LLMs struggle with precise attack detection.
LLMs show potential for explainability in NIDS.
LLMs can aid threat response when integrated with RAG.
Abstract
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…
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
TopicsNetwork Security and Intrusion Detection · Spam and Phishing Detection · Internet Traffic Analysis and Secure E-voting
MethodsAttention Is All You Need · Linear Layer · Layer Normalization · Multi-Head Attention · Position-Wise Feed-Forward Layer · Adam · Byte Pair Encoding · Softmax · Absolute Position Encodings · Dense Connections
