Cybersecurity (Apr 2025)
A lightweight vulnerability detection method for long smart contracts based on bimodal feature fusion
Abstract
Abstract While Ethereum smart contracts provide users with transfer and transaction services, vulnerabilities in smart contracts are constantly damaging users’ property and user experience. At present, many detection methods for smart contract vulnerabilities have been proposed, but these methods have not fully analyzed the information of multiple modalities of smart contracts, and their effectiveness in detecting long smart contracts is not ideal. We propose a lightweight Ethereum smart contract vulnerability detection method based on bimodal and hierarchical attention to address this issue. This method can combine the source code and opcode of smart contracts for analysis, and use a hierarchical attention network composed of bidirectional GRU and attention mechanism for vulnerability feature extraction. The experimental results show that in the task of detecting vulnerabilities in long smart contracts, this method has better detection capabilities for four types of vulnerabilities: Denial of Service, Reentrancy, Arithmetic, and Timestamp Dependency, compared to the most advanced deep learning smart contract vulnerability detection methods currently available.
Keywords