mlsanityData to 14 Oct 2026

Do you still need a manual smart contract audit?

arXiv 2306.12338 ↗First posted 21 Jun 2023cs.CRcited by 35

Not on the map. Why?

Abstract (arXiv)

We investigate the feasibility of employing large language models (LLMs) for conducting the security audit of smart contracts, a traditionally time-consuming and costly process. Our research focuses on the optimization of prompt engineering for enhanced security analysis, and we evaluate the performance and accuracy of LLMs using a benchmark dataset comprising 52 Decentralized Finance (DeFi) smart contracts that have previously been compromised. Our findings reveal that, when applied to vulnerable contracts, both GPT-4 and Claude models correctly identify the vulnerability type in 40% of the cases. However, these models also demonstrate a high false positive rate, necessitating continued involvement from manual auditors. The LLMs tested outperform a random model by 20% in terms of F1-score. To ensure the integrity of our study, we conduct mutation testing on five newly developed and ostensibly secure smart contracts, into which we manually insert two and 15 vulnerabilities each. This testing yielded a remarkable best-case 78.7% true positive rate for the GPT-4-32k model. We tested both, asking the models to perform a binary classification on whether a contract is vulnerable, and a non-binary prompt. We also examined the influence of model temperature variations and context length on the LLM's performance. Despite the potential for many further enhancements, this work lays the groundwork for a more efficient and economical approach to smart contract security audits.

Key facts. Cited by 35 papers in the map (data through 14 Oct 2026). First posted on arXiv 21 Jun 2023.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 3; 2024: 13; 2025: 14; 2026: 5.

35 papers.

Sort:

By area:

  1. 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 68
  2. 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
  3. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 59
  4. 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectivescited by 48
  5. 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
  6. 2024Large Language Models in Cybersecurity: State-of-the-Artcited by 34
  7. 2025AI Agent Smart Contract Exploit Generationcited by 9
  8. 2024Smart-LLaMA: Two-Stage Post-Training of Large Language Models for Smart Contract Vulnerability Detection and Explanationcited by 8
  9. 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detectioncited by 7
  10. 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
  11. 2025LLMs unlock new paths to monetizing exploitscited by 5
  12. 2024Retrieval Augmented Generation Integrated Large Language Models in Smart Contract Vulnerability Detectioncited by 4
23 more
  1. 2025Prompt to Pwn: Automated Exploit Generation for Smart Contractscited by 4
  2. 2025AiRacleX: Automated Detection of Price Oracle Manipulations via LLM-Driven Knowledge Mining and Prompt Generationcited by 3
  3. 2024Evaluation of ChatGPT's Smart Contract Auditing Capabilities Based on Chain of Thoughtcited by 2
  4. 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
  5. 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilitiescited by 2
  6. 2024Blockchain Meets LLMs: A Living Survey on Bidirectional Integrationcited by 2
  7. 2025Adaptive Plan-Execute Framework for Smart Contract Security Auditingcited by 2
  8. 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detectioncited by 2
  9. 2025LISA Technical Report: An Agentic Framework for Smart Contract Auditingcited by 2
  10. 2026TxRay: Agentic Postmortem of Live Blockchain Attackscited by 2
  11. 2024Generative AI-enabled Blockchain Networks: Fundamentals, Applications, and Case Studycited by 1
  12. 2024DISL: Fueling Research with A Large Dataset of Solidity Smart Contractscited by 1
  13. 2024FTSmartAudit: A Knowledge Distillation-Enhanced Framework for Automated Smart Contract Auditing Using Fine-Tuned LLMscited by 1
  14. 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimizationcited by 1
  15. 2025Large Language Model based Smart Contract Auditing with LLMBugScannercited by 1
  16. 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?cited by 1
  17. 2026AEGIS: From Clues to Verdicts -- Graph-Guided Deep Vulnerability Reasoning via Dialectics and Meta-Auditingcited by 1
  18. 2026Crypto x AI, AI x Crypto: A Surveycited by 1
  19. 2023Two Timin': Repairing Smart Contracts With A Two-Layered Approachcited by 0
  20. 2025Linking Cryptoasset Attribution Tags to Knowledge Graph Entities: An LLM-based Approachcited by 0
  21. 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
  22. 2025LLMs as verification oracles for Soliditycited by 0
  23. 2026Decoupled Smart Contract Audits: Lightweight LLM Framework via Distillation and Aggregationcited by 0