Cryptic Bytes:用于逃避加密劫持检测的WebAssembly混淆
Cryptic Bytes: WebAssembly Obfuscation for Evading Cryptojacking Detection
AI总结:
本文全面评估了WebAssembly代码混淆技术,使用Tigress、wasm-mutate和自研emcc-obf工具,证明混淆能有效逃避加密劫持检测,并公开了超过20,000个混淆二进制文件的数据集。
摘要:
WebAssembly作为一种高性能、安全且可移植的编译目标,在Web及其他领域获得了广泛关注。然而,其日益普及也带来了新的安全挑战。其中一种威胁是加密劫持,即网站在访客设备上在不知情或未同意的情况下挖掘加密货币,通常通过WebAssembly实现。虽然已有检测方法被提出,但关于规避这些方法的研究仍然有限。本文对WebAssembly代码混淆技术进行了迄今为止最全面的评估,在多个抽象层次上评估了其有效性、可检测性和开销。我们使用Tigress和wasm-mutate等最先进的混淆工具,以及我们开发的新工具emcc-obf,对包括实用程序、游戏和加密矿工在内的多种应用进行了混淆。研究结果表明,混淆能有效生成不同的WebAssembly二进制文件,其中Tigress效果最佳,其次是emcc-obf和wasm-mutate。对生成的原生代码的影响也很显著,尽管V8引擎的TurboFan优化器平均可将原生代码大小减少30%。值得注意的是,我们发现混淆可以成功逃避最先进的加密劫持检测器。虽然混淆可能引入显著的性能开销,但我们展示了如何通过策略性地应用变换,在真实场景中以最小开销实现检测逃避。这些见解对研究人员具有重要价值,为开发更鲁棒的检测方法奠定了基础。此外,我们公开了包含超过20,000个混淆WebAssembly二进制文件的数据集和emcc-obf工具,以促进进一步研究。
英文摘要:
WebAssembly has gained significant traction as a high-performance, secure, and portable compilation target for the Web and beyond. However, its growing adoption has also introduced new security challenges. One such threat is cryptojacking, where websites mine cryptocurrencies on visitors' devices without their knowledge or consent, often through the use of WebAssembly. While detection methods have been proposed, research on circumventing them remains limited. In this paper, we present the most comprehensive evaluation of code obfuscation techniques for WebAssembly to date, assessing their effectiveness, detectability, and overhead across multiple abstraction levels. We obfuscate a diverse set of applications, including utilities, games, and crypto miners, using state-of-the-art obfuscation tools like Tigress and wasm-mutate, as well as our novel tool, emcc-obf. Our findings suggest that obfuscation can effectively produce dissimilar WebAssembly binaries, with Tigress proving most effective, followed by emcc-obf and wasm-mutate. The impact on the resulting native code is also significant, although the V8 engine's TurboFan optimizer can reduce native code size by 30\% on average. Notably, we find that obfuscation can successfully evade state-of-the-art cryptojacking detectors. Although obfuscation can introduce substantial performance overheads, we demonstrate how obfuscation can be used for evading detection with minimal overhead in real-world scenarios by strategically applying transformations. These insights are valuable for researchers, providing a foundation for developing more robust detection methods. Additionally, we make our dataset of over 20,000 obfuscated WebAssembly binaries and the emcc-obf tool publicly available to stimulate further research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。