Skip to main content
Menu
Proof / Verification guide
Proof

Verification guide

Check Panward's gateway and a receipt yourself, step by step, and see exactly what each check does and does not establish.

30 minute readUpdated 13 November 2026curl · Python · TypeScript · shell

Before you start#

This guide is for security engineers, auditors and anyone who wants to check Panward's claims rather than read them. At the end you hold a result you established yourself, in three parts:

  1. The host you call runs the published, measured gateway software in a genuine enclave.
  2. A given receipt was signed by that gateway and matches your exact bytes.
  3. What the gateway states it verified about the model environment.

You need a machine you control, warden (built from the gateway repository, see Get warden), and curl, openssl, sha256sum and jq. Checking the gateway needs no Panward account; checking your own receipts needs an API key with receipts.read. The formats are panward.attestation/1 and panward.receipt/1.

Who is trusted for what#

PartyTrusted forHow the trust is limited
Hardware vendorsEnclave isolation and genuine quotesQuotes are checked cryptographically to the vendors' roots. Policy enforces minimum firmware levels.
Whoever physically holds enclave hardware: Panward's cloud and the upstream enclave operators' data centresNot attacking the memory busAttestation cannot exclude this, and every claim says so. Operators with weak custody are rated lower.
Panward's gateway codeHandling plaintext only in memory, checking upstream evidence honestly and signing truthful receiptsMeasured: every attestation carries the measurement of the image that answers, and every receipt names its release. The source and the release list are not published yet; until they are, a measurement cannot be checked against a published one.
Panward the company: staff and control planeNothing about contentTLS ends in the enclave and inference content is never stored. Configuration changes are in the bundle hash on each receipt.
Upstream enclave operators, Sealed tierRunning the model in an enclaveChecked per response by Panward's gateway under Panward's policy. The level is recorded in the receipt.
Upstream providers, Routed tierEverythingNo evidence exists. The receipt says so.

You cannot see the upstream's evidence, because it names the parties that provide capacity. So you check the gateway and its signed statement, and rely on the attested, open-source gateway having checked the upstream. This is weaker than checking every hop yourself and stronger than an unattested reseller. Auditors can go one level deeper under an agreement (What the gateway checks upstream).

What attestation proves#

An attestation is a statement signed by the hardware (a quote) of what software booted in an enclave, bound to data the software chose: here, a statement that holds your nonce and the digest of the gateway's keys. You check it against the hardware vendor's root and compare its measurements with the published ones.

A receipt then binds the exact request and response bytes to that attested gateway and states what the gateway verified about the model environment. The level reached is per response; Receipts and verification has the table of levels.

Checking a receipt shows

  • The receipt was signed by Panward's gateway, running software whose measurements are on the published release list, in an enclave whose attestation Warden checked (steps 1 to 3).
  • When you supply them, the request and response bytes you hold are the ones the gateway received and wrote (step 4).
  • What the gateway states it verified about the upstream: the level, the signer scope and the evidence it relied on, named by content hash. This part is the gateway's statement. Warden reports it and does not check it against the upstream.

It does not show

  • That the answer is correct. Models still make mistakes.
  • What your own application does with the response afterwards.
  • It does not establish which instance served the request, whether the GPU was in a protected state, or where the model's weights came from.
  • Protection against someone with physical access to the hardware. Attestation protects against software and administrators. It cannot rule out someone with physical access to the hardware.
  • Anything about confidentiality at the upstream for a Routed request: the upstream provider can read the prompt.
Attestation protects against software and administrators. It cannot rule out someone with physical access to the hardware.

Verify the gateway#

Each step below says what to run, what a pass means and what it does not show. warden attest does all of them in one command; the manual commands are there so you can check Warden itself.

Fetch an attestation with your own nonce

