Do you still need a manual smart contract audit?
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
Citing papers per year: 2023: 3; 2024: 13; 2025: 14; 2026: 5.
35 papers.
Sort:
By area:
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 68
- 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 59
- 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectivescited by 48
- 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
- 2024Large Language Models in Cybersecurity: State-of-the-Artcited by 34
- 2025AI Agent Smart Contract Exploit Generationcited by 9
- 2024Smart-LLaMA: Two-Stage Post-Training of Large Language Models for Smart Contract Vulnerability Detection and Explanationcited by 8
- 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detectioncited by 7
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
- 2025LLMs unlock new paths to monetizing exploitscited by 5
- 2024Retrieval Augmented Generation Integrated Large Language Models in Smart Contract Vulnerability Detectioncited by 4
23 more
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contractscited by 4
- 2025AiRacleX: Automated Detection of Price Oracle Manipulations via LLM-Driven Knowledge Mining and Prompt Generationcited by 3
- 2024Evaluation of ChatGPT's Smart Contract Auditing Capabilities Based on Chain of Thoughtcited by 2
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilitiescited by 2
- 2024Blockchain Meets LLMs: A Living Survey on Bidirectional Integrationcited by 2
- 2025Adaptive Plan-Execute Framework for Smart Contract Security Auditingcited by 2
- 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detectioncited by 2
- 2025LISA Technical Report: An Agentic Framework for Smart Contract Auditingcited by 2
- 2026TxRay: Agentic Postmortem of Live Blockchain Attackscited by 2
- 2024Generative AI-enabled Blockchain Networks: Fundamentals, Applications, and Case Studycited by 1
- 2024DISL: Fueling Research with A Large Dataset of Solidity Smart Contractscited by 1
- 2024FTSmartAudit: A Knowledge Distillation-Enhanced Framework for Automated Smart Contract Auditing Using Fine-Tuned LLMscited by 1
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimizationcited by 1
- 2025Large Language Model based Smart Contract Auditing with LLMBugScannercited by 1
- 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?cited by 1
- 2026AEGIS: From Clues to Verdicts -- Graph-Guided Deep Vulnerability Reasoning via Dialectics and Meta-Auditingcited by 1
- 2026Crypto x AI, AI x Crypto: A Surveycited by 1
- 2023Two Timin': Repairing Smart Contracts With A Two-Layered Approachcited by 0
- 2025Linking Cryptoasset Attribution Tags to Knowledge Graph Entities: An LLM-based Approachcited by 0
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
- 2025LLMs as verification oracles for Soliditycited by 0
- 2026Decoupled Smart Contract Audits: Lightweight LLM Framework via Distillation and Aggregationcited by 0
- 2026Crypto x AI, AI x Crypto: A Survey11 Jun 2026
- 2026Decoupled Smart Contract Audits: Lightweight LLM Framework via Distillation and Aggregation2 Jun 2026
- 2026AEGIS: From Clues to Verdicts -- Graph-Guided Deep Vulnerability Reasoning via Dialectics and Meta-Auditing21 Mar 2026
- 2026TxRay: Agentic Postmortem of Live Blockchain Attacks1 Feb 2026
- 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?2 Jan 2026
- 2025Large Language Model based Smart Contract Auditing with LLMBugScanner29 Nov 2025
- 2025LISA Technical Report: An Agentic Framework for Smart Contract Auditing29 Sep 2025
- 2025LLMs as verification oracles for Solidity23 Sep 2025
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimization12 Sep 2025
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contracts2 Aug 2025
- 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detection30 Jul 2025
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
23 more
- 2025AI Agent Smart Contract Exploit Generation8 Jul 2025
- 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detection23 Jun 2025
- 2025Adaptive Plan-Execute Framework for Smart Contract Security Auditing21 May 2025
- 2025LLMs unlock new paths to monetizing exploits16 May 2025
- 2025Linking Cryptoasset Attribution Tags to Knowledge Graph Entities: An LLM-based Approach12 Feb 2025
- 2025AiRacleX: Automated Detection of Price Oracle Manipulations via LLM-Driven Knowledge Mining and Prompt Generation10 Feb 2025
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilities13 Jan 2025
- 2024Blockchain Meets LLMs: A Living Survey on Bidirectional Integration25 Nov 2024
- 2024Smart-LLaMA: Two-Stage Post-Training of Large Language Models for Smart Contract Vulnerability Detection and Explanation9 Nov 2024
- 2024FTSmartAudit: A Knowledge Distillation-Enhanced Framework for Automated Smart Contract Auditing Using Fine-Tuned LLMs17 Oct 2024
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilities15 Sep 2024
- 2024Retrieval Augmented Generation Integrated Large Language Models in Smart Contract Vulnerability Detection20 Jul 2024
- 2024Large Language Models for Cyber Security: A Systematic Literature Review8 May 2024
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsification14 Apr 2024
- 2024DISL: Fueling Research with A Large Dataset of Solidity Smart Contracts25 Mar 2024
- 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justifications24 Mar 2024
- 2024Evaluation of ChatGPT's Smart Contract Auditing Capabilities Based on Chain of Thought19 Feb 2024
- 2024Large Language Models in Cybersecurity: State-of-the-Art30 Jan 2024
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning29 Jan 2024
- 2024Generative AI-enabled Blockchain Networks: Fundamentals, Applications, and Case Study28 Jan 2024
- 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectives2 Oct 2023
- 2023Two Timin': Repairing Smart Contracts With A Two-Layered Approach14 Sep 2023
- 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysis7 Aug 2023
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 59
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimizationcited by 1
- 2026AEGIS: From Clues to Verdicts -- Graph-Guided Deep Vulnerability Reasoning via Dialectics and Meta-Auditingcited by 1
- 2026AEGIS: From Clues to Verdicts -- Graph-Guided Deep Vulnerability Reasoning via Dialectics and Meta-Auditing21 Mar 2026
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimization12 Sep 2025
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning29 Jan 2024
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 68
- 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
- 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectivescited by 48
- 2024Large Language Models in Cybersecurity: State-of-the-Artcited by 34
- 2024Smart-LLaMA: Two-Stage Post-Training of Large Language Models for Smart Contract Vulnerability Detection and Explanationcited by 8
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
- 2025LLMs unlock new paths to monetizing exploitscited by 5
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contractscited by 4
- 2025AiRacleX: Automated Detection of Price Oracle Manipulations via LLM-Driven Knowledge Mining and Prompt Generationcited by 3
- 2024Evaluation of ChatGPT's Smart Contract Auditing Capabilities Based on Chain of Thoughtcited by 2
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilitiescited by 2
12 most cited of 25 All 25 (JSON)
- 2026Crypto x AI, AI x Crypto: A Survey11 Jun 2026
- 2026Decoupled Smart Contract Audits: Lightweight LLM Framework via Distillation and Aggregation2 Jun 2026
- 2026TxRay: Agentic Postmortem of Live Blockchain Attacks1 Feb 2026
- 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?2 Jan 2026
- 2025Large Language Model based Smart Contract Auditing with LLMBugScanner29 Nov 2025
- 2025LLMs as verification oracles for Solidity23 Sep 2025
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contracts2 Aug 2025
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
- 2025Adaptive Plan-Execute Framework for Smart Contract Security Auditing21 May 2025
- 2025LLMs unlock new paths to monetizing exploits16 May 2025
- 2025Linking Cryptoasset Attribution Tags to Knowledge Graph Entities: An LLM-based Approach12 Feb 2025
- 2025AiRacleX: Automated Detection of Price Oracle Manipulations via LLM-Driven Knowledge Mining and Prompt Generation10 Feb 2025
12 newest of 25 All 25 (JSON)