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

WASMixer:面向WebAssembly的二进制混淆技术

WASMixer: Binary Obfuscation for WebAssembly

Shangtong Cao, Ningyu He, Yao Guo, Haoyu Wang

AI总结:

本文提出首个通用WebAssembly二进制混淆器WASMixer,通过数据级与代码级混淆及按需解密、代码拆分重构等关键技术,实现对Wasm二进制的有效保护。

摘要:

WebAssembly(Wasm)是一种新兴的二进制格式,引起了我们社区的广泛关注。然而,Wasm二进制文件的保护较为薄弱,因为攻击者可以使用官方提供的可读文本格式(即wat)或一些先进的二进制分析工具对其进行读取、编辑和操纵。对Wasm二进制文件进行逆向工程通常出于恶意目的,例如识别并利用二进制文件中暴露的经典漏洞和Wasm特有的漏洞。然而,我们的社区中尚无可用的Wasm专用混淆器来保护Wasm二进制文件。为填补这一空白,本文提出了WASMixer,这是第一个通用的Wasm二进制混淆器,对Wasm二进制文件实施数据级(字符串字面量和函数名)和代码级(控制流和指令)混淆。我们提出了一系列关键技术来克服Wasm二进制重写过程中的挑战,包括一种按需解密方法以最小化在内存区域解密数据所带来的影响,以及用于处理Wasm中结构化控制流的代码拆分/重构算法。大量实验证明了WASMixer的正确性、有效性和效率。我们的研究为Wasm二进制研究指明了有前景的方向,包括Wasm代码保护、Wasm二进制多样化以及Wasm二进制的攻防军备竞赛。

英文摘要:

WebAssembly (Wasm) is an emerging binary format that draws great attention from our community. However, Wasm binaries are weakly protected, as they can be read, edited, and manipulated by adversaries using either the officially provided readable text format (i.e., wat) or some advanced binary analysis tools. Reverse engineering of Wasm binaries is often used for nefarious intentions, e.g., identifying and exploiting both classic vulnerabilities and Wasm specific vulnerabilities exposed in the binaries. However, no Wasm-specific obfuscator is available in our community to secure the Wasm binaries. To fill the gap, in this paper, we present WASMixer, the first general-purpose Wasm binary obfuscator, enforcing data-level (string literals and function names) and code-level (control flow and instructions) obfuscation for Wasm binaries. We propose a series of key techniques to overcome challenges during Wasm binary rewriting, including an on-demand decryption method to minimize the impact brought by decrypting the data in memory area, and code splitting/reconstructing algorithms to handle structured control flow in Wasm. Extensive experiments demonstrate the correctness, effectiveness and efficiency of WASMixer. Our research has shed light on the promising direction of Wasm binary research, including Wasm code protection, Wasm binary diversification, and the attack-defense arm race of Wasm binaries.

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

↑