Choose a nonce: 32 random bytes as 64 hexadecimal characters
$ openssl rand -hex 32
Fetch an attestation document bound to your nonce (no key)
curl "https://api.eu.panward.ai/v1/attestation?nonce=5f3c9a1e7b2d4c6f8a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f" \
  -o attestation.json

The document describes the one instance that answered. Call again to see other instances: they have different keys and the same measurements. Until you check it, the document is unverified data.

Check the quote

The quote must chain to the hardware vendor's root with current collateral, its firmware status must be acceptable, the collateral must meet the minimum evaluation number, and debug mode must be off. This is Warden's step 1. It does not show which software runs; the next checks do.

Check that the quote binds your nonce and the gateway's keys

The quote's report_data must equal SHA-256(JCS(report_data_statement)) followed by 32 zero bytes, and the statement's nonce must be yours. Its keyset_digest must equal sha256: and the hex SHA-256(JCS(keyset)). Your nonce makes the document fresh; the digest ties the receipt-signing keys and the TLS keys to the enclave. Keys are generated inside the enclave at boot, so pin measurements, never keys.

Recompute the keyset digest and compare it with the statement's
$ jq -r .report_data_statement.nonce attestation.json
$ jq -r .report_data_statement.keyset_digest attestation.json
$ printf 'sha256:%s\n' "$(jq -jcS .keyset attestation.json | sha256sum | cut -d' ' -f1)"

The keyset holds only ASCII strings and integers, for which jq -jcS prints the canonical form (RFC 8785). The last two lines must print the same value.

Check the measurements against the release list

The document's measurements must equal a row of the published release list for its release.version. A measurement that is not listed is a failure, not a warning. Releases are announced at least 7 days before they serve traffic, and old and new releases are both valid during a rollout. The release list (GET /public/releases) is not served yet; until it is, give Warden a release file with --releases. warden releases shows whether each release statement is in the transparency log. The log makes a release public and hard to hide; it does not make the release good. Reading the source is for that.

Check the runtime statement

runtime (config_bundle, verification_policy, region, started_at) is not measured by the hardware, because it changes without a new image. It is signed by a key of keyset.receipt_keys (runtime_signature over JCS(runtime)), so you can see which configuration and verification policy were live. Look the policy hash up among the published versions and read its summary. The configuration bundle is not public; its hash is.

The published verification policy versions (hash and summary)
curl https://panward.ai/api/public/verification-policies

Check the TLS binding

The SHA-256 of your connection's server key must be in keyset.tls_keys for the host name. A pass means your TLS session ends inside the attested enclave, not at a content delivery network, a load balancer or an impostor. API traffic is not proxied by a content delivery network. Warden's step 6 makes this comparison on the connection it opens.

All of the above with one command

All of the gateway checks in one command
$ warden attest api.eu.panward.ai --releases releases.json

Repeat it for each regional host you use (Regions and residency).

Attestation protects against software and administrators. It cannot rule out someone with physical access to the hardware.

Try it on the sample receipt#

Panward will publish one genuine Sealed receipt as an example, with the exact request and response bytes it was made from and the release file that lists its gateway's measurements. Once published it is permanent: receipt retention does not apply to it. Fetch it without a key, write each part to its own file and run Warden; every check runs on your machine, and the archived attestation the receipt names is fetched by its hash. Until the sample is published, the address answers 404 with the error type not_found: the curl -f below then stops with that error and writes no sample.json, and the verify page shows no example.

Panward's public sample receipt with its bytes and release file (no key)
curl -fsS https://panward.ai/api/public/receipts/sample -o sample.json
Write the receipt, the exact bodies and the release file to their own files
$ jq '.receipt' sample.json > receipt.json
$ jq -r '.request_body' sample.json | base64 -d > request.json
$ jq -r '.response_body' sample.json | base64 -d > response.bin
$ jq -r '.release_file // empty' sample.json | base64 -d > releases.json
Verify the sample: steps 1 to 4 pass
$ warden verify receipt.json --request request.json --response response.bin \
    --attestation archived --releases releases.json

The result is the one your own receipts give: steps 1 to 4 pass, step 5 is what the gateway states it verified. Change one byte of response.bin and step 4 fails. The verify page runs the same example in your browser under "Try an example".

Verify a receipt against your bytes#

Make a request and keep the bytes

The receipt's hashes cover the exact bytes sent and written: for a stream, every byte of the event stream including the terminator; for an upload, the exact multipart body. Anything that re-encodes the body breaks step 4.

Send a request and keep the exact bytes
cat > request.json <<'EOF'
{"model": "z-ai/glm-5.3", "messages": [{"role": "user", "content": "Summarise this discharge note."}]}
EOF

curl https://api.eu.panward.ai/v1/chat/completions \
  -D headers.txt -o response.bin \
  -H "Authorization: Bearer $PANWARD_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @request.json

Fetch the receipt

Wait for status: "final", usually under one second and at most the 60-second proof deadline. A pending receipt has no signature yet.

Fetch the receipt named in the panward-receipt-id header
curl https://api.eu.panward.ai/v1/receipts/rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M \
  -H "Authorization: Bearer $PANWARD_API_KEY" -o receipt.json

Run Warden

Run the six steps against your bytes
$ warden verify receipt.json --request request.json --response response.bin --releases releases.json

Warden reports each of the six steps as pass, fail or skipped and prints a verdict. The command line page lists the steps, the verdicts and the exit codes. Without your bytes, step 4 is skipped and the verdict says "Gateway signature valid. Contents not checked."

Fresh or archived attestation

The archived attestation is the boot-time document the receipt names in gateway.attestation_id. It shows that the signing key was bound to an enclave with those measurements when the receipt was made, and it stays checkable after the instance is gone. A fresh one also shows that the gateway is live now. The archived document is addressed by its own hash, so you check it by hashing it; you do not need to trust the endpoint that serves it.

The archived boot-time attestation the receipt names (no key)
curl https://panward.ai/api/public/attestations/sha256:a3f1c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3 \
  -o archived.json
Verify against the archived attestation
$ warden verify receipt.json --request request.json --response response.bin \
    --attestation archived --attestation-file archived.json --releases releases.json

Step 4 by hand

The SHA-256 of your request must equal request.received.body_sha256 and that of your response response.emitted.body_sha256.

Step 4 by hand: hash your bytes and read the receipt's hashes
$ sha256sum request.json response.bin
$ jq -r '.events[] | select(.type == "request.received" or .type == "response.emitted") | .body_sha256' receipt.json

Tamper tests

Change one byte of the response and step 4 fails. Edit the level in the receipt and step 3 fails, because the signature no longer matches.

Change one byte of the response and see step 4 fail
$ cp response.bin tampered.bin
$ printf 'X' | dd of=tampered.bin bs=1 seek=10 conv=notrunc
$ warden verify receipt.json --request request.json --response tampered.bin --releases releases.json

Offline

With the archived attestation, collateral and a release file saved, Warden makes no network call. It never sends prompt or response content anywhere.

Verify with saved material and no network
$ warden verify receipt.json --request request.json --response response.bin \
    --attestation archived --attestation-file archived.json \
    --collateral collateral.json --releases releases.json --offline

In the browser

The verify page runs Warden in your browser. Request and response files you add are compared there and not uploaded.

Reading the level#

The upstream.verified event holds the gateway's statement: result (verified, failed or not_applicable for Routed), level, the evidence it relied on (by content hash, with its kind, hardware, firmware status, operator rating and whether it was bound to the gateway's nonce), the response_proof (kind, signer_scope, instance_bound) and recorded claims (gpu_attested, gpu_binding, debug_mode, weights_provenance) that never raise or gate the level. Warden shows all of it as what the gateway states it verified, never as something Warden checked.

