CRAIFeb 17, 2025

SmartLLM: Smart Contract Auditing using Custom Generative AI

arXiv:2502.13167v113 citationsh-index: 72025 International Conference on Computer Sciences, Engineering, and Technology Innovation (ICoCSETI)
Originality Highly original
AI Analysis

This provides a scalable auditing solution for smart contract security, addressing high false-positive rates and dynamic vulnerabilities in decentralized applications.

The paper tackled the problem of smart contract vulnerabilities in DeFi and blockchain by introducing SmartLLM, a fine-tuned LLaMA 3.1 model with RAG, which achieved 100% recall and 70% accuracy in auditing.

Smart contracts are essential to decentralized finance (DeFi) and blockchain ecosystems but are increasingly vulnerable to exploits due to coding errors and complex attack vectors. Traditional static analysis tools and existing vulnerability detection methods often fail to address these challenges comprehensively, leading to high false-positive rates and an inability to detect dynamic vulnerabilities. This paper introduces SmartLLM, a novel approach leveraging fine-tuned LLaMA 3.1 models with Retrieval-Augmented Generation (RAG) to enhance the accuracy and efficiency of smart contract auditing. By integrating domain-specific knowledge from ERC standards and employing advanced techniques such as QLoRA for efficient fine-tuning, SmartLLM achieves superior performance compared to static analysis tools like Mythril and Slither, as well as zero-shot large language model (LLM) prompting methods such as GPT-3.5 and GPT-4. Experimental results demonstrate a perfect recall of 100% and an accuracy score of 70%, highlighting the model's robustness in identifying vulnerabilities, including reentrancy and access control issues. This research advances smart contract security by offering a scalable and effective auditing solution, supporting the secure adoption of decentralized applications.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes