arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.28403cs.SEcs.AIcs.CRcs.LG
收藏

强化学习用于软件漏洞分析:以C/C++源代码和静态分析为重点的系统综述

Reinforcement Learning for Software Vulnerability Analysis: A Systematic Review with Emphasis on C/C++ Source Code and Static Analysis

Bruno Caro-Vásquez, Carola Figueroa-Flores, Gastón Marquez

AI总结:

系统综述强化学习在C/C++软件漏洞分析中的应用,发现15项研究聚焦于模糊测试和引导探索,仅3项直接检测漏洞,1项实现语句级定位,且静态结构表示(如CFG)和基准测试存在不足。

摘要:

由于代码复杂性、手动内存管理以及传统静态分析的局限性,C/C++软件中的漏洞检测仍然是一个主要的安全挑战。强化学习(RL)已成为一种有前景的方法,特别是在模糊测试、测试生成、程序探索以及最近的漏洞检测和定位方面。遵循PRISMA 2020指南,本工作综述了用于软件漏洞分析的RL技术,重点关注C/C++源代码和静态分析。我们从主要科学数据库和补充搜索中识别出21篇发表于2015年至2026年的主要研究。我们分析了所涉及的任务、算法、状态-动作-奖励-环境公式、代码表示、数据集和评估指标。结果表明,15项研究专注于模糊测试和引导探索,仅3项研究直接检测漏洞,只有1项研究实现语句级定位。此外,静态提取的结构表示(如控制流图(CFG)和抽象语法树(AST))很少被用作智能体状态,并且基准测试缺乏可比性。我们提出了一个面向任务和公式的分类法,并识别出一个关键研究空白:缺乏使用源代码CFG作为状态来检测和定位漏洞节点的RL智能体。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