Skip to content

Study reveals security boundary of obfuscation-based on-device LLM protection schemesUnderstanding the Security Boundary of Obfuscation-based On-Device LLM Protection

arXiv: Alignment, Deception & Oversight· arXiv:2609.10117· Hanyi Zhou, Chenyang Li, Yuanzhe Pang, Ke Xu, Mingwei Xu, Zhuotao Liu·Indexed by this site · 2026-10-01· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors unify the TSLP defense boundary Oprior with confusion primitives, propose Collapse to extract high-fidelity substitute models, and use Oext to push substitute model accuracy down to the empirical black-box reference.

Threat modelAn honest-but-curious device owner correctly executes the TEE–REE protocol, records T exposed views We_t across key refreshes, and combined with the public pretrained backbone Mpre and annotated task data of no more than 1% of the original training set, reconstructs a high-utility substitute model Msur, rather than exact per-parameter recovery of W. Hardware side channels are out of scope.

Questions
When end-side LLMs use TEE to protect weights, compute is insufficient, so TSLP confuses linear layers and offloads them to the untrusted REE. Existing confusion methods are mostly heuristic, lacking unified primitives and security boundary characterization.
Methods
The authors write the matrix transformations of representative TSLP as compositions of four primitive types: sparse masks, low-rank masks, column permutations, and column scaling, with canonical form Oprior=(W+S+L)DΠ. Collapse aligns columns, strips low-rank masks, and fine-tunes in three stages, then introduces two new primitives to form Oext.
Experiments and results
The authors claim Collapse can extract surrogate models with utility comparable to the victim model from previous defenses such as ArrowCloak, TSQP, and LoRO; Oext reduces surrogate model accuracy on average to the empirical black-box reference. The authors explicitly do not claim Oext has universal security, only evaluating against the existing Collapse pipeline.
Limitations and future work
Oext is evaluated only against Collapse without defense-specific adaptation. The paper discusses attack strategies when all four components are refreshed and states that the attack still holds under that schedule. Specific main table numbers should be taken from the experimental tables in the main text.
Experimental setupBERT-Base、ViT-Base et al. · GLUE、CIFAR-10 et al. · Acc、ASR et al.
Evaluated models
BERT-BaseViT-BaseQwen2.5-0.5BQwen2.5-1.5B
Benchmarks
GLUECIFAR-10CIFAR-100ImageNet-1KGSM8KMMLU
Metrics
AccASRδ=0.05成功阈值经验黑盒参照
AI summaryThe paper proposes a set of obfuscation primitives for TEE-protected on-device LLMs, unifying representative TEE-Shielded LLM Partition (TSLP) methods with a two-tuple form of linear computation, and gives a canonical form of these primitive combinations as a security boundary. Based on this, the authors design a primitive-guided attack method, pointing out common vulnerabilities in TSLP methods such as ArrowCloak (Security'25), TSQP (S&P'25), and LoRO (NeurIPS'25). The paper then introduces two new obfuscation primitives and combines them with existing constructions to form a defense scheme that extends the original security boundary. This work has been accepted at ACM CCS 2026 (Cycle B), totaling 16 pages.

The paper proposes a set of obfuscation primitives for TEE-protected on-device LLMs, unifying representative TEE-Shielded LLM Partition (TSLP) methods with a two-tuple form of linear computation, and gives a canonical form of these primitive combinations as a security boundary. Based on this, the authors design a primitive-guided attack method, pointing out common vulnerabilities in TSLP methods such as ArrowCloak (Security'25), TSQP (S&P'25), and LoRO (NeurIPS'25). The paper then introduces two new obfuscation primitives and combines them with existing constructions to form a defense scheme that extends the original security boundary. This work has been accepted at ACM CCS 2026 (Cycle B), totaling 16 pages.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Characterize the safety boundary of TSLP with unified obfuscation primitives, and test whether that boundary can be broken by systematic extraction.

    Existing TEE-offloading obfuscations lack a composable security boundary; the authors ask how far the common algebraic structure of these heuristic schemes can defend.

    • Scenario: The authors claim that on-device LLMs placing weights on the device brings model theft and privacy risks; TEEs (e.g., Intel SGX, Arm TrustZone) provide isolation under an untrusted OS, but secure memory and throughput are insufficient to host full LLM inference alone.
    • Shortcomings of Existing Approaches: TSLP keeps lightweight non-linearities like LayerNorm and Softmax in the TEE, offloads matrix multiplications to the untrusted REE, and obfuscates weights with column permutations, column scaling, additive masks, or low-rank masks. The authors claim these schemes are mostly heuristic, often claiming security after excluding only a few obvious inversions; existing attacks are also ad hoc against specific structures.
    • Core Observation: The authors believe that column permutations and column scaling do not mix columns, sparse masks change very few elements, and low-rank masks occupy only a low-dimensional subspace, so the column directions of the victim weights Wvic leak under any composition of these primitives.
    • This Paper Proposes: Formalize obfuscation as primitive pairs (O, R) satisfying correctness, TEE-side efficiency, and resistance to model extraction; characterize the security boundary of Bprior with canonical composition Oprior; propose a primitive-guided attack Collapse; then add two new primitives to obtain Oext, pushing the boundary outward.
    • Threat Model:
      • Goal: Not to recover Mvic parameter-by-parameter in white-box, but to construct a high-utility surrogate model Msur with the same architecture and downstream performance comparable to Mvic. For classification tasks, the attack succeeds if Acc(M̂)≥Acc(Mvic)−δ with δ=0.05.
      • Knowledge and Identity: honest-but-curious. The protocol is executed correctly, and the recovery mapping satisfies R(XWe)=XW; the attacker is the device owner.
      • Capabilities: Full control of the device; record every tensor crossing the TEE–REE boundary and REE-side derived tensors, obtaining T different exposed views {We_t} under key refresh; identify the public backbone Mpre via model fingerprinting; query the deployed model to collect labeled data, usually not exceeding 1% of the original training set, for fine-tuning.
      • Out of Scope: Hardware side channels and transient execution attacks against TEEs are out of scope; REEs supporting confidential computing (e.g., NVIDIA Hopper, Blackwell GPUs) are out of scope. The defender refreshes obfuscation keys dynamically as in existing practices.
  2. What related research exists?

    Related work is divided into TEE–REE collaborative inference, TSLP schemes on four types of confusion primitives, and ad hoc attacks against additive masks or column transformations.
    • On-device deployment and TEE limitations: The authors discuss on-device LLM deployment to reduce latency and retain user data, and that Intel SGX, Arm TrustZone provide isolation under an untrusted OS, but secure memory and throughput are insufficient to host full LLM inference alone.
    • TSLP obfuscation schemes: The authors classify the matrix-level weight transformations of representative schemes into Bprior={P_S, P_L, P_Π, P_D}.
      • Sparse additive masks: NNSplitter (ICML'23) and Magnitude (TDSC'21) use static sparse masks, with nnz much less than n²; in Magnitude, nnz(S)≈0.01n².
      • Low-rank additive masks: LoRO (NeurIPS'25) uses dynamic low-rank masks per layer, with rank much less than n.
      • Column-wise multiplicative: TransLinkGuard (MM'24) uses static column permutations, with different permutations across adjacent layers; Soter (ATC'22) uses dynamic column scaling; TSQP (S&P'25) uses static scaling. ArrowCloak (Security'25) dynamically composes low-rank masks, permutations, and scaling.
    • Ad hoc attacks: Zhang et al. target additive mask schemes; ArrowMatch targets column permutation and column scaling schemes. The authors claim these attacks each target one class of obfuscation, not a unified primitive approach.
    • Baselines and benchmarks: Comparison targets are existing TSLP instances in Table 2 (including ArrowCloak, TSQP, LoRO) and an empirical black-box reference. Experimental models include BERT-Base, ViT-Base, Qwen2.5-0.5B, Qwen2.5-1.5B. The paper does not list the number of samples per benchmark in the read sections.

    The authors position this paper as: representing the above matrix transformations with the same set of primitives, using Oprior as the security boundary of the family, demonstrating shared vulnerabilities with Collapse, and then extending the boundary to Oext with new primitives, without claiming Oext is universally secure.

  3. How does the paper address this problem?

    Oprior unifies four types of primitives into (W+S+L)DΠ; Collapse exploits column-direction leakage in three stages, and Oext then disrupts row and column invariants.

    The authors first define composable obfuscation primitives, prove that any efficiency-preserving composition of Bprior can be written as Oprior, then construct Collapse based on column-direction leakage, and add two new multiplicative primitives to obtain Oext.

    Problem Setting and Primitives

    • Operator Partition: In a Transformer block, Oplinear is the linear layer with private weights (QKV, output projection, FFN up/down projections); Opquadra is the token product in self-attention that grows quadratically with sequence length; Opnon-poly is normalization, activation, and residual. TEE retains the latter, offloading the first two categories to REE.
    • Primitive Definition: An obfuscation primitive is an operator pair (O, R), We=O(W), and for any X, W, R_W(X·O_W(W))=XW. Additionally, the TEE-side cost C(O)+C(R) must be much less than C(XW), and resistance to extraction is characterized by an extraction game with observation budget T and labeled data budget B: the surrogate model's accuracy on Deval is at least the victim model's accuracy minus δ. For classification tasks, δ=0.05. The formal game is in Appendix D.
    • Four Base Primitives: Additive class O(W)=W+R, R(XWe)=XWe−XR. Sparse mask R=S, nnz≪n², recovery cost O(m·nnz); low-rank mask R=AB^T, rank r small, recovery is two thin matrix multiplications, cost O(mn). Multiplicative class under column convention O(W)=WT, R(XWe)=XWe T^{−1}. Column permutation T=Π, recovery is memory rearrangement; column scaling T=D is a nonsingular diagonal matrix, recovery is O(mn) scalar divisions. Dense Gaussian masks are correct but TEE-side cost is comparable to the original matrix multiplication, so they are excluded.
    • Composition Closure: Theorem 1 states that compatible primitives composed by first obfuscating and then recovering in reverse order are exactly correct, TEE costs add, and under the full-transcript simulation conditions in Appendix E, the composition is not easier to extract than any component. The efficiency-preserving family F(B) retains only compositions where the cumulative TEE-side cost is still much less than C(XW).

    Security Boundary Oprior

    • Canonical Form: Theorem 2 gives the security boundary of Bprior as Oprior(W; S, L, D, Π)=(W+S+L)DΠ. Any efficiency-preserving composition can be rewritten into this form via multiplicative closure of diagonal and permutation, multiplication passing through additive masks, and merging of same-type additive masks.
    • Table 2 Correspondence: Six schemes use only a single primitive; ArrowCloak uses low-rank, permutation, and scaling simultaneously; let D=D1, L=v1_n^T D2 D1^{−1}, its transformation equals (W+L)DΠ. Mode distinguishes static single-mask and cross-inference multi-mask. This abstraction covers weight obfuscation and recovery at the TEE–REE boundary, not other system mechanisms not listed in the table.

    Collapse

    • Input and Observations: For a single weight, the attacker sees T views We_t=(W+S+L_t)D_t Π_t. S is static, L, D, Π are dynamically refreshed. Additionally, there is Wpre from fingerprinting, and Dtask of size at most 1% of the original training set. After three stages, Msur is output. Stages 1–2 are performed independently per weight matrix; Stage 3 is performed once on the assembled model.
    • Stage 1, Relative Column Alignment: Use linear dependence detection (LDD) to determine whether column subsets of two views correspond to the same set of victim columns. For column blocks of equal size k, the numerical rank of the concatenated matrix C distinguishes full overlap N_full=k+2r from partial overlap N_part=k+s+2r. Since ρ≤2k, the distinguishable gap is s≤k−2r; the text gives an example with k=32, r=2 where s≤28 is distinguishable. The algorithm has three steps: seeding, disambiguation, and propagation, recovering the relative permutation Π_a Π_b^{−1}; the absolute Π remains unknown. Phase 3 dominates the cost, with LDD calls O(n²). A footnote states that for BERT-Base (n=m=768, r=2) with k=80, the probability that a single random block satisfies Pr[Ovl>2r]≈93.92%. At least K≥4 views with common column order are retained.
    • Stage 2, Low-Rank Mask Recovery: Take four aligned views, written as We_t=(W+S+L_t)D_t. Intersect the column spaces of two disjoint column blocks to obtain the 2r-dimensional subspace spanned by the low-rank masks of the two views; after taking an orthogonal basis via SVD, project onto the orthogonal complement to remove the masks, then solve for relative scales and mask coordinates column-wise to obtain an estimate of Ŵ+S in the anchor order. Sparse positions are left to Stage 3.
    • Stage 3, Absolute Alignment and Fine-Tuning: Use Wpre and Dtask to remove column scaling, unknown column order, and residual sparse errors, obtaining Msur. The authors' rationale is that once the column direction is obtained, it suffices to fix the direction and fine-tune column magnitudes.
    • Full Refresh Variant: Appendix F discusses when S also refreshes with views; Stage 1 still aligns permutations; Stage 2 uses only elements outside the estimated sparse support to estimate relative scales, then differences back to the original Stage 2; Stage 3 reuses the original process. The authors claim the attack still succeeds under this schedule.

    Oext

    • New Primitives: A sparse multiplicative primitive mixes columns of Mvic; a two-sided multiplicative primitive perturbs both rows and columns. Combined with existing primitives, these form Oext, used to disrupt the row and column invariants that Collapse relies on.
    • Security Claim: The authors explicitly state they do not claim Oext is universally secure; Oext is only evaluated against the existing Collapse pipeline, without adaptive rewriting against this defense.
  4. What experiments did the paper conduct?

    The authors compare Collapse's extraction of existing TSLP and Oext on four models, and claim Oext on average falls to the empirical black-box reference.

    Experimental setup

    • Models: BERT-Base, ViT-Base, Qwen2.5-0.5B, Qwen2.5-1.5B, four in total. The victim model is fine-tuned from public pretrained Mpre on private data, then deployed with a TEE–REE confusion view.
    • Defense instances: NNSplitter, Magnitude, LoRO, TransLinkGuard, Soter, TSQP, ArrowCloak from Table 2, and the proposed Oext. Static and dynamic modes follow that table.
    • Data and budget: Fine-tuning uses annotated task data obtained by querying Mvic, with scale typically no more than 1% of the original training set. LDD example parameters include k=32, r=2, and for BERT-Base k=80, n=m=768. The read main text does not give sample counts per dataset, number of repetitions, or specific learning rates.
    • Metrics: Task accuracy on Deval. For classification tasks, success condition is that the substitute model accuracy is not lower than the victim model by more than 5 percentage points (δ=0.05). The authors also use an empirical black-box reference as a comparison point for Oext.
    • Attack pipeline: The three stages of Collapse; Oext evaluation uses the same Collapse pipeline, without defense-specific adaptation.
    • Evaluation: The paper compares victim and substitute models by task accuracy. The read sections do not mention LLM judges or human agreement.

    Main results

    The abstract and introduction give qualitative main results; the per-model tables in the experimental section have column alignment that cannot be verified in this text conversion, so unverified numbers are not filled in.

    SettingAuthor-reported resultSource
    Collapse against Oprior and its instances (including ArrowCloak, TSQP, LoRO)Authors claim to extract high-fidelity substitute models with utility comparable to MvicAbstract, §1
    Oext against the same Collapse pipelineAuthors claim substitute model accuracy drops on average to the empirical black-box referenceAbstract, §1
    Full-component refresh We_t=(W+S_t+L_t)D_t Π_tAuthors claim the three-stage attack still succeedsAppendix F
    • Author interpretation: The composition of column permutation, column scaling, sparse masking, and low-rank masking still leaks column directions, so multiple top-conference TSLP schemes share this vulnerability.
    • Oext: The authors claim that after the new primitive disrupts row and column invariants, Collapse no longer obtains substitute models above the empirical black-box reference; this comparison is in the average sense.
    • Scope: The authors explicitly state that this conclusion covers only the evaluated Collapse pipeline and does not extrapolate to Oext being secure against arbitrary adaptive attacks.

    Algebraic and detection analysis

    • What was tested: LDD uses the numerical rank of the concatenated matrix to distinguish full overlap from partial overlap, thereby recovering the relative permutation.
    • Results: The detectable gap satisfies s≤k−2r; with k=32, r=2, s≤28 can be distinguished by ρ. For BERT-Base, r=2, k=80, the authors give Pr[Ovl>2r]≈93.92% for a single random block pair.
    • Author interpretation: Even small overlap is exposed by rank; the relative permutation can be recovered without knowing the absolute Π.

    Other ablations and analysis

    • The TEE cost of primitive composition adds component-wise; compositions exceeding the efficiency budget are excluded from F(B) (Theorem 1, Definition 1).
    • Stage 1 uses at least K≥4 aligned views; Stage 2 uses the subspace intersection of four of those views to strip low-rank masks (§5.1–§5.2).
    • The efficiency condition for sparse masks is nnz≪n²; the Magnitude instance writes nnz(S)≈0.01n² (Table 1, Table 2).
    • Low-rank recovery costs O(mn), column scaling recovery costs O(mn) divisions, and column permutation recovery is memcpy (Table 1).
    • Appendix F changes static S to per-view refresh, after which elements outside the differential support can reduce the problem to the original Stage 2.
    • Dense i.i.d. Gaussian masks are excluded by the authors because their TEE-side cost is equivalent to directly computing XW.
  5. What are some points that can be further explored?

    The authors state that Oext is evaluated only on the existing Collapse and does not claim general security against adaptive attacks.

    Limitations and Future Directions Noted by the Authors

    • No Claim of Universal Security: The authors state that Oext is only evaluated against the existing Collapse pipeline, without dedicated adaptive rewriting against this defense, so they do not claim Oext is universally secure (§1).
    • Full Refresh Schedule: Appendix F gives a three-stage strategy when all four components are refreshed, and claims the attack still succeeds under this schedule; this is an attack extension, not an unresolved problem claimed by the authors.
    • Side Channels Excluded: Hardware side channels and transient execution attacks are listed as out of scope (§2.2), and the authors do not present this as future work.
    • Confidential Computing GPUs Excluded: REEs supporting confidential computing are outside the system scope of this paper (§2.2).
    • The Limitations-style statements read in the paper are mainly the above Oext claim. Other "could further" sentences, if they appear only in experimental result discussions, are not counted as limitations.

    Experimental Coverage

    • Tested models are BERT-Base, ViT-Base, Qwen2.5-0.5B, Qwen2.5-1.5B, totaling 4 (abstract, §1).
    • Defense side covers the seven existing schemes in Table 2 and Oext; Mode includes static and dynamic.
    • Attack data budget is labeled task data not exceeding 1% of the original training set, plus public backbone Mpre and T exposed views (§2.2, Figure 2).
    • Success criterion uses δ=0.05 for classification tasks (§3.1 footnote); formal game in Appendix D, composition proof in Appendix E.
    • The paper does not report in the verifiable main text alignable numbers for per-model accuracy tables, query counts, repetition counts, and reviewer-human agreement.
  6. Summarize the main content of the paper

    Oprior is the security boundary of four-primitive compositions; Collapse exploits column-direction leakage to extract surrogate models; Oext is only evaluated against the same attack.

    This work uses algebraic primitives to unify several TEE-offloading obfuscations, gives a canonical boundary for the family, and then shows that this boundary does not stop a staged model extraction.

    • Problem: On-device LLMs need to offload linear layers to an untrusted REE when TEE compute is insufficient. Existing TSLP uses sparse masks, low-rank masks, column permutations, or column scaling for obfuscation; arguments are mostly "several obvious inversion failures," and attacks are also scheme-specific.
    • Method: An effective primitive must exactly recover XW, have negligible TEE-side cost, and resist extraction under budget T and no more than 1% task data. The efficiency-preserving compositions of the four primitives can all be written as Oprior=(W+S+L)DΠ. Collapse uses cross-view rank detection to align columns, uses subspace intersections of four views to remove low-rank masks, and then uses the public backbone and a small amount of labeled data to fine-tune column magnitudes and residual sparse errors. Oext adds a sparse multiplicative primitive that mixes columns and a two-sided multiplicative primitive that perturbs both rows and columns.
    • Results: The authors claim Collapse extracts high-fidelity surrogate models from Oprior instances such as ArrowCloak (Security'25), TSQP (S&P'25), and LoRO (NeurIPS'25). The classification success line is that the surrogate model is at most 5 percentage points lower than the victim model. The authors claim Oext reduces surrogate model accuracy on average to the empirical black-box reference. On BERT-Base, with k=80, r=2, the probability that a random block satisfies Ovl>2r is about 93.92%. Appendix F claims that when all four components are refreshed, the modified three-stage attack still succeeds.
    • Conclusion: The authors believe these top-conference schemes share column-direction leakage; Oext disrupts that invariant, but the authors only evaluate against non-adaptive Collapse and explicitly do not claim universal security.

Related papers

Show 3 more papers
Read originalarxiv.org