mlsanityData to 14 Oct 2026

Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilities

arXiv 2409.10574 ↗First posted 15 Sep 2024cs.CR cs.AI cs.ETcited by 2

Not on the map. Why?

Abstract (arXiv)

The large-scale deployment of Solidity smart contracts on the Ethereum mainnet has increasingly attracted financially-motivated attackers in recent years. A few now-infamous attacks in Ethereum's history includes DAO attack in 2016 (50 million dollars lost), Parity Wallet hack in 2017 (146 million dollars locked), Beautychain's token BEC in 2018 (900 million dollars market value fell to 0), and NFT gaming blockchain breach in 2022 (600 million in Ether stolen). This paper presents a comprehensive investigation of the use of large language models (LLMs) and their capabilities in detecting OWASP Top Ten vulnerabilities in Solidity. We introduce a novel, class-balanced, structured, and labeled dataset named VulSmart, which we use to benchmark and compare the performance of open-source LLMs such as CodeLlama, Llama2, CodeT5 and Falcon, alongside closed-source models like GPT-3.5 Turbo and GPT-4o Mini. Our proposed SmartVD framework is rigorously tested against these models through extensive automated and manual evaluations, utilizing BLEU and ROUGE metrics to assess the effectiveness of vulnerability detection in smart contracts. We also explore three distinct prompting strategies-zero-shot, few-shot, and chain-of-thought-to evaluate the multi-class classification and generative capabilities of the SmartVD framework. Our findings reveal that SmartVD outperforms its open-source counterparts and even exceeds the performance of closed-source base models like GPT-3.5 and GPT-4 Mini. After fine-tuning, the closed-source models, GPT-3.5 Turbo and GPT-4o Mini, achieved remarkable performance with 99% accuracy in detecting vulnerabilities, 94% in identifying their types, and 98% in determining severity. Notably, SmartVD performs best with the `chain-of-thought' prompting technique, whereas the fine-tuned closed-source models excel with the `zero-shot' prompting approach.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 26 of its 47 references that are in the map. First posted on arXiv 15 Sep 2024.

Builds on

26 of 47 references.

References · 26

  1. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  2. 2023A Survey on Evaluation of Large Language Modelscited by 1,242
  3. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
  4. 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 166
  5. 2019Slither: A Static Analysis Framework For Smart Contractscited by 89
  6. 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
  7. 2018Securify: Practical Security Analysis of Smart Contractscited by 61
  8. 2023A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localizationcited by 50
  9. 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectivescited by 48
  10. 2023When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?cited by 42
  11. 2019Manticore: A User-Friendly Symbolic Execution Framework for Binaries and Smart Contractscited by 37
  12. 2024A Systematic Literature Review on Large Language Models for Automated Program Repaircited by 37
14 more
  1. 2023Do you still need a manual smart contract audit?cited by 35
  2. 2021Combining Graph Neural Networks with Expert Knowledge for Smart Contract Vulnerability Detectioncited by 34
  3. 2021Smart Contract Vulnerability Detection: From Pure Neural Network to Interpretable Graph Feature and Expert Pattern Fusioncited by 24
  4. 2020How Effective are Smart Contract Analysis Tools? Evaluating Smart Contract Static Analysis Tools Using Bug Injectioncited by 20
  5. 2020SmartBugs: A Framework to Analyze Solidity Smart Contractscited by 18
  6. 2024AuditGPT: Auditing Smart Contracts with ChatGPTcited by 9
  7. 2020Multi-Class classification of vulnerabilities in Smart Contracts using AWD-LSTM, with pre-trained encoder inspired from natural language processingcited by 7
  8. 2019Defining Smart Contract Defects on Ethereumcited by 4
  9. 2022ScrawlD: A Dataset of Real World Ethereum Smart Contracts Labelled with Vulnerabilitiescited by 4
  10. 2024Efficiently Detecting Reentrancy Vulnerabilities in Complex Smart Contractscited by 4
  11. 2019Vulpedia: Detecting Vulnerable Ethereum Smart Contracts via Abstracted Vulnerability Signaturescited by 2
  12. 2023Security Defense For Smart Contracts: A Comprehensive Surveycited by 2
  13. 2023A Comparative Evaluation of Automated Analysis Tools for Solidity Smart Contractscited by 1
  14. 2024Soley: Identification and Automated Detection of Logic Vulnerabilities in Ethereum Smart Contracts Using Large Language Modelscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detection
  2. 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detection
  3. 2025ParaVul: A Parallel Large Language Model and Retrieval-Augmented Framework for Smart Contract Vulnerability Detection
  4. 2024Blockchain for Large Language Model Security and Safety: A Holistic Survey
  5. 2024LLM-SmartAudit: Advanced Smart Contract Vulnerability Detection
  6. 2025Securing Smart Contract Languages with a Unified Agentic Framework for Vulnerability Repair in Solidity and Move
  7. 2024Retrieval Augmented Generation Integrated Large Language Models in Smart Contract Vulnerability Detection
  8. 2025LLM-BSCVM: An LLM-Based Blockchain Smart Contract Vulnerability Management Framework