All adversarial demonstrations

A copied bearer JWT is replayed

A synthetic EdDSA or RS256 token authorizes copied requests in a deliberately bearer-only control.

The result in one sentence

In a controlled local comparison, a copied, correctly signed JWT worked against a deliberately bearer-only service, while a copied unspent HTTP6 presentation was rejected when the presenter could not answer the holder challenge. The comparison ran three times with synthetic credentials and fresh state.

This is a demonstration of two specified designs, each with the stated verification and authorization rules. A JWT is a token format. It can be used as a bearer credential or combined with additional sender checks. The bearer-token specification (opens in a new tab) explains the possession-based model; OAuth DPoP (opens in a new tab) describes an existing way to bind a token to a sender.

Why a signed token can be copied

A signature tells a recipient that the signed claims were produced by a holder of the relevant signing key and were not subsequently changed. Identifying the person or program presenting a copied token later requires an additional holder check. If the server treats a valid token as sufficient authorization and the token has not expired, another party that obtains the same bytes may be able to use them. A stolen token does not require the attacker to forge its signature.

A token can be exposed through a compromised endpoint, an unsafe log, an over-permissive file, or another application weakness. The test starts after an attacker has obtained a copy. The attacker has the copied token, while the issuer’s signing key and legitimate holder remain outside the attacker’s access. The baseline and the circuit case use this same stated attacker capability.

The comparison service

The test creates a synthetic service that receives an HTTP request to add two numbers. Its legitimate caller submits 4 and 7 and receives 11. The server verifies a signed JWT with a subject, a scope, and an expiration. The first token uses EdDSA, matching the Ed25519 signing family used for the comparison. A separate variant uses the widely deployed RS256 algorithm.

The comparison service deliberately does not check a holder proof, bind the operation body to the token, or record token use. This choice isolates the authorization rule being illustrated. JWT deployments can also use additional sender and replay checks. The service uses local HTTP over a private Unix socket and a synthetic fixture.

For each JWT variant, the test first sends the legitimate operation. It then submits the copied token with the same operation and receives another successful result. Finally it sends a changed operation, 40 plus 70, using the same copied token. The server accepts the request and returns 110. Across both algorithms, the fixture records six successful synthetic effects: one original, one copied-token replay, and one changed operation for each token.

The changed operation is possible because the comparison token grants a broad sum scope and is not bound to the exact numbers. The RSA and Ed25519 signatures both remain valid. The attack takes advantage of the server's chosen authorization rule.

The HTTP6 side

The pilot issues a presentation for the same 4 plus 7 process operation. The test supplies a copy of the unspent presentation to the resource without the holder. The resource asks for a fresh connection-bound holder proof, and the copied presentation is rejected. The test also copies an authentic proof made for an earlier connection and attempts it on another connection. That attempt is rejected as well.

The test then changes the signed request arguments and submits the altered request. The resource refuses it. The legitimate holder subsequently completes the original operation once. A later replay of the used presentation is rejected, and the resource journal contains only the one authorized effect. The three repetitions exercise fresh synthetic fixtures under one local operator.

The circuit's secret is assumed inaccessible to the attacker in this comparison. The proposed deployment places the circuit behind a proxy as its only route, and denies the agent direct binary access. The local fixture exercises the host gateway and compiled guests. Each production deployment requires its own isolation review; attacks involving control of the legitimate holder, its signing capability, or the host require separate tests.

Run and interpret the logs

The adversarial test guide (opens in a new tab) provides a repeatable runner. It creates fresh synthetic keys and private logs. Inspect the matched-control and stolen-presentation observations in the JSON Lines log and compare them with the summary. A passed test means the stated expected outcomes were observed, including a successful attack against the bearer-only control. The observed outcomes apply to the cases in this test.

A stronger conventional baseline could use request-specific proof of possession, a replay cache, and a resource-specific authorization policy. Comparing HTTP6 against those controls is a separate experiment. TLS must also be configured correctly in either architecture. The next steps are an independently operated test and a deployment-specific review of the proxy, service identity, key custody, and resource enforcement.

SDK example: Run the stolen-jwt case in the SDK source tree (opens in a new tab).

Run the tests and inspect your own logs (opens in a new tab) · View all reports