arrow
Return

Leveraging WebAssembly for Numerical JavaScript Code Virtualization

delete2019-01-01
delete0
PRE
AI
S
Shuai Wang
G
G. Ye
M
Meng Li
L
Lu Yuan
Z
Zhanyong Tang
H
Huanting Wang
W
Wei Wang
王
王富伟 (Fuwei Wang) *
任
任杰 (Jie Ren)
D
Dingyi Fang
Z
Zheng Wang
DOI:10.1109/ACCESS.2019.2953511delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code obfuscation built upon code virtualization technology is one of the viable means for protecting sensitive algorithms and data against code reverse engineering attacks. Code virtualization has been successfully applied to programming languages like C, C++, and Java. However, it remains an outstanding challenge to apply this promising technique to JavaScript, a popular web programming language. This is primarily due to the open visibility of JavaScript code and the expensive runtime overhead associated with code virtualization. This paper presents JSPro, a novel code virtualization system for JavaScript. JSPro is the first JavaScript code obfuscation tool that builds upon the emerging WebAssembly language standard. It is designed to provide more secure code protection but without incurring a significant runtime penalty, explicitly targeting numerical JavaScript kernels. We achieve this by first automatically translating the target JavaScript code into WebAssembly and then performing code obfuscation on the compiled WebAssembly binary. Our design has two advantages over existing solutions: (1) it increases the code reverse entering complexity by implementing code obfuscation at a lower binary level and (2) it significantly reduces the performance impact of code virtualization over the native JavaScript code by using the performance-tuned WebAssembly language. We evaluate JSPro on a set of numerical JavaScript algorithms widely used in many applications. To test the performance, we apply JSPro to four mainstream web browsers running on three distinct mobile devices. Compared to state-of-the-art JavaScript obfuscation tools, JSPro not only provides stronger protection but also reduces the runtime overhead by at least 15% (up to 38.2%) and the code size by 28.2% on average.
Keywords:
Code obfuscation
javascript
webassembly
security
performance
WebAssembly and security: A review
err2025-05-01
err0
errOAAI
errRomano, Simon Pietro
errShare
errSave
JavaScript Dead Code Identification, Elimination, and Empirical Assessment
err2023-07-01
err5
errOAAI
errMalavolta, Ivano; Nirghin, Kishan; Scoccia, Gian Luca; Romano, Simone; Lombardi, Salvatore; Scanniello, Giuseppe; Lago, Patricia
errShare
errSave
ZipAST: Enhancing malicious JavaScript detection with sequence compression
err2025-06-01
err0
PREAI
errChen, Zixian; Wang, Weiping; Qin, Yan; Zhang, Shigeng
errShare
errSave
Toward Reliable Malicious JavaScript Detection in Obfuscated Code
err2026-07-17
err0
PREAI
errXiaowei Guo; Xiaofan Liu; Chuanhao Wan; Shuai He; Shuai Jiang; Cai Fu
errShare
errSave
An Investigation of confusing code patterns in JavaScript
err2023-09-01
err2
errOAAI
errTorres, Adriano; Oliveira, Caio; Okimoto, Marcio; Marcilio, Diego; Queiroga, Pedro; Castor, Fernando; Bonifacio, Rodrigo; Canedo, Edna Dias; Ribeiro, Marcio; Monteiro, Eduardo
errShare
errSave

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
10.1W
Citations:
36.3W

Organization

N
northwest university xi'an
Scholars:
555
Papers: 394
Citations: 8.3K
L
lancaster university
Scholars:
680
Papers: 359
Citations: 8.5K
Cited Papers

Cited Papers

Code Manipulation for Virtual Platform Integration
err2016-09-01
err20
errOAAI
errVinco, Sara; Guarnieri, Valerio; Fummi, Franco
errShare
errSave
Disorder-specific versus transdiagnostic and clinician-guided versus self-guided treatment for major depressive disorder and comorbid anxiety disorders: A randomized controlled trial
err2015-10-01
err0
errOAAI
errN. Titov; B.F. Dear; L.G. Staples; M.D. Terides; E. Karin; J. Sheehan; L. Johnston; M. Gandy; V.J. Fogliati; B.M. Wootton; P.M. McEvoy
errShare
errSave
Tunneling through a controllable vacuum gap
err1982-01-15
err0
errOAAI
errG. Binnig; H. Rohrer; Ch. Gerber; E. Weibel
errShare
errSave
Mental Health Smartphone Apps: Review and Evidence-Based Recommendations for Future Developments
err2016-03-01
err0
errOAAI
errDavid Bakker; Nikolaos Kazantzis; Debra Rickwood; Nikki Rickard
errShare
errSave
Enhance virtual-machine-based code obfuscation security through dynamic bytecode scheduling
err2018-05-01
err20
errOAAI
errKuang, Kaiyuan; Tang, Zhanyong; Gong, Xiaoqing; Fang, Dingyi; Chen, Xiaojiang; Wang, Zheng
errShare
errSave
errShare
errSave
Visualization of intra-thalamic nuclei with optimized white-matter-nulled MPRAGE at 7T
err2014-01-01
err0
errOAAI
errThomas Tourdias; Manojkumar Saranathan; Ives R. Levesque; Jason Su; Brian K. Rutt
errShare
errSave
Static code analysis
err2006-07-01
err83
PREAI
errLouridas, P
errShare
errSave
researcher View more