arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.10456cs.SE
收藏

WRTester:通过语义感知的二进制生成对 WebAssembly 运行时进行差异测试

WRTester: Differential Testing of WebAssembly Runtimes via Semantic-aware Binary Generation

Shangtong Cao, Ningyu He, Xinyu She, Yixuan Zhang, Mu Zhang, Haoyu Wang

AI总结:

提出 WRTester 差异测试框架,利用真实 Wasm 二进制的反汇编与汇编生成语义丰富且语法正确的测试用例,并定位运行时缺陷,发现33个缺陷、25个获确认。

摘要:

Wasm 运行时是 Wasm 生态系统中的基础组件,因为它直接影响 Wasm 应用程序能否按预期执行。Wasm 运行时中的缺陷频繁被报告,因此研究社区已经进行了若干尝试,以设计用于检测 Wasm 运行时缺陷的自动化测试框架。然而,现有测试框架受到测试用例质量的限制,即它们在生成既语义丰富又语法正确的 Wasm 二进制文件方面面临挑战,因此无法触发复杂缺陷。在本工作中,我们提出 WRTester,这是一种新颖的差异测试框架,能够通过对真实世界 Wasm 二进制文件进行反汇编和汇编来生成复杂的 Wasm 测试用例,从而触发 Wasm 运行时之间隐藏的不一致。为进一步定位意外行为的根本原因,我们设计了一种与运行时无关的根本原因定位方法,以准确地定位缺陷。大量评估表明,WRTester 在效率和有效性方面均优于 SOTA 技术。我们已在流行的 Wasm 运行时中发现 33 个独特缺陷,其中 25 个已得到确认。

英文摘要:

Wasm runtime is a fundamental component in the Wasm ecosystem, as it directly impacts whether Wasm applications can be executed as expected. Bugs in Wasm runtime bugs are frequently reported, thus our research community has made a few attempts to design automated testing frameworks for detecting bugs in Wasm runtimes. However, existing testing frameworks are limited by the quality of test cases, i.e., they face challenges of generating both semantic-rich and syntactic-correct Wasm binaries, thus complicated bugs cannot be triggered. In this work, we present WRTester, a novel differential testing framework that can generated complicated Wasm test cases by disassembling and assembling of real-world Wasm binaries, which can trigger hidden inconsistencies among Wasm runtimes. For further pinpointing the root causes of unexpected behaviors, we design a runtime-agnostic root cause location method to accurately locate bugs. Extensive evaluation suggests that WRTester outperforms SOTA techniques in terms of both efficiency and effectiveness. We have uncovered 33 unique bugs in popular Wasm runtimes, among which 25 have been confirmed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