← Lab /AI/ML

Attested TEE router blocks plaintext attacks on LLM API routers

AEGIS prevents a router from reading, modifying, or exfiltrating LLM API interactions

AI/ML arXiv 15 Jun 2026 Defense Prototype evidence Threat model

Published as “The Proxy Knows Too Much: Sealing LLM API Routers with Attested TEEs”

Why it matters

Deployers can protect agent-tool integrity and secret confidentiality against malicious router operators with only a few milliseconds of added latency.

Summary

AEGIS blocks all four malicious-router attack classes (tool-call rewrite, typosquat, trigger-gated rewrite, and secret exfiltration) that succeed on a plaintext router, while adding only about six milliseconds of latency per request. The evidence comes from an empirical evaluation showing zero successful attacks on AEGIS, 100 % request success across three real providers, and measured overheads of 5-7 ms for small bodies.

What they found 1

  1. Relay adds roughly six milliseconds of latency per request

    “The local relay overhead is about six milliseconds per request.”

Caveats 6

  • AEGIS protects body contents only up to the explicit leakage profile; size and timing side-channels can allow reconstruction of streamed text.
  • The enclave does not pin the provider’s specific key, so a compromised certificate authority could issue a fake certificate that the enclave accepts.
  • When the upstream is an ordinary first-party provider that speaks plaintext, some party between the client and that provider must terminate the client’s session and hold the body in the clear, so a trust anchor on that relay code is unavoidable.
  • AEGIS protects body contents only up to the explicit leakage profile of §III-C, the sizes, timing, cadence, account, provider, and usage the host still observes.
  • An observer who records only ciphertext record sizes and timing can recover the per-token length sequence of a streamed response and reconstruct text from it [25].
  • The enclave does not pin the provider’s specific key; a compromised authority could issue a fake certificate that the enclave accepts.

What’s new here 4

  • Provides a faithful passthrough inside an attested enclave that terminates TLS before releasing plaintext, unlike prior gateways that attest after receipt.
  • Keeps the trusted base minimal (≈850 lines) by confining only the data plane to the enclave.
  • Enables provider-transparent operation without requiring provider changes or signatures.
  • Introduces an auditability pipeline (ARPA) with reproducible builds and transparency-log anchoring for the enclave image.

Threat model stated by the source

Adversarymalicious router operator
Capabilitycontrols the untrusted host, can read/modify plaintext, launch arbitrary code on the host
Assumesproviders are honest; enclave hardware root of trust and attestation are sound; physical and microarchitectural side-channels are out of scope