SecureReviewer: Enhancing Large Language Models for Secure Code Review through Secure-aware Fine-tuning
Not on the map. Why?
Abstract (arXiv)
Identifying and addressing security issues during the early phase of the development lifecycle is critical for mitigating the long-term negative impacts on software systems. Code review serves as an effective practice that enables developers to check their teammates' code before integration into the codebase. To streamline the generation of review comments, various automated code review approaches have been proposed, where LLM-based methods have significantly advanced the capabilities of automated review generation. However, existing models primarily focus on general-purpose code review, their effectiveness in identifying and addressing security-related issues remains underexplored. Moreover, adapting existing code review approaches to target security issues faces substantial challenges, including data scarcity and inadequate evaluation metrics. To address these limitations, we propose SecureReviewer, a new approach designed for enhancing LLMs' ability to identify and resolve security-related issues during code review. Specifically, we first construct a dataset tailored for training and evaluating secure code review capabilities. Leveraging this dataset, we fine-tune LLMs to generate code review comments that can effectively identify security issues and provide fix suggestions with our proposed secure-aware fine-tuning strategy. To mitigate hallucination in LLMs and enhance the reliability of their outputs, we integrate the RAG technique, which grounds the generated comments in domain-specific security knowledge. Additionally, we introduce SecureBLEU, a new evaluation metric designed to assess the effectiveness of review comments in addressing security issues. Experimental results demonstrate that SecureReviewer outperforms state-of-the-art baselines in both security issue detection accuracy and the overall quality and practical utility of generated review comments.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 23 of its 55 references that are in the map. First posted on arXiv 30 Oct 2025.
Builds on
23 of 55 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
- 2022Automating Code Review Activities by Large-Scale Pre-trainingcited by 98
11 more
- 2024Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGcited by 67
- 2022Using Pre-Trained Models to Boost Code Review Automationcited by 63
- 2022Training Data is More Valuable than You Think: A Simple and Effective Method by Retrieving from Training Datacited by 61
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
- 2021Towards Automating Code Review Activitiescited by 54
- 2022RACE: Retrieval-Augmented Commit Message Generationcited by 27
- 2018Word Mover's Embedding: From Word2Vec to Document Embeddingcited by 26
- 2024An Empirical Study of Static Analysis Tools for Secure Code Reviewcited by 17
- 2024Understanding Practitioners' Expectations on Clear Code Review Commentscited by 4
- 2022Twenty-two years since revealing cross-site scripting attacks: a systematic mapping and a comprehensive surveycited by 2
- 2017The Role of Quality Assurance in Software Development Projects:Project Failures and Business Performancecited by 1
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026AgenticSCR: An Autonomous Agentic Secure Code Review for Immature Vulnerabilities Detectioncited by 2
- 2026Escaping Local Minima Provably in Non-convex Matrix Sensing: A Deterministic Framework via Simulated Liftingcited by 1
- 2026Revelio: Cost-Efficient Agentic Memory Safety Vulnerability Detection For Repository-Scale Codebasescited by 1
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repaircited by 0
- 2026From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Benchcited by 0
- 2026From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Bench27 Aug 2026
- 2026Revelio: Cost-Efficient Agentic Memory Safety Vulnerability Detection For Repository-Scale Codebases20 Jun 2026
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repair17 May 2026
- 2026Escaping Local Minima Provably in Non-convex Matrix Sensing: A Deterministic Framework via Simulated Lifting5 Feb 2026
- 2026AgenticSCR: An Autonomous Agentic Secure Code Review for Immature Vulnerabilities Detection27 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2025Improving Automated Secure Code Reviews: A Synthetic Dataset for Code Vulnerability Flaws
- 2026Persistent Human Feedback, LLMs, and Static Analyzers for Secure Code Generation and Vulnerability Detection
- 2024Software Vulnerability and Functionality Assessment using LLMs
- 2025Rethinking the Evaluation of Secure Code Generation
- 2026Inference-Time Safety For Code LLMs Via Retrieval-Augmented Revision
- 2024An Insight into Security Code Review with LLMs: Capabilities, Obstacles, and Influential Factors
- 2025SOSecure: Safer Code Generation with RAG and StackOverflow Discussions
- 2026An Empirical Evaluation of LLM-Generated Code Security Across Prompting Methods