arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.10073cs.CR
收藏

DeClassifier:面向优化C++二进制文件的类继承推理引擎

DeClassifier: Class-Inheritance Inference Engine for Optimized C++ Binaries

Rukayat Ayomide Erinfolami, Aravind Prakash

摘要:

从C++二进制文件中恢复类继承有几个安全方面的好处,包括反编译和程序强化等问题。由于C++标准规定的优化准则,商业C++二进制文件往往是优化的。虽然最先进的类继承推理解决方案在处理未优化的代码时是有效的,但它们的效率受到优化的阻碍。特别是,构造函数内联--或者更糟糕的排斥--由于优化而使类继承恢复具有挑战性。此外,虽然现代解决方案(如MARX)可以成功地在继承子树中对类进行分组,但它们无法建立继承的方向性,这对于安全相关的应用程序(例如反编译)至关重要。我们使用二进制分析平台(BAP)实现了DeClassifier的原型,并在多个优化设置下对使用gcc编译的16个二进制文件进行了DeClassifier评估。结果表明:(1)在O 0和O2优化下,DeClassifier可以分别恢复类层次树中94.5%和71.4%的真正向边;(2)ctor+dtor分析的组合比仅ctor分析提供了更好的推理。

英文摘要:

Recovering class inheritance from C++ binaries has several security benefits including problems such as decompilation and program hardening. Thanks to the optimization guidelines prescribed by the C++ standard, commercial C++ binaries tend to be optimized. While state-of-the-art class inheritance inference solutions are effective in dealing with unoptimized code, their efficacy is impeded by optimization. Particularly, constructor inlining--or worse exclusion--due to optimization render class inheritance recovery challenging. Further, while modern solutions such as MARX can successfully group classes within an inheritance sub-tree, they fail to establish directionality of inheritance, which is crucial for security-related applications (e.g. decompilation). We implemented a prototype of DeClassifier using Binary Analysis Platform (BAP) and evaluated DeClassifier against 16 binaries compiled using gcc under multiple optimization settings. We show that (1) DeClassifier can recover 94.5% and 71.4% true positive directed edges in the class hierarchy tree under O0 and O2 optimizations respectively, (2) a combination of ctor+dtor analysis provides much better inference than ctor only analysis.

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

↑