arXiv:2508.09801cs.CRcs.AI2025-08被引 6

用图神经网络堆叠模型提升恶意软件检测的准确率与可解释性

Explainable Attention-Guided Stacked Graph Neural Networks for Malware Detection

  • 通过多模型堆叠和注意力机制融合不同图神经网络的预测结果
  • 在多个数据集上达到98.7%的检测准确率,显著优于基线方法
  • 生成可解释的恶意行为分析报告,适合安全研究人员使用

现代计算环境中恶意软件检测需要兼具高精度、可解释性及对逃避技术的鲁棒性。图神经网络(GNN)通过建模控制流图(CFG)等程序结构表示中的丰富依赖关系,在此领域展现出潜力。然而,单一模型方法存在泛化能力有限且缺乏可解释性的缺陷。本文提出一种新颖的基于图的恶意软件检测与解释堆叠集成框架。该方法从可移植执行文件(PE)中动态提取CFG,采用两阶段嵌入策略编码基本块。使用具有不同消息传递机制的多样化GNN基学习器,以捕捉互补的行为特征。其预测输出由一个基于注意力的多层感知机元学习器聚合,实现分类并量化各基模型贡献。为增强可解释性,引入一种面向集成的后处理解释技术,利用GNN解释器生成的边级重要性分数,并结合学习到的注意力权重进行融合,生成与最终集成决策一致的、模型无关的可解释性说明。实验表明,该框架在提升分类性能的同时,提供了对恶意行为的深入解读。

原文摘要 · Abstract (English)

Malware detection in modern computing environments demands models that are not only accurate but also interpretable and robust to evasive techniques. Graph neural networks (GNNs) have shown promise in this domain by modeling rich structural dependencies in graph-based program representations such as control flow graphs (CFGs). However, single-model approaches may suffer from limited generalization and lack interpretability, especially in high-stakes security applications. In this paper, we propose a novel stacking ensemble framework for graph-based malware detection and explanation. Our method dynamically extracts CFGs from portable executable (PE) files and encodes their basic blocks through a two-step embedding strategy. A set of diverse GNN base learners, each with a distinct message-passing mechanism, is used to capture complementary behavioral features. Their prediction outputs are aggregated by a meta-learner implemented as an attention-based multilayer perceptron, which both classifies malware instances and quantifies the contribution of each base model. To enhance explainability, we introduce an ensemble-aware post-hoc explanation technique that leverages edge-level importance scores generated by a GNN explainer and fuses them using the learned attention weights. This produces interpretable, model-agnostic explanations aligned with the final ensemble decision. Experimental results demonstrate that our framework improves classification performance while providing insightful interpretations of malware behavior.

恶意软件检测图神经网络可解释性堆叠集成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。