Papers1 provider Ā· 1 record
February 14, 2025Ā· Applied and Computational Engineering
article
Open access

Research on Security Vulnerability Detection of Blockchain Smart Contracts Based on Machine Learning

Authors:Yiwen Wu *

Abstract

Blockchain technology, characterized by its immutability, decentralization, transparency, security, and traceability, has shown vast potential for applications in secure IoT communications and data protection through its deployed smart contracts. While machine learning-based code generation systems aim to automate high-quality programming solutions, they face significant challenges when addressing blockchain-related issues. This paper analyzes the limitations of machine learning in identifying vulnerabilities within blockchain smart contracts and proposes robust solutions. To achieve this, this paper suggests organizing multiple security experts for labeling, developing efficient labeling tools, employing semi-supervised learning to reduce dependency on labeled data, and establishing a continuous update mechanism for labeled datasets to adapt to evolving threat landscapes. To address the scarcity of training samples in the blockchain domain, this paper introduces a method for generating additional Solidity smart contract training samples using data augmentation techniques. Given that traditional data augmentation methods are not suitable for Solidity, the approach involves converting Solidity contracts into Python code for processing, then reverting them back to Solidity post-augmentation, with provided code examples. Furthermore, leveraging established non-blockchain code to train blockchain-related models enhances model performance and generalization capabilities. These strategies effectively tackle the issue of insufficient training samples in the blockchain field and offer new perspectives on the conversion between Solidity and Python.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.