Papers2 providers Ā· 3 records
February 22, 2025Ā· arXiv (Cornell University)
conference-paper
Open access

Securing Smart Contract Languages with a Unified Agentic Framework for Vulnerability Repair in Solidity and Move

Abstract

The rapid growth of the blockchain ecosystem and the increasing value locked in smart contracts necessitate robust security measures. While languages like Solidity and Move aim to improve smart contract security, vulnerabilities persist. This paper presents Smartify, a novel multi-agent framework leveraging Large Language Models (LLMs) to automatically detect and repair vulnerabilities in Solidity and Move smart contracts. Unlike traditional methods that rely solely on vast pretraining datasets, Smartify employs a team of specialized agents working on different specially fine-tuned LLMs to analyze code based on the underlying programming concepts and language-specific security principles. We evaluated Smartify on a dataset for Solidity and a curated dataset for Move, demonstrating its effectiveness in fixing a wide range of vulnerabilities. Our experimental results show that Smartify (Gemma2+Codegemma) achieves state-of-the-art performance, surpassing existing LLMs and even enhancing the capabilities of general-purpose models, such as Llama 3.1. Notably, Smartify can incorporate language-specific knowledge, such as the nuances of Move, without requiring massive language-specific pretraining datasets. This work offers a detailed analysis of the performance of various LLMs on smart contract repair, highlighting the strengths of our multi-agent approach and providing a blueprint for developing more secure and reliable decentralized applications in the growing blockchain landscape. We also provide a detailed description to extend the proposed technology to other similar use cases.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.