arrow
返回

Smart contract vulnerabilities detection with bidirectional encoder representations from transformers and control flow graph

delete2024-07-10
delete0
PRE
AI
S
Su Peng
J
Jingyuan Hu *
DOI:10.1007/s00530-024-01406-9delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Up to now, the smart contract vulnerabilities detection methods based on sequence modal data and sequence models have been the most commonly used. However, existing state-of-the-art methods disregard the issue of sequence modal data loses structural information and control flow information. Additionally, it is hard for sequence models to extract global features of smart contracts. Moreover, these methods rarely consider the impact of noise data on vulnerabilities detection. To tackle these issues, we propose a smart contract vulnerabilities detection model based on bidirectional encoder representation from transformers (BERT) and control flow graph (CFG). On the one hand, we design a denoising method suitable for control flow graphs to reduce the impact of noisy data on vulnerabilities detection. On the other hand, we design a novel method to parse the control flow graph into a BERT input form that retains control flow information and structural information. The BERT learns the potential vulnerability characteristics of smart contracts to fine-tune itself. Through an empirical evaluation of a large-scale real-world dataset and compare 5 state-of-the-art baseline methods. Our method achieves (1) optimal performance over all baseline methods; (2) 0.6-17.1% higher F1-score than baseline methods; (3) 0.7-16.7% higher accuracy than baseline methods; (4) 0.6-17% higher precision than baseline methods; (5) 0.2-19.5% higher recall than baseline methods.
Keyword:
Smart contract
Vulnerabilities detection
Control flow graph
BERT

期刊

Multimedia Systems 封面图
Multimedia Systems
IF:
3.1
论文数:
2.8K
被引数:
2.7K

机构

C
chinese academy of sciences
学者数:
56.7W
论文数: 45.0W
被引数: 704
引用论文

引用论文

The Effects of Three-Dimensional Ligand Immobilization on Kinetic Measurements in Biosensors
err2022-01-07
err0
errOAAI
errElisa Chiodi; Allison M. Marn; Monireh Bakhshpour; Nese Lortlar Ünlü; M. Selim Ünlü
err分享
err收藏
Towards Automated Reentrancy Detection for Smart Contracts Based on Sequential Models
err2020-01-01
err109
errOAAI
errQian, Peng; Liu, Zhenguang; He, Qinming; Zimmermann, Roger; Wang, Xun
err分享
err收藏
err2002-01-01
err0
PREAI
errD. I. Ismailov; E. Sh. Alekperov; F. I. Aliev
err分享
err收藏
BDTwin: An Integrated Framework for Enhancing Security and Privacy in Cybertwin-Driven Automotive Industrial Internet of Things
err2022-09-15
err29
PREAI
errKumar, Randhir; Kumar, Prabhat; Tripathi, Rakesh; Gupta, Govind P.; Garg, Sahil; Hassan, Mohammad Mehedi
err分享
err收藏
P2SF-IoV: A Privacy-Preservation-Based Secured Framework for Internet of Vehicles
err2022-11-01
err53
PREAI
errKumar, Randhir; Kumar, Prabhat; Tripathi, Rakesh; Gupta, Govind P.; Kumar, Neeraj
err分享
err收藏
学者 查看更多内容