Dual-view Aware Smart Contract Vulnerability Detection for Ethereum
Jiacheng Yao, Maolin Wang, Wanqi Chen, Chengxiang Jin, Jiajun Zhou, Shanqing Yu, Qi Xuan
TL;DR
This work addresses the challenge of detecting vulnerabilities in Ethereum smart contracts by proposing DVDet, a dual-view framework that jointly leverages source-code graphs and bytecode control-flow sequences. It introduces two specialized channels: an augmented AST-based graph path using edge-aware attention and a CFG-based sequence model with HyperAGRU, whose outputs are fused for final classification. The authors create richer datasets by aggregating multiple sources and labeling via a voting ensemble of static and symbolic tools, and they demonstrate that DVDet outperforms traditional static/dynamic methods and single-view deep learning baselines in both existence and type detection while maintaining high efficiency. The findings suggest that integrating information from both source code and bytecode perspectives yields more robust vulnerability detection, with implications for scalable and trustworthy blockchain security. Overall, DVDet offers a practical, high-performance approach for smart contract security analysis that can adapt to evolving vulnerability types and contract versions.
Abstract
The wide application of Ethereum technology has brought technological innovation to traditional industries. As one of Ethereum's core applications, smart contracts utilize diverse contract codes to meet various functional needs and have gained widespread use. However, the non-tamperability of smart contracts, coupled with vulnerabilities caused by natural flaws or human errors, has brought unprecedented challenges to blockchain security. Therefore, in order to ensure the healthy development of blockchain technology and the stability of the blockchain community, it is particularly important to study the vulnerability detection techniques for smart contracts. In this paper, we propose a Dual-view Aware Smart Contract Vulnerability Detection Framework named DVDet. The framework initially converts the source code and bytecode of smart contracts into weighted graphs and control flow sequences, capturing potential risk features from these two perspectives and integrating them for analysis, ultimately achieving effective contract vulnerability detection. Comprehensive experiments on the Ethereum dataset show that our method outperforms others in detecting vulnerabilities.
