Lune

ISSTA2023顶会

Interpreters for GNN-Based Vulnerability Detection: Are We There Yet?

Yutao Hu, Suyuan Wang, Wenke Li, Junru Peng, Yueming Wu, Deqing Zou, Hai Jin

摘要

Traditional vulnerability detection methods have limitations due to their need for extensive manual labor. Using automated means for vulnerability detection has attracted research interest, especially deep learning, which has achieved remarkable results. Since graphs can better convey the structural feature of code than text, graph neural network (GNN) based vulnerability detection is significantly better than text-based approaches. Therefore, GNN-based vulnerability detection approaches are becoming popular. However, GNN models are close to black boxes for security analysts, so the models cannot provide clear evidence to explain why a code sample is detected as vulnerable or secure. At this stage, many GNN interpreters have been proposed. However, the explanations provided by these interpretations for vulnerability detection models are highly inconsistent and unconvincing to security experts. To address the above issues, we propose principled guidelines to assess the quality of the interpretation approaches for GNN-based vulnerability detectors based on concerns in vulnerability detection, namely, stability, robustness, and effectiveness. We conduct extensive experiments to evaluate the interpretation performance of six famous interpreters (GNN-LRP, DeepLIFT, GradCAM, GNNExplainer, PGExplainer, and SubGraphX) on four vulnerability detectors (DeepWukong, Devign, IVDetect, and Reveal). The experimental results show that the target interpreters achieve poor performance in terms of effectiveness, stability, and robustness. For effectiveness, we find that the instance-independent methods outperform others due to their deep insight into the detection model. In terms of stability, the perturbation-based interpretation methods are more resilient to slight changes in model parameters as they are model-agnostic. For robustness, the instance-independent approaches provide more consistent interpretation results for similar vulnerabilities.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation 引用了 On Explainability of Graph Neural Networks via Subgraph Explorations
  • Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation 引用了 Parameterized Explainer for Graph Neural Network
  • Coca: Improving and Explaining Graph Neural Network-Based Vulnerability Detection Systems 引用了 Parameterized Explainer for Graph Neural Network
  • Cutting the Fuse: Actionable APT Attack Blocking in Provenance-based IDS 引用了 Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation
  • Cutting the Fuse: Actionable APT Attack Blocking in Provenance-based IDS 引用了 On Explainability of Graph Neural Networks via Subgraph Explorations
  • Cutting the Fuse: Actionable APT Attack Blocking in Provenance-based IDS 引用了 Parameterized Explainer for Graph Neural Network
  • On Explainability of Graph Neural Networks via Subgraph Explorations 引用了 PGM-Explainer: Probabilistic Graphical Model Explanations for Graph Neural Networks
  • On Explainability of Graph Neural Networks via Subgraph Explorations 引用了 Parameterized Explainer for Graph Neural Network
  • Snopy: Bridging Sample Denoising with Causal Graph Learning for Effective Vulnerability Detection 引用了 Coca: Improving and Explaining Graph Neural Network-Based Vulnerability Detection Systems
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. Coca: Improving and Explaining Graph Neural Network-Based Vulnerability Detection SystemsSicong Cao, Xiaobing Sun, Xiaoxue Wu, David Lo 等ICSE 2024 · 27 次引用
  2. Graph Neural Networks for Vulnerability Detection: A Counterfactual ExplanationZhaoyang Chu, Yao Wan, Qian Li, Yang Wu 等ISSTA 2024 · 19 次引用
  3. Snopy: Bridging Sample Denoising with Causal Graph Learning for Effective Vulnerability DetectionSicong Cao, Xiaobing Sun, Xiaoxue Wu, David Lo 等ASE 2024 · 2 次引用
  4. Cutting the Fuse: Actionable APT Attack Blocking in Provenance-based IDSWeiheng Wu, Wei Qiao, Teng Li, Yebo Feng 等USENIX Security 2026

它引用的 Paper11

  1. A Security Analysis of HoneywordsDing Wang, Haibo Cheng, Ping Wang, Jeff Yan 等NDSS 2018 · 1,102 次引用
  2. Parameterized Explainer for Graph Neural NetworkDongsheng Luo, Wei Cheng, Dongkuan Xu, Wenchao Yu 等NeurIPS 2020 · 888 次引用
  3. On Explainability of Graph Neural Networks via Subgraph ExplorationsHao Yuan, Haiyang Yu, Jie Wang, Kang Li 等ICML 2021 · 498 次引用
  4. PGM-Explainer: Probabilistic Graphical Model Explanations for Graph Neural NetworksMinh N. Vu, My T. ThaiNeurIPS 2020 · 437 次引用
  5. VUDDY: A Scalable Approach for Vulnerable Code Clone DiscoverySeulbae Kim, Seunghoon Woo, Heejo Lee, Hakjoo OhS&P 2017 · 388 次引用

相关 Paper

  1. Vulnerability detection with fine-grained interpretationsYi Li, Shaohua Wang, Tien N. NguyenFSE 2021 · 283 次引用
  2. An Empirical Study of Deep Learning Models for Vulnerability DetectionBenjamin Steenhoek, Md Mahbubur Rahman, Richard Jiles, Wei LeICSE 2023 · 107 次引用
  3. Enhancing Deep Learning-based Vulnerability Detection by Building Behavior Graph ModelBin Yuan, Yifan Lu, Yilin Fang, Yueming Wu 等ICSE 2023 · 20 次引用
  4. PL4XGL: A Programming Language Approach to Explainable Graph LearningMinseok Jeon, Jihyeok Park, Hakjoo OhPLDI 2024 · 2 次引用
  5. LLMxCPG: Context-Aware Vulnerability Detection Through Code Property Graph-Guided Large Language ModelsAhmed Lekssays, Hamza Mouhcine, Khang Tran, Ting Yu 等USENIX Security 2025
黄昏的海面,两侧是细线勾勒的悬崖