Litcius/Paper detail

A First Look at Code Obfuscation for WebAssembly

Shrenik Bhansali, Ahmet Arış, Abbas Acar, Harun Oz, A. Selcuk Uluagac

202220 citationsDOI

Abstract

WebAssembly (Wasm) has seen a lot of attention lately as it spreads through the mobile computing domain and becomes the new standard for performance-oriented web development. It has diversified its uses far beyond just web applications by acting as an execution environment for mobile agents, containers for IoT devices, and enabling new serverless approaches for edge computing. Within the numerous uses of Wasm, not all of them are benign. With the rise of Wasm-based cryptojacking malware, analyzing Wasm applications has been a hot topic in the literature, resulting in numerous Wasm-based cryptojacking detection systems. Many of these methods rely on static analysis, which traditionally can be circumvented through obfuscation. However, the feasibility of the obfuscation techniques for Wasm programs has never been investigated thoroughly. In this paper, we address this gap and perform the first look at code obfuscation for Wasm. We apply numerous obfuscation techniques to Wasm programs, and test their effectiveness in producing a fully obfuscated Wasm program. Particularly, we obfuscate both benign Wasm-based web applications and cryptojacking malware instances and feed them into a state-of-the-art Wasm cryptojacking detector to see if current Wasm analysis methods can be subverted with obfuscation. Our analysis shows that obfuscation can be highly effective and can cause even a state-of-the-art detector to misclassify the obfuscated Wasm samples.

Topics & Concepts

ObfuscationComputer scienceMalwareStatic analysisCode (set theory)Computer securityDomain (mathematical analysis)State (computer science)Programming languageMathematicsSet (abstract data type)Mathematical analysisAdvanced Malware Detection TechniquesSoftware Testing and Debugging TechniquesSecurity and Verification in Computing
A First Look at Code Obfuscation for WebAssembly | Litcius