A research project demonstrates how unmodified AI models compiled to WebAssembly can run inside a protected execution environment on Arm devices. The approach combines the WAMR runtime with OP-TEE and aims to protect models from theft even if an attacker gains root access to the device.
Trusted Execution Environments such as Arm TrustZone are designed to defend against operating-system-level attacks. They can be difficult to use, however, because applications often need changes before they can run inside them. The proposed system executes WebAssembly models through a Trusted Application in OP-TEE. A model distributor encrypts the WebAssembly binary and stores the key in a device fuse. According to the paper, only the WAMR application in OP-TEE can use the key to decrypt and execute the model.
The evaluation reports 22% additional overhead compared with an application manually ported to OP-TEE. Inference latency increases by 6%; in return, the approach allows unmodified models to run without significant porting effort. These results suggest a potential trade-off between protection and performance, but do not establish that the system can defend against every kind of attack.
The original paper provides further details on the system design and evaluation: Protecting CPU AI On Edge TEEs.