arrow
Return

DRWASI: LLM-assisted Differential Testing for WebAssembly System Interface Implementations

delete2026-02-01
delete0
PRE
AI
Y
Yixuan Zhang
N
Ningyu He
J
Jianting Gao
S
Shangtong Cao
K
Kaibo Liu
H
Haoyu Wang
Y
Yun Ma
G
Gang Huang *
X
Xuanzhe Liu
DOI:10.1145/3716379delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
WebAssembly (Wasm) is an emerging binary format that serves as a compilation target for over 40 programming languages. Wasm runtimes provide execution environments that enhance portability by abstracting away operating systems and hardware details. A key component in these runtimes is the WebAssembly System Interface (WASI), which manages interactions with operating systems, like file operations. Considering the critical role of Wasm runtimes, the community has aimed to detect their implementation bugs. However, no work has focused on WASI-specific bugs that can affect the original functionalities of running Wasm binaries and cause unexpected results. To fill the void, we present DRWASI, the first general-purpose differential testing framework for WASI implementations. Our approach uses a large language model to generate seeds and applies variant and environment mutation strategies to expand and enrich the test case corpus. We then perform differential testing across major Wasm runtimes. By leveraging dynamic and static information collected during and after the execution, DRWASI can identify bugs. Our evaluation shows that DRWASI uncovered 33 unique bugs, with all confirmed and 7 fixed by developers. This research represents a pioneering step in exploring a promising yet under-explored area of the Wasm ecosystem, providing valuable insights for stakeholders.
Keywords:
WebAssembly
WebAssembly System Interface

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.2K
Citations:
3.4K

Organization

B
beijing university of posts & telecommunications
Scholars:
1.4W
Papers: 1.2W
Citations: 9
H
hong kong polytechnic university
Scholars:
3.0W
Papers: 4.1W
Citations: 921
P
peking university
Scholars:
11.9W
Papers: 8.7W
Citations: 146
H
huazhong university of science & technology
Scholars:
6.1K
Papers: 1.6K
Citations: 0
researcher View more organizations
Cited Papers

Cited Papers

Detecting C plus plus Compiler Front-End Bugs via Grammar Mutation and Differential Testing
err2023-03-01
err6
errOAAI
errTu, Haoxin; Jiang, He; Zhou, Zhide; Tang, Yixuan; Ren, Zhilei; Qiao, Lei; Jiang, Lingxiao
errShare
errSave
errShare
errSave
JIT-Picking
err2022-11-07
err0
errOAAI
errLukas Bernhard; Tobias Scharnowski; Moritz Schloegel; Tim Blazytko; Thorsten Holz
errShare
errSave
SJFuzz: Seed and Mutator Scheduling for JVM Fuzzing
err2023-11-30
err0
PREAI
errMingyuan Wu; Yicheng Ouyang; Minghai Lu; Junjie Chen; Yingquan Zhao; Heming Cui; Guowei Yang; Yuqun Zhang
errShare
errSave
A Comprehensive Trusted Runtime for WebAssembly With Intel SGX
err2024-07-01
err1
errOAAI
errMenetrey, James; Pasin, Marcelo; Felber, Pascal; Schiavoni, Valerio; Mazzeo, Giovanni; Hollum, Arne; Vaydia, Darshan
errShare
errSave
Automated conformance testing for JavaScript engines via deep compiler fuzzing
err2021-06-18
err0
errOAAI
errGuixin Ye; Zhanyong Tang; Shin Hwei Tan; Songfang Huang; Dingyi Fang; Xiaoyang Sun; Lizhong Bian; Haibo Wang; Zheng Wang
errShare
errSave
AccTEE
err2019-12-09
err0
errOAAI
errDavid Goltzsche; Manuel Nieke; Thomas Knauth; Rüdiger Kapitza
errShare
errSave
researcher View more