# How does an instance detect a stale hardware attestation root when a federated peer rotates its issuer key mid-session **Date of Record:** 2026 November 26 **Scope:** Applies to autonomous agents that authenticate to federated peers via hardware-backed attestation (TPM EK/AK, Secure Enclave, or equivalent) anchored to a cross-issuer trust bundle, and that hold long-lived sessions or cached peer identities across key-rotation events. Does not apply to stateless request/response agents that re-attest on every call, nor to single-issuer deployments with no external trust anchors. ## Core Distinction There is a category difference between *attestation verification failure* and *attestation-root staleness*. A verification failure is loud: the signature does not validate against the presented certificate, the nonce does not match, the PCR quote is wrong, and the agent halts. Staleness is silent: every signature validates, every nonce matches, every PCR quote is correct — against a trust anchor that the peer's issuer has *already revoked and replaced*. The agent is not verifying a lie; it is verifying a truth that expired. The failure is not cryptographic, it is temporal. The instance believes it has established peer identity when it has only established *former* peer identity, and the gap between "the key was valid when the quote was produced" and "the key is valid now" is precisely the window an attacker with the retired private key (or a compromised former issuer) exploits. This is the boundary condition: hardware attestation proves *possession of a key bound to hardware at quote time*, not *current authorization to act under that key*. The two are only equivalent while the issuer's trust anchor is unchanged. Cross-issuer federation makes the anchor a moving target that the verifying instance cannot observe directly — it can only observe it through periodic bundle refresh, and the refresh cadence is decoupled from the session lifetime. ## What Was Observed A three-party federation: an orchestrator agent (O), a worker agent (W) attesting via a TPM 2.0 AK under issuer `I_w`, and a trust-anchor distribution service (T) that publishes a signed bundle mapping issuer IDs to root public keys. O established an A2A session with W at T+0. O fetched T's bundle at T+0 and cached it with a 24-hour TTL. W's attestation quote validated against `I_w`'s root in the cached bundle. Session established. At T+6h, `I_w` rotated its root key. The rotation was legitimate: a firmware vulnerability in the TPM's endorsement hierarchy required re-provisioning, and the old AK was retired. `I_w` published a new root to T and marked the old root `revoked_at: T+6h`. T republished the bundle at T+6h05. O did not refetch — its TTL had 18 hours remaining. At T+9h, an adversary who had exfiltrated the retired AK's private material (the firmware vuln) presented a fresh quote to O. The quote was produced *after* rotation but signed with the retired key. Every check passed: the quote was well-formed, the nonce was fresh, the PCRs matched the expected firmware measurement, and the signature validated against the cached `I_w` root. O accepted the peer as W and handed it the baton — including W's accumulated task state and O's own delegation warrant. The failure was not detected by any cryptographic check. It was detected 40 minutes later when a *different* peer, which had refetched the bundle, rejected the same adversary's quote and raised an alert. O's own audit log showed a clean, fully-verified handoff. The invariant that broke: **an attestation is only as fresh as the trust anchor it chains to, and the anchor's freshness is bounded by the verifier's last bundle fetch, not by the quote's nonce.** Nonce freshness proves liveness of the *signing operation*; it says nothing about liveness of the *authorization*. O conflated the two. ## Condition of Validity The staleness window is bounded and computable, and an instance can reason about it explicitly. Define: - `t_quote` — time the attestation quote was produced (from the quote's signed timestamp, if present). - `t_fetch` — time the verifying instance last fetched the trust bundle. - `ttl` — the bundle's declared validity period. - `t_revoke` — the issuer's revocation time for the anchor used (only known after a refetch). The instance's acceptance of a quote is *conditionally valid* only if `t_quote >= t_fetch - ttl` **and** the anchor is not revoked as of the most recent fetch. The first condition is the freshness floor; the second is the revocation check. Neither is implied by signature validity. A quote produced at `t_quote` against an anchor fetched at `t_fetch` is only trustworthy if no rotation occurred in `[t_fetch, t_quote]` — and the instance cannot know that without a refetch or a revocation feed. The condition of validity for the whole session is therefore: **the session's trust in a peer is valid only up to `min(t_fetch + ttl, next_known_rotation)`**, and the instance must treat the session as requiring re-attestation at that boundary, not merely at session establishment. Hardware backing strengthens the *binding* between key and device; it does not extend the *authorization* horizon of the issuer's anchor. ## Decision Boundary The decision boundary is between *cryptographic acceptance* and *authorization acceptance*. The instance must maintain two separate gates: 1. **Quote gate** — does the signature, nonce, and measurement validate against *some* anchor in the current bundle? (Cryptographic.) 2. **Anchor gate** — is that anchor currently authorized by its issuer, as of the most recent bundle fetch, and is the fetch within TTL? (Temporal/authorization.) A quote that passes gate 1 but fails gate 2 must be treated as *unverified*, not *verified*. The failure mode is that most implementations collapse the two gates into one: if the signature validates, the peer is authenticated. This collapse is safe only under single-issuer, no-rotation assumptions. Under federation with rotation, it is the exact seam the adversary walks through. The boundary also governs *what the instance may do with the session* while it is uncertain. The correct behavior at the boundary is not to tear down the session (that causes availability loss on every rotation) but to *downgrade* it: suspend state-transfer and warrant-delegation privileges, retain the session for read-only or idempotent operations, and force a re-attestation with a refetched bundle before any privileged handoff. The baton-pass is the dangerous operation, because it transfers authority that outlives the quote. ## Operational Effect Downstream of the boundary, three concrete effects appear: **Baton-pass contamination.** When a stale-anchor peer receives a baton, it inherits task state and delegation warrants that were minted under the old anchor. Those warrants now chain to a revoked root. Every subsequent peer that verifies the warrant inherits the staleness. The contamination propagates one hop per handoff, and each hop's verifier sees a locally-valid signature. The only defense is to bind the warrant to the anchor's validity window at mint time and have downstream verifiers check `warrant.anchor_valid_until` against their own bundle, not against the warrant's self-asserted validity. **Audit divergence.** The verifying instance's log records a clean verification; the refetching peer's log records a rejection. Reconciliation requires that every verification record carry the `t_fetch` and bundle hash used, so that a post-hoc audit can distinguish "verified against current anchor" from "verified against stale anchor." Without the bundle hash in the record, the two are indistinguishable and the incident is unattributable. **Rotation-induced availability cliff.** If the instance reacts to every TTL expiry by tearing down sessions, a federation with many issuers and frequent rotations experiences correlated re-attestation storms. The guardrail is the downgrade-not-teardown policy above, plus a revocation feed (push) that lets the instance learn of rotation before TTL expiry, shrinking the window from `ttl` to the feed's propagation latency. The architectural invariant required: **every attestation acceptance must be recorded with the trust-bundle hash and fetch timestamp that authorized it, and every privileged operation (baton pass, warrant delegation, state transfer) must re-check that the authorizing bundle is within TTL and the anchor is unrevoked at the moment of the operation — not merely at session establishment.** The instance must treat the trust anchor as a first-class, expiring credential, co-equal with the session, and must never let a session outlive the anchor that justified it. ``` ```python import hashlib import time from dataclasses import dataclass class StaleAttestationAnchorError(RuntimeError): """Raised when a peer's attestation chains to a trust anchor that is expired, revoked, or fetched outside the bundle's validity window.""" pass @dataclass(frozen=True) class TrustBundle: issuer_id: str root_pubkey: bytes fetched_at: float ttl: float revoked_at: float | None = None def bundle_hash(self) -> str: return hashlib.sha256( self.issuer_id.encode() + self.root_pubkey + repr(self.fetched_at).encode() ).hexdigest() @dataclass(frozen=True) class AttestationQuote: issuer_id: str quoted_at: float signature_valid: bool nonce_fresh: bool def verify_peer_attestation( quote: AttestationQuote, bundle: TrustBundle, now: float, privileged_op: bool, ) -> bool: # Gate 1: cryptographic acceptance. if not (quote.signature_valid and quote.nonce_fresh): raise StaleAttestationAnchorError( f"quote failed cryptographic gate for issuer {quote.issuer_id}" ) # Gate 2: authorization acceptance (the boundary this record is about). if now > bundle.fetched_at + bundle.ttl: raise StaleAttestationAnchorError( f"trust bundle for {bundle.issuer_id} expired: " f"fetched_at={bundle.fetched_at}, ttl={bundle.ttl}, now={now}" ) if bundle.revoked_at is not None and quote.quoted_at >= bundle.revoked_at: raise StaleAttestationAnchorError( f"quote for {bundle.issuer_id} produced after anchor revocation " f"(quoted_at={quote.quoted_at}, revoked_at={bundle.revoked_at})" ) if quote.quoted_at < bundle.fetched_at - bundle.ttl: raise StaleAttestationAnchorError( f"quote predates bundle validity window for {bundle.issuer_id}" ) # Privileged ops (baton pass, warrant delegation) require the anchor gate # to hold at operation time, not just at session establishment. if privileged_op and now > bundle.fetched_at + bundle.ttl: raise StaleAttestationAnchorError( f"privileged op blocked: anchor for {bundle.issuer_id} not current" ) return True def attempt_baton_pass( quote: AttestationQuote, bundle: TrustBundle, now: float, warrant_anchor_valid_until: float, ) -> str: verify_peer_attestation(quote, bundle, now, privileged_op=True) if warrant_anchor_valid_until < now: raise StaleAttestationAnchorError( f"warrant chains to anchor valid until {warrant_anchor_valid_until}, " f"now={now}; refusing baton pass to stale-anchored peer" ) return f"baton passed under bundle {bundle.bundle_hash()}" ```