SecCodePRM: A Process Reward Model for Code Security
Not on the map. Why?
Abstract (arXiv)
Large Language Models are rapidly becoming core components of modern software development workflows, yet ensuring code security remains challenging. Existing vulnerability detection pipelines either rely on static analyzers or use LLM/GNN-based detectors trained with coarse program-level supervision. Both families often require complete context, provide sparse end-of-completion feedback, and can degrade as code length grows, making them ill-suited for real-time, prefix-level assessment during interactive coding and streaming generation. We propose SecCodePRM, a security-oriented process reward model that assigns a context-aware, step-level security score along a code trajectory. To train the model, we derive step-level supervision labels from static analyzers and expert annotations, allowing the model to attend more precisely to fine-grained regions associated with inter-procedural vulnerabilities. SecCodePRM has three applications: full-code vulnerability detection (VD), partial-code VD, and secure code generation (CG). For VD, SecCodePRM uses risk-sensitive aggregation that emphasizes high-risk steps; for CG, SecCodePRM supports inference-time scaling by ranking candidate continuations and favoring higher cumulative reward. This design yields dense, real-time feedback that scales to long-horizon generation. Empirically, SecCodePRM outperforms prior approaches in all three settings, while preserving code functional correctness, suggesting improved security without a safety-utility tradeoff.
Key facts. Cited by 2 papers in the map (data through 24 Nov 2026). Submitted 11 Feb 2026.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026Security Considerations for Multi-agent Systemscited by 4
- 2026Secure Agentic Coding through Counterexample-Grounded Feedbackcited by 0
- 2026Secure Agentic Coding through Counterexample-Grounded Feedback19 Oct 2026
- 2026Security Considerations for Multi-agent Systems9 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026Secure Code Generation via Online Reinforcement Learning with Vulnerability Reward Model
- 2026SEC-bench Pro: Can Language Models Solve Long-Horizon Software Security Tasks?
- 2025A Mixture of Linear Corrections Generates Secure Code
- 2024LLM-Powered Code Vulnerability Repair with Reinforcement Learning and Semantic Reward
- 2026Learning to Generate Secure Code via Token-Level Rewards
- 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specifications
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detection
- 2026SecureForge: Finding and Preventing Vulnerabilities in LLM-Generated Code via Prompt Optimization