Papers1 provider Ā· 1 record
April 24, 2026Ā· International Conference on Computer Application and Information Security (ICCAIS 2025)
conference-paper
Open access

Smart contract vulnerability detection based on improved GraphCodeBERT

Authors:Jin LiSheng Wu

Abstract

Security vulnerabilities in smart contracts can lead to serious economic losses, while traditional detection methods have limitations in coarse-grained labeling and single graph structure representation. We propose an improved GraphCodeBERT based multi granularity and multi graph fusion smart contract vulnerability detection method. Firstly, propose a vulnerability multi granularity annotation (MA) module that includes file level, function level, and statement level to address the issue of fine-grained annotation. Secondly, based on the data flow graph encoded by GraphCodeBERT, further design a multi graph fusion representation learning (MGRL) strategy. This strategy integrates control flow graph and function call graph, captures code semantics from control dependency and call dependency dimensions through graph attention network and graph convolutional network, to comprehensively enhance the representation capability of complex vulnerabilities. The detection results of four smart contract vulnerabilities show that our method outperforms mainstream methods such as Slither, CodeBERT, Devign, and GraphCodeBERT in accuracy, recall, and F1 score. Especially in sentence level detection tasks, the F1 score reached 81.03%, an increase of 7.31% compared to the baseline, and the false positive rate decreased to 8.15%.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.