Examining Zero-Shot Vulnerability Repair with Large Language Models
Not on the map. Why?
Abstract (arXiv)
Human developers can produce code with cybersecurity bugs. Can emerging 'smart' code completion tools help repair those bugs? In this work, we examine the use of large language models (LLMs) for code (such as OpenAI's Codex and AI21's Jurassic J-1) for zero-shot vulnerability repair. We investigate challenges in the design of prompts that coax LLMs into generating repaired versions of insecure code. This is difficult due to the numerous ways to phrase key information - both semantically and syntactically - with natural languages. We perform a large scale study of five commercially available, black-box, "off-the-shelf" LLMs, as well as an open-source model and our own locally-trained model, on a mix of synthetic, hand-crafted, and real-world security bug scenarios. Our experiments demonstrate that while the approach has promise (the LLMs could collectively repair 100% of our synthetically generated and hand-crafted scenarios), a qualitative evaluation of the model's performance over a corpus of historical real-world examples highlights challenges in generating functionally correct code.
Key facts. Cited by 105 papers in the map (data through 7 Oct 2026). Builds on 8 of its 56 references that are in the map. First posted on arXiv 3 Dec 2021.
Builds on
8 of 56 references.
References · 8
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 144
- 2018An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translationcited by 106
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2018Automatic Software Repair: a Bibliographycited by 24
- 2021Generating Bug-Fixes Using Pretrained Transformerscited by 18
Built on by
Citing papers per year: 2023: 31; 2024: 35; 2025: 23; 2026: 16.
105 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
- 2023Chip-Chat: Challenges and Opportunities in Conversational Hardware Designcited by 136
- 2023Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Surveycited by 134
- 2024NYU CTF Bench: A Scalable Open-Source Benchmark Dataset for Evaluating LLMs in Offensive Securitycited by 90
- 2024A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systemscited by 74
- 2024XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Modelscited by 73
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2023Graphologue: Exploring Large Language Model Responses with Interactive Diagramscited by 65
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
- 2023"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmerscited by 62
- 2023LLMSecEval: A Dataset of Natural Language Prompts for Security Evaluationscited by 58
38 more
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
- 2023CodeLMSec Benchmark: Systematically Evaluating and Finding Security Vulnerabilities in Black-Box Code Language Modelscited by 52
- 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 50
- 2024WIPI: A New Web Threat for LLM-Driven Web Agentscited by 50
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2024Robustifying Safety-Aligned Large Language Models through Clean Data Curationcited by 43
- 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
- 2024PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generationcited by 36
- 2023Large Language Models Are Zero-Shot Text Classifierscited by 35
- 2024Constrained Decoding for Secure Code Generationcited by 35
- 2024Large Language Models in Cybersecurity: State-of-the-Artcited by 34
- 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testingcited by 34
- 2023The FormAI Dataset: Generative AI in Software Security Through the Lens of Formal Verificationcited by 32
- 2024How Does Code Pretraining Affect Language Model Task Performance?cited by 28
- 2025Llama-3.1-FoundationAI-SecurityLLM-Base-8B Technical Reportcited by 28
- 2023LLM for SoC Security: A Paradigm Shiftcited by 22
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2023Can Large Language Models Provide Security & Privacy Advice? Measuring the Ability of LLMs to Refute Misconceptionscited by 20
- 2024LLM4PLC: Harnessing Large Language Models for Verifiable Programming of PLCs in Industrial Control Systemscited by 20
- 2024Depending on yourself when you should: Mentoring LLM with RL agents to become the master in cybersecurity gamescited by 20
- 2023Exploring ChatGPT's Capabilities on Vulnerability Managementcited by 19
- 2023The Hitchhiker's Guide to Program Analysis: A Journey with Large Language Modelscited by 18
- 2024LLMs and the Future of Chip Design: Unveiling Security Risks and Building Trustcited by 18
- 2023Out of the Cage: How Stochastic Parrots Win in Cyber Security Environmentscited by 17
- 2025From CVE Entries to Verifiable Exploits: An Automated Multi-Agent Framework for Reproducing CVEscited by 17
- 2023CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Modelscited by 16
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2023RAPGen: An Approach for Fixing Code Inefficiencies in Zero-Shotcited by 14
- 2023FRANC: A Lightweight Framework for High-Quality Code Generationcited by 14
- 2024CigaR: Cost-efficient Program Repair with LLMscited by 14
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
- 2023Domain Knowledge Distillation from Large Language Model: An Empirical Study in the Autonomous Driving Domaincited by 8
- 2023HW-V2W-Map: Hardware Vulnerability to Weakness Mapping Framework for Root Cause Analysis with GPT-assisted Mitigation Suggestioncited by 8
- 2024A Survey of Large Language Models in Cybersecuritycited by 8
- 2024Location is Key: Leveraging Large Language Model for Functional Bug Localization in Verilogcited by 8
- 2023FLAG: Finding Line Anomalies (in code) with Generative AIcited by 7
- 2024Can GPT-O1 Kill All Bugs? An Evaluation of GPT-Family LLMs on QuixBugscited by 7
- 2023A Language Model of Java Methods with Train/Test Deduplicationcited by 6
50 most cited of 105 All 105 (JSON)
- 2026LLM4Trust: Exploring the Capabilities of Large Language Models for Trust Evaluation27 Sep 2026
- 2026Blockchain-Enabled Artificial Intelligence and AI Agents for Secure Data Sharing and Cybersecurity Applications23 Sep 2026
- 2026PatchBench: Evaluating AI Agents for Vulnerability Patching3 Sep 2026
- 2026AI Slop and Hallucinations in Vulnerability Assessment: A Survey on Reasoning Failures and Trustworthy Mitigation26 Aug 2026
- 2026CyberLLM: A Multi-Agent LLM Framework for Autonomous Detection and Guarded Response in Automotive Cybersecurity6 Aug 2026
- 2026TerraRepair: A Tool-Grounded LLM Agent for Infrastructure-as-Code Repair13 Jul 2026
- 2026Functional and Secure Code Generation with Task Vectors8 Jul 2026
- 2026Knowledge-Enhanced Agentic Vulnerability Repair1 Jul 2026
- 2026Benchmarking Large Language Models on Floating-Point Error Classification30 Jun 2026
- 2026Securing the AI Agent: A Unified Framework for Multi-Layer Agent Red Teaming30 Jun 2026
- 2026When Passing Tests Hides Vulnerabilities: An Empirical Study of Silent Failures in Agentic Systems25 Jun 2026
- 2026Helpful or Harmful? Evaluating LLM-Assisted Vulnerability Patching via a Human Study24 Jun 2026
38 more
- 2026QASecClaw: A Multi-Agent LLM Approach for False Positive Reduction in Static Application Security Testing3 May 2026
- 2026DSIPA: Detecting LLM-Generated Texts via Sentiment-Invariant Patterns Divergence Analysis29 Apr 2026
- 2026RAVEN: Retrieval-Augmented Vulnerability Exploration Network for Memory Corruption Analysis in User Code and Binary Programs20 Apr 2026
- 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?2 Jan 2026
- 2025Temporal Attack Pattern Detection in Multi-Agent AI Workflows: An Open Framework for Training Trace-Based Security Models29 Dec 2025
- 2025Anka: A Domain-Specific Language for Reliable LLM Code Generation29 Dec 2025
- 2025Assessing the Software Security Comprehension of Large Language Models24 Dec 2025
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimization16 Dec 2025
- 2025Evaluating LLMs for One-Shot Patching of Real and Artificial Vulnerabilities28 Nov 2025
- 2025LLMs as Firmware Experts: A Runtime-Grown Tree-of-Agents Framework23 Nov 2025
- 2025Predicate Renaming via Large Language Models29 Oct 2025
- 2025Is Your Prompt Poisoning Code? Defect Induction Rates and Security Mitigation Strategies27 Oct 2025
- 2025What Do They Fix? LLM-Aided Categorization of Security Patches for Critical Memory Bugs26 Sep 2025
- 2025GitHub's Copilot Code Review: Can AI Spot Security Flaws Before You Commit?17 Sep 2025
- 2025From CVE Entries to Verifiable Exploits: An Automated Multi-Agent Framework for Reproducing CVEs1 Sep 2025
- 2025Prompt to Pwn: Automated Exploit Generation for Smart Contracts2 Aug 2025
- 2025Repairing vulnerabilities without invisible hands. A differentiated replication study on LLMs28 Jul 2025
- 2025The Impact of Fine-tuning Large Language Models on Automated Program Repair26 Jul 2025
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
- 2025HiLDe: Intentional Code Generation via Human-in-the-Loop Decoding28 May 2025
- 2025Assessing and Enhancing the Robustness of LLM-based Multi-Agent Systems Through Chaos Engineering6 May 2025
- 2025kAgent: An execution-guided crash resolution agent for the Linux kernel29 Apr 2025
- 2025Llama-3.1-FoundationAI-SecurityLLM-Base-8B Technical Report28 Apr 2025
- 2025Automatically Generating Rules of Malicious Software Packages via Large Language Model24 Apr 2025
- 2025Frontier AI's Impact on the Cybersecurity Landscape7 Apr 2025
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilities13 Jan 2025
- 2025QuArch: A Question-Answering Dataset for AI Agents in Computer Architecture3 Jan 2025
- 2024Integrating Artificial Open Generative Artificial Intelligence into Software Supply Chain Security26 Dec 2024
- 2024Trust Calibration in IDEs: Paving the Way for Widespread Adoption of AI Refactoring20 Dec 2024
- 2024Helping LLMs Improve Code Generation Using Feedback from Testing and Static Analysis19 Dec 2024
- 2024Optimizing AI-Assisted Code Generation14 Dec 2024
- 2024XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Models22 Nov 2024
- 2024An Efficient Matrix Multiplication Algorithm for Accelerating Inference in Binary and Ternary Neural Networks10 Nov 2024
- 2024Code Vulnerability Repair with Large Language Model using Context-Aware Prompt Tuning27 Sep 2024
- 2024Location is Key: Leveraging Large Language Model for Functional Bug Localization in Verilog23 Sep 2024
- 2024Contextualized AI for Cyber Defense: An Automated Survey using LLMs20 Sep 2024
- 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testing16 Sep 2024
- 2024Can GPT-O1 Kill All Bugs? An Evaluation of GPT-Family LLMs on QuixBugs16 Sep 2024
50 newest of 105 All 105 (JSON)
- 2024XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Modelscited by 73
- 2024WIPI: A New Web Threat for LLM-Driven Web Agentscited by 50
- 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testingcited by 34
- 2024Depending on yourself when you should: Mentoring LLM with RL agents to become the master in cybersecurity gamescited by 20
- 2025From CVE Entries to Verifiable Exploits: An Automated Multi-Agent Framework for Reproducing CVEscited by 17
- 2025Assessing and Enhancing the Robustness of LLM-based Multi-Agent Systems Through Chaos Engineeringcited by 6
- 2025QuArch: A Question-Answering Dataset for AI Agents in Computer Architecturecited by 4
- 2025kAgent: An execution-guided crash resolution agent for the Linux kernelcited by 4
- 2025Temporal Attack Pattern Detection in Multi-Agent AI Workflows: An Open Framework for Training Trace-Based Security Modelscited by 2
- 2026Securing the AI Agent: A Unified Framework for Multi-Layer Agent Red Teamingcited by 1
- 2025LLMs as Firmware Experts: A Runtime-Grown Tree-of-Agents Frameworkcited by 0
- 2026QASecClaw: A Multi-Agent LLM Approach for False Positive Reduction in Static Application Security Testingcited by 0
12 most cited of 17 All 17 (JSON)
- 2026Blockchain-Enabled Artificial Intelligence and AI Agents for Secure Data Sharing and Cybersecurity Applications23 Sep 2026
- 2026CyberLLM: A Multi-Agent LLM Framework for Autonomous Detection and Guarded Response in Automotive Cybersecurity6 Aug 2026
- 2026TerraRepair: A Tool-Grounded LLM Agent for Infrastructure-as-Code Repair13 Jul 2026
- 2026Knowledge-Enhanced Agentic Vulnerability Repair1 Jul 2026
- 2026Securing the AI Agent: A Unified Framework for Multi-Layer Agent Red Teaming30 Jun 2026
- 2026When Passing Tests Hides Vulnerabilities: An Empirical Study of Silent Failures in Agentic Systems25 Jun 2026
- 2026QASecClaw: A Multi-Agent LLM Approach for False Positive Reduction in Static Application Security Testing3 May 2026
- 2025Temporal Attack Pattern Detection in Multi-Agent AI Workflows: An Open Framework for Training Trace-Based Security Models29 Dec 2025
- 2025LLMs as Firmware Experts: A Runtime-Grown Tree-of-Agents Framework23 Nov 2025
- 2025From CVE Entries to Verifiable Exploits: An Automated Multi-Agent Framework for Reproducing CVEs1 Sep 2025
- 2025Assessing and Enhancing the Robustness of LLM-based Multi-Agent Systems Through Chaos Engineering6 May 2025
- 2025kAgent: An execution-guided crash resolution agent for the Linux kernel29 Apr 2025
12 newest of 17 All 17 (JSON)
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
- 2023Chip-Chat: Challenges and Opportunities in Conversational Hardware Designcited by 136
- 2023Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Surveycited by 134
- 2024NYU CTF Bench: A Scalable Open-Source Benchmark Dataset for Evaluating LLMs in Offensive Securitycited by 90
- 2024A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systemscited by 74
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2023Graphologue: Exploring Large Language Model Responses with Interactive Diagramscited by 65
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
- 2023"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmerscited by 62
- 2023LLMSecEval: A Dataset of Natural Language Prompts for Security Evaluationscited by 58
- 2023CodeLMSec Benchmark: Systematically Evaluating and Finding Security Vulnerabilities in Black-Box Code Language Modelscited by 52
12 most cited of 83 All 83 (JSON)
- 2026LLM4Trust: Exploring the Capabilities of Large Language Models for Trust Evaluation27 Sep 2026
- 2026PatchBench: Evaluating AI Agents for Vulnerability Patching3 Sep 2026
- 2026Functional and Secure Code Generation with Task Vectors8 Jul 2026
- 2026Benchmarking Large Language Models on Floating-Point Error Classification30 Jun 2026
- 2026Helpful or Harmful? Evaluating LLM-Assisted Vulnerability Patching via a Human Study24 Jun 2026
- 2026DSIPA: Detecting LLM-Generated Texts via Sentiment-Invariant Patterns Divergence Analysis29 Apr 2026
- 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?2 Jan 2026
- 2025Anka: A Domain-Specific Language for Reliable LLM Code Generation29 Dec 2025
- 2025Assessing the Software Security Comprehension of Large Language Models24 Dec 2025
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimization16 Dec 2025
- 2025Evaluating LLMs for One-Shot Patching of Real and Artificial Vulnerabilities28 Nov 2025
- 2025Predicate Renaming via Large Language Models29 Oct 2025
12 newest of 83 All 83 (JSON)