Lune

WWW2023顶会

Automated WebAssembly Function Purpose Identification With Semantics-Aware Analysis

Alan Romano, Weihang Wang

摘要

WebAssembly is a recent web standard built for better performance in web applications. The standard defines a binary code format to use as a compilation target for a variety of languages, such as C, C++, and Rust. The standard also defines a text representation for readability, although, WebAssembly modules are difficult to interpret by human readers, regardless of their experience level. This makes it difficult to understand and maintain any existing WebAssembly code. As a result, third-party WebAssembly modules need to be implicitly trusted by developers as verifying the functionality themselves may not be feasible. To this end, we construct WASPur, a tool to automatically identify the purposes of WebAssembly functions. To build this tool, we first construct an extensive collection of WebAssembly samples that represent the state of WebAssembly. Second, we analyze the dataset and identify the diverse use cases of the collected WebAssembly modules. We leverage the dataset of WebAssembly modules to construct semantics-aware intermediate representations (IR) of the functions in the modules. We encode the function IR for use in a machine learning classifier, and we find that this classifier can predict the similarity of a given function against known named functions with an accuracy rate of 88.07%. We hope our tool will enable inspection of optimized and minified WebAssembly modules that remove function names and most other semantic identifiers.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • WaDec: Decompiling WebAssembly Using Large Language Model 引用了 An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
  • StackSight: Unveiling WebAssembly through Large Language Models and Neurosymbolic Chain-of-Thought Decompilation 引用了 MineSweeper: An In-depth Look into Drive-by Cryptocurrency Mining and Its Defense
  • StackSight: Unveiling WebAssembly through Large Language Models and Neurosymbolic Chain-of-Thought Decompilation 引用了 An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
  • MinerRay: Semantics-Aware Analysis for Ever-Evolving Cryptojacking Detection 引用了 MineSweeper: An In-depth Look into Drive-by Cryptocurrency Mining and Its Defense
  • WaSCR: A WebAssembly Instruction-Timing Side Channel Repairer 引用了 An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
  • An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases 引用了 MineSweeper: An In-depth Look into Drive-by Cryptocurrency Mining and Its Defense
  • CLARC: C/C++ Benchmark for Robust Code Search 引用了 StackSight: Unveiling WebAssembly through Large Language Models and Neurosymbolic Chain-of-Thought Decompilation
  • CLARC: C/C++ Benchmark for Robust Code Search 引用了 MinerRay: Semantics-Aware Analysis for Ever-Evolving Cryptojacking Detection
  • CLARC: C/C++ Benchmark for Robust Code Search 引用了 WaSCR: A WebAssembly Instruction-Timing Side Channel Repairer
  • CLARC: C/C++ Benchmark for Robust Code Search 引用了 An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
  • Wasm-R3: Record-Reduce-Replay for Realistic and Standalone WebAssembly Benchmarks 引用了 An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper9

  1. WaDec: Decompiling WebAssembly Using Large Language ModelXinyu She, Yanjie Zhao, Haoyu WangASE 2024 · 9 次引用
  2. Wasm-R3: Record-Reduce-Replay for Realistic and Standalone WebAssembly BenchmarksDoehyun Baek, Jakob Getz, Yusung Sim, Daniel Lehmann 等OOPSLA 2024 · 6 次引用
  3. StackSight: Unveiling WebAssembly through Large Language Models and Neurosymbolic Chain-of-Thought DecompilationWeike Fang, Zhejian Zhou, Junzhou He, Weihang WangICML 2024 · 5 次引用
  4. WaSCR: A WebAssembly Instruction-Timing Side Channel RepairerLiyan Huang, Junzhou He, Chao Wang, Weihang WangWWW 2025 · 3 次引用
  5. CLARC: C/C++ Benchmark for Robust Code SearchKaicheng Wang, Liyan Huang, Weike Fang, Weihang WangICLR 2026 · 3 次引用

它引用的 Paper3

  1. MineSweeper: An In-depth Look into Drive-by Cryptocurrency Mining and Its DefenseRadhesh Krishnan Konoth, Emanuele Vineti, Veelasha Moonsamy, Martina Lindorfer 等CCS 2018 · 162 次引用
  2. An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use CasesAaron Hilbig, Daniel Lehmann, Michael PradelWWW 2021 · 114 次引用
  3. MinerRay: Semantics-Aware Analysis for Ever-Evolving Cryptojacking DetectionAlan Romano, Yunhui Zheng, Weihang WangASE 2020 · 30 次引用

相关 Paper

  1. Multi-modal Learning for WebAssembly Reverse EngineeringHanxian Huang, Jishen ZhaoISSTA 2024 · 1 次引用
  2. When Function Inlining Meets WebAssembly: Counterintuitive Impacts on Runtime PerformanceAlan Romano, Weihang WangFSE 2023 · 7 次引用
  3. Two Mechanisations of WebAssembly 1.0Conrad Watt, Xiaojia Rao, Jean Pichon-Pharabod, Martin Bodin 等FM 2021 · 32 次引用
  4. An Empirical Study of Bugs in WebAssembly CompilersAlan Romano, Xinyue Liu, Yonghwi Kwon, Weihang WangASE 2021 · 43 次引用
  5. Broken Promise: Differential Analysis of Functional Discrepancies Between WebAssembly and Native BinariesXiao Wu, Alan Romano, Liyan Huang, Qiwen Yan 等WWW 2026
黄昏的海面,两侧是细线勾勒的悬崖