mlsanityData to 7 Oct 2026

Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectives

arXiv 2310.01152 ↗First posted 2 Oct 2023cs.CR cs.AIcited by 48

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  6. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  7. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  8. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  9. 2023A Survey of Large Language Modelscited by 2,537
  10. 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,048
  11. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  12. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
24 more
  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  2. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  3. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  4. 2023Cumulative Reasoning with Large Language Modelscited by 94
  5. 2019Slither: A Static Analysis Framework For Smart Contractscited by 88
  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. 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 50
  9. 2023When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?cited by 42
  10. 2022Transformer-Based Language Models for Software Vulnerability Detectioncited by 39
  11. 2019Manticore: A User-Friendly Symbolic Execution Framework for Binaries and Smart Contractscited by 36
  12. 2021Combining Graph Neural Networks with Expert Knowledge for Smart Contract Vulnerability Detectioncited by 34
  13. 2023Do you still need a manual smart contract audit?cited by 34
  14. 2018ContractFuzzer: Fuzzing Smart Contracts for Vulnerability Detectioncited by 32
  15. 2022SoK: Decentralized Finance (DeFi) Attackscited by 28
  16. 2021Smart Contract Vulnerability Detection: From Pure Neural Network to Interpretable Graph Feature and Expert Pattern Fusioncited by 24
  17. 2023BERT4ETH: A Pre-trained Transformer for Ethereum Fraud Detectioncited by 19
  18. 2018Vandal: A Scalable Security Analysis Framework for Smart Contractscited by 18
  19. 2019VeriSmart: A Highly Precise Safety Verifier for Ethereum Smart Contractscited by 11
  20. 2019Harvey: A Greybox Fuzzer for Smart Contractscited by 10
  21. 2022Benchmarking Language Models for Code Syntax Understandingcited by 8
  22. 2021xFuzz: Machine Learning Guided Cross-Contract Fuzzingcited by 4
  23. 2022GIFT: Graph-guIded Feature Transfer for Cold-Start Video Click-Through Rate Predictioncited by 4
  24. 2019MPro: Combining Static and Symbolic Analysis for Scalable Testing of Smart Contractcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 21; 2025: 19; 2026: 6.

48 papers.

Sort:

By area:

  1. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
  2. 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
  3. 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
  4. 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 113
  5. 2024A Survey on Large Language Model-Based Game Agentscited by 106
  6. 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
  7. 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 89
  8. 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
  9. 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
  10. 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
  11. 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
  12. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
36 more
  1. 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
  2. 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
  3. 2024PokeLLMon: A Human-Parity Agent for Pokemon Battles with Large Language Modelscited by 25
  4. 2025Let the Trial Begin: A Mock-Court Approach to Vulnerability Detection using LLM-Based Agentscited by 20
  5. 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 10
  6. 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 9
  7. 2024Smart-LLaMA: Two-Stage Post-Training of Large Language Models for Smart Contract Vulnerability Detection and Explanationcited by 8
  8. 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detectioncited by 8
  9. 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunitiescited by 7
  10. 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinementcited by 6
  11. 2025OpsAgent: An Evolving Multi-agent System for Incident Management in Microservicescited by 5
  12. 2023Survey on AI Ethics: A Socio-technical Perspectivecited by 4
  13. 2024Efficacy of Various Large Language Models in Generating Smart Contractscited by 4
  14. 2025Using LLMs in Generating Design Rationale for Software Architecture Decisionscited by 4
  15. 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approachcited by 4
  16. 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?cited by 4
  17. 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detectioncited by 4
  18. 2024SmartLLMSentry: A Comprehensive LLM Based Smart Contract Vulnerability Detection Frameworkcited by 3
  19. 2025SmartLLM: Smart Contract Auditing using Custom Generative AIcited by 3
  20. 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimizationcited by 3
  21. 2024Evaluation of ChatGPT's Smart Contract Auditing Capabilities Based on Chain of Thoughtcited by 2
  22. 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
  23. 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilitiescited by 2
  24. 2024Blockchain Meets LLMs: A Living Survey on Bidirectional Integrationcited by 2
  25. 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detectioncited by 2
  26. 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligencecited by 2
  27. 2025Leveraging Large Language Models for Command Injection Vulnerability Analysis in Python: An Empirical Study on Popular Open-Source Projectscited by 1
  28. 2025Web3 x AI Agents: Landscape, Integrations, and Foundational Challengescited by 1
  29. 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimizationcited by 1
  30. 2025Large Language Model based Smart Contract Auditing with LLMBugScannercited by 1
  31. 2026VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detectioncited by 1
  32. 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
  33. 2025From User Interface to Agent Interface: Efficiency Optimization of UI Representations for LLM Agentscited by 0
  34. 2026SmartOracle -- An Agentic Approach to Mitigate Noise in Differential Oraclescited by 0
  35. 2026Code-Augur: Agentic Vulnerability Detection via Specification Inferencecited by 0
  36. 2026CLEAR: Causal Context-Based Agentic Reasoning for Vulnerability Detectioncited by 0