paper-with-me

Papers

Code Vulnerability Repair with Large Language Model using Context-Aware Prompt Tuning

2024-09-27 · Arshiya Khan, Guannan Liu, Xing Gao

Large Language Models (LLMs) have shown significant challenges in detecting and repairing vulnerable code, particularly when dealing with vulnerabilities involving multiple aspects, such as variables, code flows, and code structures. In this study, we utilize GitHub Copilot as the LLM and focus on buffer overflow vulnerabilities. Our experiments reveal a notable gap in Copilot's abilities when dealing with buffer overflow vulnerabilities, with a 76% vulnerability detection rate but only a 15% vulnerability repair rate. To address this issue, we propose context-aware prompt tuning techniques designed to enhance LLM performance in repairing buffer overflow. By injecting a sequence of domain knowledge about the vulnerability, including various security and code contexts, we demonstrate that Copilot's successful repair rate increases to 63%, representing more than four times the improvement compared to repairs without domain knowledge.

📄 PDF Abstract BibTeX arXiv:2409.18395

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingLarge Language ModelVulnerability Detection

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

Identifying Helpful Context for LLM-based Vulnerability Repair: A Preliminary Study

2025-06-13 · Gábor Antal, Bence Bogenfürst, Rudolf Ferenc, Péter Hegedűs

Recent advancements in large language models (LLMs) have shown promise for automated vulnerability detection and repair in software systems. This paper investigates the performance of GPT-4o in repairing Java vulnerabili…

Vulnerability Detection

MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repair

2026-05-17 · Simiao Liu, Li Zhang, Fang Liu, Xiaoli Lian 외 arxiv

Modern software ecosystems face a rapidly growing number of disclosed vulnerabilities, increasing the need for automated repair techniques that can operate reliably at repository scale. Although Large Language Model (LLM…

How Effective Are Neural Networks for Fixing Security Vulnerabilities

2023-05-29 · Yi Wu, Nan Jiang, Hung Viet Pham, Thibaud Lutellier 외

Security vulnerability repair is a difficult task that is in dire need of automation. Two groups of techniques have shown promise: (1) large code language models (LLMs) that have been pre-trained on source code for tasks…

Code CompletionProgram Repair

RAVEN: Agentic RAG for Automated Vulnerability Repair

2026-06-21 · Varun Gadey, Zijie Liu, Alexandra Dmitrienko arxiv

Automated vulnerability repair has emerged as a promising direction to mitigate the growing number of software vulnerabilities. Recent advances in Large Language Models (LLMs) have further accelerated research in automat…

Vul-R2: A Reasoning LLM for Automated Vulnerability Repair

2025-10-07 · Xin-Cheng Wen, Zirui Lin, Yijun Yang, Cuiyun Gao 외 arxiv

The exponential increase in software vulnerabilities has created an urgent need for automatic vulnerability repair (AVR) solutions. Recent research has formulated AVR as a sequence generation problem and has leveraged la…

Reinforcement Learning