Back to Search Start Over

Enhancing smart contract security: Leveraging pre‐trained language models for advanced vulnerability detection

Authors :
Fei He
Fei Li
Peili Liang
Source :
IET Blockchain, Vol 4, Iss S1, Pp 543-554 (2024)
Publication Year :
2024
Publisher :
Wiley, 2024.

Abstract

Abstract The burgeoning interest in decentralized applications (Dapps), spurred by advancements in blockchain technology, underscores the critical role of smart contracts. However, many Dapp users, often without deep knowledge of smart contracts, face financial risks due to hidden vulnerabilities. Traditional methods for detecting these vulnerabilities, including manual inspections and automated static analysis, are plagued by issues such as high rates of false positives and overlooked security flaws. To combat this, the article introduces an innovative approach using the bidirectional encoder representations from transformers (BERT)‐ATT‐BiLSTM model for identifying potential weaknesses in smart contracts. This method leverages the BERT pre‐trained model to discern semantic features from contract opcodes, which are then refined using a Bidirectional Long Short‐Term Memory Network (BiLSTM) and augmented by an attention mechanism that prioritizes critical features. The goal is to improve the model's generalization ability and enhance detection accuracy. Experiments on various publicly available smart contract datasets confirm the model's superior performance, outperforming previous methods in key metrics like accuracy, F1‐score, and recall. This research not only offers a powerful tool to bolster smart contract security, mitigating financial risks for average users, but also serves as a valuable reference for advancements in natural language processing and deep learning.

Details

Language :
English
ISSN :
26341573
Volume :
4
Issue :
S1
Database :
Directory of Open Access Journals
Journal :
IET Blockchain
Publication Type :
Academic Journal
Accession number :
edsdoj.46f61c31e91c4d4fbfd7a1948ca6390b
Document Type :
article
Full Text :
https://doi.org/10.1049/blc2.12072