paper-with-me

홈 › Papers

Can LLMs Patch Security Issues?

2023-11-13 · Kamel Alrashedy, Abdullah Aljasser, Pradyumna Tambwekar, Matthew Gombolay

Large Language Models (LLMs) have shown impressive proficiency in code generation. Unfortunately, these models share a weakness with their human counterparts: producing code that inadvertently has security vulnerabilities. These vulnerabilities could allow unauthorized attackers to access sensitive data or systems, which is unacceptable for safety-critical applications. In this work, we propose Feedback-Driven Security Patching (FDSP), where LLMs automatically refine generated, vulnerable code. Our approach leverages automatic static code analysis to empower the LLM to generate and implement potential solutions to address vulnerabilities. We address the research communitys needs for safe code generation by introducing a large-scale dataset, PythonSecurityEval, covering the diversity of real-world applications, including databases, websites and operating systems. We empirically validate that FDSP outperforms prior work that uses self-feedback from LLMs by up to 17.6% through our procedure that injects targeted, external feedback. Code and data are available at \url{https://github.com/Kamel773/LLM-code-refine}

📄 PDF Abstract BibTeX arXiv:2312.00024

Code (1)

kamel773/llm-code-refine 공식 구현

Tasks

Code GenerationDiversity

Similar Papers 제목 키워드 기반

Why LLMs Fail: A Failure Analysis and Partial Success Measurement for Automated Security Patch Generation

2026-03-10 · Amir Al-Maamari arxiv

Large Language Models (LLMs) show promise for Automated Program Repair (APR), yet their effectiveness on security vulnerabilities remains poorly characterized. This study analyzes 319 LLM-generated security patchesacross…

Program Repair

Empirical Study of Code Large Language Models for Binary Security Patch Detection

2025-09-07 · Qingyuan Li, Binchang Li, Cuiyun Gao, Shuzheng Gao 외 arxiv

Security patch detection (SPD) is crucial for maintaining software security, as unpatched vulnerabilities can lead to severe security risks. In recent years, numerous learning-based SPD approaches have demonstrated promi…

Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios

2024-10-16 · Zhi Chen, Lingxiao Jiang

In recent years, AI-based software engineering has progressed from pre-trained models to advanced agentic workflows, with Software Development Agents representing the next major leap. These agents, capable of reasoning, …

REFN: A Reinforcement-Learning-From-Network Framework against 1-day/n-day Exploitations

2025-08-14 · Tianlong Yu, Lihong Liu, Ziyi Zhou, Fudu Xing 외 arxiv

The exploitation of 1 day or n day vulnerabilities poses severe threats to networked devices due to massive deployment scales and delayed patching (average Mean Time To Patch exceeds 60 days). Existing defenses, includin…

Reinforcement LearningKnowledge Distillation

Securing LLM-Generated Embedded Firmware through AI Agent-Driven Validation and Patching

2025-09-12 · Seyed Moein Abtahi, Akramul Azim arxiv

Large Language Models (LLMs) show promise in generating firmware for embedded systems, but often introduce security flaws and fail to meet real-time performance constraints. This paper proposes a three-phase methodology …