Vulnerabilities in Partial TEE-Shielded LLM Inference with Precomputed Noise
Abhishek Saini, Haolin Jiang, Hang Liu
TL;DR
This work identifies a prevalent performance-driven pattern in Partial TEE-Shielded Inference: the use of a precomputed, static secret basis to accelerate noise-based masking and fingerprinting. It shows that this pattern induces a low-dimensional subspace that enables algebraic attacks, compromising both model confidentiality and computational integrity. The authors formalize two attacks—one recovering secret permutations and weights in a TLG-like system, and another bypassing integrity checks in Soter—validating them on large LLMs and demonstrating realistic time-to-compromise scales from minutes to hours. The findings expose a fundamental tension between efficiency and provable security in PTSE, and motivate design principles for dynamic noise generation and cross-query obfuscation resistant to subspace leakage. Practically, the attacks threaten total IP theft and undetectable tampering of offloaded computations, underscoring the need for cryptographic mechanisms that avoid reusing secret material across queries.
Abstract
The deployment of large language models (LLMs) on third-party devices requires new ways to protect model intellectual property. While Trusted Execution Environments (TEEs) offer a promising solution, their performance limits can lead to a critical compromise: using a precomputed, static secret basis to accelerate cryptographic operations. We demonstrate that this mainstream design pattern introduces a classic cryptographic flaw, the reuse of secret keying material, into the system's protocol. We prove its vulnerability with two distinct attacks: First, our attack on a model confidentiality system achieves a full confidentiality break by recovering its secret permutations and model weights. Second, our integrity attack completely bypasses the integrity checks of systems like Soter and TSQP. We demonstrate the practicality of our attacks against state-of-the-art LLMs, recovering a layer's secrets from a LLaMA-3 8B model in about 6 minutes and showing the attack scales to compromise 405B-parameter LLMs across a variety of configurations.
