AEX: Non-Intrusive Multi-Hop Attestation and Provenance for LLM APIs

This paper proposes AEX, a non-intrusive attestation extension for LLM APIs that uses signed objects to cryptographically bind client requests to verified responses or streaming outputs, thereby providing direct evidence of output provenance and preventing intermediary manipulation without altering existing API semantics.

Yongjie Guan

Published 2026-03-17
📖 5 min read🧠 Deep dive

Imagine you order a custom cake from a famous bakery through a delivery app. You want to be 100% sure that:

  1. The cake you get is actually the one you ordered, not a random cake from a different baker.
  2. No one tampered with it while it was in transit.
  3. If the delivery driver added a little extra frosting or swapped the box, you know exactly who did it and that it was an authorized change, not a theft.

Currently, with Large Language Models (LLMs) like the ones powering chatbots, we are in a world where you send a request (the order), but you have no real proof that the answer you get (the cake) actually came from the specific model you asked for, or that it wasn't altered by a middleman along the way.

AEX is a new "digital seal" system designed to fix this. Here is how it works, broken down into simple concepts:

1. The Problem: The "Shadow Bakery"

Recently, researchers found that many unofficial websites claim to sell cakes from famous bakeries, but they are actually baking their own (often worse) versions. Even if the cake looks similar, it might taste different.

  • Current solutions are like trying to guess the baker by smelling the cake (fingerprinting) or checking if the oven is the right temperature (hardware checks). These are helpful, but they are indirect and often fail.
  • The Gap: We need a way to say, "This specific answer came from this specific request, signed by a trusted authority, and here is the history of any changes made along the way."

2. The Solution: The "Digital Seal" (AEX)

AEX acts like a tamper-evident, signed receipt that gets attached to the very top of the answer. It doesn't change the cake (the answer); it just adds a special, unbreakable sticker.

How it works in three steps:

Step A: The "Order Receipt" (Request Binding)
When you send your prompt, AEX creates a unique digital fingerprint of your request.

  • The Analogy: Imagine you write your order on a piece of paper. AEX takes a photo of that paper and seals it in a plastic bag.
  • The Twist: Sometimes, the bakery (the API) needs to add a "trace ID" or fix a typo before baking. AEX allows the bakery to say, "We added a trace ID, but we promise the core order is the same." It creates a chain of receipts showing exactly what changed and who authorized it.

Step B: The "Delivery Chain" (Streaming Integrity)
LLMs often answer word-by-word (streaming), like a conveyor belt dropping out cookies one by one.

  • The Analogy: If someone sneaks in and swaps a chocolate chip cookie for a raisin one in the middle of the line, the whole batch is ruined.
  • The Fix: AEX links every single "cookie" (word chunk) to the one before it using a cryptographic chain. If a cookie is missing, swapped, or added, the chain breaks, and the seal on the final box will show "Tampered."

Step C: The "Repackaging Receipt" (Trusted Rewriting)
Sometimes, a middleman (like a company firewall) needs to edit the answer to remove sensitive info or change the format (e.g., turning a long stream of text into a single summary).

  • The Analogy: Imagine the bakery sends the cake in a box, but a middleman repacks it into a gift basket.
  • The Fix: AEX doesn't treat this as a crime. Instead, the middleman signs a new receipt saying, "I took the original sealed box, repacked it, and here is the new seal." This proves the final gift basket came from the original cake, even if the packaging changed.

3. What AEX Does (and Doesn't) Do

✅ What it DOES:

  • Proves Origin: It proves a trusted issuer signed the link between your question and their answer.
  • Proves Integrity: It proves no one sneaked in to change the words while they were traveling.
  • Proves History: It shows a clear, signed history of any authorized changes (like a middleman editing the text).
  • Non-Intrusive: It works with existing systems. You don't need to rebuild your entire app; you just add the "sticker" to the response.

❌ What it DOESN'T do:

  • It doesn't prove the cake tastes good. (It doesn't check if the answer is factually true or smart).
  • It doesn't prove the baker didn't use a secret ingredient. (It doesn't check the internal code or weights of the AI model).
  • It doesn't stop a malicious baker. If the bakery itself is lying and signs a fake receipt, AEX can't stop them. You still have to trust the bakery.

The Bottom Line

AEX is like a notary public for AI conversations. It doesn't guarantee the AI is smart or honest about the world, but it guarantees that this specific conversation happened exactly as recorded, that no one tampered with the text in transit, and that any changes made were done by people you explicitly trust.

It turns the "black box" of AI APIs into a transparent, auditable transaction where you can finally say, "I know exactly where this answer came from and that it hasn't been messed with."

Get papers like this in your inbox

Personalized daily or weekly digests matching your interests. Gists or technical summaries, in your language.

Try Digest →