mlsanityData to 7 Oct 2026

PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generation

arXiv 2405.02580 ↗First posted 4 May 2024cs.SE cs.AIcited by 36

On the map: Retrieval-augmented generation → Privacy and security of RAG

Abstract (arXiv)

With recent advances in large language models (LLMs), this paper explores the potential of leveraging state-of-the-art LLMs,such as GPT-4, to transfer existing human-written properties (e.g.,those from Certora auditing reports) and automatically generate customized properties for unknown code. To this end, we embed existing properties into a vector database and retrieve a reference property for LLM-based in-context learning to generate a new property for a given code. While this basic process is relatively straightforward, ensuring that the generated properties are (i) compilable, (ii) appropriate, and (iii) verifiable presents challenges. To address (i), we use the compilation and static analysis feedback as an external oracle to guide LLMs in iteratively revising the generated properties. For (ii), we consider multiple dimensions of similarity to rank the properties and employ a weighted algorithm to identify the top-K properties as the final result. For (iii), we design a dedicated prover to formally verify the correctness of the generated properties. We have implemented these strategies into a novel LLM-based property generation tool called PropertyGPT. Our experiments show that PropertyGPT can generate comprehensive and high-quality properties, achieving an 80% recall compared to the ground truth. It successfully detected 26 CVEs/attack incidents out of 37 tested and also uncovered 12 zero-day vulnerabilities, leading to 8,256 in bug bounty rewards.

