arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.01501cs.LGcs.CR
收藏

将自监督学习应用于基于图神经网络的网络流网络入侵检测

Applying Self-supervised Learning to Network Intrusion Detection for Network Flows with Graph Neural Network

College of Computer and Information Engineering, Central South University of Forestry and Technology(中南林业科技大学计算机与信息工程学院);School of Computer Science and Engineering, Central South University(中南大学计算机科学与工程学院)

Renjie Xu, Guangwei Wu, Weiping Wang, Xing Gao, An He, Zhengpeng Zhang

AI总结:

本文提出基于图对比学习的自监督GNN方法,利用边特征与局部拓扑构造对比样本,实现NIDS中网络流攻击类型的无监督多分类。

摘要:

图神经网络(GNN)因其适合表示网络流量流而在网络入侵检测系统(NIDS)中受到广泛关注。然而,目前大多数基于GNN的NIDS方法都是监督或半监督的。网络流需要人工标注作为监督标签,这一过程耗时甚至不可能完成,使NIDS难以适应潜在的复杂攻击,尤其是在大规模真实场景中。现有的基于GNN的自监督方法聚焦于将网络流二分类为良性或非良性,因此在实践中无法揭示攻击类型。本文研究如何以无监督方式应用GNN识别网络流的具体类型。我们首先设计了一个获取图嵌入的编码器,该编码器引入图注意力机制,并将边信息视为唯一关键因素。随后,提出一种基于图对比学习的自监督方法。该方法采样中心节点,并针对每个中心节点,由该节点及其直接邻居节点生成子图,同时从插值图中生成相应的对比子图,最终由这些子图构造正样本和负样本。此外,引入了一种基于边特征和图局部拓扑的结构化对比损失函数。据我们所知,这是首个在NIDS中用于网络流多分类的基于GNN的自监督方法。在四个真实数据库(NF-Bot-IoT、NF-Bot-IoT-v2、NF-CSE-CIC-IDS2018和NF-CSE-CIC-IDS2018-v2)上进行的详细实验,将我们的模型与最先进的监督和自监督模型进行了系统比较,展示了本方法的巨大潜力。代码可通过https://github.com/renj-xu/NEGSC获取。

英文摘要:

Graph Neural Networks (GNNs) have garnered intensive attention for Network Intrusion Detection System (NIDS) due to their suitability for representing the network traffic flows. However, most present GNN-based methods for NIDS are supervised or semi-supervised. Network flows need to be manually annotated as supervisory labels, a process that is time-consuming or even impossible, making NIDS difficult to adapt to potentially complex attacks, especially in large-scale real-world scenarios. The existing GNN-based self-supervised methods focus on the binary classification of network flow as benign or not, and thus fail to reveal the types of attack in practice. This paper studies the application of GNNs to identify the specific types of network flows in an unsupervised manner. We first design an encoder to obtain graph embedding, that introduces the graph attention mechanism and considers the edge information as the only essential factor. Then, a self-supervised method based on graph contrastive learning is proposed. The method samples center nodes, and for each center node, generates subgraph by it and its direct neighbor nodes, and corresponding contrastive subgraph from the interpolated graph, and finally constructs positive and negative samples from subgraphs. Furthermore, a structured contrastive loss function based on edge features and graph local topology is introduced. To the best of our knowledge, it is the first GNN-based self-supervised method for the multiclass classification of network flows in NIDS. Detailed experiments conducted on four real-world databases (NF-Bot-IoT, NF-Bot-IoT-v2, NF-CSE-CIC-IDS2018, and NF-CSE-CIC-IDS2018-v2) systematically compare our model with the state-of-the-art supervised and self-supervised models, illustrating the considerable potential of our method. Our code is accessible through https://github.com/renj-xu/NEGSC.

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

↑