通过图神经网络辅助数据流分析发现执行跟踪中的静默缓冲区溢出
Spotting Silent Buffer Overflows in Execution Trace through Graph Neural Network Assisted Data Flow Analysis
摘要:
软件漏洞可在没有任何可见症状的情况下被利用。当没有源代码可用时,尽管这种静默程序执行可能会造成非常严重的损害,但分析静默但有害的执行的一般问题仍然是一个悬而未决的问题。在这项工作中,我们提出了一个图神经网络(GNN)辅助数据流分析方法,用于发现沉默的执行轨迹中的缓冲区溢出。新方法结合了一种新的图形结构(表示DFG+)以外的数据流图,一个工具来提取{ \tt DFG+}的执行跟踪,和一个修改的关系图卷积网络作为GNN模型进行训练。评估结果表明,一个训练有素的模型可以用来分析漏洞的执行痕迹(以前看不见的程序),而无需任何源代码的支持。我们的模型在测试数据上达到了94.39\%的准确率,并成功地定位了30个真实世界的静默缓冲区溢出漏洞中的29个。利用深度学习,据我们所知,所提出的方法是第一个用于静默缓冲区溢出的通用分析方法。它也是第一种在不跨越已分配块边界的情况下发现全局变量、堆栈变量或堆变量中的静默缓冲区溢出的方法。
英文摘要:
A software vulnerability could be exploited without any visible symptoms. When no source code is available, although such silent program executions could cause very serious damage, the general problem of analyzing silent yet harmful executions is still an open problem. In this work, we propose a graph neural network (GNN) assisted data flow analysis method for spotting silent buffer overflows in execution traces. The new method combines a novel graph structure (denoted DFG+) beyond data-flow graphs, a tool to extract {\tt DFG+} from execution traces, and a modified Relational Graph Convolutional Network as the GNN model to be trained. The evaluation results show that a well-trained model can be used to analyze vulnerabilities in execution traces (of previously-unseen programs) without support of any source code. Our model achieves 94.39\% accuracy on the test data and successfully locates 29 out of 30 real-world silent buffer overflow vulnerabilities. Leveraging deep learning, the proposed method is, to our best knowledge, the first general-purpose analysis method for silent buffer overflows. It is also the first method to spot silent buffer overflows in global variables, stack variables, or heap variables without crossing the boundary of allocated chunks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。