Improving the Security of Smart Contracts: Combining Graph and Machine Learning Models
摘要
Smart contracts, as fundamental components of transactions in blockchain and decentralized systems, have inherent risks due to their immutable code and security vulnerabilities that are often challenging to detect. Traditional static analysis tools may overlook certain vulnerabilities, prompting the need for enhanced detection methods. To address this limitation, we propose a hybrid approach that combines static analysis with machine learning techniques. By leveraging static tools, we extract graph-based features from smart contracts such as the number of edges, functions, variables and cycle and we use them to train machine learning models like XGBoost and Random Forest. Our experimental results show that Random Forest demonstrated particularly strong accuracy, showing significant improvements over traditional vulnerability detection methods.