Journal of Information Security Reserach ›› 2026, Vol. 12 ›› Issue (6): 503-.

Previous Articles     Next Articles

Research on Smart Contract Vulnerability Detection Method Based on  Multimodal Feature Fusion

Chen Hong1, Lu Qi1, Jin Haibo1, Wu Cong2, and Wang Mingjun1   

  1. 1(College of Software, Liaoning Technical University, Huludao, Liaoning 125105)
    2(College of Innovation Practice, Liaoning Technical University, Fuxin, Liaoning 123000)
  • Online:2026-06-07 Published:2026-06-07

基于多模态特征融合的智能合约漏洞检测方法研究

陈虹1芦奇1金海波1武聪2王明君1   

  1. 1(辽宁工程技术大学软件学院辽宁葫芦岛125105)
    2(辽宁工程技术大学创新实践学院辽宁阜新123000)
  • 通讯作者: 芦奇 硕士研究生.主要研究方向为网络安全、智能合约漏洞检测. 13942932404@163.com
  • 作者简介:陈虹 硕士,副教授,CCF会员.主要研究方向为信息安全和网络安全. chh3188@163.com 芦奇 硕士研究生.主要研究方向为网络安全、智能合约漏洞检测. 13942932404@163.com 金海波 博士,副教授,CCF会员.主要研究方向为随机过程、决策理论、复杂系统优化维护、系统可靠性. jinhaibo@Intu.edu.cn 武聪 博士,讲师.主要研究方向为电子商务、数据分析与智能决策. fxwucong@163.com 王明君 硕士研究生.主要研究方向为网络安全、智能合约漏洞检测. 980020076@qq.com
  • 基金资助:
    国家自然科学基金项目(62173171);辽宁省教育厅科研项目(LJKFZ20220198)

Abstract: Most of the smart contract vulnerability detection methods rely on single mode feature extraction, which leads to the problem of low detection accuracy due to insufficient key feature extraction. This paper proposes a smart contract vulnerability detection method based on multimodal feature fusion. Firstly, the construction of the control flow graph (CFG) is constructed by leveraging the abstract syntax tree (AST) trimmed at the source code layer and the data flow relationship based on the opcode layer, which is imported into the graph attention network (GAT) to extract two types of static features. Secondly, the fuzzing test report generated by echidna, a dynamic detection tool, is used to extract path coverage, state changes and other information to build a graph model, and the dynamic features are extracted by graph neural network (GNN). Finally, the extracted static and dynamic features are fused and input into CNN bilstm att model for vulnerability detection, and relevant experiments are carried out on 47398 smart contracts. Experimental results show that compared with eight mainstream detection methods, such as SmartCheck, Mythril, Oyente, BiGGNN, ASTNN, DRGCN, SVCB and CBGRU, the accuracy, recall and F1 value of this method in reentry vulnerability, timestamp vulnerability, integer overflow vulnerability and Tx.origin vulnerability are increased by 50.26%, 59.54% and 58.40%.

Key words: smart contract, feature fusion, vulnerability detection, graph neural network, graph attention network

摘要: 针对智能合约漏洞检测方法中大多依赖单一模态进行特征提取时存在的关键特征提取不充分导致检测准确率较低的问题,提出了一种基于多模态特征融合的智能合约漏洞检测方法.首先,通过源代码层裁剪的抽象语法树(abstract syntax tree, AST)和操作码层依据的数据流关系分别构建控制流图(control flow graph, CFG),将其导入图注意力网络(graph attention network, GAT)提取2类静态特征.其次,利用动态检测工具Echidna生成的模糊测试报告提取路径覆盖率、状态变化等信息构建图模型,通过图神经网络(graph neural network, GNN)提取动态特征.最后,对提取的静态和动态特征进行融合并输入CNNBiLSTMATT模型进行漏洞检测,并在47398个智能合约上进行相关实验.实验结果表明,相较于SmartCheck,Mythril,Oyente,BiGGNN,ASTNN,DRGCN,SVCB,CBGRU这8种主流检测方法,该方法对重入漏洞、时间戳漏洞、整数溢出漏洞、Tx.origin漏洞的准确率、召回率、F1值提升了50.26%,59.54%,58.40%.

关键词: 智能合约, 特征融合, 漏洞检测, 图神经网络, 图注意力网络

CLC Number: