Skip to content

Research note · 21 October 2026

Proxying is enough.
This is the witness we run on it.

In Proxying Is Enough (AFT 2025), Zhongtang Luo, Yanxue Jia, Yaobin Shen and Aniket Kate proved that a verifier can sit on the path of a TLS session as a plain proxy and still be sure what the server sent. Histor runs that verifier for AI agents, on TLSNotary's proxy mode. This note puts the paper's protocol next to what our witness sees, mints a receipt from a live API, shows the three ways it fails, and ends with the one question we want the authors to answer.

Shayne Beavan, Histor. Every output below was produced while writing this; the files are linked so each one can be reproduced.

01 · The problem

An agent's log is the operator's word

An AI agent reads an exchange rate, a weather observation, an account balance or an order status, then acts on it. The only record of what the API said is a log written by the agent's operator. Sealing that log to a public transparency log fixes when it was written. It cannot fix what was written: an operator can write a false line at the moment of the call and seal it honestly.

Histor closes that moment. An independent witness takes part in the session itself and signs what crossed the wire. Nothing is installed on the server, and the agent's credentials never leave the agent.

02 · The paper

What it proves, in the terms we use it

The model.
The server is honest. The client (our agent) and the verifier (our witness) may each be malicious, and the verifier reliably connects to the server: it knows it is talking to that server, and nobody else can tamper with that path (Section 2). The verifier forwards every byte and holds no share of any key. After the session the client opens the response to the verifier, or proves a predicate over it in zero knowledge (Figure 7).
Key commitment decides it.
If the AEAD is key-committing, the plain proxy securely realises the oracle functionality (Theorem 5). If it is not, a client who knows the session key can arrange a ciphertext that decrypts two ways, and the proxy cannot tell which (Theorem 4). AES-GCM and ChaCha20-Poly1305 are not key-committing (Lemma 3).
HTTPS saves it.
Every HTTP response starts with a status line and a Date header: a 54-byte prefix whose values the client barely controls, 63 status codes times the seconds in the acceptance window (Definition 6, Corollary 7). Against that prefix the forgery advantage is at most 2^-221 q^2 for either cipher at a one-hour window (Theorems 8 and 9), so the plain proxy is secure over HTTPS (Theorem 10).
Without the padding.
A protocol with no such prefix needs the response fixed before the handshake and an AEAD with context unforgeability. ChaCha20-Poly1305 has it, with advantage q/2^128 (Theorem 13). AES-GCM is not: an attack succeeds with probability about q/2^33 (Theorem 12).
The cost it removes.
Dropping the key-related assurance of the three-party designs saves 60 to 90 percent of running time on the figures those papers report (Section 8). The verifier does no heavy work at all.

03 · The witness

What our witness does with it

Histor runs TLSNotary v0.1.0-alpha.15 in its proxy-TLS mode (PR #1122, by th4s). The agent is the prover. The witness is the verifier, a separate process with its own secp256k1 key. One session goes like this.

Agentproverholds the keysHistor witnessverifier · holds no keyrelays ciphertextServerunchangedapi.frankfurter.devTLS 1.2TLS 1.21 · handshake and records relayed and recorded2 · ZK proof: master secret → session keys→ Finished checks, GCM tags, commitments3 · attestation, signed (secp256k1)4 · receipt = attestation + cert chain + openingsverified offline, with the witness key
  1. 01The agent asks the witness for a session. The witness resolves the server name itself, refuses any address that is not public, dials port 443, and relays the TLS 1.2 records in both directions, recording every byte. It holds no key.
  2. 02The agent runs an ordinary TLS handshake with the server through the witness, sends its HTTP/1.1 request and reads the response. Credentials ride in headers the agent will never disclose.
  3. 03After the session the agent proves, in zero knowledge to the witness, that it knows a master secret which, with the client and server randoms the witness relayed, derives the keys that decrypt the two Finished records to exactly the verify_data the TLS 1.2 PRF produces for this handshake; and that under those keys the application records the witness relayed carry valid AES-GCM tags and open to the hash commitments the agent names. The witness learns the two verify_data values and nothing else about the keys or the plaintext (tlsn, crates/tlsn/src/proxy/verifier.rs).
  4. 04The witness signs an attestation: the server's ephemeral key from the handshake it saw, the session time from its own clock, the transcript lengths and the commitments.
  5. 05The agent assembles the receipt: the attestation, the server's certificate chain and handshake signature, and openings for the byte ranges it chooses to show. The receipt's id is the SHA-256 of that presentation.
  6. 06Anyone holding the witness's public key checks the receipt offline: the witness signature, the chain to a Mozilla root for the disclosed name, every opening against its commitment. No call to Histor, no call to the server.

Where this sits in the paper

It is Figure 7's private mode with one change: the agent proves from the master secret, not from the server write key. The two Finished checks pin that secret to the handshake the witness relayed (two 96-bit values), and the tag checks pin the plaintext to the derived keys. As far as we can see, that is why the plain-proxy impossibility in Theorem 4 does not reach this construction: integrity rests on the handshake, not on key commitment of the AEAD. Say so if that reading is wrong.

Disclosure is to the receipt's verifier, offline, by JSON field path. Before committing, the agent finds every credential value in the plaintext and leaves those bytes out of every disclosure.

04 · The receipt

A receipt, minted while writing this

21 October 2026, 08:33:52 UTC. Witness on loopback in proxy mode, key 02ef3dd7…6740. Target: api.frankfurter.dev, the ECB reference-rate feed. The whole response disclosed; one request header hidden.

receipt_id   b8769503aaea0ce5258ca6a6ae44679ac724e6e391d21a0c72894e6acff29425
witness_key  02ef3dd72011bac6ce959e600dd30c900b375f5cf3a5a8e236e971fc5e9c176740
server       api.frankfurter.dev
time_unix    1792571632
tls          V1_2
--- sent ---
GET /v1/latest?from=USD&to=EUR HTTP/1.1
host: api.frankfurter.dev
accept: application/json
accept-encoding: identity
connection: close
user-agent: ██████████

--- received ---
HTTP/1.1 200 OK
Date: Wed, 21 Oct 2026 08:33:52 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 71
Connection: close
cache-control: public, max-age=86400
etag: "deba72f99ee2133175f587fde5f947ac"
vary: Origin
x-robots-tag: noindex
deprecation: @1779103800
link: <https://api.frankfurter.dev/v2/rates>; rel="successor-version"
Age: 219
Accept-Ranges: bytes
cf-cache-status: HIT
Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=…"}]}
Server: cloudflare
CF-RAY: a4deeb821a30f030-DFW

{"amount":1.0,"base":"USD","date":"2026-10-20","rates":{"EUR":0.89166}}

Output of verify_upstream.rs: 100 lines against upstream tlsn v0.1.0-alpha.15 and nothing else. The first 54 bytes the server sent are the paper's variable padding, in the wild. The Report-To header is shortened here and whole in the file.

Cost of the call: 1,237 ms for the whole fetch process. Agent to witness 0.72 MB, witness to agent 1.71 MB. The witness logged attested for 127.0.0.1:64926: proxy, 166 bytes sent, 884 bytes received.

Three ways it fails

Changed 0.89166 to 0.99166 inside the presentation bytes, keeping the length.

presentation error: transcript error caused by: transcript proof error: hash error caused by: hash opening does not match any commitment

Trusted a different witness key.

signed by witness 02ef3dd7…6740, which is not the key you trust

Expected api.weather.gov.

The receipt names api.frankfurter.dev. A verifier that expected another server stops here; the name comes from the certificate chain, not from the agent.

Check it yourself

The receipt is a standard TLSNotary presentation. You need upstream tlsn at the same tag, the witness key above, and 100 lines of Rust that ask it to verify (the Mozilla roots are an opt-in feature of tlsn, hence the flag).

git clone --depth 1 --branch v0.1.0-alpha.15 https://github.com/tlsnotary/tlsn.git
curl -sO https://histor.dev/proxying-is-enough/verify_upstream.rs
curl -sO https://histor.dev/proxying-is-enough/receipt-frankfurter.json
mkdir -p tlsn/crates/examples/examples && mv verify_upstream.rs tlsn/crates/examples/examples/
cd tlsn && cargo run --release -p tlsn-examples --example verify_upstream \
  --features tlsn/mozilla-certs -- ../receipt-frankfurter.json 02ef3dd72011bac6ce959e600dd30c900b375f5cf3a5a8e236e971fc5e9c176740

05 · Numbers

What proxy mode costs here

WhereModeTimeAgent to witnessWitness to agent
This note, loopback, api.frankfurter.dev, one runproxy1,237 ms0.72 MB1.71 MB
Histor build report, 6 Oct 2026, loopback, n = 8, medianproxy1,072 ms0.72 MB1.71 MB
SameMPC-TLS1,685 ms62.05 MB4.08 MB
Same, 50 ms RTT injected, n = 3, medianproxy2,256 ms0.72 MB1.71 MB
SameMPC-TLS4,573 ms62.05 MB4.07 MB
TLSNotary benchmarks, 10 May 2026, 1 KB / 2 KB, native, cable · 5G · fiberproxy1.6 · 1.6 · 1.0 s
SameMPC-TLS14.5 · 10.4 · 3.6 s

The loopback rows are the same binary, same call, alternating runs; the injected delay is a user-space proxy, not a real path, and a remote witness has not been measured. Both modes still run the zero-knowledge path over the records. The 60 to 90 percent in the paper is what goes away when the proof goes too, which brings us to the question.

06 · Limits

What a receipt proves, and what it does not

It proves

  • A server holding a certificate that chains to a Mozilla root for the disclosed name sent the disclosed bytes in reply to the disclosed request.
  • The holder of the witness key signed a commitment to that session and recorded its time.
  • The bytes shown have not changed since. One edited character fails, as above.

It does not prove

  • That the server told the truth. The receipt shows what api.frankfurter.dev said, not the rate.
  • Independence. One witness, ours, on loopback for this note. In production the witness is a separate operator, and a receipt worth money needs more than one.
  • Coverage. The agent can also reach the server without the witness; the paper calls this the side-channel connection (Section 10). A receipt covers the session it names and nothing around it.
  • Anything about a server the operator controls. That receipt is still the operator's word, now with fixed bytes and a fixed time.
  • A clean path from witness to server. An agent that can take over that path can let the real handshake through, then feed the witness records it encrypted itself. The receipt would name the real server and carry bytes the agent chose. The paper assumes this path and describes the attack (Section 10). TLSNotary's MPC-TLS mode does not need the assumption.

Engine limits today: TLS 1.2 only, HTTP/1.1, no compressed or chunked bodies in our tooling, pre-release software. In proxy mode the witness sees the server name, its address, record sizes and timing, and never the plaintext or the credentials. Histor's witness runs in proxy mode.

07 · The question

Where we want to drop the proof

For public data (reference rates, weather, public filings) the request carries no credential and the response is public. Section 10 of the paper says the client can then hand the verifier the key, the nonce and the data, and skip the proof. TLSNotary's full-reveal fast path hands the verifier the server write key for the same reason. We want to take it. A public-data receipt would then cost a relay and one signature.

Taking it removes the handshake pin described above for the response, so integrity rests on Theorem 8 alone. Our arithmetic, with the paper's own values: λ = 448 bits for the status line and Date prefix, v = 96, and |S| = 63 × 600 for the 600-second freshness window our receivers already enforce. That gives an advantage of about 2^-226 q^2 for AES-GCM.

Two questions for the authors. Is that the right reading of Theorem 8 for a JSON API whose responses begin HTTP/1.1 200 OK and Date:, as the one above does? And which real servers break Corollary 7 in your experience: a Server header before Date, a chunked or gzipped body, HTTP/2? If the bound holds, the witness checks the prefix and the window before it signs, and the mode ships.

Answers, corrections and anything that does not reproduce on your machine: founder@verdict.systems.

Sources

  1. Luo, Jia, Shen and Kate. Proxying Is Enough: Security of Proxying in TLS Oracles and AEAD Context Unforgeability. AFT 2025, LIPIcs 354, 4:1 to 4:24. https://doi.org/10.4230/LIPIcs.AFT.2025.4
  2. Full version, IACR ePrint 2024/733. https://ia.cr/2024/733
  3. TLSNotary, Introducing Proxy Mode, 22 April 2026. https://tlsnotary.org/blog/2026/04/22/proxy-mode
  4. TLSNotary, Proxy mode benchmarks, 10 May 2026. https://tlsnotary.org/blog/2026/05/10/blog-proxy-mode
  5. TLSNotary v0.1.0-alpha.15, 21 May 2026, and the proxy-TLS commitment protocol, PR #1122. https://github.com/tlsnotary/tlsn/releases/tag/v0.1.0-alpha.15
  6. Reclaim Protocol, Proxying is Enough, on running the paper's plain-proxy model in production. https://blog.reclaimprotocol.org/posts/proxying-is-enough
  7. Histor's own measurements: the 6 October 2026 build report rows above, same binary, witness on loopback. The files for this note are listed in section 04.