paper-with-me

홈 › Papers

Repairing vulnerabilities without invisible hands. A differentiated replication study on LLMs

2025-07-28 · Maria Camporese, Fabio Massacci arxiv

Background: Automated Vulnerability Repair (AVR) is a fast-growing branch of program repair. Recent studies show that large language models (LLMs) outperform traditional techniques, extending their success beyond code generation and fault detection. Hypothesis: These gains may be driven by hidden factors -- "invisible hands" such as training-data leakage or perfect fault localization -- that let an LLM reproduce human-authored fixes for the same code. Objective: We replicate prior AVR studies under controlled conditions by deliberately adding errors to the reported vulnerability location in the prompt. If LLMs merely regurgitate memorized fixes, both small and large localization errors should yield the same number of correct patches, because any offset should divert the model from the original fix. Method: Our pipeline repairs vulnerabilities from the Vul4J and VJTrans benchmarks after shifting the fault location by n lines from the ground truth. A first LLM generates a patch, a second LLM reviews it, and we validate the result with regression and proof-of-vulnerability tests. Finally, we manually audit a sample of patches and estimate the error rate with the Agresti-Coull-Wilson method.

📄 PDF Abstract BibTeX arXiv:2507.20977

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationProgram Repair

Similar 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 cod…

Language ModelingLanguage ModellingLarge Language ModelVulnerability Detection

Neural Transfer Learning for Repairing Security Vulnerabilities in C Code

2021-04-16 · Zimin Chen, Steve Kommrusch, Martin Monperrus

In this paper, we address the problem of automatic repair of software vulnerabilities with deep learning. The major problem with data-driven vulnerability repair is that the few existing datasets of known confirmed vulne…

Bug fixingC++ codeDenoisingTransfer Learning

Learning to Repair Software Vulnerabilities with Generative Adversarial Networks

2018-05-18 · NeurIPS 2018 12 · Jacob Harer, Onur Ozdemir, Tomo Lazovich, Christopher P. Reale 외

Motivated by the problem of automated repair of software vulnerabilities, we propose an adversarial learning approach that maps from one discrete source domain to another target domain without requiring paired labeled ex…

Code RepairGenerative Adversarial NetworkTranslation

LogicEval: A Systematic Framework for Evaluating Automated Repair Techniques for Logical Vulnerabilities in Real-World Software

2026-04-14 · Syed Md Mukit Rashid, Abdullah Al Ishtiaq, Kai Tu, Yilu Dong 외 arxiv

Logical vulnerabilities in software stem from flaws in program logic rather than memory safety, which can lead to critical security failures. Although existing automated program repair techniques primarily focus on repai…

Program Repair

Two Timin': Repairing Smart Contracts With A Two-Layered Approach

2023-09-14 · Abhinav Jain, Ehan Masud, Michelle Han, Rohan Dhillon 외

Due to the modern relevance of blockchain technology, smart contracts present both substantial risks and benefits. Vulnerabilities within them can trigger a cascade of consequences, resulting in significant losses. Many …