Software Ethology:一个准确、弹性和跨架构的二进制分析框架
Software Ethology: An Accurate, Resilient, and Cross-Architecture Binary Analysis Framework
摘要:
当对二进制文件进行逆向工程时,分析人员必须首先通过手动或自动分析来理解二进制文件函数的语义。手动语义分析是耗时的,因为由高级语言提供的抽象(诸如类型信息、变量范围或注释)丢失,并且过去的分析不能应用于当前分析任务。现有的自动化二进制分析工具,目前遭受低准确性确定语义函数标识在不同的编译环境的存在。我们介绍软件行为学,二元分析方法,用于确定功能的语义相似性。软件行为学将语义行为抽象为程序状态变化的分类向量,并将这些向量作为唯一的指纹进行识别。所有现有的语义标识符都通过代码测量来确定函数相似性,并且在对来自与其地面实况源不同的编译环境的函数进行分类时存在高度不准确性。由于软件行为学不依赖于代码测量,其准确性对编译器,编译器版本,优化级别,甚至不同来源实现等效功能的变化具有弹性。Tinbergen是我们的原型软件行为学实现,它利用虚拟执行环境和模糊器来生成分类向量。在评估丁伯根的可行性作为一个语义函数标识符,通过识别功能的coreutils-8.30,我们达到了高.805的平均精度。与最先进的技术相比,Tinbergen在训练时快了1.5个数量级,在回答查询时快了50%,并且在识别从不同编译环境生成的二进制文件中的函数时,准确率高出30%-61%。
英文摘要:
When reverse engineering a binary, the analyst must first understand the semantics of the binary's functions through either manual or automatic analysis. Manual semantic analysis is time-consuming, because abstractions provided by high level languages, such as type information, variable scope, or comments are lost, and past analyses cannot apply to the current analysis task. Existing automated binary analysis tools currently suffer from low accuracy in determining semantic function identification in the presence of diverse compilation environments. We introduce Software Ethology, a binary analysis approach for determining the semantic similarity of functions. Software Ethology abstracts semantic behavior as classification vectors of program state changes resulting from a function executing with a specified input state, and uses these vectors as a unique fingerprint for identification. All existing semantic identifiers determine function similarity via code measurements, and suffer from high inaccuracy when classifying functions from compilation environments different from their ground truth source. Since Software Ethology does not rely on code measurements, its accuracy is resilient to changes in compiler, compiler version, optimization level, or even different source implementing equivalent functionality. Tinbergen, our prototype Software Ethology implementation, leverages a virtual execution environment and a fuzzer to generate the classification vectors. In evaluating Tinbergen's feasibility as a semantic function identifier by identifying functions in coreutils-8.30, we achieve a high .805 average accuracy. Compared to the state-of-the-art, Tinbergen is 1.5 orders of magnitude faster when training, 50% faster in answering queries, and, when identifying functions in binaries generated from differing compilation environments, is 30%-61% more accurate.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。