AgenticSCR: An Autonomous Agentic Secure Code Review for Immature Vulnerabilities Detection
Authors:
- Minwoo JeongMJMinwoo Jeong
- Ming WuMWMing Wu
Preprint
Abstract
Secure code review is critical at the pre-commit stage, where vulnerabilities must be caught early under tight latency and limited-context constraints. Existing SAST-based checks are noisy and often miss immature, context-dependent vulnerabilities, while standalone Large Language Models (LLMs) are constrained by context windows and lack explicit tool use. Agentic AI, which combine LLMs with autonomous decision-making, tool invocation, and code navigation, offer a promising alternative, but their effectiveness for pre-commit secure code review is not yet well understood. In this work, we introduce AgenticSCR, an agentic AI for secure code review for detecting immature vulnerabilities during the pre-commit stage, augmented by security-focused semantic memories. Using our own curated benchmark of immature vulnerabilities, tailored to the pre-commit secure code review, we empirically evaluate how accurate is our AgenticSCR for localizing, detecting, and explaining immature vulnerabilities. Our results show that AgenticSCR achieves at least 153% relatively higher percentage of correct code review comments than the static LLM-based baseline, and also substantially surpasses SAST tools. Moreover, AgenticSCR generates more correct comments in four out of five vulnerability types, consistently and significantly outperforming all other baselines. These findings highlight the importance of Agentic Secure Code Review, paving the way towards an emerging research area of immature vulnerability detection.Keywords
All Related Versions
This publication has 39 references indexed in Scilit:
- iCodeReviewer: Improving Secure Code Review with Mixture of Prompts2025
- Code Review Comprehension: Reviewing Strategies Seen Through Code Comprehension Theories2025
- Toward effective secure code reviews: an empirical study of security-related coding weaknessesEmpirical Software Engineering, 2024
- Code-centric learning-based just-in-time vulnerability detectionJournal of Systems and Software, 2024
- AIBugHunter: A Practical tool for predicting, classifying and repairing software vulnerabilitiesEmpirical Software Engineering, 2023
- Empirical analysis of security-related code reviews in npm packagesJournal of Systems and Software, 2023
- Are Code Review Smells and Metrics Useful in Pull Request-Level Software Defect Prediction?2023
- Just-in-time software vulnerability detection: Are we there yet?Journal of Systems and Software, 2022
- Similarity-based Android malware detection using Hamming distance of static binary featuresFuture Generation Computer Systems, 2020
- Supporting secure programming in web applications through interactive static analysisJournal of Advanced Research, 2014