Empirical Study of Move Smart Contract Security: Introducing MoveScan for Enhanced Analysis
Open Access
- 11 September 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1682-1694
Abstract
Move, a programming language for smart contracts, stands out for its focus on security. However, the practical security efficacy of Move contracts remains an open question. This work conducts the first comprehensive empirical study on the security of Move contracts. Our initial step involves collaborating with a security company to manually audit 652 contracts from 92 Move projects. This process reveals eight types of defects, with half previously unreported. These defects present potential security risks, cause functional flaws, mislead users, or waste computational resources. To further evaluate the prevalence of these defects in real-world Move contracts, we present MoveScan, an automated analysis framework that translates bytecode into an intermediate representation (IR), extracts essential meta-information, and detects all eight defect types. By leveraging MoveScan, we uncover 97,028 defects across all 37,302 deployed contracts in the Aptos and Sui blockchains, indicating a high prevalence of defects. Experimental results demonstrate that the precision of MoveScan reaches 98.85%, with an average project analysis time of merely 5.45 milliseconds. This surpasses previous state-of-the-art tools MoveLint, which exhibits an accuracy of 87.50% with an average project analysis time of 71.72 milliseconds, and Move Prover, which has a recall rate of 6.02% and requires manual intervention. Our research also yields new observations and insights that aid in developing more secure Move contracts.Keywords
Funding Information
- The National Natural Science Foundation of China (62332004)
- The Sichuan Provincial Natural Science Foundation for Distinguished Young Scholars (2023NSFSC1963)
- the Basic Strengthening Program (2021-JCJQ-JJ-0463)
- The Hong Kong RGC Projects (PolyU15224121, PolyU15231223)
This publication has 34 references indexed in Scilit:
- ContractArmor: Attack Surface Generator for Smart ContractsProcedia Computer Science, 2024
- Fine-grained smart contract vulnerability detection by heterogeneous code feature learning and automated dataset constructionJournal of Systems and Software, 2023
- A Smart Contract Vulnerability Detection Mechanism Based on Deep Learning and Expert RulesIEEE Access, 2023
- SVScanner: Detecting smart contract vulnerabilities via deep semantic extractionJournal of Information Security and Applications, 2023
- Optimizing smart contract vulnerability detection via multi-modality code and entropy embeddingJournal of Systems and Software, 2023
- Enhancing Ethereum smart-contracts static analysis by computing a precise Control-Flow Graph of Ethereum bytecodeJournal of Systems and Software, 2023
- A formal verification approach for composite smart contracts security using FSMJournal of King Saud University Computer and Information Sciences, 2023
- Automation and smart materials in detecting smart contracts vulnerabilities in Blockchain using deep learningMaterials Today: Proceedings, 2023
- Combine sliced joint graph with graph neural networks for smart contract vulnerability detectionJournal of Systems and Software, 2022
- A systematic literature review of blockchain and smart contract development: Techniques, tools, and open challengesJournal of Systems and Software, 2021