1. Towards Automated Reentrancy Detection for Smart Contracts Based on Sequential Models
- Author
-
Peng Qian, Zhenguang Liu, Qinming He, Roger Zimmermann, and Xun Wang
- Subjects
Blockchain ,smart contract ,deep learning ,sequential models ,vulnerability detection ,Electrical engineering. Electronics. Nuclear engineering ,TK1-9971 - Abstract
In the last decade, smart contract security issues lead to tremendous losses, which has attracted increasing public attention both in industry and in academia. Researchers have embarked on efforts with logic rules, symbolic analysis, and formal analysis to achieve encouraging results in smart contract vulnerability detection tasks. However, the existing detection tools are far from satisfactory. In this paper, we attempt to utilize the deep learning-based approach, namely bidirectional long-short term memory with attention mechanism (BLSTM-ATT), aiming to precisely detect reentrancy bugs. Furthermore, we propose contract snippet representations for smart contracts, which contributes to capturing essential semantic information and control flow dependencies. Our extensive experimental studies on over 42,000 real-world smart contracts show that our proposed model and contract snippet representations significantly outperform state-of-the-art methods. In addition, this work proves that it is practical to apply deep learning-based technology on smart contract vulnerability detection, which is able to promote future research towards this area.
- Published
- 2020
- Full Text
- View/download PDF