ScholarMate
English简体中文繁體中文
客服热线:400-1616-289
登录注册
期刊论文

Smart contract vulnerability detection based on semantic graph and residual graph convolutional networks with edge attention

Chen, Da; Feng, Lin; Fan, Yuqi*; Shang, Siyuan; Wei, Zhenchunanhui normal univ
JOURNAL OF SYSTEMS AND SOFTWARE2023-8DOI: 10.1016/j.jss.2023.111705
2被引23阅读
引用收藏
分享

摘要

Smart contracts are becoming the forefront of blockchain technology, allowing the performance of credible transactions without third parties. However, smart contracts on blockchain are not immune to vulnerability exploitation and cannot be modified after being deployed on the blockchain. Therefore, it is imperative to assure the security of smart contracts via intelligent vulnerability detection tools with the exponential increase in the number of smart contracts. The remarkably developing deep learning technology provides a promising way to detect potential smart contract vulnerabilities. Nevertheless, existing deep learning-based approaches fail to effectively capture the rich syntax and semantic information embedded in smart contracts for vulnerability detection. In this paper, we tackle the problem of smart contract vulnerability detection at the function level by constructing a novel semantic graph (SG) for each function and learning the SGs using graph convolutional networks (GCNs) with residual blocks and edge attention. Our proposed method consists of three stages. In the first stage, we create the SG which contains rich syntax and semantic information including the data-data, instruction-instruction and instruction-data relationships, variables, operations, etc., by building an abstract syntax tree (AST) from the code of each function, removing the unimportant nodes in the AST, and adding edges between the nodes to represent the data flows and the execution sequence of the statements. In the second stage, we propose a new graph convolutional network model EA-RGCN to learn the content and semantic features of the code. EA-RGCN contains three parts: node and edge representation via word2vec, content feature extraction with a residual GCN (RGCN) module, and semantic feature extraction using an edge attention (EA) module. In the third stage, we concatenate the code content features and the semantic features to obtain the global code feature and use a classifier to identify whether the function is vulnerable. We conduct experiments on the datasets constructed from real-world smart contracts. Experimental results demonstrate that the proposed semantic graph and the EA-RGCN model can effectively improve the performance in terms of accuracy, precision, recall, and F1-score on smart contract vulnerability detection.

学科与关键词

关键词
Smart contract vulnerability detectionCode graphGraph convolutional networksEdge attentionResidual block
相关
加载中…
  • Vulnerable smart contract function locating based on Multi-Relational Nested Graph Convolutional Network
    Liu, Haiyang; Fan, Yuqi*; Feng, Lin; Wei, ZhenchunJOURNAL OF SYSTEMS AND SOFTWARE, 2023, 204: 111775.被引 1
  • A Novel Smart Contract Vulnerability Detection Method Based on Information Graph and Ensemble Learning
    Zhang, Lejun*; Wang, Jinlong; Wang, Weizheng; Jin, Zilong; Zhao, Chunhui; Cai, Zhennao; Chen, Huiling*SENSORS, 2022, 22(9): 3581.被引 16
  • CBGRU: A Detection Method of Smart Contract Vulnerability Based on a Hybrid Model
    Zhang, Lejun*; Chen, Weijie; Wang, Weizheng; Jin, Zilong; Zhao, Chunhui; Cai, Zhennao; Chen, Huiling*SENSORS, 2022, 22(9): 3577.被引 16
查看全部 →

发表信息

论文状态
公开发表
期刊
JOURNAL OF SYSTEMS AND SOFTWARE
发表日期
2023-08
卷期
第 202 卷
页码
111705
DOI
10.1016/j.jss.2023.111705
语言
ENGLISH
成果收录
SCIE
资助标注
National Natural Science Foundation of China [62002097]; Major Science and Technol- ogy Projects in Anhui Province [202003a05020009]; open fund of Intelligent Interconnected Systems Laboratory of Anhui Province [PA2021AKSK0114]; Hefei University of Technology

作者

  • C

    Chen, Da (第一作者)

  • F

    Feng, Lin

查看全部 5 位作者收起作者
  • F

    Fan, Yuqi (通讯)

    anhui normal univ

  • S

    Shang, Siyuan

  • W

    Wei, Zhenchun

登录解锁更多功能

  • 收藏这篇,随时在“我的 · 收藏”找回
  • 认领你的成果,生成推广素材
  • 关注作者获取最新成果
  • 加入项目组、协同写作
注册 / 登录

产品服务

  • 科研之友
  • 创新城
  • 科创云

服务支持

  • 帮助中心
  • 隐私政策
  • 服务条款

联系方式

在线客服:【】
客服热线:400-1616-289
电子邮箱:support@scholarmate.com

关注或下载科研之友

微信二维码
微信公众号
客户端下载二维码
下载客户端
科研成果科研人员科研机构科研动态爱瑞思软件

©2026 深圳市科研之友网络服务有限公司

公安备案图标粤公网安备 44030502000213
粤ICP备 16046710 号粤B2-20110417