paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SCVHunter: Smart Contract Vulnerability Detection Based on Heterogeneous Graph Attention Network

SCVHunter:基于异构图注意力网络的智能合约漏洞检测
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 4/10 · 该论文将异构图注意力网络用于智能合约漏洞检测,属于机器学习与程序语言/程序分析的交叉,但与用户核心方向(LLM/Agent 驱动的静态分析、Agentic 程序分析、浮点程序分析、贝叶斯程序分析)关联较弱。方法本身不涉及 LLM/Agent,也未针对 ML 系统或 Agentic 程序做静态分析。引用 47 inbox
Feng Luo, Ruijie Luo, Ting Chen, Ao Qiao, Zheyuan He, Shuwei Song, Yu Jiang, Sixing Li
crossref: 2026-09-12

AI 速览

一句话:提出 SCVHunter 框架,用异构语义图与异构图注意力网络检测智能合约漏洞,并支持专家标注关键节点。

智能合约是区块链发展的关键,但其漏洞构成严重威胁。传统漏洞检测方法高度依赖专家定义的复杂规则,劳动密集且难以适应智能合约的爆炸式增长;近期基于神经网络的检测方法也仍有改进空间。为此,本文提出 SCVHunter——一个可扩展的智能合约漏洞检测框架。该方法首先基于中间表示设计异构语义图构建阶段,随后采用面向智能合约的异构图注意力网络进行漏洞检测阶段;特别地,SCVHunter 允许用户自由指出图中更重要的节点,从而以更简便的方式利用专家知识,辅助模型自动捕获更多与漏洞相关的信息。作者在重入、区块信息依赖、嵌套调用和交易状态依赖四类漏洞上进行了测试,准确率分别达到 93.72%、91.07%、85.41% 和 87.37%,优于此前的方法。

问题
智能合约漏洞威胁严重,传统检测方法依赖专家手工定义复杂规则、成本高且难以适应合约数量的快速增长,现有神经网络检测方法效果仍有提升空间。
方法
基于中间表示构建异构语义图,并使用异构图注意力网络进行漏洞检测,同时允许用户标注图中更重要的节点,以简便方式融入专家知识来引导模型关注漏洞相关信息。
评估
在重入、区块信息依赖、嵌套调用、交易状态依赖四类漏洞上开展实验,准确率分别为 93.72%、91.07%、85.41%、87.37%,均超过先前方法。
原文摘要(Abstract)

Smart contracts are integral to blockchain's growth, but their vulnerabilities pose a significant threat. Traditional vulnerability detection methods rely heavily on expert-defined complex rules that are labor-intensive and dificult to adapt to the explosive expansion of smart contracts. Some recent studies of neural network-based vulnerability detection also have room for improvement. Therefore, we propose SCVHunter, an extensible framework for smart contract vulnerability detection. Specifically, SCVHunter designs a heterogeneous semantic graph construction phase based on intermediate representations and a vulnerability detection phase based on a heterogeneous graph attention network for smart contracts. In particular, SCVHunter allows users to freely point out more important nodes in the graph, leveraging expert knowledge in a simpler way to aid the automatic capture of more information related to vulnerabilities. We tested SCVHunter on reentrancy, block info dependency, nested call, and transaction state dependency vulnerabilities. Results show remarkable performance, with accuracies of 93.72%, 91.07%, 85.41%, and 87.37% for these vulnerabilities, surpassing previous methods.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11306,
  title = {SCVHunter: Smart Contract Vulnerability Detection Based on Heterogeneous Graph Attention Network},
  author = {Feng Luo and Ruijie Luo and Ting Chen and Ao Qiao and Zheyuan He and Shuwei Song and Yu Jiang and Sixing Li},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3639213}
}