Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectives
Not on the map. Why?
Abstract (arXiv)
This paper provides a systematic analysis of the opportunities, challenges, and potential solutions of harnessing Large Language Models (LLMs) such as GPT-4 to dig out vulnerabilities within smart contracts based on our ongoing research. For the task of smart contract vulnerability detection, achieving practical usability hinges on identifying as many true vulnerabilities as possible while minimizing the number of false positives. Nonetheless, our empirical study reveals contradictory yet interesting findings: generating more answers with higher randomness largely boosts the likelihood of producing a correct answer but inevitably leads to a higher number of false positives. To mitigate this tension, we propose an adversarial framework dubbed GPTLens that breaks the conventional one-stage detection into two synergistic stages - generation and discrimination, for progressive detection and refinement, wherein the LLM plays dual roles, i.e., auditor and critic, respectively. The goal of auditor is to yield a broad spectrum of vulnerabilities with the hope of encompassing the correct answer, whereas the goal of critic that evaluates the validity of identified vulnerabilities is to minimize the number of false positives. Experimental results and illustrative examples demonstrate that auditor and critic work together harmoniously to yield pronounced improvements over the conventional one-stage detection. GPTLens is intuitive, strategic, and entirely LLM-driven without relying on specialist expertise in smart contracts, showcasing its methodical generality and potential to detect a broad spectrum of vulnerabilities. Our code is available at: https://github.com/git-disl/GPTLens.
Key facts. Cited by 48 papers in the map (data through 7 Oct 2026). Builds on 36 of its 68 references that are in the map. First posted on arXiv 2 Oct 2023.
Builds on
36 of 68 references.
References · 36
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2023A Survey of Large Language Modelscited by 2,537
- 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,048
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
24 more
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2023Cumulative Reasoning with Large Language Modelscited by 94
- 2019Slither: A Static Analysis Framework For Smart Contractscited by 88
- 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
- 2018Securify: Practical Security Analysis of Smart Contractscited by 61
- 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 50
- 2023When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?cited by 42
- 2022Transformer-Based Language Models for Software Vulnerability Detectioncited by 39
- 2019Manticore: A User-Friendly Symbolic Execution Framework for Binaries and Smart Contractscited by 36
- 2021Combining Graph Neural Networks with Expert Knowledge for Smart Contract Vulnerability Detectioncited by 34
- 2023Do you still need a manual smart contract audit?cited by 34
- 2018ContractFuzzer: Fuzzing Smart Contracts for Vulnerability Detectioncited by 32
- 2022SoK: Decentralized Finance (DeFi) Attackscited by 28
- 2021Smart Contract Vulnerability Detection: From Pure Neural Network to Interpretable Graph Feature and Expert Pattern Fusioncited by 24
- 2023BERT4ETH: A Pre-trained Transformer for Ethereum Fraud Detectioncited by 19
- 2018Vandal: A Scalable Security Analysis Framework for Smart Contractscited by 18
- 2019VeriSmart: A Highly Precise Safety Verifier for Ethereum Smart Contractscited by 11
- 2019Harvey: A Greybox Fuzzer for Smart Contractscited by 10
- 2022Benchmarking Language Models for Code Syntax Understandingcited by 8
- 2021xFuzz: Machine Learning Guided Cross-Contract Fuzzingcited by 4
- 2022GIFT: Graph-guIded Feature Transfer for Cold-Start Video Click-Through Rate Predictioncited by 4
- 2019MPro: Combining Static and Symbolic Analysis for Scalable Testing of Smart Contractcited by 2
Built on by
Citing papers per year: 2023: 2; 2024: 21; 2025: 19; 2026: 6.
48 papers.
Sort:
By area:
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
- 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 113
- 2024A Survey on Large Language Model-Based Game Agentscited by 106
- 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
- 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 89
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
36 more
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
- 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
- 2024PokeLLMon: A Human-Parity Agent for Pokemon Battles with Large Language Modelscited by 25
- 2025Let the Trial Begin: A Mock-Court Approach to Vulnerability Detection using LLM-Based Agentscited by 20
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 10
- 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
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detectioncited by 8
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunitiescited by 7
- 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinementcited by 6
- 2025OpsAgent: An Evolving Multi-agent System for Incident Management in Microservicescited by 5
- 2023Survey on AI Ethics: A Socio-technical Perspectivecited by 4
- 2024Efficacy of Various Large Language Models in Generating Smart Contractscited by 4
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisionscited by 4
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approachcited by 4
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?cited by 4
- 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detectioncited by 4
- 2024SmartLLMSentry: A Comprehensive LLM Based Smart Contract Vulnerability Detection Frameworkcited by 3
- 2025SmartLLM: Smart Contract Auditing using Custom Generative AIcited by 3
- 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimizationcited 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
- 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detectioncited by 2
- 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligencecited by 2
- 2025Leveraging Large Language Models for Command Injection Vulnerability Analysis in Python: An Empirical Study on Popular Open-Source Projectscited 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
- 2025Large Language Model based Smart Contract Auditing with LLMBugScannercited by 1
- 2026VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detectioncited by 1
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
- 2025From User Interface to Agent Interface: Efficiency Optimization of UI Representations for LLM Agentscited by 0
- 2026SmartOracle -- An Agentic Approach to Mitigate Noise in Differential Oraclescited by 0
- 2026Code-Augur: Agentic Vulnerability Detection via Specification Inferencecited by 0
- 2026CLEAR: Causal Context-Based Agentic Reasoning for Vulnerability Detectioncited by 0
- 2026CLEAR: Causal Context-Based Agentic Reasoning for Vulnerability Detection4 Aug 2026
- 2026Code-Augur: Agentic Vulnerability Detection via Specification Inference17 Jun 2026
- 2026VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detection10 May 2026
- 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detection15 Feb 2026
- 2026SmartOracle -- An Agentic Approach to Mitigate Noise in Differential Oracles21 Jan 2026
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunities14 Jan 2026
- 2025From User Interface to Agent Interface: Efficiency Optimization of UI Representations for LLM Agents15 Dec 2025
- 2025Large Language Model based Smart Contract Auditing with LLMBugScanner29 Nov 2025
- 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimization14 Nov 2025
- 2025OpsAgent: An Evolving Multi-agent System for Incident Management in Microservices28 Oct 2025
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?16 Oct 2025
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approach14 Oct 2025
36 more
- 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligence13 Oct 2025
- 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinement30 Sep 2025
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detection15 Sep 2025
- 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
- 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
- 2025Leveraging Large Language Models for Command Injection Vulnerability Analysis in Python: An Empirical Study on Popular Open-Source Projects21 May 2025
- 2025Let the Trial Begin: A Mock-Court Approach to Vulnerability Detection using LLM-Based Agents16 May 2025
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisions29 Apr 2025
- 2025SmartLLM: Smart Contract Auditing using Custom Generative AI17 Feb 2025
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insights10 Feb 2025
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysis5 Feb 2025
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Security19 Dec 2024
- 2024SmartLLMSentry: A Comprehensive LLM Based Smart Contract Vulnerability Detection Framework28 Nov 2024
- 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
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep 2024
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilities15 Sep 2024
- 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep 2024
- 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbation3 Sep 2024
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug 2024
- 2024Efficacy of Various Large Language Models in Generating Smart Contracts28 Jun 2024
- 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attack28 May 2024
- 2024Large Language Models for Cyber Security: A Systematic Literature Review8 May 2024
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Review6 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
- 2024A Survey on Large Language Model-Based Game Agents2 Apr 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
- 2024PokeLLMon: A Human-Parity Agent for Pokemon Battles with Large Language Models2 Feb 2024
- 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attack2 Feb 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
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
- 2024A Survey on Large Language Model-Based Game Agentscited by 106
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
- 2024PokeLLMon: A Human-Parity Agent for Pokemon Battles with Large Language Modelscited by 25
- 2025Let the Trial Begin: A Mock-Court Approach to Vulnerability Detection using LLM-Based Agentscited by 20
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detectioncited by 8
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunitiescited by 7
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approachcited by 4
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?cited by 4
- 2025From User Interface to Agent Interface: Efficiency Optimization of UI Representations for LLM Agentscited by 0
12 most cited of 14 All 14 (JSON)
- 2026Code-Augur: Agentic Vulnerability Detection via Specification Inference17 Jun 2026
- 2026SmartOracle -- An Agentic Approach to Mitigate Noise in Differential Oracles21 Jan 2026
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunities14 Jan 2026
- 2025From User Interface to Agent Interface: Efficiency Optimization of UI Representations for LLM Agents15 Dec 2025
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?16 Oct 2025
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approach14 Oct 2025
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detection15 Sep 2025
- 2025Let the Trial Begin: A Mock-Court Approach to Vulnerability Detection using LLM-Based Agents16 May 2025
- 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep 2024
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug 2024
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead7 Apr 2024
- 2024A Survey on Large Language Model-Based Game Agents2 Apr 2024
12 newest of 14 All 14 (JSON)
- 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 113
- 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 89
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
- 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detectioncited by 4
- 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detection15 Feb 2026
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep 2024
- 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attack28 May 2024
- 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attack2 Feb 2024
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
- 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimizationcited by 3
- 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimizationcited by 1
- 2026CLEAR: Causal Context-Based Agentic Reasoning for Vulnerability Detectioncited by 0
- 2026CLEAR: Causal Context-Based Agentic Reasoning for Vulnerability Detection4 Aug 2026
- 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimization14 Nov 2025
- 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
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 10
- 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
- 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinementcited by 6
- 2025OpsAgent: An Evolving Multi-agent System for Incident Management in Microservicescited by 5
- 2023Survey on AI Ethics: A Socio-technical Perspectivecited by 4
- 2024Efficacy of Various Large Language Models in Generating Smart Contractscited by 4
12 most cited of 24 All 24 (JSON)
- 2026VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detection10 May 2026
- 2025Large Language Model based Smart Contract Auditing with LLMBugScanner29 Nov 2025
- 2025OpsAgent: An Evolving Multi-agent System for Incident Management in Microservices28 Oct 2025
- 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinement30 Sep 2025
- 2025Web3 x AI Agents: Landscape, Integrations, and Foundational Challenges4 Aug 2025
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
- 2025Leveraging Large Language Models for Command Injection Vulnerability Analysis in Python: An Empirical Study on Popular Open-Source Projects21 May 2025
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisions29 Apr 2025
- 2025SmartLLM: Smart Contract Auditing using Custom Generative AI17 Feb 2025
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insights10 Feb 2025
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysis5 Feb 2025
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Security19 Dec 2024
12 newest of 24 All 24 (JSON)