Smart Contract Vulnerability Detection Based on Hybrid Attention Mechanism Model
Applied Sciences · 05.01.2023 · 13 (2) · 770
DOI: 10.3390/app13020770 ↗Kurz gefasst
Fachartikel in der Zeitschrift Applied Sciences, online erschienen am 05.01.2023. Verfasst von Huaiguang Wu und 3 weiteren Autor:innen. Die Arbeit wurde bisher 48-mal zitiert (Crossref) und nennt 59 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Major Public Welfare Projects Foundation of Henan Province, Open Foundation of Henna Key Laboratory Cryptography.
Abstract (Originalsprache)
A smart contract, as an important part of blockchain technology, has attracted considerable interest from both industry and academia. It provides the basis for the realization of a variety of practical blockchain applications and plays a crucial role in the blockchain ecosystem. While it also holds a large number of digital assets, the frequent occurrence of smart contract vulnerabilities have caused huge economic losses and destroyed the blockchain-based credit system. Currently, the security and reliability of smart contracts have become a new focus of research, and there are a number of smart contract vulnerability detection methods, such as traditional detection tools based on static or dynamic analysis. However, most of them often rely on expert rules, and therefore have poor scalability and high false negative and false positive rates. Recent deep learning methods alleviate this issue, but without considering the semantic information and context of source code. To this end, we propose a hybrid attention mechanism (HAM) model to detect security vulnerabilities in smart contracts. We extract code fragments from the source code, which focus on key points of vulnerability. We conduct extensive experiments on two public smart contract datasets (a total of 24,957 contracts). Empirical results show remarkable accuracy improvement over the state-of-the art methods on five kinds of vulnerabilities, where the detection accuracy could achieve 93.36%, 80.85%, 82.56%, 85.62%, and 82.19% for reentrancy, arithmetic vulnerability, unchecked return value, timestamp dependency, and tx.origin, respectively.
Förderung
- Major Public Welfare Projects Foundation of Henan Province
- Open Foundation of Henna Key Laboratory Cryptography
Zitieren
APA
Wu, H., Dong, H., He, Y., & Duan, Q. (2023). Smart Contract Vulnerability Detection Based on Hybrid Attention Mechanism Model. Applied Sciences, 13(2), 770. https://doi.org/10.3390/app13020770
Vancouver
Wu H, Dong H, He Y, Duan Q. Smart Contract Vulnerability Detection Based on Hybrid Attention Mechanism Model. Applied Sciences. 2023;13(2):770. doi:10.3390/app13020770
BibTeX
@article{Wu2023,
author = {Wu, Huaiguang and Dong, Hanjie and He, Yaqiong and Duan, Qianheng},
title = {Smart Contract Vulnerability Detection Based on Hybrid Attention Mechanism Model},
journal = {Applied Sciences},
year = {2023},
volume = {13},
number = {2},
pages = {770},
doi = {10.3390/app13020770}
}
EUVIMED