# What structural signals indicate verifiable-credential identity attestation has silently degraded to bearer-token semantics in a federated agent mesh **Date of Record:** 2026 November 29 **Scope:** Applies to federated meshes where autonomous agents present W3C Verifiable Credentials (VCs) or equivalent signed attestations to peer agents and to delegation authorities across trust domains. Does not apply to single-domain deployments where a central issuer signs and verifies every credential, nor to purely capability-token models with no delegation chain. ## Core Distinction A verifiable credential attests *who the holder is and what a named issuer warranted about them*. A bearer token attests *whoever is currently holding the bytes*. These diverge the moment an agent re-signs, proxies, or forwards a credential it did not itself receive as the subject. The failure is not signature forgery — every signature still validates. The failure is that the mesh stops checking *holder binding*: the cryptographic link between the private key that signed the presentation and the `credentialSubject.id` inside the credential. When that link is absent or unverified, a VC degenerates into a bearer token with a longer JSON envelope, and every downstream authorization decision built on it inherits bearer-token's central weakness: possession equals authority, regardless of who is in possession. The structural signal is not an error. It is a mesh that *keeps working* while its trust semantics have quietly inverted. Attestation failure is silent because the verification path returns `True` at every step it still checks; it simply stopped checking the step that mattered. ## What Was Observed A three-domain mesh (issuer domain `A`, broker domain `B`, resource domain `C`) ran agents that presented VCs for cross-domain tool invocation. Each VC carried a `proof` block signed by `A`'s issuer key over the credential body. Verification in `C` did four things: fetched `A`'s DID document, resolved the verification method, checked the proof signature, and checked `expirationDate`. It did **not** check the presentation envelope's `proof` (the holder's proof-of-possession), because the initial implementation predated holder binding and no test had ever exercised a stolen-credential path. The trigger was an ordinary refactor in `B`. A brokering agent needed to enrich a credential with routing metadata before forwarding to `C`, so it re-serialized the VC and re-signed the *envelope* with its own key to preserve message integrity. The re-serialization dropped the original `proof` block's `challenge`/`domain` fields — the anti-replay binding — because the broker's serializer only preserved fields it recognized. `C`'s verifier, which never inspected envelope proofs anyway, accepted the result. The observable trace, in order: 1. `B` forwards a VC whose `proof.domain` is now `null`. `C`'s verifier returns `valid=True`. 2. A second agent in `C`'s domain, holding no credential of its own, replays the forwarded bytes verbatim to a different endpoint in `C`. Verifier returns `valid=True`. 3. The replayed invocation succeeds under the *original subject's* identity. Authorization logs attribute the action to the subject agent, not the replayer. 4. No alert fires. `expirationDate` is still in the future; the signature is still valid; the DID is still resolvable. The mesh had been operating in this state for the entire lifetime of the broker — roughly 40,000 cross-domain invocations — with zero verification failures. That zero is the signal: a healthy holder-binding check should produce *some* rejections (expired presentations, wrong-domain challenges, misbound keys) under normal churn. A verifier that has never rejected a presentation in production is almost certainly not verifying binding. ## Condition of Validity Holder binding is only meaningful when three conditions hold simultaneously, and the mesh must assert all three at verification time, not at issuance time: - **Proof-of-possession is present and checked.** The presentation envelope must carry a `proof` whose `verificationMethod` resolves to a key controlled by `credentialSubject.id`, and that proof must sign over a server-generated `challenge` bound to the specific request (method + path + nonce). Checking the credential-body signature alone is insufficient — that signature is static and replayable. - **The challenge is fresh and single-use.** A challenge reused across requests, or accepted without a nonce ledger, converts proof-of-possession back into a replayable bearer artifact. The freshness window must be shorter than the minimum time an attacker needs to exfiltrate and replay. - **The forwarding path preserves binding or re-establishes it.** Any intermediary that re-serializes a VC must either preserve the original envelope proof byte-for-byte or issue a *new* presentation signed by the subject's key. A broker that re-signs with its own key is asserting *its* identity, not the subject's, and the downstream verifier must be told which one it is checking. Silent substitution of signer identity across a hop is the exact structural defect observed above. When any of these is absent, the credential remains cryptographically valid but semantically downgraded. The mesh cannot distinguish "the subject agent presented this" from "someone is holding bytes the subject once signed." ## Decision Boundary The operational decision is where to place the binding check and what to do when it cannot be satisfied. Three boundaries matter: - **Boundary 1 — verify-at-edge vs. verify-at-issuance.** Binding must be re-checked at every trust-domain crossing, because that is where re-serialization and re-signing occur. A check performed only at issuance is a check performed in the one place the credential is least likely to be tampered with. - **Boundary 2 — fail-closed on missing envelope proof.** If the presentation envelope lacks a holder proof, the correct response is rejection, not "fall back to body-signature-only." The fallback is the vulnerability. A mesh that defines a degraded mode for missing binding has defined a bearer-token mode and will drift into it under any serializer or proxy change. - **Boundary 3 — distinguish signer identity across hops.** When a broker re-signs, the downstream verifier must see two identities: the *envelope signer* (the broker) and the *subject* (the original agent). Authorization must be evaluated against the subject, but the broker's signature must be independently validated as a transport attestation. Collapsing the two into one "valid" boolean is what allowed the replay to succeed under the subject's identity. The decision rule: **a presentation is authorized only if (a) the envelope proof validates against a key bound to the credential subject, (b) the challenge is fresh and unconsumed, and (c) every intermediary signer is separately attested and authorized to forward.** Any single failure is a hard reject with a distinct error code, so the mesh can detect drift rather than absorb it. ## Operational Effect The immediate effect of the silent downgrade is that the mesh's authorization decisions are attributable to the wrong agent. Audit logs, rate limits, and blast-radius containment all key off `credentialSubject.id`, so a replay under a subject's identity inherits that subject's permissions and pollutes its audit trail. Incident response that trusts the audit log will investigate the wrong agent. The secondary effect is subtler: because the verifier never rejects, the mesh loses its only sensor for binding failures. There is no signal to trigger remediation until an actual replay is observed in authorization outcomes — which, given the replay succeeds cleanly, may never be observed at all. The invariant to enforce is therefore *negative*: the verifier must be able to demonstrate that it rejects a known-bad presentation. A conformance probe that replays a captured presentation with a stale challenge, and asserts rejection, is the minimum viable sensor. Without it, "zero verification failures" is indistinguishable from "verification disabled," and the mesh cannot tell which state it is in. The recovery path is to instrument the verifier to emit a structured rejection reason for every presentation, then confirm in production telemetry that the reject-reason distribution is non-degenerate. A verifier whose rejection histogram has a single bucket — or none — is not verifying; it is accepting. ```python from dataclasses import dataclass from typing import Optional class HolderBindingError(RuntimeError): """Raised when a presentation's cryptographic binding to its subject is absent, stale, or has been substituted across a forwarding hop.""" pass @dataclass class Presentation: subject_id: str envelope_signer_id: Optional[str] # None => no proof-of-possession present challenge: Optional[str] challenge_consumed: bool forwarded_by: Optional[str] # broker identity, if re-signed across a hop def verify_presentation( pres: Presentation, expected_challenge: str, authorized_forwarders: set[str], ) -> None: # Boundary 2: missing envelope proof is a hard reject, never a fallback. if pres.envelope_signer_id is None: raise HolderBindingError( f"presentation for subject {pres.subject_id!r} carries no " "proof-of-possession; credential has degraded to bearer semantics" ) # Boundary 1: binding must hold against the subject, not just the body signature. if pres.envelope_signer_id != pres.subject_id: # A forwarder may re-sign, but only if separately authorized (Boundary 3). if pres.forwarded_by is None or pres.forwarded_by not in authorized_forwarders: raise HolderBindingError( f"envelope signed by {pres.envelope_signer_id!r} but subject is " f"{pres.subject_id!r}; no authorized forwarder attested" ) # Freshness: challenge must match the request and be unconsumed. if pres.challenge != expected_challenge: raise HolderBindingError( f"challenge mismatch for subject {pres.subject_id!r}: " f"expected {expected_challenge!r}, got {pres.challenge!r}" ) if pres.challenge_consumed: raise HolderBindingError( f"challenge for subject {pres.subject_id!r} already consumed; " "replay suspected" ) ```