Skip to main content
QUICK REVIEW

[论文解读] Graph-based Solutions with Residuals for Intrusion Detection: the Modified E-GraphSAGE and E-ResGAT Algorithms

Liyan Chang, Paula Branco|arXiv (Cornell University)|Nov 26, 2021
Network Security and Intrusion DetectionComputer Science参考文献 26被引用 21
一句话总结

本文提出两种新型图神经网络(GNN)模型——改进型 E-GraphSAGE 和 E-ResGAT——通过将残差学习整合到基于图的架构中,以应对极端类别不平衡问题,实现入侵检测。在四个真实世界数据集上,这些模型在检测少数类攻击方面显著优于基线 GNN 模型,通过注意力机制和残差连接,展现出更强的鲁棒性和判别能力。

ABSTRACT

The high volume of increasingly sophisticated cyber threats is drawing growing attention to cybersecurity, where many challenges remain unresolved. Namely, for intrusion detection, new algorithms that are more robust, effective, and able to use more information are needed. Moreover, the intrusion detection task faces a serious challenge associated with the extreme class imbalance between normal and malicious traffics. Recently, graph-neural network (GNN) achieved state-of-the-art performance to model the network topology in cybersecurity tasks. However, only a few works exist using GNNs to tackle the intrusion detection problem. Besides, other promising avenues such as applying the attention mechanism are still under-explored. This paper presents two novel graph-based solutions for intrusion detection, the modified E-GraphSAGE, and E-ResGATalgorithms, which rely on the established GraphSAGE and graph attention network (GAT), respectively. The key idea is to integrate residual learning into the GNN leveraging the available graph information. Residual connections are added as a strategy to deal with the high-class imbalance, aiming at retaining the original information and improving the minority classes' performance. An extensive experimental evaluation of four recent intrusion detection datasets shows the excellent performance of our approaches, especially when predicting minority classes.

研究动机与目标

  • 解决入侵检测中极端类别不平衡的关键挑战,即恶意流量远少于正常流量。
  • 探索图神经网络(GNNs)在网络安全领域中尚未被充分挖掘的潜力,特别是用于建模网络流拓扑结构。
  • 通过整合残差学习和注意力机制,提升 GNN 在少数类攻击上的表现。
  • 设计并评估两种新型基于 GNN 的入侵检测模型:改进型 E-GraphSAGE 和 E-ResGAT,结合边级特征与残差连接。
  • 证明残差学习在保留信息和提升不平衡网络入侵检测表征学习能力方面的有效性。

提出的方法

  • 通过在输出层添加残差连接,扩展 E-GraphSAGE,以保留原始节点表征并改善梯度流动。
  • 提出 E-ResGAT,一种基于 GAT 的模型,结合边特征、图注意力机制与残差学习,以更好地关注相似或关键的网络流。
  • 从网络流数据构建异质图,将 IP 地址和端口映射为节点,将流映射为带有相关特征的边。
  • 应用 t-SNE 可视化分析学习到的节点表征,评估潜在空间中类别可分性与聚类模式。
  • 采用小批量训练,固定批量大小为 500,测量在四个基准数据集上的训练时间与性能表现。
  • 实现残差连接以稳定训练并增强特征传播,尤其在以正常流量为主的邻域中表现更优。

实验结果

研究问题

  • RQ1残差学习是否能提升 GNN 在高度不平衡入侵检测数据集中对少数类攻击的检测性能?
  • RQ2将图注意力机制整合到基于边的 GNN 中,对入侵检测中的分类性能与特征表征学习有何影响?
  • RQ3当应用于动态且不平衡的网络流量图时,残差连接在多大程度上增强了 GNN 的鲁棒性?
  • RQ4在类别不平衡存在的情况下,E-GraphSAGE 与 E-ResGAT 学习到的表征在类别可分性与聚类结构方面有何差异?
  • RQ5结合残差与注意力机制的 GNN 是否能在真实世界入侵检测基准中超越标准 GNN?

主要发现

  • 改进型 E-GraphSAGE 模型在所有四个数据集上均显著优于原始 E-GraphSAGE,尤其在检测少数类攻击方面表现更优。
  • E-ResGAT 在性能上超越了原始 GAT 和 E-GraphSAGE 模型,在少数类检测方面表现尤为突出,尤其在 ToN-IoT 和 CSE-CIC-IDS 数据集上。
  • 在 ToN-IoT 数据集上,E-ResGAT 达到宏平均 F1 分数 0.154,每批次训练时间为 7.17 秒(其中 6.52 + 0.651 秒用于线图转换与训练)。
  • t-SNE 可视化结果表明,带有残差连接的模型(改进型 E-GraphSAGE 与 E-ResGAT)生成了更清晰、更分离的聚类,尤其在少数类中表现更优,表明其判别能力更强。
  • 在高度不平衡的 UNSW-NB15 数据集上,基于 GAT 的模型未能学习到其他数据集中观察到的长曲线状聚类模式,可能由于注意力机制在极端不平衡邻域中的局限性所致。
  • E-ResGAT 模型在宏平均 F1 分数与类别可分性方面均表现出一致的性能提升,证实了在 GNN 中结合残差学习与注意力机制在入侵检测中的有效性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。