AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
PDF (1.1 MB)
Collect
Submit Manuscript AI Chat Paper
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Publishing Language: Chinese

Smart Contract Vulnerability Detection Method Based on Capsule Network and Attention Mechanism

Lu LU( )Jinxiong LAI
School of Computer Science and Engineering, South China University of Technology, Guangzhou 510006, Guangdong, China
Show Author Information

Abstract

In recent years, with the increasing number of smart contracts and the increasing economic losses caused by contract loopholes, the security of smart contracts has attracted more and more attention. The vulnerability detection method based on deep learning can solve the problems of low detection efficiency and insufficient accuracy of the early traditional smart contract vulnerability detection method. However, most of the existing deep learning-based vulnerability detection methods directly use smart contract source code, opcode sequence or bytecode sequence as the input of the deep learning model. This fact will weaken the effective information due to the introduction of too much invalid information. To solve this problem, this paper proposed a smart contract vulnerability detection method based on capsule network and attention mechanism. Considering the execution timing information of the program, the study extracted key operation code sequence of the smart contract as the source code feature. Then a hybrid network structure of capsule network and attention mechanism was used for training. The capsule network extracts the context information of the smart contract and the connection between the part and the whole; while the attention mechanism is used to assign different weights to different opcodes according to their importance. The experimental results show that the F1 score and accuracy of the algorithm proposed in this paper in the smart contract data set are 94.48% and 97.15%, indicating that this algorithm is superior to other detection methods in performance.

CLC number: TP391 Article ID: 1000-565X(2023)05-0036-09

References

【1】
【1】
 
 
Journal of South China University of Technology (Natural Science Edition)
Pages 36-44

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
LU L, LAI J. Smart Contract Vulnerability Detection Method Based on Capsule Network and Attention Mechanism. Journal of South China University of Technology (Natural Science Edition), 2023, 51(5): 36-44. https://doi.org/10.12141/j.issn.1000-565X.220167

424

Views

2

Downloads

0

Crossref

0

Web of Science

3

Scopus

2

CSCD

Received: 30 March 2022
Published: 25 May 2023
© Journal of South China University of Technology(Natural Science Edition)