paper-with-me

Papers

Fortifying LLM-Based Code Generation with Graph-Based Reasoning on Secure Coding Practices

2025-10-08 · Rupam Patir, Keyan Guo, Haipeng Cai, Hongxin Hu arxiv

The code generation capabilities of Large Language Models (LLMs) have transformed the field of software development. However, this advancement also presents significant security challenges, as LLM-generated code often contains vulnerabilities. One direction of research strengthens LLMs by injecting or refining security knowledge through curated datasets, model tuning, or static analyzers. While effective in certain settings, these methods can be resource-intensive, less adaptable to zero-day vulnerabilities, and often inapplicable to proprietary models. To address these challenges, we introduce GRASP, which explores a new direction that focuses on structured reasoning over Secure Coding Practices(SCPs) rather than additional training or external feedback. GRASP comprises two key ideas: (1) an SCP graph that organizes SCPs into a Directed Acyclic Graph (DAG) capturing dependencies and relationships, and (2) a graph-based reasoning process that systematically guides LLMs through relevant SCPs for code generation. This design enables interpretable, model-agnostic, and scalable security improvements, particularly for previously unseen vulnerabilities. Our evaluation shows that GRASP consistently achieves Security Rates (SR) exceeding 80% across multiple LLMs, and delivers up to 88% improvements over baselines on zero-day vulnerabilities.

📄 PDF Abstract BibTeX arXiv:2510.09682

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

ProSec: Fortifying Code LLMs with Proactive Security Alignment

2024-11-19 · Xiangzhe Xu, Zian Su, Jinyao Guo, Kaiyuan Zhang 외

While recent code-specific large language models (LLMs) have greatly enhanced their code generation capabilities, the safety of these models remains under-explored, posing potential risks as insecure code generated by th…

Code Generation

Innovations in Cardless Artificial Intelligence Banking: A Comprehensive Framework for Cyber Secure and Fraud Mitigation using Machine Learning Algorithms

2026-05-21 · Md Israfeel arxiv

The advent of cardless artificial intelligence (AI) banking heralds a paradigm shift in the financial landscape, offering users unprecedented security and convenience. This paper outlines a comprehensive framework design…

SecPI: Secure Code Generation with Reasoning Models via Security Reasoning Internalization

2026-04-04 · Hao Wang, Niels Mündler, Mark Vero, Jingxuan He 외 arxiv

Reasoning language models (RLMs) are increasingly used in programming. Yet, even state-of-the-art RLMs frequently introduce critical security vulnerabilities in generated code. Prior training-based approaches for secure …

Code Generation

Will 6G be Semantic Communications? Opportunities and Challenges from Task Oriented and Secure Communications to Integrated Sensing

2024-01-03 · Yalin E. Sagduyu, Tugba Erpek, Aylin Yener, Sennur Ulukus

This paper explores opportunities and challenges of task (goal)-oriented and semantic communications for next-generation (NextG) communication networks through the integration of multi-task learning. This approach employ…

Federated LearningMulti-Task LearningRobust Design

Secure Code Generation via Online Reinforcement Learning with Vulnerability Reward Model

2026-02-07 · Tianyi Wu, Mingzhe Du, Yue Liu, Chengran Yang 외 arxiv

Large language models (LLMs) are increasingly used in software development, yet their tendency to generate insecure code remains a major barrier to real-world deployment. Existing secure code alignment methods often suff…

Vulnerability DetectionReinforcement LearningCode Generation