Key facts. Cited by 36 papers in the map (data through 7 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 30 of its 67 references that are in the map. First posted on arXiv 4 May 2024.

Builds on

30 of 67 references.

References · 30

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  6. 2017Billion-scale similarity search with GPUscited by 2,477
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  8. 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
  9. 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
  10. 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
  11. 2019Slither: A Static Analysis Framework For Smart Contractscited by 88
  12. 2023AutoChip: Automating HDL Generation Using LLM Feedbackcited by 80
18 more
  1. 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 78
  2. 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
  3. 2018Securify: Practical Security Analysis of Smart Contractscited by 61
  4. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
  5. 2019Manticore: A User-Friendly Symbolic Execution Framework for Binaries and Smart Contractscited by 36
  6. 2018ContractFuzzer: Fuzzing Smart Contracts for Vulnerability Detectioncited by 32
  7. 2024Can Large Language Models Understand Context?cited by 26
  8. 2018FixMiner: Mining Relevant Fix Patterns for Automated Program Repaircited by 22
  9. 2020sFuzz: An Efficient Adaptive Fuzzer for Solidity Smart Contractscited by 19
  10. 2018Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attackscited by 17
  11. 2024ACFIX: Guiding LLMs with Mined Common RBAC Practices for Context-Aware Repair of Access Control Vulnerabilities in Smart Contractscited by 15
  12. 2020A Survey of Smart Contract Formal Specification and Verificationcited by 14
  13. 2021DeFiRanger: Detecting Price Manipulation Attacks on DeFi Applicationscited by 5
  14. 2019Oracle-Supported Dynamic Exploit Generation for Smart Contractscited by 4
  15. 2021Formal Analysis of Composable DeFi Protocolscited by 3
  16. 2018Formal Specification and Verification of Smart Contracts for Azure Blockchaincited by 2
  17. 2021An Empirical Study of Blockchain System Vulnerabilities: Modules, Types, and Patternscited by 2
  18. 2024Automated Invariant Generation for Solidity Smart Contractscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 22; 2026: 12.

36 papers.

Sort:

By area:

  1. 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Mannercited by 57
  2. 2025ACE: A Security Architecture for LLM-Integrated App Systemscited by 52
  3. 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
  4. 2025Measuring and Augmenting Large Language Models for Solving Capture-the-Flag Challengescited by 14
  5. 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 10
  6. 2025Incident Response Planning Using a Lightweight Large Language Model with Reduced Hallucinationcited by 10
  7. 2025SCALM: Detecting Bad Practices in Smart Contracts Through LLMscited by 8
  8. 2025Vulnerability Detection: From Formal Verification to Large Language Models and Hybrid Approaches: A Comprehensive Overviewcited by 7
  9. 2025Knowledge-Based Multi-Agent Framework for Automated Software Architecture Designcited by 7
  10. 2026Semia: Auditing Agent Skills via Constraint-Guided Representation Synthesiscited by 5
  11. 2025Detecting Various DeFi Price Manipulations with LLM Reasoningcited by 4
  12. 2025RulePilot: An LLM-Powered Agent for Security Rule Generationcited by 4
24 more
  1. 2025DataGovBench: Benchmarking LLM Agents for Real-World Data Governance Workflowscited by 4
  2. 2025Agentic Specification Generator for Move Programscited by 3
  3. 2025Inferring multiple helper Dafny assertions with LLMscited by 3
  4. 2025SymGPT: Auditing Smart Contracts via Combining Symbolic Execution with Large Language Modelscited by 2
  5. 2025Towards Secure Program Partitioning for Smart Contracts with LLM's In-Context Learningcited by 2
  6. 2025Adaptive Plan-Execute Framework for Smart Contract Security Auditingcited by 2
  7. 2025LISA Technical Report: An Agentic Framework for Smart Contract Auditingcited by 2
  8. 2026VulnResolver: A Hybrid Agent Framework for LLM-Based Automated Vulnerability Issue Resolutioncited by 2
  9. 2024FTSmartAudit: A Knowledge Distillation-Enhanced Framework for Automated Smart Contract Auditing Using Fine-Tuned LLMscited by 1
  10. 2025Towards Automated Formal Verification of Backend Systems with LLMscited by 1
  11. 2025ParaVul: A Parallel Large Language Model and Retrieval-Augmented Framework for Smart Contract Vulnerability Detectioncited by 1
  12. 2025The 4/δ Bound: Designing Predictable LLM-Verifier Systems for Formal Method Guaranteecited by 1
  13. 2026Hallucination-Resistant Security Planning with a Large Language Modelcited by 1
  14. 2026Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarizationcited by 1
  15. 2026IsabeLLM: Automated Theorem Proving Applied to Formally Verifying Consensuscited by 1
  16. 2025Rethinking and Exploring String-Based Malware Family Classification in the Era of LLMs and RAGcited by 0
  17. 2025LLMs as verification oracles for Soliditycited by 0
  18. 2026CHAINTRIX: A multi-pipeline LLM-augmented framework for automated smart-contract security auditingcited by 0
  19. 2026Combining Mechanical and Agentic Specification Inference for Movecited by 0
  20. 2026AutoACSL: Synthesizing ACSL Specifications by Integrating LLMs with CPG-Based Static Analysiscited by 0
  21. 2026Beyond Detection: Agentic Attack Synthesis and Simulation for Smart Contractscited by 0
  22. 2026Frequency-Aware Continual Learning for Smart Contract Vulnerability Detection with Large Language Modelscited by 0
  23. 2026Demystifying Agent Skills for Smart Contract Auditing: Design, Effectiveness, Behavioral Impactcited by 0
  24. 2026Self-Spec Verifiable Code Generationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Beyond Code Similarity: Benchmarking the Plausibility, Efficiency, and Complexity of LLM-Generated Smart Contracts
  2. 2026Repository-Level Solidity Code Generation with Large Language Models: From Prompting to Fine-Tuning
  3. 2025Large Language Model based Smart Contract Auditing with LLMBugScanner
  4. 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justifications
  5. 2026An end-to-end agentic pipeline for smart contract translation and quality evaluation
  6. 2025SmartLLM: Smart Contract Auditing using Custom Generative AI
  7. 2025Towards Automated Smart Contract Generation: Evaluation, Benchmarking, and Retrieval-Augmented Repair
  8. 2026ToolGate: Contract-Grounded and Verified Tool Execution for LLMs