paper-with-me

Papers

LLM-Powered Code Vulnerability Repair with Reinforcement Learning and Semantic Reward

2024-01-07 · Nafis Tanveer Islam, Joseph Khoury, Andrew Seong, Mohammad Bahrami Karkevandi, Gonzalo De La Torre Parra, Elias Bou-Harb, Peyman Najafirad

In software development, the predominant emphasis on functionality often supersedes security concerns, a trend gaining momentum with AI-driven automation tools like GitHub Copilot. These tools significantly improve developers' efficiency in functional code development. Nevertheless, it remains a notable concern that such tools are also responsible for creating insecure code, predominantly because of pre-training on publicly available repositories with vulnerable code. Moreover, developers are called the "weakest link in the chain" since they have very minimal knowledge of code security. Although existing solutions provide a reasonable solution to vulnerable code, they must adequately describe and educate the developers on code security to ensure that the security issues are not repeated. Therefore we introduce a multipurpose code vulnerability analysis system \texttt{SecRepair}, powered by a large language model, CodeGen2 assisting the developer in identifying and generating fixed code along with a complete description of the vulnerability with a code comment. Our innovative methodology uses a reinforcement learning paradigm to generate code comments augmented by a semantic reward mechanism. Inspired by how humans fix code issues, we propose an instruction-based dataset suitable for vulnerability analysis with LLMs. We further identify zero-day and N-day vulnerabilities in 6 Open Source IoT Operating Systems on GitHub. Our findings underscore that incorporating reinforcement learning coupled with semantic reward augments our model's performance, thereby fortifying its capacity to address code vulnerabilities with improved efficacy.

📄 PDF Abstract BibTeX arXiv:2401.03374

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModellingLarge Language Modelreinforcement-learning

Similar Papers 제목 키워드 기반

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

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…

Code Security Vulnerability Repair Using Reinforcement Learning with Large Language Models

2024-01-13 · Nafis Tanveer Islam, Mohammad Bahrami Karkevandi, Peyman Najafirad

With the recent advancement of Large Language Models (LLMs), generating functionally correct code has become less complicated for a wide array of developers. While using LLMs has sped up the functional development proces…

Code GenerationCode Repairreinforcement-learning

CRepair: CVAE-based Automatic Vulnerability Repair Technology

2024-11-08 · Penghui Liu, Yingzhou Bi, Jiangtao Huang, Xinxin Jiang 외

Software vulnerabilities are flaws in computer software systems that pose significant threats to the integrity, security, and reliability of modern software and its application data. These vulnerabilities can lead to sub…

Causal Inference

Examining Zero-Shot Vulnerability Repair with Large Language Models

2021-12-03 · Hammond Pearce, Benjamin Tan, Baleegh Ahmad, Ramesh Karri 외

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 Co…

Code Completion