arrow
返回

VulHunter: Hunting Vulnerable Smart Contracts at EVM Bytecode-Level via Multiple Instance Learning

delete2023-11-01
delete3
delete
OA
AI
李沼萱 封面图
李沼萱 (Zhaoxuan Li)
S
Siqi Lu
R
Rui Zhang *
Z
Ziming Zhao
R
Rujin Liang
R
Rui Xue
W
Wenhao Li
张
张帆 (Fan Zhang)
高胜 封面图
高胜 (Sheng Gao)
DOI:10.1109/TSE.2023.3317209delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
With the economic development of Ethereum, the frequent security incidents involving smart contracts running on this platform have caused billions of dollars in losses. Consequently, there is a pressing need to identify the vulnerabilities in contracts, while the state-of-the-art (SOTA) detection methods have been limited in this regard as they cannot overcome three challenges at the same time. (i) Meet the requirements of detecting the source code, bytecode, and opcode of contracts simultaneously; (ii) reduce the reliance on manual pre-defined rules/patterns and expert involvement; (iii) assist contract developers in completing the contract lifecycle more safely, e.g., vulnerability repair and abnormal monitoring. With the development of machine learning (ML), using it to detect the contract runtime execution sequences (called instances) has made it possible to address these challenges. However, the lack of datasets with fine-grained sequence labels poses a significant obstacle, given the unreadability of bytecode/opcode. To this end, we propose a method named VulHunter that extracts the instances by traversing the Control Flow Graph built from contract opcodes. Based on the hybrid attention and multi-instance learning mechanisms, VulHunter reasons the instance labels and designs an optional classifier to automatically capture the subtle features of both normal and defective contracts, thereby identifying the vulnerable instances. Then, it combines the symbolic execution to construct and solve symbolic constraints to validate their feasibility. Finally, we implement a prototype of VulHunter with 15K lines of code and compare it with 9 SOTA methods on five open source datasets including 52,042 source codes and 184,289 bytecodes. The results indicate that VulHunter can detect contract vulnerabilities more accurately (90.04% accuracy and 85.60% F1 score), efficiently (only 4.4 seconds per contract), and robustly (0% analysis failure rate) than SOTA methods. Also, it can focus on specific metrics such as precision and recall by employing different baseline models and hyperparameters to meet the various user requirements, e.g., vulnerability discovery and misreport mitigation. More importantly, compared with the previous ML-based arts, it can not only provide classification results, defective contract source code statements, key opcode fragments, and vulnerable execution paths, but also eliminate misreports and facilitate more operations such as vulnerability repair and attack simulation during the contract lifecycle.
Keyword:
Source coding
Smart contracts
Codes
Pattern matching
Testing
Monitoring
Maintenance engineering
Blockchain
smart contract
security analysis
multiple instance learning
symbolic execution

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

U
university of chinese academy of sciences, cas
学者数:
4.1W
论文数: 3.8W
被引数: 75
C
chinese academy of sciences
学者数:
56.7W
论文数: 45.0W
被引数: 704
Z
zhejiang university
学者数:
17.7W
论文数: 12.1W
被引数: 152
学者 查看更多机构
引用论文

引用论文

Hydroxycarboxylato oxo-osmium(VI) complexes羟基羧基氧合锇 (VI) 配合物
err1991-01-01
err0
PREAI
errCatherine F. Edwards; William P. Griffith
err分享
err收藏
Orientational Dynamics of theSc3Trimer inC82: An EPR Study
err1994-12-19
err0
errOAAI
errP. H. M. van Loosdrecht; R. D. Johnson; M. S. de Vries; C. -H. Kiang; D. S. Bethune; H. C. Dorn; P. Burbank; S. Stevenson
err分享
err收藏
Ultrafast Absorption Changes of the Lhcii Carotenoids upon Selective Excitation of the Chlorophylls
err1998-01-01
err0
PREAI
errC. C. Gradinaru; I. H. M. van Stokkum; R. van Grondelle; H. van Amerongen
err分享
err收藏
In vivo and in vitro studies of Chlamydia trachomatis TrpR:DNA interactions
err2006-01-30
err0
errOAAI
errJohn H. Carlson; Heidi Wood; Christine Roshick; Harlan D. Caldwell; Grant McClarty
err分享
err收藏
Characterization of Hot-Dip Aluminized C45 Carbon Steel before and after Cyclic Heating in Air
err2021-09-01
err0
PREAI
errHawkar J. Muhammed; Márton Benke; Dániel Koncz-Horváth; Zsolt Sályi; Tamás I. Török
err分享
err收藏
Motion of Scandium Ions in Sc2C84 Observed by 45Sc Solution NMR通过 45Sc溶液NMR观察到的Sc2C84 中Sc离子的运动
err1996-06-06
err0
PREAI
errYoko Miyake; Shinzo Suzuki; Yasuhiko Kojima; Koichi Kikuchi; Kaoru Kobayashi; Shigeru Nagase; Masatsune Kainosho; Yohji Achiba; Yutaka Maniwa; Keith Fisher
err分享
err收藏
Cellular changes with graded limb ischemia and reperfusion
err1984-07-01
err0
errOAAI
errMalcolm O. Perry; G.Tom Shires; Steven A. Albert
err分享
err收藏
Genetic polymorphisms at 19q13.33 are associated with [−2]proPSA (p2PSA) levels and provide additional predictive value to prostate health index for prostate cancer
err2021-07-12
err0
errOAAI
errDa Huang; Xiaohao Ruan; Yishuo Wu; Xiaoling Lin; Jingyi Huang; Dingwei Ye; Yi Gao; Qiang Ding; Danfeng Xu; Rong Na
err分享
err收藏
学者 查看更多内容