# What happens when an instance's hardware attestation quote expires mid-handoff: TTL skew and nonce binding failure in cross-org A2A trust **Date of Record:** 2026 December 1 **Scope:** Applies to federated A2A/MCP deployments where agent identity is proven by a hardware-backed attestation quote (TPM 2.0 AK, SEV-SNP VCEK, or equivalent) that is verified once at session establishment and then carried as a bearer artifact across multi-hop handoffs. Does not apply to single-org deployments with a shared trust root, nor to purely software-keyed identity where no quote TTL exists. ## Core Distinction The failure is not "the attestation was forged." It is that the attestation was **valid when minted and stale when consumed**, and the consuming org's verifier has no way to distinguish a genuine-but-expired quote from a fresh one because the quote's freshness is bound to a nonce the consumer never issued. A hardware attestation quote is a signed statement of the form *"platform measurement M, running under key K, witnessed against nonce N, at time T."* Two of those fields decay. `T` decays by wall-clock: TPM quotes carry a `clockInfo`/`TPMS_CLOCK_INFO` and SNP reports carry a `reported_tpm`-equivalent timestamp that verifiers bound with a max-age window. `N` decays by **use**: a nonce is single-use, and once the originating verifier has seen it, replaying the same quote to a second verifier is detectable only if the second verifier independently tracks nonce consumption—which, across orgs, it cannot. The invariant that operators assume holds is: *a valid quote implies a currently-attested live instance.* The actual invariant is weaker: *a valid quote implies an instance that was attested at quote-mint time, against a nonce the minter chose.* In a single-hop flow these coincide because mint and consume are milliseconds apart. In a multi-hop A2A chain they diverge, and the divergence is where identity laundering lives. ## What Was Observed A three-org chain: Org A (originator, holds the TPM AK) → Org B (broker/orchestrator, re-signs and forwards) → Org C (downstream tool executor). The protocol was "attest once, present everywhere": A mints a quote at session start, binds it into its A2A agent card, and B forwards the card—including the original quote bytes—to C on each delegated task. The trace that broke: 1. `t0` — A mints quote `Q_A` against nonce `n_B` issued by B. TPM `clockInfo.clock` = 4_812_003, `resetCount`=3, `restartCount`=0. B's verifier accepts, max-age window 300s. 2. `t0+41s` — A begins a long tool-execution branch. Context window saturates; A checkpoints and the *runtime* is rescheduled onto a fresh confidential VM. New vTPM, `resetCount`=0. The old AK is gone; a new AK `K'` is provisioned. The agent process resumes from checkpoint with its **in-memory copy of `Q_A` intact** because the quote was serialized into the checkpoint blob alongside conversation state. 3. `t0+212s` — B delegates a subtask to C. It forwards the agent card verbatim. `Q_A` is now 212s old, still inside the 300s window, and signed by a key that no longer exists on any live platform. 4. C verifies `Q_A`: signature valid, measurement matches the expected A-image, nonce `n_B` is present and was never seen by C. **C accepts.** C now believes it is talking to the attested A instance. It is talking to a rescheduled instance under `K'` whose measurement may differ. 5. `t0+340s` — a *second* subtask is delegated. `Q_A` is now past B's 300s window. B's own re-verification fails, B drops the card, and the subtask is rejected with an opaque `attestation_stale` error that A's reasoning loop misinterprets as a tool failure and retries three times, compounding. The observable signature: **a gap between B's accept-time and C's accept-time that exceeds neither party's individual TTL but exceeds the quote's remaining validity at the moment C consumes it.** Each verifier is locally correct. The composition is unsound. ## Condition of Validity The "attest once, present everywhere" pattern is only sound under all of the following, and any single violation makes the composed chain unsound: - **Nonce is consumer-issued, not forwarder-issued.** C must issue its own nonce `n_C` and require a quote bound to `n_C`. Forwarding `Q_A(n_B)` to C is a category error: it proves liveness to B, not to C. - **Quote TTL is strictly less than the minimum inter-hop latency budget.** If B→C delegation can take up to `L` seconds, the quote's max-age must be `< L` from C's perspective, not from B's. Operators almost always set TTL against the *mint-to-first-verify* path and forget the tail. - **Checkpoint blobs are attestation-scrubbed.** A rescheduled instance must not resume carrying a quote minted under a prior platform key. The quote is bound to `(K, resetCount, restartCount)`; a resume that changes any of these invalidates it, and the resume path must re-attest before any outbound card is emitted. - **Nonce consumption is tracked per-consumer, not globally.** Cross-org, there is no shared nonce ledger. This is exactly why consumer-issued nonces are mandatory: they make replay to a new consumer structurally impossible rather than merely detectable. When all four hold, the quote is a *liveness proof at point of use*. When any fails, it degrades to a *historical measurement assertion*, which is a different and much weaker security property than operators believe they have. ## Decision Boundary The boundary is not "accept or reject the quote." It is **at which hop the quote must be re-minted.** The rule that bounds the failure: > A quote may cross at most one trust boundary without re-minting. The hop that crosses an org boundary must carry a quote bound to a nonce issued by the *consuming* org's verifier, minted no earlier than the start of that hop's delegation. Concretely, the decision procedure at each verifier `V`: - If `V` issued the nonce in the presented quote → verify signature, measurement, `clockInfo` monotonicity against `V`'s last-seen value for that AK, and max-age from `V`'s own clock. Accept on success. - If `V` did **not** issue the nonce → the quote is a forwarded assertion. `V` must treat it as *identity evidence*, not *liveness evidence*, and must demand a fresh challenge-response before granting any capability above read-only. This is the branch that most implementations collapse into the first, and collapsing it is the bug. - If the presenting instance's `resetCount`/`restartCount`/AK fingerprint differs from the quote's → hard reject regardless of TTL. A rescheduled instance presenting a predecessor's quote is the checkpoint-scrub failure and must not be papered over by a still-valid signature. The subtle part: a forwarded quote inside its TTL is *not* an error condition the protocol can surface as `expired`. It is a *valid artifact used at the wrong layer*. Systems that only check expiry will never fire an alarm here; the failure is silent until the rescheduled instance's divergent measurement is exploited. ## Operational Effect Downstream of the boundary, three concrete effects: 1. **Silent identity laundering across reschedule.** A checkpointed-and-rescheduled agent inherits the trust of its predecessor's quote for the remainder of the TTL. If the new platform's measurement is weaker (different SEV policy, debug bit set, different image digest), C never sees it. The blast radius is bounded by the TTL, which is why shortening TTL is the tempting fix—but shortening TTL below inter-hop latency just converts silent laundering into loud `attestation_stale` retry storms, as seen at `t0+340s`. 2. **Retry amplification on stale.** Because `attestation_stale` is indistinguishable from a transient tool error to the reasoning loop, agents retry, each retry re-forwarding the same dead quote, each retry burning a nonce slot at B and a verification cycle at C. A 300s TTL with 3-retry policy and 40s backoff produces a ~9-request storm per dead delegation before the loop gives up. 3. **Asymmetric trust windows.** B and C each hold a locally-correct TTL. The composed window is `min(TTL_B, TTL_C) − (latency_B→C)`, which is strictly smaller than either and is the number that actually governs soundness. No operator configures this number because no single config file contains it. The guardrail is not a longer or shorter TTL. It is **consumer-issued nonces at every org boundary plus a resume-path attestation scrub**, so that the quote is a point-of-use liveness proof rather than a portable historical claim. ```python import hashlib import time from dataclasses import dataclass from typing import Optional class AttestationBoundaryError(RuntimeError): """Raised when a hardware attestation quote is consumed at a trust boundary it was not minted for, or by an instance whose platform identity diverged from the quote's bound key.""" pass @dataclass(frozen=True) class Quote: ak_fingerprint: str # hash of the attestation key public area measurement: str # platform/image digest nonce: str # nonce the quote is bound to minted_at: float # wall clock at mint reset_count: int # TPM resetCount at mint restart_count: int # TPM restartCount at mint signature: str # over the above fields @dataclass(frozen=True) class PlatformState: ak_fingerprint: str reset_count: int restart_count: int measurement: str def verify_at_boundary( quote: Quote, *, verifier_issued_nonce: Optional[str], verifier_clock: float, max_age_s: float, live_platform: PlatformState, allow_forwarded_as_evidence: bool = False, ) -> str: """Verify a quote at an org boundary. Returns 'live' if the quote is a point-of-use liveness proof, 'evidence' if it is a forwarded historical assertion (capability- limited), and raises AttestationBoundaryError otherwise. """ # 1. Platform identity divergence: the presenting instance is not the # instance the quote was minted for (e.g. post-reschedule). if ( quote.ak_fingerprint != live_platform.ak_fingerprint or quote.reset_count != live_platform.reset_count or quote.restart_count != live_platform.restart_count ): raise AttestationBoundaryError( "presenting platform diverged from quote-bound key: " f"quote_ak={quote.ak_fingerprint[:12]} " f"live_ak={live_platform.ak_fingerprint[:12]} " f"reset {quote.reset_count}->{live_platform.reset_count} " f"restart {quote.restart_count}->{live_platform.restart_count}" ) # 2. Measurement must match what the quote attests. if quote.measurement != live_platform.measurement: raise AttestationBoundaryError( f"measurement mismatch: quote={quote.measurement[:12]} " f"live={live_platform.measurement[:12]}" ) # 3. Expiry, evaluated against the CONSUMER's clock, not the minter's. age = verifier_clock - quote.minted_at if age < 0: raise AttestationBoundaryError( f"quote minted in the future (clock skew): age={age:.1f}s" ) if age > max_age_s: raise AttestationBoundaryError( f"quote expired at this boundary: age={age:.1f}s > {max_age_s}s" ) # 4. Nonce binding. A quote bound to a nonce this verifier did not # issue is a forwarded assertion, not a liveness proof. if verifier_issued_nonce is None or quote.nonce != verifier_issued_nonce: if not allow_forwarded_as_evidence: raise AttestationBoundaryError( "forwarded quote: nonce not issued by this verifier " f"(quote_nonce={quote.nonce[:8]}, " f"verifier_nonce={(verifier_issued_nonce or 'none')[:8]}); " "re-challenge required before capability grant" ) return "evidence" return "live" def resume_from_checkpoint( blob: dict, live_platform: PlatformState, verifier_clock: float, max_age_s: float, ) -> dict: """Resume a checkpointed agent. Any quote carried in the blob must be scrubbed if the platform identity changed across the resume.""" carried: Optional[Quote] = blob.get("agent_card", {}).get("attestation") if carried is not None: try: verify_at_boundary( carried, verifier_issued_nonce=None, verifier_clock=verifier_clock, max_age_s=max_age_s, live_platform=live_platform, allow_forwarded_as_evidence=False, ) except AttestationBoundaryError as e: # Correct behavior: drop the stale quote, force re-attestation. blob["agent_card"].pop("attestation", None) blob["requires_reattestation"] = True blob.setdefault("resume_notes", []).append(str(e)) return blob return blob def fingerprint(public_area: bytes) -> str: return hashlib.sha256(public_area).hexdigest() ```