What is at stake
A leaked bearer token or API key may provide authority beyond the action for which it was intended. Retries and distributed state introduce separate replay concerns.
Attacks · By business pattern
Require current permission for the API operation itself. For a transfer, export, or administrative change, confirm the actual resource and request details before the handler performs the effect.
~6 min readDeep-link: Replay
A leaked bearer token or API key may provide authority beyond the action for which it was intended. Retries and distributed state introduce separate replay concerns.
A gateway or middleware can validate a fresh request-bound proof before a protected operation. Sender-constrained OAuth and HTTP message signatures are existing mechanisms that may complement the design.
Identify canonical request fields, every route to the effect, state durability, failure handling, and migration from the current credential. Test the resource result as well as the gateway verdict.
Bearer lives outside the request
One bearer key sits outside an individual request and branches to several routes, each of which accepts the copied credential.
Burn-before-validate stops replay
The first submission burns its nonce before validation and is allowed. A second use encounters the spent state and is rejected.
A copied bearer credential may remain usable until it expires or is revoked; sender-constrained credentials have different protections.Ambient credentials authorize by possession alone; ENI6MA replaces that model with one-shot, request-bound proofs.
Burn-before-validate is the structural reason a second submission of the same envelope always fails.Gate stage 5 spends the nonce in the durable ledger before stage 6 validates the proof.Holds under the reference architecture
Every envelope is bound to a specific method, endpoint, request body, policy, freshness window, and nonce.sha256(method || endpoint_id || request_body_hash || policy_hash || tau || nonce_uuid)Holds under the reference architecture
This diagram illustrates the reference check order. The actual deployment and resource boundary determine which protections are enforced.
The gate hashes the body it actually received and compares it to the envelope.
Rejects: A body that was altered after the proof was made.
The envelope names the endpoint and the policy it was made for; both must match this route.
Rejects: A valid proof relayed to a different endpoint.
The handle is resolved against the registry and must be active. Deactivating a handle is how revocation happens.
Rejects: A proof from a revoked identity.
The envelope timestamp must fall inside the freshness window configured for the route.
Rejects: A captured envelope replayed after the window closed.
The nonce is spent here, before the proof is validated. Every submission spends it, including one that is about to fail validation.
Rejects: Any second use of the same envelope. This is where replay dies.
Only now is the proof itself checked, against the local binary or the registry. Both modes are equivalent at the envelope layer.
Rejects: A forged or malformed proof.
Ordinary authorization runs in the post-proof zone: arguments, limits, and business rules.
Rejects: A well-proved request asking for something it is not allowed to ask for.
The application does its work, and the response is bound back to the request that earned it.
Related families
Read the current product, standards, and project context alongside the research and reference architecture for this topic.