Multi-Label Vulnerability Detection of Smart Contracts Based on Bi-LSTM and Attention Mechanism
【Author】 Qian, Shenyi; Ning, Haohan; He, Yaqiong; Chen, Mengqi
【Source】ELECTRONICS
【影响因子】2.690
【Abstract】Smart contracts are decentralized applications running on blockchain platforms and have been widely used in a variety of scenarios in recent years. However, frequent smart contract security incidents have focused more and more attention on their security and reliability, and smart contract vulnerability detection has become an urgent problem in blockchain security. Most of the existing methods rely on fixed rules defined by experts, which have the disadvantages of single detection type, poor scalability, and high false alarm rate. To solve the above problems, this paper proposes a method that combines Bi-LSTM and an attention mechanism for multiple vulnerability detection of smart contract opcodes. First, we preprocessed the data to convert the opcodes into a feature matrix suitable as the input of the neural network and then used the Bi-LSTM model based on the attention mechanism to classify smart contracts with multiple labels. The experimental results show that the model can detect multiple vulnerabilities at the same time, and all evaluation indicators exceeded 85%, which proves the effectiveness of the method proposed in this paper for multiple vulnerability detection tasks in smart contracts.
【Keywords】blockchain security; smart contract; vulnerability detection; multi-label classification
【发表时间】2022 OCT
【收录时间】2022-10-27
【文献类型】理论模型
【主题类别】
区块链治理-技术治理-智能合约漏洞检测
wangjiaxin
今天有1篇智能合约漏洞检测相关文章,https://doi.org/10.3390/electronics11193260,发表在《ELECTRONICS》,现有智能合约漏洞检测方法大多依赖于专家定义的固定规则,存在检测类型单一、可扩展性差、虚警率高的缺点。本文提出了一种Bi-LSTM与智能合约操作码多重漏洞检测注意机制相结合的方法。实验结果表明,该模型可以同时检测多个漏洞,所有评价指标均超过85%。
回复