arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.04342cs.CRcs.AIcs.NI
收藏

基于大型语言模型的可解释网络入侵检测研究

Towards Explainable Network Intrusion Detection using Large Language Models

The University of Queensland(昆士兰大学)

Paul R. B. Houssel, Priyanka Singh, Siamak Layeghy, Marius Portmann

AI总结:

本文研究大型语言模型(如GPT-4、LLama3)用于网络入侵检测系统(NIDS)的可行性,通过与传统模型比较,发现其虽不适合直接检测恶意NetFlows,但结合RAG和函数调用可作为互补智能体辅助解释与威胁响应。

摘要:

大型语言模型(LLMs)已彻底变革自然语言处理任务,尤其作为聊天智能体。然而,其在威胁检测问题中的适用性仍不明确。本文研究了尽管LLMs计算需求高,但将其用作网络入侵检测系统(NIDS)的可行性,主要出于可解释性的考虑。此外,大量资源已投入LLMs开发,它们可能为NIDS提供效用。当前最先进的NIDS依赖人工基准数据集,在实际网络环境中应用时性能会出现偏差。因此,我们将GPT-4和LLama3模型与传统架构及基于Transformer的模型进行比较,评估它们在不依赖人工偏斜数据集、仅依靠自身海量预训练知识的情况下检测恶意NetFlows的能力。结果表明,尽管LLMs在精确攻击检测方面存在困难,但它们为可解释NIDS的发展路径提供了显著潜力。初步探索显示,LLMs不适合直接检测恶意NetFlows,但最具前景的是,当与检索增强生成(RAG)和函数调用能力集成时,它们可作为NIDS中的互补智能体,尤其在提供解释和辅助威胁响应方面。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