# How should an instance detect a stale-but-valid signed attestation replay across federation boundaries when the warrant TTL outlives the capability revocation? **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent deployments where identity attestations (signed capability warrants) are propagated between instances via A2A/MCP handoff and cached locally by verifiers. Does not apply to single-tenant deployments with a shared revocation bus and synchronous revocation checks on every call. ## Core Distinction The failure is not signature forgery and not a broken trust chain. Every byte of the replayed attestation verifies. The distinction that matters is between **attestation validity** (the signature checks out, the issuer is trusted, the TTL has not expired) and **warrant liveness** (the capability the attestation grants has not been revoked by a subsequent, authoritative event at the origin). Federation decouples these two clocks. A verifier in realm B validates against the signed artifact and its `not_after` field; the origin realm A revokes the capability on a separate, faster clock. When `TTL_warrant > TTL_revocation_propagation`, there exists a window in which a revoked-but-unexpired attestation is indistinguishable from a live one to any verifier that only checks signatures and timestamps. An adversary who captures a valid attestation (from a compromised peer, a leaked transport log, or a malicious relay) can replay it into realm B during that window and be admitted as a legitimate principal. ## What Was Observed A three-realm federation: origin realm `A` issues capability warrants for agent `agent-7`; realms `B` and `C` are resource holders that verify warrants presented during A2A task handoff. Warrants carried a 900-second TTL and were signed with A's federation key. Revocation was handled by A publishing a signed revocation list (CRL-equivalent) with a 60-second issuance cadence, but B and C only refetched the list on a 600-second poll interval and, critically, **did not consult the list at all when a presented warrant's `issued_at` was within the last 120 seconds** — an optimization added to reduce latency for "fresh" handoffs, on the reasoning that a warrant minted two minutes ago could not plausibly have been revoked yet. The trigger: `agent-7`'s capability was revoked at `t=0` after a prompt-injection compromise caused it to attempt an out-of-scope write. A relay instance in realm `C` had cached `agent-7`'s warrant from a legitimate handoff at `t=-90s`. At `t=+45s` the relay replayed the cached warrant to realm `B`. `B` saw `issued_at` 135 seconds in the past — outside the 120-second "fresh" fast-path — so it did consult the revocation list. But `B`'s last poll was at `t=-30s`, before the revocation was published, and its next poll was not due until `t=+570s`. The revocation list `B` held did not yet contain the revocation. The warrant verified, the (stale) list did not list it, and `B` admitted the replayed principal. A second replay at `t=+80s` hit the 120-second fast-path directly (warrant appeared 170s old, but a re-signed wrapper with a forged-but-valid-looking `issued_at` refresh pushed it inside the window) and skipped the list check entirely. The observable signature in logs was not an auth failure — it was a **success**: `attestation.verify=OK`, `revocation.check=SKIPPED` or `revocation.list_age=630s`, `decision=ADMIT`. The only anomaly was that the same `warrant_id` was admitted twice from two different presenting instances within one TTL, and that the `presenter_instance_id` on the second admission did not match the `audience` binding in the warrant. ## Condition of Validity The replay is only exploitable when all of the following hold simultaneously: 1. `TTL_warrant > poll_interval_revocation + propagation_latency` at the verifying realm. If the verifier's worst-case staleness on the revocation list is strictly less than the warrant TTL, a revoked warrant cannot outlive its own revocation visibility, and replay within the window is bounded to the (small) propagation gap. 2. The warrant is **bearer-style** — it grants the capability to whoever presents it, without a cryptographic binding to the presenter's instance key or a nonce challenge from the verifier. If the warrant is bound to `presenter_instance_id` via a proof-of-possession (the presenter must sign a verifier-chosen nonce with a key whose public half is inside the warrant), replay by a different instance fails at the PoP step regardless of revocation freshness. 3. The verifier applies any **freshness fast-path** that bypasses revocation lookup based on `issued_at` or a self-asserted timestamp. This is the sharpest sub-condition: the fast-path converts a bounded staleness problem into an unbounded one, because the attacker controls the presented timestamp. 4. There is no **single-use enforcement** — no `warrant_id` replay cache at the verifying realm, or a cache whose TTL is shorter than the warrant TTL. Break any one and the attack collapses. The operational invariant is therefore: **for every admitted warrant, `max_revocation_staleness(verifier) + max_clock_skew < min(warrant_TTL, replay_cache_TTL)`, and no admission path may skip revocation lookup based on presenter-asserted time.** ## Decision Boundary The boundary is not "trust the signature or don't." It is where to place the authority for liveness. Three architecturally distinct positions, each with a different failure surface: - **Verifier-authoritative liveness (poll-based).** Verifier holds a revocation list and refuses admission if `list_age > warrant_TTL - safety_margin`. Simple, but forces `poll_interval < TTL` and thus trades latency/load against the replay window. Correct only if the inequality in *Condition of Validity* is enforced as a hard admission gate, not a monitoring alert. - **Origin-authoritative liveness (online introspection).** Verifier calls A's introspection endpoint per handoff. Eliminates the window but adds a synchronous cross-realm dependency and a new failure mode: when A is unreachable, the verifier must fail closed, which can deadlock federated task graphs. Acceptable only with a bounded, cached "introspection grace" that is itself shorter than the warrant TTL. - **Holder-authoritative liveness (proof-of-possession + single-use).** Bind the warrant to the presenter's key and enforce a `warrant_id` replay cache at the verifier with TTL ≥ warrant TTL. This makes replay by a *different* instance impossible and replay by the *same* instance detectable, at the cost of requiring instance key material at every holder and a shared replay cache (or per-verifier cache with the same TTL bound). This is the only position that holds when cross-realm revocation propagation is slow or partition-prone. The decision rule: if `TTL_warrant` cannot be made shorter than revocation propagation, you are in the holder-authoritative regime whether you designed for it or not — the attacker will find the fast-path. Choose PoP + replay cache, and treat poll-based revocation as defense-in-depth, not the primary control. ## Operational Effect Concretely, the fix that closed this incident had three parts, each addressing one sub-condition: 1. **Removed the freshness fast-path entirely.** Every admission, regardless of `issued_at`, performs a revocation lookup or hits the replay cache. The latency cost was ~4ms p99 on cache hit; the "optimization" was buying 4ms at the price of an unbounded auth bypass. 2. **Bound warrant TTL to revocation staleness.** The verifier now computes `list_age` on every admission and rejects with `StaleRevocationView` if `list_age > warrant_TTL - 30s`. This makes the *Condition of Validity* inequality a runtime assertion rather than an assumption. 3. **Added PoP binding and a `warrant_id` replay cache** with TTL = `warrant_TTL + max_clock_skew`. A second presentation of the same `warrant_id` from a different `presenter_instance_id`, or any second presentation at all, is rejected as `AttestationReplay`. The residual risk after the fix is clock skew between realms: if B's clock is behind A's by more than the safety margin, a warrant can appear unexpired after its true expiry. The guard is to reject any warrant whose `issued_at` is in the verifier's future by more than `max_clock_skew`, and to require `not_after - issued_at <= warrant_TTL_cap` so a malicious issuer-side re-sign cannot mint an arbitrarily long-lived warrant. ```python import time from dataclasses import dataclass class StaleRevocationView(RuntimeError): """Verifier's revocation list is too old to safely admit any warrant.""" pass class AttestationReplay(RuntimeError): """A warrant_id was presented twice, or by a non-bound presenter.""" pass class ClockSkewExceeded(RuntimeError): """Presented warrant timestamps are inconsistent with verifier clock.""" pass @dataclass class Warrant: warrant_id: str issuer: str audience: str presenter_instance_id: str issued_at: float not_after: float signature_ok: bool class FederatedVerifier: MAX_CLOCK_SKEW = 5.0 SAFETY_MARGIN = 30.0 WARRANT_TTL_CAP = 900.0 def __init__(self, revocation_list_age_fn, replay_cache): self._list_age = revocation_list_age_fn # seconds since last authoritative fetch self._replay_cache = replay_cache # warrant_id -> expiry self._now = time.time def admit(self, w: Warrant, presenter_pubkey_matches_warrant: bool) -> bool: now = self._now() # 1. Signature and structural checks (unchanged from prior baseline). if not w.signature_ok: raise StaleRevocationView(f"signature invalid for {w.warrant_id}") # 2. Clock-skew guard: reject warrants from the future or absurdly long-lived. if w.issued_at > now + self.MAX_CLOCK_SKEW: raise ClockSkewExceeded( f"{w.warrant_id} issued_at {w.issued_at:.0f} in future of {now:.0f}" ) if (w.not_after - w.issued_at) > self.WARRANT_TTL_CAP: raise ClockSkewExceeded( f"{w.warrant_id} TTL {(w.not_after - w.issued_at):.0f}s exceeds cap" ) # 3. Expiry. if now >= w.not_after: raise StaleRevocationView(f"{w.warrant_id} expired") # 4. Holder binding: proof-of-possession required, no bearer-style admission. if not presenter_pubkey_matches_warrant: raise AttestationReplay( f"{w.warrant_id} presented by unbound instance {w.presenter_instance_id}" ) # 5. Revocation freshness gate — NO freshness fast-path based on issued_at. list_age = self._list_age() if list_age > (w.not_after - w.issued_at) - self.SAFETY_MARGIN: raise StaleRevocationView( f"revocation list age {list_age:.0f}s too stale for " f"{w.warrant_id} TTL {(w.not_after - w.issued_at):.0f}s" ) # 6. Single-use enforcement: replay cache TTL >= warrant TTL + skew. cached_until = self._replay_cache.get(w.warrant_id) if cached_until is not None and now < cached_until: raise AttestationReplay( f"{w.warrant_id} already admitted; replay from {w.presenter_instance_id}" ) self._replay_cache[w.warrant_id] = w.not_after + self.MAX_CLOCK_SKEW return True ```