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

Drndalo:通过最小处理器/处理器协同设计实现轻量级控制流混淆

Drndalo: Lightweight Control Flow Obfuscation Through Minimal Processor/Compiler Co-Design

Novak Boskov, Mihailo Isakov, Michel A. Kinsy

摘要:

二进制分析传统上用于恶意软件检测领域。然而,攻击者可以使用相同的技术来分析原始二进制文件,以便对其进行逆向工程并提取可利用的弱点。当二进制文件分发给最终用户时,它就成为一个常见的可远程利用的攻击点。代码混淆用于阻止可执行程序的逆向工程。在本文中,我们专注于保护二进制分发,攻击者可以访问分发到终端设备的二进制文件,以便对其进行逆向工程并找到潜在的漏洞。然而,攻击者没有手段来监视所述设备的执行。特别是,我们专注于控制流混淆-一种技术,防止攻击者恢复正确的可达性条件的基本块的程序。通过这样做,我们阻止了攻击者推断导致程序进入易受攻击状态的输入(例如,缓冲区溢出)。我们提出了一个编译器扩展混淆和动态去混淆,利用存储在硬件中的秘密密钥的最小硬件修改。我们评估我们的实验LLVM编译器工具链和BRISC-V开源处理器。在PARSEC基准测试中,我们的去混淆技术只会产生5%的运行时开销。我们通过对混淆和未混淆的二进制文件训练分类器来评估Drndalo的安全性。我们的研究结果照亮的困难,产生混淆的任意程序的二进制文件,以这样一种方式,他们是统计上无法区分从普通的二进制文件。

英文摘要:

Binary analysis is traditionally used in the realm of malware detection. However, the same technique may be employed by an attacker to analyze the original binaries in order to reverse engineer them and extract exploitable weaknesses. When a binary is distributed to end users, it becomes a common remotely exploitable attack point. Code obfuscation is used to hinder reverse engineering of executable programs. In this paper, we focus on securing binary distribution, where attackers gain access to binaries distributed to end devices, in order to reverse engineer them and find potential vulnerabilities. Attackers do not however have means to monitor the execution of said devices. In particular, we focus on the control flow obfuscation --- a technique that prevents an attacker from restoring the correct reachability conditions for the basic blocks of a program. By doing so, we thwart attackers in their effort to infer the inputs that cause the program to enter a vulnerable state (e.g., buffer overrun). We propose a compiler extension for obfuscation and a minimal hardware modification for dynamic deobfuscation that takes advantage of a secret key stored in hardware. We evaluate our experiments on the LLVM compiler toolchain and the BRISC-V open source processor. On PARSEC benchmarks, our deobfuscation technique incurs only a 5\% runtime overhead. We evaluate the security of Drndalo by training classifiers on pairs of obfuscated and unobfuscated binaries. Our results shine light on the difficulty of producing obfuscated binaries of arbitrary programs in such a way that they are statistically indistinguishable from plain binaries.

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

↑