mlsanityData to 7 Oct 2026

Knowledge-Enhanced Agentic Vulnerability Repair

arXiv 2607.00820 ↗First posted 1 Jul 2026cs.SEcited by 0

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

Frontier foundation models have changed the math on vulnerability discovery, but the bigger challenge is how the remediation side keeps up. Despite recent progresses in Automated Vulnerability Repair (AVR), current solutions struggle to reliably identify the root causes of vulnerabilities, and insufficiently utilize the prior fix knowledge to guide the patch generation process, thus undermining their effectiveness in practice. To address this gap, we propose KeaRepair, a novel agentic AVR approach that grounds patch generation in verified program facts and high-level vulnerability knowledge. Specifically, KeaRepair first extracts multi-dimensional vulnerability knowledge from historical vulnerability-patch pairs from dual complementary views, and constructs dedicated retrieval knowledge bases. It then employs a tool-augmented agent that performs ReAct-style reasoning to collect verified program facts for vulnerability diagnosis. Finally, based on the diagnostic results, KeaRepair performs knowledge-level retrieval-augmented patch generation and iteratively refines patches through a closed-loop validation process involving compilation, PoC replay, and test-suite execution. Experimental results show that KeaRepair significantly outperforms existing AVR approaches on 55 reproducible C/C++ vulnerabilities. When paired with Gemini-3.1-Pro, KeaRepair successfully repairs 46 vulnerabilities, achieving a repair rate of 83.64%. Moreover, KeaRepair fixes six unique vulnerabilities that none of the baselines can address, and further demonstrates strong cross-language generalizability.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 31 of its 49 references that are in the map. First posted on arXiv 1 Jul 2026.

Builds on

31 of 49 references.

References · 31

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  4. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  5. 2024The Faiss librarycited by 370
  6. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
  7. 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
  8. 2024Vulnerability Detection with Code Language Models: How Far Are We?cited by 133
  9. 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
  10. 2024Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGcited by 67
  11. 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 50
  12. 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
19 more
  1. 2024Large Language Model for Vulnerability Detection and Repair: Literature Review and the Road Aheadcited by 41
  2. 2021Neural Transfer Learning for Repairing Security Vulnerabilities in C Codecited by 36
  3. 2021Trust Enhancement Issues in Program Repaircited by 22
  4. 2024ThinkRepair: Self-Directed Automated Program Repaircited by 22
  5. 2025PATCHEVAL: A New Benchmark for Evaluating LLMs on Patching Real-World Vulnerabilitiescited by 19
  6. 2024APPATCH: Automated Adaptive Prompting Large Language Models for Real-World Software Vulnerability Patchingcited by 18
  7. 2024MORepair: Teaching LLMs to Repair Code via Multi-Objective Fine-tuningcited by 13
  8. 2024Collu-Bench: A Benchmark for Predicting Language Model Hallucinations in Codecited by 13
  9. 2022MVD: Memory-Related Vulnerability Detection Based on Flow-Sensitive Graph Neural Networkscited by 12
  10. 2025SoK: Automated Vulnerability Repair: Methods, Tools, and Assessmentscited by 11
  11. 2025SoK: Towards Effective Automated Vulnerability Repaircited by 9
  12. 2025Context-Enhanced Vulnerability Detection Based on Large Language Modelcited by 6
  13. 2025Vul-R2: A Reasoning LLM for Automated Vulnerability Repaircited by 5
  14. 2025Semantics-Aligned, Curriculum-Driven, and Reasoning-Enhanced Vulnerability Repair Frameworkcited by 4
  15. 2026Atomizer: An LLM-based Collaborative Multi-Agent Framework for Intent-Driven Commit Untanglingcited by 3
  16. 2025Well Begun is Half Done: Location-Aware and Trace-Guided Iterative Automated Vulnerability Repaircited by 2
  17. 2025Rethinking the Capability of Fine-Tuned Language Models for Automated Vulnerability Repaircited by 2
  18. 2026VulKey: Automated Vulnerability Repair Guided by Domain-Specific Repair Patternscited by 2
  19. 2025On the Evaluation of Large Language Models in Multilingual Vulnerability Repaircited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026EvoRepair: Enhancing Vulnerability Repair Agents Through Experience-Based Self-Evolution
  2. 2026AgenticRepair: Multi-Faceted Program Context Engineering for Agentic Vulnerability Repair
  3. 2026ContraFix: Skill-Enhanced Contrastive Runtime Analysis for Vulnerability Repair
  4. 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repair
  5. 2026CLEAR: Causal Context-Based Agentic Reasoning for Vulnerability Detection
  6. 2026RAVEN: Agentic RAG for Automated Vulnerability Repair
  7. 2026VulnResolver: A Hybrid Agent Framework for LLM-Based Automated Vulnerability Issue Resolution
  8. 2025AutoPatch: Multi-Agent Framework for Patching Real-World CVE Vulnerabilities