When result is failed, reason is one of: proof_unavailable, signature_invalid, hash_mismatch, evidence_expired, policy_violation, stream_incomplete, client_aborted. The response may already have been delivered. A failed Sealed request is credited automatically, except client_aborted.

Each request.forwarded event states the upstream channel that was checked: tls, tls_pinned, encrypted_to_model_enclave or encrypted_to_gateway_enclave (what each value means).

Requiring a level

An organization policy can allow Sealed models only, or require a model-enclave signature; with either, the gateway never routes to a Routed offer. Per request, panward-hold-until-verified: true (non-streaming only) delays the response until the level is known and answers 503 verification_unavailable instead of an unverified answer.

What the gateway checks upstream#

Ahead of time

For every enabled Sealed offer the gateway keeps a cache of checked evidence. Every 5 minutes, or at once when a signer or key does not match, it sends a fresh random nonce, fetches the evidence and checks each quote to the hardware vendor's root with current collateral: accepted firmware status, minimum evaluation number, debug mode off, measurements on the policy's allowlist, and the documented binding of the signer keys and the nonce. The gateway records GPU evidence, which it checks offline, as a claim only. Evidence older than 10 minutes makes the offer ineligible for Sealed routing.

Per response

After the upstream response completes, the gateway fetches the proof and requires that it binds the SHA-256 of the upstream request and response bytes, that its signature is valid, and that the signer was in the checked evidence before the request started. Any failure gives the level failed with a reason, raises an alert, and repeated failures quarantine the offer.

The same code

These checks run in warden-core, the crate Warden is built on, so you can read exactly what the gateway does. The verification policy is a versioned document; its hash is in the attestation's runtime statement and on every receipt, and each version is published with a summary. The list of accepted upstream measurements is not public.

Why the upstream evidence is not public

The evidence names the parties that provide capacity, and Panward does not disclose them in the product. Receipts name evidence only by content hash. This is a commercial choice with a cost to verifiability, and it is why the gateway is open source, measured and attested: you check the checker.

Raw evidence is archived by content hash for the receipt retention period. Under an enterprise agreement with confidentiality terms, an auditor gets time-limited access to the evidence objects a set of receipts names. Access is logged in both audit logs. This is the only path by which those identities leave Panward. Warden's audit command in the current build lists which of those objects are present; it does not re-check the upstream proofs.

Limits#

Physical access

This applies to the gateway's host and to the model hosts. Operators with weak custody are rated lower, and only operators rated A or B can serve Sealed.

Attestation protects against software and administrators. It cannot rule out someone with physical access to the hardware.

The clock

The enclave has no trusted wall clock. Receipt timestamps are the time the gateway observed, bounded by signed times in fresh collateral and upstream evidence. Receipts are not a trusted timestamping service.

Model weights and GPU evidence

weights_provenance is unknown unless evidence exists, and a receipt does not prove which weights produced the output. GPU evidence is recorded as a claim, is not bound to the serving CPU enclave and never gates a level.

The attested path and shared keys

At sealed_attested_path you rely on a measured upstream gateway to report truthfully. A pool key is shared by many instances, so a receipt does not identify which instance served a request (instance_bound: false).

The attested channel

At sealed_attested_channel no upstream key signs the response (response_proof.kind: attested_channel). What the gateway checked is the channel: the upstream's evidence, fetched with the gateway's own nonce and verified under the policy, binds a TLS or encryption key, and the exchange went over TLS pinned to that key or with its bodies encrypted to it. Every evidence entry is nonce_bound: true. You can re-appraise the archived evidence and confirm it bound the key the receipt names; you cannot re-check the response itself against the upstream. Levels are ordered routed < sealed_attested_channel < sealed_attested_path < sealed_model_signed: set the policy minimum to sealed_attested_path to require a per-response signature.

Fixed attestation

An evidence entry with freshness: fixed_attestation comes from an enclave whose attestation document has no nonce input; it is then nonce_bound: false. The gateway re-fetches and re-verifies it every refresh interval. It is accepted only at sealed_model_signed, where the key it binds signed this exact response.

