面向软件漏洞分析的强化学习:以C/C++源代码与静态分析为重点的系统综述 Reinforcement Learning for Software Vulnerability Analysis: A Systematic Review with Emphasis on C/C++ Source Code and Static Analysis 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-06-24
👁️ 预览文献
💡 AI 中文简介
这篇综述关注如何用强化学习帮助发现C/C++软件中的安全漏洞。作者按PRISMA 2020规范,从主要数据库中筛选出2015至2026年间的21篇核心研究,系统梳理了它们解决的任务、所用算法、状态-动作-奖励-环境建模、代码表示、数据集和评价指标。结果发现,15篇研究集中在模糊测试与引导探索,仅3篇直接做漏洞检测,只有1篇做到语句级定位;同时CFG、AST等静态结构表示很少被用作智能体状态,且各研究基准缺乏可比性。作者据此提出面向任务与建模的分类体系,并指出一个关键空白:尚无强化学习智能体以源代码CFG为状态来检测和定位脆弱节点。
领域软件安全 / 软件漏洞分析 / 强化学习应用
适合谁读需要一定专业背景(软件安全、程序分析或强化学习基础)
核心贡献1. 按PRISMA 2020系统综述了2015–2026年间21篇将强化学习用于C/C++软件漏洞分析的研究,覆盖任务、算法、状态-动作-奖励建模、代码表示、数据集与评价指标。2. 提出面向任务与建模的分类体系,并明确指出关键研究空白:缺少以源代码控制流图(CFG)为状态来检测和定位脆弱节点的强化学习智能体。
关键数据纳入21篇主要研究(2015–2026);其中15篇聚焦模糊测试与引导探索,仅3篇直接做漏洞检测,仅1篇做语句级定位;CFG、AST等静态结构表示很少被用作智能体状态;基准缺乏可比性。
推荐理由如果你想快速了解强化学习在C/C++漏洞分析里到底做到哪一步、还缺什么,这篇综述用21篇研究把地图画得很清楚,尤其点出了CFG+RL这个还没人填的坑。
关键词["强化学习", "漏洞检测", "漏洞定位", "静态分析", "C/C++", "控制流图"]

原文摘要

查看英文原文摘要

Vulnerability detection in C/C++ software remains a major security challenge due to code complexity, manual memory management, and the limitations of traditional static analysis. Reinforcement Learning (RL) has emerged as a promising approach, particularly for fuzzing, test generation, program exploration, and, more recently, vulnerability detection and localization. Following PRISMA 2020 guidelines, this work reviews RL techniques for software vulnerability analysis, focusing on C/C++ source code and static analysis. We identified 21 primary studies published between 2015 and 2026 from major scientific databases and complementary searches. We analyze the addressed tasks, algorithms, state-action-reward-environment formulations, code representations, datasets, and evaluation metrics. Results show that 15 studies focus on fuzzing and guided exploration, only 3 on direct vulnerability detection, and just 1 on statement-level localization. Moreover, statically extracted structural representations such as Control Flow Graphs (CFGs) and Abstract Syntax Trees (ASTs) are rarely used as agent states, and benchmarks lack comparability. We propose a task- and formulation-oriented taxonomy and identify a key research gap: the absence of RL agents that use source-code CFGs as states to detect and localize vulnerable nodes.