EUVIMEDObjevte EUVIMED
Open access · CC BY 4.0

Smart Contract Vulnerability Detection Based on Multi-Scale Encoders

Junjun Guo, Long Lu, Jingkui Li

Electronics · 2024-01-24 · 13 (3) · 489

DOI: 10.3390/electronics13030489 ↗

At a glance

Journal article in Electronics, published online on 2024-01-24. Written by Junjun Guo and 2 co-authors. Cited 13 times so far (Crossref); 40 references. The full text is freely available (open access, CC BY 4.0). Funded by: Key Research and Development Project in Shaanxi Province of China, Shaanxi Provincial Education Department.

AbstraktBibliografické údajeCiteRelated studies

Abstract (original language)

Vulnerabilities in smart contracts may trigger serious security events, and the detection of smart contract vulnerabilities has become a significant problem. In this paper, to solve the limitations of current deep learning-based vulnerability detection methods in extracting various code critical features, using the multi-scale cascade encoder architecture as the backbone, we propose a novel Multi-Scale Encoder Vulnerability Detection (MEVD) approach to hit well-known high-risk vulnerabilities in smart contracts. Firstly, we use the gating mechanism to design a unique Surface Feature Encoder (SFE) to enrich the semantic information of code features. Then, by combining a Base Transformer Encoder (BTE) and a Detail CNN Encoder (DCE), we introduce a dual-branch encoder to capture the global structure and local detail features of the smart contract code, respectively. Finally, to focus the model’s attention on vulnerability-related characteristics, we employ the Deep Residual Shrinkage Network (DRSN). Experimental results on three types of high-risk vulnerability datasets demonstrate performance compared to state-of-the-art methods, and our method achieves an average detection accuracy of 90%.

Funding

  • Key Research and Development Project in Shaanxi Province of China
  • Shaanxi Provincial Education Department

Cite

APA

Guo, J., Lu, L., & Li, J. (2024). Smart Contract Vulnerability Detection Based on Multi-Scale Encoders. Electronics, 13(3), 489. https://doi.org/10.3390/electronics13030489

Vancouver

Guo J, Lu L, Li J. Smart Contract Vulnerability Detection Based on Multi-Scale Encoders. Electronics. 2024;13(3):489. doi:10.3390/electronics13030489

BibTeX
@article{Guo2024,
  author = {Guo, Junjun and Lu, Long and Li, Jingkui},
  title = {Smart Contract Vulnerability Detection Based on Multi-Scale Encoders},
  journal = {Electronics},
  year = {2024},
  volume = {13},
  number = {3},
  pages = {489},
  doi = {10.3390/electronics13030489}
}
Start for free →