Attacks · By business pattern

APIs & workloads

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

Opening

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.

How the protection works

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.

How to evaluate it

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.

Scoped claims

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

A reference enforcement path

This diagram illustrates the reference check order. The actual deployment and resource boundary determine which protections are enforced.

  1. Recompute the request hash

    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.

  2. Check endpoint and policy

    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.

  3. Confirm the circuit is active

    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.

  4. Check freshness

    The envelope timestamp must fall inside the freshness window configured for the route.

    Rejects: A captured envelope replayed after the window closed.

  5. Burn the nonce

    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.

  6. Validate the proof

    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.

  7. Apply application policy

    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.

  8. Serve the request

    The application does its work, and the response is bound back to the request that earned it.

Where it shows up

Explore demonstrations

Connect the pieces

Read the current product, standards, and project context alongside the research and reference architecture for this topic.

Go deeper