WaTZ: A Trusted WebAssembly Runtime Environment with Remote Attestation for TrustZone

Jämes Ménétrey, Marcelo Pasin, Pascal Felber, Valerio Schiavoni
6/17/2022
cs.CRcs.DCcs.PF

Official code: JamesMenetrey/unine-watz (33 stars, C, Apache-2.0, last commit 2024-05-23).

Abstract

WebAssembly (Wasm) is a novel low-level bytecode format that swiftly gained popularity for its efficiency, versatility and security, with near-native performance. Besides, trusted execution environments (TEEs) shield critical software assets against compromised infrastructures.

Show full abstract

However, TEEs do not guarantee the code to be trustworthy or that it was not tampered with. Instead, one relies on remote attestation to assess the code before execution. This paper describes WaTZ, which is (i) an efficient and secure runtime for trusted execution of Wasm code for Arm's TrustZone TEE, and (ii) a lightweight remote attestation system optimised for Wasm applications running in TrustZone, as it lacks built-in mechanisms for attestation. The remote attestation protocol is formally verified using a state-of-the-art analyser and model checker. Our extensive evaluation of Arm-based hardware uses synthetic and real-world benchmarks, illustrating typical tasks IoT devices achieve. WaTZ's execution speed is on par with Wasm runtimes in the normal world and reaches roughly half the speed of native execution, which is compensated by the additional security guarantees and the interoperability offered by Wasm. WaTZ is open-source and available on GitHub along with instructions to reproduce our experiments.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

WaTZ: A Trusted WebAssembly Runtime Environment with Remote Attestation for TrustZone.

338C, MakefileApr 25, 20222 years agoApache-2.0

Similar Papers

Cite this paper

@article{mntrey2022watz,
  title  = {WaTZ: A Trusted WebAssembly Runtime Environment with Remote Attestation for TrustZone},
  author = {Jämes Ménétrey and Marcelo Pasin and Pascal Felber and Valerio Schiavoni},
  year   = {2022},
  eprint = {2206.08722},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.08722}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.08722.svg)](https://codeofpaper.com/paper/2206.08722)

Discussion