When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?
Not on the map. Why?
Abstract (arXiv)
With the development of blockchain technology, smart contracts have become an important component of blockchain applications. Despite their crucial role, the development of smart contracts may introduce vulnerabilities and potentially lead to severe consequences, such as financial losses. Meanwhile, large language models, represented by ChatGPT, have gained great attentions, showcasing great capabilities in code analysis tasks. In this paper, we presented an empirical study to investigate the performance of ChatGPT in identifying smart contract vulnerabilities. Initially, we evaluated ChatGPT's effectiveness using a publicly available smart contract dataset. Our findings discover that while ChatGPT achieves a high recall rate, its precision in pinpointing smart contract vulnerabilities is limited. Furthermore, ChatGPT's performance varies when detecting different vulnerability types. We delved into the root causes for the false positives generated by ChatGPT, and categorized them into four groups. Second, by comparing ChatGPT with other state-of-the-art smart contract vulnerability detection tools, we found that ChatGPT's F-score is lower than others for 3 out of the 7 vulnerabilities. In the case of the remaining 4 vulnerabilities, ChatGPT exhibits a slight advantage over these tools. Finally, we analyzed the limitation of ChatGPT in smart contract vulnerability detection, revealing that the robustness of ChatGPT in this field needs to be improved from two aspects: its uncertainty in answering questions; and the limited length of the detected code. In general, our research provides insights into the strengths and weaknesses of employing large language models, specifically ChatGPT, for the detection of smart contract vulnerabilities.
Key facts. Cited by 42 papers in the map (data through 7 Oct 2026). First posted on arXiv 11 Sep 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 3; 2024: 16; 2025: 16; 2026: 7.
42 papers.
Sort:
By area:
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
- 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectivescited by 48
- 2024Large Language Models in Cybersecurity: State-of-the-Artcited by 34
- 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Codecited by 27
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworkscited by 14
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 9
- 2024Smart-LLaMA: Two-Stage Post-Training of Large Language Models for Smart Contract Vulnerability Detection and Explanationcited by 8
- 2025SCALM: Detecting Bad Practices in Smart Contracts Through LLMscited by 8
30 more
- 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detectioncited by 7
- 2024An Insight into Security Code Review with LLMs: Capabilities, Obstacles, and Influential Factorscited by 6
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
- 2025Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"cited by 5
- 2023Survey on AI Ethics: A Socio-technical Perspectivecited by 4
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contractscited by 4
- 2025SmartLLM: Smart Contract Auditing using Custom Generative AIcited by 3
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code 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
- 2024A Qualitative Study on Using ChatGPT for Software Security: Perception vs. Practicalitycited by 2
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilitiescited by 2
- 2024BlockScan: Detecting Anomalies in Blockchain Transactionscited 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
- 2024FTSmartAudit: A Knowledge Distillation-Enhanced Framework for Automated Smart Contract Auditing Using Fine-Tuned LLMscited by 1
- 2025Web3 x AI Agents: Landscape, Integrations, and Foundational Challengescited by 1
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimizationcited by 1
- 2025HFuzzer: Testing Large Language Models for Package Hallucinations via Phrase-based Fuzzingcited by 1
- 2025ParaVul: A Parallel Large Language Model and Retrieval-Augmented Framework for Smart Contract Vulnerability Detectioncited by 1
- 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?cited by 1
- 2026SolAgent: A Specialized Multi-Agent Framework for Solidity Code Generationcited by 1
- 2024JANUS: A Difference-Oriented Analyzer For Financial Centralization Risks in Smart Contractscited by 0
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
- 2025Validating Solidity Code Defects using Symbolic and Concrete Execution powered by Large Language Modelscited by 0
- 2025Coinvisor: An RL-Enhanced Chatbot Agent for Interactive Cryptocurrency Investment Analysiscited by 0
- 2026Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contractscited by 0
- 2026CHAINTRIX: A multi-pipeline LLM-augmented framework for automated smart-contract security auditingcited by 0
- 2026Benchmarking LLM-Based Static Analysis for Secure Smart Contract Development: Reliability, Limitations, and Potential Hybrid Solutionscited by 0
- 2026Frequency-Aware Continual Learning for Smart Contract Vulnerability Detection with Large Language Modelscited by 0
- 2026Frequency-Aware Continual Learning for Smart Contract Vulnerability Detection with Large Language Models20 Aug 2026
- 2026Benchmarking LLM-Based Static Analysis for Secure Smart Contract Development: Reliability, Limitations, and Potential Hybrid Solutions11 May 2026
- 2026CHAINTRIX: A multi-pipeline LLM-augmented framework for automated smart-contract security auditing10 May 2026
- 2026Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contracts17 Feb 2026
- 2026SolAgent: A Specialized Multi-Agent Framework for Solidity Code Generation30 Jan 2026
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generation14 Jan 2026
- 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?2 Jan 2026
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworks1 Dec 2025
- 2025ParaVul: A Parallel Large Language Model and Retrieval-Augmented Framework for Smart Contract Vulnerability Detection20 Oct 2025
- 2025Coinvisor: An RL-Enhanced Chatbot Agent for Interactive Cryptocurrency Investment Analysis20 Oct 2025
- 2025HFuzzer: Testing Large Language Models for Package Hallucinations via Phrase-based Fuzzing28 Sep 2025
- 2025Validating Solidity Code Defects using Symbolic and Concrete Execution powered by Large Language Models16 Sep 2025
30 more
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimization12 Sep 2025
- 2025Web3 x AI Agents: Landscape, Integrations, and Foundational Challenges4 Aug 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
- 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
- 2025SmartLLM: Smart Contract Auditing using Custom Generative AI17 Feb 2025
- 2025Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"9 Feb 2025
- 2025SCALM: Detecting Bad Practices in Smart Contracts Through LLMs4 Feb 2025
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilities13 Jan 2025
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Security19 Dec 2024
- 2024JANUS: A Difference-Oriented Analyzer For Financial Centralization Risks in Smart Contracts5 Dec 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
- 2024BlockScan: Detecting Anomalies in Blockchain Transactions5 Oct 2024
- 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Code23 Sep 2024
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilities15 Sep 2024
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024A Qualitative Study on Using ChatGPT for Software Security: Perception vs. Practicality1 Aug 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
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead7 Apr 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
- 2024An Insight into Security Code Review with LLMs: Capabilities, Obstacles, and Influential Factors29 Jan 2024
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning29 Jan 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Ugly4 Dec 2023
- 2023Survey on AI Ethics: A Socio-technical Perspective28 Nov 2023
- 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectives2 Oct 2023
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworkscited by 14
- 2026SolAgent: A Specialized Multi-Agent Framework for Solidity Code Generationcited by 1
- 2025Coinvisor: An RL-Enhanced Chatbot Agent for Interactive Cryptocurrency Investment Analysiscited by 0
- 2026SolAgent: A Specialized Multi-Agent Framework for Solidity Code Generation30 Jan 2026
- 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworks1 Dec 2025
- 2025Coinvisor: An RL-Enhanced Chatbot Agent for Interactive Cryptocurrency Investment Analysis20 Oct 2025
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead7 Apr 2024
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
- 2024An Insight into Security Code Review with LLMs: Capabilities, Obstacles, and Influential Factorscited by 6
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimizationcited by 1
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimization12 Sep 2025
- 2024An Insight into Security Code Review with LLMs: Capabilities, Obstacles, and Influential Factors29 Jan 2024
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning29 Jan 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited 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
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 9
- 2024Smart-LLaMA: Two-Stage Post-Training of Large Language Models for Smart Contract Vulnerability Detection and Explanationcited by 8
- 2025SCALM: Detecting Bad Practices in Smart Contracts Through LLMscited by 8
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
- 2025Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"cited by 5
- 2023Survey on AI Ethics: A Socio-technical Perspectivecited by 4
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contractscited by 4
- 2025SmartLLM: Smart Contract Auditing using Custom Generative AIcited by 3
12 most cited of 29 All 29 (JSON)
- 2026Frequency-Aware Continual Learning for Smart Contract Vulnerability Detection with Large Language Models20 Aug 2026
- 2026Benchmarking LLM-Based Static Analysis for Secure Smart Contract Development: Reliability, Limitations, and Potential Hybrid Solutions11 May 2026
- 2026CHAINTRIX: A multi-pipeline LLM-augmented framework for automated smart-contract security auditing10 May 2026
- 2026Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contracts17 Feb 2026
- 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?2 Jan 2026
- 2025HFuzzer: Testing Large Language Models for Package Hallucinations via Phrase-based Fuzzing28 Sep 2025
- 2025Validating Solidity Code Defects using Symbolic and Concrete Execution powered by Large Language Models16 Sep 2025
- 2025Web3 x AI Agents: Landscape, Integrations, and Foundational Challenges4 Aug 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
- 2025SmartLLM: Smart Contract Auditing using Custom Generative AI17 Feb 2025
12 newest of 29 All 29 (JSON)