arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.14527cs.SEcs.CR
收藏

通过抽象语义构建WebAssembly程序的调用图

Building Call Graph of WebAssembly Programs via Abstract Semantics

Mattia Paccamiccio, Franco Raimondi, Michele Loreti

AI总结:

本文提出基于抽象解释理论的正式方法,为WebAssembly程序构建调用图,以支持过程间验证,并通过基准程序预测评估其性能。

摘要:

WebAssembly是一种二进制代码格式,因其对可移植性和性能的关注而日益流行。目前,WebAssembly最常见的用例是在浏览器中执行。由于其可移植性,它也越来越多地被用作独立应用程序。然而,WebAssembly的二进制格式使其容易被用作恶意软件的载体。例如,人们可以将加密货币矿工嵌入到浏览器执行的代码中。因此,开发用于WebAssembly安全验证、信息流控制以及更一般地验证行为属性(如正确的API使用)的工具引起了广泛兴趣。在本文中,我们解决了为WebAssembly代码构建调用图的问题。这很重要,因为拥有或计算调用图是大多数过程间验证任务的前提。在本文中,我们提出了一种基于抽象解释理论的正式解决方案。我们通过预测其在一组专门设计的基准程序上的表现,将我们的方法与现有技术水平进行比较。

英文摘要:

WebAssembly is a binary format for code that is gaining popularity thanks to its focus on portability and performance. Currently, the most common use case for WebAssembly is execution in a browser. It is also being increasingly adopted as a stand-alone application due to its portability. The binary format of WebAssembly, however, makes it prone to being used as a vehicle for malicious software. For instance, one could embed a cryptocurrency miner in code executed by a browser. As a result, there is substantial interest in developing tools for WebAssembly security verification, information flow control, and, more generally, for verifying behavioral properties such as correct API usage. In this document, we address the issue of building call graphs for WebAssembly code. This is important because having or computing a call graph is a prerequisite for most inter-procedural verification tasks. In this paper, we propose a formal solution based on the theory of Abstract Interpretation. We compare our approach to the state-of-the-art by predicting how it would perform against a set of specifically crafted benchmark programs.

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

↑