arXiv:2610.21565cs.CROct 2026

Manuscript Offprint

arXiv:2610.21565

BiShield-TEE: On the (In-)Security of Unilateral Weight Obfuscation in On-Device TEE-Shielded LLM Partition

Zhiyuan Wang, Yuezhi Zhou, Ziqi Zhang, Zhu Zhang, Zhixing Tan, Yongheng Deng

Abstract

On-device deployment of large language models (LLMs) is increasingly adopted due to latency and privacy requirements, but exposes proprietary models to reverse engineering and intellectual property theft. Trusted Execution Environments (TEEs) provide hardware-enforced isolation for on-device inference, yet most TEE-based parameter obfuscation relies on unilateral matrix transformations that obfuscate only output side. We identify a vulnerability in this design, termed the Solution Determinacy Property (SDP): the obfuscation secret is uniquely determined, exposing the structure of the true key and enabling attackers to break the protection. Under our attacks, representative methods GROUPCOVER and ARROWCLOAK are reduced to negligible protection, with attack accuracy reaching over 2.4×2.4\times the full-shielding black-box baseline and recovering near-complete model functionality. To address this vulnerability, we propose BISHIELD-TEE, a bilateral framework that induces Ambiguous Solutions through joint obfuscation of input and output dimensions, hiding the true key among many equally valid candidates. Experiments across diverse models and datasets show that BISHIELD-TEE confines attack accuracy to the full-shielding black-box baseline, while achieving higher inference efficiency than prior methods on real hardware. Our code is available at https://github.com/laduiw/BiShield-TEE.

1 Introduction

The deployment of large language models (LLMs) is increasingly shifting from cloud servers to edge devices, particularly in latency-sensitive scenarios [1, 2, 3]. While this transition reduces response time and enhances user privacy by enabling local processing [4, 5, 6], it also exposes high-value models to untrusted and potentially adversarial environments. Unlike cloud-based services where models operate as black boxes behind APIs, on-device deployment requires storing and executing models locally, making them vulnerable to white-box attacks [7, 8, 9]. Given that high-performance models represent valuable intellectual property [10, 11, 12], protecting them in on-device settings becomes critical [13, 14].

∗^{*}Corresponding author.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Trusted Execution Environments (TEEs) provide hardware-enforced isolation to protect sensitive computations even against privileged adversaries [15, 16, 17, 18]. However, limited computational resources and memory in edge TEEs [15, 19, 20] make full model execution impractical. Existing defenses thus adopt a partitioned execution paradigm [20, 21, 22, 23, 24, 25], offloading computation-intensive layers to untrusted accelerators while keeping lightweight recovery logic inside the TEE. A common design is to obfuscate each linear layer's weights W with a secret invertible transformation T sampled inside the TEE, deploying Wobf=WTW_{obf} = WT on the GPU. At inference, the GPU computes Yobf=XWobfY_{obf} = XW_{obf}, and the TEE recovers the true output via Y=YobfT−1=XWY = Y_{obf}T^{-1} = XW. Existing schemes explore various designs of T, seeking to ensure that the obfuscated parameters leak no information about the underlying private weights.

However, current approaches share a common paradigm of unilateral obfuscation, reducing to right-multiplication by a secret T. We identify a fundamental vulnerability of this paradigm, termed SDP: The secret T admits a unique, high-precision estimate T^\hat{T} that inherits its structure and enables successful reconstruction, provided the victim is fine-tuned from a public pre-trained model.

Exploiting this structure leakage in practice is non-trivial. Existing attacks [22] succeed on per-vector obfuscation [21, 23, 24, 25] through vector direction similarity, where T^\hat{T} takes a simple diagonal or permutation form. But these attacks are ineffective against the more elaborate T^\hat{T} produced by GROUPCOVER (ICML'24) [20] and ARROWCLOAK (USENIX Security'25) [22]. We design two dedicated attacks that exploit specific structural patterns in T^\hat{T}: for GROUPCOVER, T^\hat{T} exhibits a block-diagonal structure that we recover through a clustering procedure based on energy-distribution similarity; for ARROWCLOAK, T^\hat{T} admits a low-rank structure that manifests as a spectral anomaly in WobfW_{obf}, which we recover via Principal Component Analysis (PCA). Both deliver the first successful attack of these schemes, recovering model functionality nearly identical to the originals.

To prevent the structural leakage exploited by SDP, we propose BISHIELD-TEE, a bilateral framework that obfuscates both sides of the weight matrix. We show that this design avoids SDP and induces Ambiguous Solutions, yielding an ill-posed system where the true keys are not uniquely recoverable.

We conduct extensive evaluations across diverse models and tasks, including ViT [26], GPT-2 [27], and Llama3.2 [28]. Our results expose the fragility of existing defenses: attacks on GROUPCOVER and ARROWCLOAK elevate attack accuracy to 2.44×2.44\times the black-box baseline, effectively recovering model functionality. By contrast, BISHIELD-TEE confines attack accuracy to the black-box level. Beyond stronger security, the bilateral design also yields favorable efficiency, running 1.70×1.70\times and 1.46×1.46\times faster than GROUPCOVER and ARROWCLOAK, respectively.

We summarize our contributions as follows:

• We identify the SDP, a common vulnerability in unilateral obfuscation, and devise effective attacks on GROUPCOVER and ARROWCLOAK. By exploiting the structural leakage in each scheme, our attacks recover model functionality close to the white-box baseline.

• We propose BISHIELD-TEE, a bilateral framework that obfuscates input and output sides, providing strong protection while remaining efficient for Transformer architectures.

• We empirically show that unilateral defenses degrade to near-white-box security, whereas BISHIELD-TEE achieves strong protection with improved inference latency on real devices.

References (50)