HGAT: smart contract vulnerability detection method based on hierarchical graph attention network

被引:0
作者
Chuang Ma
Shuaiwu Liu
Guangxia Xu
机构
[1] Chongqing University of Posts and Telecommunications,School of Software Engineering
[2] Guangzhou University,Advanced Institute of Cyberspace Technology
来源
Journal of Cloud Computing | / 12卷
关键词
Smart Contract; BlockChain; Graph Attention Network; Vulnerability Detection; Security;
D O I
暂无
中图分类号
学科分类号
摘要
With the widespread use of blockchain, more and more smart contracts are being deployed, and their internal logic is getting more and more sophisticated. Due to the large false positive rate and low detection accuracy of most current detection methods, which heavily rely on already established detection criteria, certain smart contracts additionally call for human secondary detection, resulting in low detection efficiency. In this study, we propose HGAT, a hierarchical graph attention network-based detection model, in order to address the aforementioned issues as well as the shortcomings of current smart contract vulnerability detection approaches. First, using Abstract Syntax Tree (AST) and Control Flow Graph, the functions in the smart contract are abstracted into code graphs (CFG). Then abstract each node in the code subgraph, extract the node features, utilize the graph attention mechanism GAT, splice the obtained vectors to form the features of each line of statements and use these features to detect smart contracts. To create test data and assess HGAT, we leverage the open-source smart contract vulnerability sample dataset. The findings of the experiment indicate that this method can identify smart contract vulnerabilities more quickly and precisely than other detection techniques.
引用
收藏
相关论文
共 52 条
  • [1] Liu Y(2021)Fixed degree of decentralization dpos consensus mechanism in blockchain based on adjacency vote and the average fuzziness of vague value Comput Netw 199 108432-4259
  • [2] Xu G(2020)Improvement of the dpos consensus mechanism in blockchain based on vague sets IEEE Trans Ind Inform 16 4252-28
  • [3] Xu G(2019)Blockchain-supported smart city platform for social value co-creation and exchange IEEE Internet Comput 23 19-44
  • [4] Liu Y(2021)Resource pricing and allocation in mec enabled blockchain systems: An a3c deep reinforcement learning approach IEEE Trans Netw Sci Eng 9 33-3233
  • [5] Khan PW(2022)Heterogeneous computation and resource allocation for wireless powered federated edge learning systems IEEE Trans Commun 70 3220-2700
  • [6] Scekic O(2021)Min-max cost optimization for efficient hierarchical federated learning in wireless edge networks IEEE Trans Parallel Distrib Syst 33 2687-282
  • [7] Nastic S(2020)Smart contract vulnerability analysis and security audit IEEE Netw 34 276-328
  • [8] Dustdar S(2020)Contractguard: Defend Ethereum smart contracts with embedded intrusion detection IEEE Trans Serv Comput 13 314-32
  • [9] Du J(2014)Ethereum: A secure decentralised generalised transaction ledger Ethereum Proj Yellow Pap 151 1-1178
  • [10] Cheng W(2008)A survey of automated techniques for formal software verification IEEE Trans Comput Aided Des Integr Circ Syst 27 1165-1144