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

动态神经控制流执行:一种基于智能体的深度均衡方法用于二进制漏洞检测

Dynamic Neural Control Flow Execution: An Agent-Based Deep Equilibrium Approach for Binary Vulnerability Detection

Queen’s University(女王大学);BlackBerry Ltd.(黑莓公司);Defence R&D Canada(加拿大国防研究与发展局);McGill University(麦吉尔大学)

Litao Li, Steven H. H. Ding, Andrew Walenstein, Philippe Charland, Benjamin C. M. Fung

AI总结:

针对二进制漏洞检测中静态CFG偏差、固定层GNN难聚合全局信息等问题,提出基于智能体的隐式神经网络DeepEXE,结合强化学习优化分支决策,在多数据集上性能超越现有最优方法。

摘要:

软件漏洞是网络安全领域的一大挑战。手动安全补丁的部署往往难度高、速度慢,而新的漏洞又在不断产生。与源代码漏洞检测相比,二进制代码漏洞检测的相关研究更少,且复杂度更高,具有重要的实际意义。深度学习已成为安全领域高效且强大的工具,可提供端到端的精准预测。现有深度学习方法利用抽象语法树(AST)或控制流图(CFG)等各类程序中间表示,通过序列神经网络和图神经网络学习程序语义。由于程序执行的复杂性,执行输出取决于众多程序状态与输入。此外,静态分析生成的CFG可能是对真实程序流的过高估计。而且,程序的规模通常使得固定层数的图神经网络无法聚合全局信息。为解决这些问题,我们提出DeepEXE——一种基于智能体的隐式神经网络,可模拟程序的执行路径。我们使用强化学习优化每次程序状态转移时的分支决策,并构建动态环境以学习漏洞与特定程序状态之间的依赖关系。隐式定义的神经网络可实现近乎无限次的状态转移直至收敛,从而在更高层级捕获结构信息。我们在两个半合成数据集和两个真实世界数据集上开展了实验,结果表明DeepEXE是一种准确高效的方法,性能优于当前最先进的漏洞检测方法。

英文摘要:

Software vulnerabilities are a challenge in cybersecurity. Manual security patches are often difficult and slow to be deployed, while new vulnerabilities are created. Binary code vulnerability detection is less studied and more complex compared to source code, and this has important practical implications. Deep learning has become an efficient and powerful tool in the security domain, where it provides end-to-end and accurate prediction. Modern deep learning approaches learn the program semantics through sequence and graph neural networks, using various intermediate representation of programs, such as abstract syntax trees (AST) or control flow graphs (CFG). Due to the complex nature of program execution, the output of an execution depends on the many program states and inputs. Also, a CFG generated from static analysis can be an overestimation of the true program flow. Moreover, the size of programs often does not allow a graph neural network with fixed layers to aggregate global information. To address these issues, we propose DeepEXE, an agent-based implicit neural network that mimics the execution path of a program. We use reinforcement learning to enhance the branching decision at every program state transition and create a dynamic environment to learn the dependency between a vulnerability and certain program states. An implicitly defined neural network enables nearly infinite state transitions until convergence, which captures the structural information at a higher level. The experiments are conducted on two semi-synthetic and two real-world datasets. We show that DeepEXE is an accurate and efficient method and outperforms the state-of-the-art vulnerability detection methods.

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

↑