IEEE Access · 2024 · 38 citations · 18 references
ComputingComputer ScienceCybersecurityApplication SecurityComputer SecurityVulnerability AnalysisSmart ContractsSoftware Vulnerability DiscoveryVulnerability AssessmentVulnerability ManagementControl Flow Graph AnalysisMultilayer PerceptronPerceptronSmart Contract Vulnerability AnalysisVulnerabilityVulnerability DetectionVulnerability DiscoveryWeakness Classification
Smart contract vulnerabilities have led to substantial disruptions, ranging from the DAO attack to the recent Poolz Finance. While initially, the smart contract vulnerability definition lacked standardization, even with the advancements in Solidity, the potential for deploying malicious contracts to exploit legitimate ones persists. The Abstract syntax tree (AST), opcodes, and control flow graph (CFG) are the intermediate representations for Solidity contracts. In this paper, we propose an integrated and efficient smart contract vulnerability detection algorithm based on Multi-layer perceptron (MLP). We use feature vectors from the Opcodes and CFG for the machine learning (ML) model training. The existing ML-based approaches for analyzing the smart contract code are constrained by the vulnerability detection space, significantly varying Solidity versions, and no unified approach to verify against the ground truth. The primary contributions in this paper are (i) a standardized pre-processing method for smart contract training data, (ii) introducing bugs to create a balanced dataset of flawed files across Solidity versions using AST, and (iii) standardizing vulnerability identification using the Smart Contract Weakness Classification (SWC) registry. The ML models employed for benchmarking the proposed MLP, and a multi-input model combining MLP and Long short-term memory (LSTM) in our study are Random forest (RF), XGBoost (XGB), Support vector machine (SVM). The performance evaluation on <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">real-time</i> smart contracts deployed on the Ethereum Blockchain show an accuracy of up to 91% using MLP with the lowest average False Positive Rate (FPR) among all tools and models, measuring at 0.0125.
18
Aditya Grover, Jure Leskovec · 2016 · 10.9K citations
Ethereum: A Secure Decentralised Generalised Transaction Ledger
Gavin Wood · 2013 · 5.3K citations
Making Smart Contracts Smarter
Loi Luu, Duc-Hiep Chu, Hrishi Olickel et al. · 2016 · 2.2K citations
Slither: A Static Analysis Framework for Smart Contracts
2019 · 758 citations · Full text