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

DOI arXiv PDF
BibTeX Citation
@inproceedings{karanjai2025securing,
  title={Securing Smart Contract Languages with a Unified Agentic Framework for Vulnerability Repair in Solidity and Move},
  author={Karanjai, Rabimba and Xu, Lei and Shi, Weidong},
  booktitle={2025 2nd IEEE/ACM International Conference on AI-powered Software (AIware)},
  year={2025},
  organization={IEEE}
}
Copied to clipboard
Read Paper Download PDF

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 pre-training datasets, Smartify employs a team of specialized agents working on different specially fine-tuned LLMs to analyze code based on 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 results show that Smartify (Gemma2+codegemma) achieves state-of-the-art performance, surpassing existing LLMs and enhancing general-purpose models’ capabilities, such as Llama 3.1. Notably, Smartify can incorporate language-specific knowledge, such as the nuances of Move, without requiring massive language-specific pre-training datasets. This work offers a detailed analysis of various LLMs’ performance 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 recipe for extending this to other similar use cases. Recipient of the ACM SIGSOFT Distinguished Paper Award at AIWare 2025.

Type Conference Paper
Venue ACM AIWare 2025
Date Nov 2025
Citations 15
Distinguished Blockchain Security Smart Contracts First Author Agents