Detecting unknown vulnerabilities in smart contracts with the CNN-BiLSTM model

Wanyi Gu,Guojun Wang,Peiqiang Li,Guangxin Zhai,Xubin Li
DOI: https://doi.org/10.1007/s10207-024-00945-6
2024-11-29
International Journal of Information Security
Abstract:Smart contracts, fundamental to blockchain technology, are extensively utilized in diverse fields such as finance, supply chain management, and beyond. Nevertheless, once deployed, their capability to handle significant transactions and their unchangeable nature bring about substantial risks, potentially leading to severe security breaches and financial losses. While existing research has made progress in detecting unknown vulnerabilities, identifying novel, unforeseen security issues remains significant. We aim to contribute to this ongoing effort by introducing an innovative approach that capitalizes on the similarities between known and unknown vulnerabilities. We propose a CNN-BiLSTM model meticulously designed to identify features of known vulnerabilities and employ them to detect potential unknown vulnerabilities. We intricately gather opcode sequences generated during smart contract execution using Geth instrumentation and meticulously analyze them. We conduct rigorous experiments to validate the model's effectiveness in detecting potential unknown vulnerabilities. Our approach represents a step forward in blockchain security by providing proactive measures to strengthen smart contract security against emerging threats.
computer science, information systems, theory & methods, software engineering
What problem does this paper attempt to address?