SPARK:静态程序分析推理与知识获取
SPARK: Static Program Analysis Reasoning and Retrieving Knowledge
摘要:
程序分析是一种不用执行程序就能对程序进行推理的技术,它在编译器、集成开发环境和安全性方面有各种应用。在这项工作中,我们提出了一个机器学习管道,诱导程序的安全分析器的例子。安全分析器根据我们的机器学习管道推导出的符号规则来确定程序是安全还是不安全。机器流水线分为两个阶段,包括一个递归神经网络(RNN)和一个将RNN转换为符号规则的提取器。为了评估学习的符号规则的质量,我们提出了一个基于采样的两个无限正则语言之间的相似性度量。我们使用真实世界的数据进行案例研究。在这项工作中,我们讨论了现有技术的局限性和未来可能的改进。结果表明,在有足够的训练数据和合理分布的程序路径的情况下,对数百万行代码的OpenJDK库进行符号安全规则推导是可行的。
英文摘要:
Program analysis is a technique to reason about programs without executing them, and it has various applications in compilers, integrated development environments, and security. In this work, we present a machine learning pipeline that induces a security analyzer for programs by example. The security analyzer determines whether a program is either secure or insecure based on symbolic rules that were deduced by our machine learning pipeline. The machine pipeline is two-staged consisting of a Recurrent Neural Networks (RNN) and an Extractor that converts an RNN to symbolic rules. To evaluate the quality of the learned symbolic rules, we propose a sampling-based similarity measurement between two infinite regular languages. We conduct a case study using real-world data. In this work, we discuss the limitations of existing techniques and possible improvements in the future. The results show that with sufficient training data and a fair distribution of program paths it is feasible to deducing symbolic security rules for the OpenJDK library with millions lines of code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。