DataGuard: Transparent Runtime Auditing and Control of WebAssembly Binaries Within an Off-Chain TEE
Zhaoyu Chen, Qingni Shen, Jiarui She, Daqi Hu, Yang Luo, Chuntao Dong, Xiaolei Zhang, Cong Li, Zhonghai Wu
IEEE Transactions on Information Forensics and Security, 2026
Abstract
With the increasing value of data, enforcing usage control during data sharing has become a challenge, especially in light of regulations establishing data owners’ rights. Existing solutions combining Trusted Execution Environments (TEE) and blockchain often lack mechanisms for transparently auditing data usage at runtime or enforcing fine-grained policies during code execution without incurring significant overhead. To address these shortcomings, we propose DataGuard, a framework for transparently auditing and controlling the behavior of data processing binaries within an off-chain TEE. The core of our framework is the Data Guard Runtime (DGR), a custom runtime that leverages WebAssembly (WASM) for secure execution of user-custom binaries. The DGR introduces two key components: 1) a dynamic, WASM-native taint analysis engine that combines shadow memory with instruction-level hooks to transparently track the flow of sensitive data in unmodified binaries; and 2) a secure, atomic interaction mechanism between the TEE and an on-chain monitoring contract to enforce data usage policies, such as access counts and validity periods, in real time while minimizing on-chain interactions. We implemented a prototype of DataGuard using Intel SGX, Hyperledger Fabric, and WAMR. The experimental results demonstrate that the framework achieves its goals of secure and controlled data sharing. Compared with standard WAMR execution outside the enclave, DGR incurs an average execution-time overhead of 69.5% and an average memory overhead of approximately 13%.
Cite
@article{chen2026dataguard,
title = {DataGuard: Transparent Runtime Auditing and Control of WebAssembly Binaries Within an Off-Chain TEE},
author = {Zhaoyu Chen and Qingni Shen and Jiarui She and Daqi Hu and Yang Luo and Chuntao Dong and Xiaolei Zhang and Cong Li and Zhonghai Wu},
journal = {IEEE Transactions on Information Forensics and Security},
year = {2026},
publisher = {IEEE},
doi = {10.1109/tifs.2026.3757591}
}