arXiv:2601.19138cs.CRcs.AI2026-01中稿 · the 41st IEEE/ACM …综述被引 2

用智能体+安全语义记忆,提前发现代码漏洞

AgenticSCR: An Autonomous Agentic Secure Code Review for Immature Vulnerabilities Detection

  • 构建带安全知识记忆的智能体,动态理解代码上下文
  • 评论准确率提升153%,漏报率显著降低
  • 适合需要早期安全检测的开发团队使用

代码安全审查在集成前至关重要,但开发者依赖轻量分析工具,深层安全评估被推迟,导致反馈延迟和修复成本上升。现有静态分析器噪声大,难以处理上下文相关或部分显现的漏洞;静态大模型评审受限于上下文窗口且缺乏工具交互能力。智能体结合大模型与代码导航展现出潜力,但在早期安全审查中的效果尚未充分探索。我们提出AgenticSCR,一种增强安全聚焦语义记忆的智能体代码审查系统,通过结构化安全知识引导推理,可在漏洞完全显现前识别。相比静态LLM基线、多智能体评审和SAST工具,其生成评论在定位、漏洞类型和相关性上均实现至少153%的相对提升。阴影部署中,54%的评论经安全工程师验证可用于开发者反馈,体现实际价值,同时凸显任务难度。研究证明安全聚焦语义记忆是智能体安全审查的重要方向,推动左移安全实践中的可靠定位、检测与解释。

原文摘要 · Abstract (English)

Secure code review is critical during pre-integration, where Atlassian developers rely on lightweight analysis tools, while deep security assessment is deferred to later stages, delaying feedback and increasing remediation costs. Existing static analyzers are often noisy and struggle with context-dependent or partially manifested vulnerabilities, while static large language model (LLM) reviewers are constrained by context windows and lack tool interaction. Agentic AI, which combines LLMs with code navigation, shows promise; however, its effectiveness for early-stage secure code review remains underexplored. We present AgenticSCR, an agentic secure code reviewer augmented with security-focused semantic memory that grounds reasoning in structured security knowledge to detect vulnerabilities before they fully manifest. AgenticSCR achieves at least 153% relative improvement in generating comments with correct localization, vulnerability type, and relevance over static LLM baseline, multi-agent reviewer, and SAST tools. In a shadow deployment, 54% of its comments were validated by security engineers for developer reporting, demonstrating practical utility while underscoring the difficulty of the task. These findings position the security-focused semantic memory as a promising direction for agentic secure code review, enabling early-stage vulnerability identification. Our approach builds an important step toward reliable localization, detection, and explanation in shift-left security practices

智能体代码安全漏洞检测左移安全

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。