SecureReviewer: Enhancing Large Language Models for Secure Code Review through Secure-aware Fine-tuning
Fang Liu, Simiao Liu, Yinghao Zhu, Xiaoli Lian, Li Zhang

TL;DR
SecureReviewer enhances large language models for secure code review by creating a specialized dataset, applying secure-aware fine-tuning, and introducing new evaluation metrics, significantly improving security issue detection and review comment quality.
Contribution
The paper introduces SecureReviewer, a novel approach that combines secure-aware fine-tuning, domain grounding, and a new evaluation metric to improve security-focused code review with LLMs.
Findings
SecureReviewer outperforms existing methods in security issue detection accuracy.
The approach improves the relevance and utility of generated review comments.
SecureBLEU effectively evaluates security-specific review comment quality.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