Configuration and releases

The configuration bundle is not public; its hash is on every receipt. A configuration cannot serve Sealed from a Routed offer or skip verification, because those rules are in the measured code. Against a malicious release the defences are open source, public measurements, the notice period and outside verifiers; you must check, or rely on others who do.

Prompt caching at the upstream

Some model providers cache the start of recent prompts across all their customers, with no way to separate or switch off that cache, and Panward still uses them. Nothing that identifies you is sent, and for requests those providers serve cached input is billed at the full input price (elsewhere at the model's cached-input price). Another customer of that provider could still notice a faster reply to a prompt opening sent recently, and so learn that someone sent it. The content of your prompts is not revealed this way. Receipts do not record whether such a cache was in use.

Correctness

No receipt says that an answer is correct or what your application does with it. Clients that do not verify rely on ordinary web certificates, as with any API.

Troubleshooting#

SymptomLikely causeWhat to do
Step 1 fails with a collateral errorThe collateral expired or could not be fetched.Fetch fresh collateral and check your machine's clock.
Step 1 fails on debug modeYou are talking to a development gateway.Check the host name. A production gateway never runs in debug mode.
Step 2: measurement not on the release listYour release file is older than a rollout, or something is wrong.Fetch the release file again. If it still fails, treat it as an incident and write to the security contact on the security page.
Step 3 failsThe receipt was changed, or it is still pending and has no signature.Fetch it again once its status is final.
Step 4 failsYour bytes are not the bytes on the wire: a proxy re-encoded them, the JSON was pretty-printed, the stream was parsed, or the multipart boundary differs.Capture the raw bytes your client sent and received.
Step 5 shows failed with a reasonThe gateway states that the expected proof was missing, late, invalid or against policy.Treat the response as not verified. A failed Sealed request is credited, except client_aborted.
Step 6 failsTLS ends between you and the gateway, for example at a corporate proxy.Run the check from a network without interception, or accept the narrower result knowingly.
404 not_found for a receiptA key of another organization, or the receipt is past its retention period.Use a key of the organization that made the request.
410 gone for a share linkThe link was revoked or has expired.Ask the receipt's owner for a new link.
Different keys on each attestation callExpected: each gateway instance generates its own keys at boot.Compare measurements, never keys.
Attestation protects against software and administrators. It cannot rule out someone with physical access to the hardware.

Checklist for auditors#

File the command output, hashes and dates for each item.

  1. Define the scope and the period, and select a sample of receipt ids.
  2. Build warden from the gateway repository at a recorded commit.
  3. Review the gateway source at the release commit: TLS, policy, the routing rules that never bend, receipts, evidence checks and the telemetry allow-list.
  4. Check that the measurements of each release in the period are on the release list, and that each release statement is in the transparency log (warden releases).
  5. Check a fresh attestation of each region with your own nonce, and its TLS binding (warden attest).
  6. Review the release history of the period: notice dates respected, no unlisted measurement observed.
  7. Review the verification policy versions of the period against their published summaries.
  8. Verify each sampled receipt, tabulate the levels and explain every failed receipt.
  9. Verify the bytes for a sub-sample where the customer kept the request and response bytes.
  10. Run the tamper tests.
  11. Sample refusal receipts as evidence that policy was enforced.
  12. Compare region in the receipts and panward-region in the customer's logs with the policy.
  13. Under an audit agreement, compare the upstream evidence objects the sampled receipts name with those you were given (warden audit).
  14. State the limits in the report: physical access, the clock, model weights, the attested path and GPU evidence.
  15. Record tool versions, commit hashes and file hashes.

The build-it-yourself guide for reproducing the gateway image is not published yet (Not available yet); until it is, a rebuild cannot be part of the checklist.

Was this page helpful?Suggest an edit