Evidence-Bound Gateway-Path Provenance for Third-Party LLM Inference
This paper proposes an evidence-bound LLM gateway architecture that utilizes an attested execution plane to cryptographically verify and sign all routing, fallback, and streaming decisions, thereby enabling clients to independently detect and prevent policy violations, route substitution, and stream manipulation by third-party gateway operators.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Problem: The "Black Box" Middleman
Imagine you want to order a custom cake from a bakery, but you don't want to deal with the baker directly. So, you hire a delivery service (the Gateway) to handle the order. You tell the delivery service: "Please get a chocolate cake from Bakery A."
In the current world of AI, this delivery service is a "Third-Party LLM Gateway." It sits between you and the big AI companies (like OpenAI, Anthropic, etc.).
The Trust Issue:
The problem is that once your order leaves your hands, the delivery service has total control. They could:
- Swap the bakery and order from a cheaper, lower-quality one without telling you.
- Change your request to "Vanilla cake" before sending it to the bakery.
- Deliver a store-bought cake but claim it was custom-made.
- Change the bill later to say you ordered a giant tiered cake when you only ordered a small one.
Because the delivery service writes the receipt and controls the truck, you have no way to prove they didn't cheat. You just have to trust them.
The Solution: The "Sealed, Witnessed Vault"
This paper proposes a new way to run these delivery services using a Secure Vault (called an Attested Gateway Runtime or AGR) and a Notary system.
Here is how their new system works, step-by-step:
1. The Sealed Vault (The AGR)
Instead of the delivery service handling your order in an open office, they put the order processing inside a high-tech, unbreakable glass vault (a Trusted Execution Environment, or TEE).
- The Rule: Only this specific vault is allowed to open your sealed order, read what you wrote, decide which bakery to use, and talk to the bakery.
- The Catch: The delivery service manager (the "Business Plane") can see the truck moving and the packages being loaded, but they cannot see inside the vault. They cannot change the order or peek at the cake while it's being made.
2. The Notary Check (Remote Attestation)
Before you send your order, you don't just trust the vault exists. You ask for a Notary's seal (Remote Attestation).
- The vault shows you a digital ID card that proves: "I am the correct, un-tampered vault, and I am running the exact software version you approved."
- If the delivery service tries to swap the vault for a fake one, the Notary's seal won't match, and you won't send your order.
3. The "Evidence Chain" (The Receipt)
Once the vault processes your request and gets the cake (the AI response), it doesn't just hand it over. It creates a tamper-proof digital receipt (Inference Evidence Chain).
- This receipt is signed by the vault itself.
- It proves: "I am the vault. I received your specific request. I was allowed to go to Bakery A. I got the response from Bakery A. I delivered this exact text to you."
- If the delivery service tries to swap the cake or change the receipt, the signature breaks, and the receipt becomes invalid. You know immediately that something is wrong.
What This System Actually Does (and Doesn't Do)
What it fixes:
- No more hidden swaps: You know exactly which AI model was used.
- No more secret changes: The delivery service can't secretly change your prompt or the answer.
- No more fake bills: The record of what happened is signed by the vault, not the delivery manager.
- Fail-Safe: If the vault is tampered with or the proof is missing, the system stops working (fail-closed) rather than giving you a fake answer.
What it does NOT fix (The Paper's Limits):
- It doesn't stop the Baker: If the bakery (the AI provider) itself decides to give you a bad cake or a dangerous recipe, the vault can't stop that. The vault only proves the delivery path was honest, not that the baker is honest.
- It doesn't hide the timing: The delivery service can still see how long the truck was on the road or how big the package is, even if they can't see what's inside.
- It doesn't stop DoS attacks: If the delivery service decides to simply refuse to drive your truck, they can still do that.
The "Test Drive" Results
The authors built a working prototype (a "Rust prototype") to test this idea.
- They tested it with a "mock" (fake) AI provider and a real one (GPT).
- Speed: It was very fast. The extra security steps (checking the vault and signing the receipt) only added a tiny amount of time (milliseconds), which is barely noticeable.
- Security: When they tried to "hack" the system by swapping models, hiding fallbacks, or changing the receipt, the system caught every single attempt and rejected it.
The Bottom Line
This paper introduces a way to make third-party AI gateways honest by design. Instead of asking you to trust the company running the gateway, it forces the gateway to prove, with cryptographic math, that it followed the rules exactly.
Think of it like a sealed, notarized contract for every single AI interaction. You don't have to trust the middleman; you just have to trust the math and the hardware that signs the receipt.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.