All adversarial demonstrations

Signed requests reject tampering

Changed claims, token types, signatures, algorithms, and duplicate JSON fields are refused.

Setup

The test first creates a valid locally signed statement. It then changes one property at a time: payload, signing algorithm, signature presence, signer, token kind, and duplicate JSON claim.

Observed result

The verifier accepts the original statement and rejects each altered variant. The runnable case is TestAdversarialSignedStatementManipulation in the Go SDK pilot tests (opens in a new tab).

These are local parser and signature checks with generated keys. Other token implementations and algorithm configurations require their own tests. The separate bearer comparison shows that an unchanged, valid copied token can still work when a service authorizes by possession alone.

SDK example: Run the signed-statement-tampering 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