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

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