TEE AI Attestation Flaws Let Providers Swap Models

Diagram of TEE AI attestation stages where evidence and AI execution claims can diverge

TEE AI attestation is supposed to prove which model answered a request. New research shows it can pass verification even when a dishonest provider serves something else. An audit of six open-source systems, plus Google’s Double-Blind Evaluation tooling, found nine repeating weakness types and 18 working proof-of-concept exploits.

What TEE AI attestation is meant to show

People using a hosted LLM get an answer but can’t see the model or software that produced it. For work like clinical triage, reviewing sensitive code or regulatory audits, a provider’s say-so can fall short. Serving stacks can also pull in vulnerable or malicious files: PyTorch model files use Python pickle, and loading one can execute arbitrary code.

Google Double-Blind Evaluation, Laminator, A3S/Power, Tinfoil and NEAR AI Cloud all lean on trusted execution environments for proof. The TEE records what software is running in a sealed space and issues a quote signed by the chip, which an outside verifier can examine. Some systems also sign a receipt per request. A user could then, in theory, confirm that a given model and configuration produced a reply inside protected hardware.

TEE AI attestation image 1
Image: ddkang.substack.com

The soundness gap

The audit, a workshop paper for HAIPS@COLM 2026, found that the hardware signs whatever the enclave supplies. Nothing forces every property that shapes the output into that evidence or makes anyone check it. A quote can be real while the overall claim is untrue, a mismatch the authors call a soundness gap.

They traced one inference request through nine stages linked by eight binding points, meaning spots where a value such as the model or its settings moves across a trust line, gets folded into signed evidence or is compared with policy. Chip-level signing is just one of those spots. Software still picks the model that loads, the values that go in the quote, whether GPU evidence is authenticated and what shows up in the receipt.

Each implementation checked had at least one property affecting the output that was either absent from the evidence or never enforced by the verifier. The gaps sort into nine classes, which points to design habits more than one-off coding slips. This is a pattern in TEE AI attestation as built today, not a single bug.

TEE AI attestation image 2
Image: ddkang.substack.com

Three attacks that still verify

Attest one model, serve another. In the commit reviewed, Laminator computes a hash of the model file to set its identity, then reads that file from the untrusted host using torch.load. That loader can run code hidden in the file, so a provider can have the enclave use other weights while the attestation still names the advertised model. A customer might think they’re hearing from an audited, safety-tuned model. Laminator patched the loading path after disclosure.

Change the sampling without changing the receipt. EphemeralML receipts log the model, the input and the reply, with no slot for decoding settings like temperature. The researchers produced replies at two temperatures, and both receipts passed under one policy. A provider could pick the outputs it likes best and nothing would break.

Two valid attestations, no shared execution. A3S/Power combines a CPU enclave with a GPU built for confidential computing, and each produces its own evidence. The CPU’s evidence never references the GPU’s, so old GPU evidence can be paired with another CPU attestation and still get through. The verified GPU might not be the one that served the request.

None of the three required breaking the TEE hardware or forging a signature.

TEE AI attestation image 3
Image: ddkang.substack.com

A later finding in PySyft

After the workshop, the team turned the same map on OpenMined’s PySyft, which sits under Google DeepMind’s Double-Blind Evaluation framework. In that setup a benchmark owner and a model owner can test a model in a TEE without exposing prompts or weights to one another.

A receipt carries the evaluation results, a signature, and a public key plus a TEE report. The verifier confirmed the signature and that the report agreed with the key, yet it never authenticated the report or linked the key to the expected enclave. The researchers took a published receipt, rewrote its unsafe-completion rate from 60% to 0%, signed it with a newly made key and added a matching report. It passed. OpenMined has since fixed this.

What sound attestation needs

The authors’ core rule: any property a user relies on needs authenticated evidence behind it, and the verifier must enforce it. Their recommendations:

  • Tie model identity and other changeable state to evidence when it is used.
  • Fail verification if any needed field or check is absent.
  • Verify outside evidence before relying on it.
  • Keep measured code from executing or misparsing attacker-controlled input.
  • Test freshness on every independent layer.
  • Have the verifier report which properties it actually checked, rather than one blanket “verified”.

Maintainers were told about every finding before the paper came out. Anyone building or buying confidential AI inference can take the checklist straight into a review: ask what the receipt binds, and what it leaves out.

Source: ddkang.substack.com

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.