WebAssembly Diversification for Malware Evasion

Javier Cabrera-Arteaga, Martin Monperrus, Tim Toady, Benoit Baudry
12/16/2022
22 citations
cs.SE

Official code: ASSERT-KTH/wasm_evasion (10 stars, WebAssembly, last commit 2023-06-10).

Abstract

WebAssembly has become a crucial part of the modern web, offering a faster alternative to JavaScript in browsers. While boosting rich applications in browser, this technology is also very efficient to develop cryptojacking malware.

Show full abstract

This has triggered the development of several methods to detect cryptojacking malware. However, these defenses have not considered the possibility of attackers using evasion techniques. This paper explores how automatic binary diversification can support the evasion of WebAssembly cryptojacking detectors. We experiment with a dataset of 33 WebAssembly cryptojacking binaries and evaluate our evasion technique against two malware detectors: VirusTotal, a general-purpose detector, and MINOS, a WebAssembly-specific detector. Our results demonstrate that our technique can automatically generate variants of WebAssembly cryptojacking that evade the detectors in 90% of cases for VirusTotal and 100% for MINOS. Our results emphasize the importance of meta-antiviruses and diverse detection techniques, and provide new insights into which WebAssembly code transformations are best suited for malware evasion. We also show that the variants introduce limited performance overhead, making binary diversification an effective technique for evasion.

View on arXivView PDF

Code Implementations(1)

Malware evasion for WebAssembly with wasm-mutate https://www.sciencedirect.com/science/article/pii/S0167404823002067?via%3Dihub

103WebAssembly, Jupyter NotebookJul 27, 20223 years ago

Similar Papers

Cite this paper

@article{cabreraarteaga2022webassembly,
  title  = {WebAssembly Diversification for Malware Evasion},
  author = {Javier Cabrera-Arteaga and Martin Monperrus and Tim Toady and Benoit Baudry},
  year   = {2022},
  eprint = {2212.08427},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.08427}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.08427.svg)](https://codeofpaper.com/paper/2212.08427)

Discussion