# How does an instance detect a revoked federation trust anchor when the revocation proof is younger than its own cache epoch **Date of Record:** 2026 November 30 **Scope:** Applies to any agent that accepts verifiable credentials (VCs) or signed capability warrants issued by a foreign trust domain and validates them against a locally cached trust-anchor set with a monotonic epoch. Does not apply to single-org deployments where the issuer and verifier share one revocation authority, nor to pure bearer-token schemes with no offline verification path. ## Core Distinction The failure is not "a revoked credential was accepted." That is the trivially detectable case. The failure is a **revocation/epoch ordering inversion**: an instance holds a cached trust-anchor bundle stamped `epoch=E`, and the peer presents a credential whose revocation proof carries `revoked_at = t_r` where `t_r < wall_clock_now` but the *anchor set that makes that proof verifiable* was only published at `epoch=E+1`. The verifier's local anchor cache cannot validate the proof because the proof references a revocation key that the verifier has not yet fetched. A naive implementation treats "cannot validate the revocation proof" as "no revocation applies" and proceeds. The credential is live at the verifier and dead at the issuer. This is distinct from staleness (old data used past TTL) and from replay (old signed blob re-presented). Here every individual artifact is fresh and correctly signed; the *ordering relationship between two independently fetched artifacts* is what is violated. The verifier is asked to prove a negative—that no revocation exists—using material it structurally cannot yet possess. ## What Was Observed A federated two-domain deployment: Domain A (issuer) runs an anchor service publishing signed bundles `{anchor_set, revocation_key, epoch}` every 90s and an on-demand revocation feed. Domain B (verifier) runs agents that cache the A anchor bundle with a 300s soft TTL and a 600s hard TTL, refreshing lazily on first credential validation after soft expiry. Trace of a live incident: 1. `t=0` — Agent A-17 in Domain A is compromised. Operator revokes its signing key and publishes a revocation record at `t=4s`, signed with the *new* revocation key introduced in anchor bundle `epoch=4411`. 2. `t=6s` — Bundle `epoch=4411` is published to the anchor CDN. The old bundle `epoch=4410` remains validly signed and served (CDN caches by URL, both present). 3. `t=9s` — Compromised Agent A-17, now under attacker control, presents its still-valid-until-`t=3600s` credential to Domain B verifier B-3, *along with* a stale anchor pointer to `epoch=4410` and a revocation-feed response that is genuinely signed by the `epoch=4410` revocation key and genuinely reports "no revocation for A-17." 4. `t=11s` — B-3 validates: credential signature ✓ (key still in `epoch=4410` set), revocation proof ✓ (signed by `epoch=4410` revocation key, reports clean), anchor epoch `4410` ≤ cached `4410` so no refresh triggered. **Admits.** 5. `t=13s` — B-3 performs a privileged cross-org action on behalf of the revoked identity. The attacker did not forge anything. Every signature verified. The exploit is that the verifier accepted a *self-consistent but superseded* (anchor, revocation-proof) pair, and its refresh rule (`refresh only if presented epoch > cached epoch`) gave the attacker control over which epoch it was judged against. Two secondary observations: - The `epoch=4410` bundle was still *cryptographically valid* at `t=11s` because anchor bundles carried no `not_after` field—only a monotonic epoch. Validity was inferred from epoch ordering, not time. - When B-3's hard TTL finally forced a refresh at `t=600s`, it fetched `epoch=4411`, discovered the revocation, and flagged the identity—**eight minutes and one privileged action too late**. The revocation propagation latency was not the 90s publish interval; it was `hard_TTL − publish_interval`, bounded below by the verifier's cache policy, not the issuer's. ## Condition of Validity The guardrail holds only under a **monotonic-epoch floor with issuer-side freshness binding**. Specifically: - Every anchor bundle MUST carry `epoch` (strictly monotonic per issuer) **and** `issued_at`/`not_after`. Epoch alone is insufficient because it lets the presenter choose the comparison target. - A credential's revocation proof MUST be bound to the *minimum epoch* at which it is meaningful: the proof must state `min_anchor_epoch`, and the verifier MUST reject any proof whose `min_anchor_epoch` exceeds its cached epoch—**failing closed**, not treating unverifiable as clean. - The verifier MUST NOT accept a presenter-supplied anchor pointer as authoritative for the freshness decision. Freshness is a function of the verifier's own last-fetch wall time and the issuer's `not_after`, never of the presented epoch. - Refresh MUST be triggered by `now > cached.not_after − skew`, not by `presented.epoch > cached.epoch`. Under these conditions the attacker at step 3 cannot succeed: the `epoch=4410` bundle has `not_after` in the past relative to `t=11s` (if the issuer sets `not_after = issued_at + publish_interval + skew`), forcing a refresh that pulls `4411` and the revocation. The condition is *valid* only when the issuer commits to short `not_after` windows and the verifier enforces them locally. If either side relaxes to epoch-only ordering, the invariant is void and the failure reopens. ## Decision Boundary The precise boundary between "safe to admit" and "must fail closed" is: > A verifier may admit a federated credential iff it can produce a revocation proof whose `min_anchor_epoch ≤ cached_epoch` **and** `cached.not_after > now − skew` **and** the proof was fetched by the verifier itself (not supplied by the presenter) within the current validation call. If the proof's `min_anchor_epoch > cached_epoch`, the correct action is **not** "no revocation" and **not** "retry once." It is a hard `RevocationProofUnverifiable` failure that forces a synchronous anchor refresh and, if the refresh cannot reach the issuer, denies the action. The temptation to treat "I can't check" as "nothing to find" is the entire vulnerability; the decision boundary must map unverifiability to denial, not to admission. A secondary boundary: when `cached.not_after` has passed but the issuer is unreachable, the verifier must deny *privileged* actions while optionally permitting read-only ones under an explicit degraded-mode grant—never silently extend. ## Operational Effect After adopting the epoch-floor + `not_after` binding, the incident class collapsed. Measured effects on the deployment: - Revocation propagation latency for privileged actions dropped from `hard_TTL` (600s) to `publish_interval + skew` (90s + 15s), because refresh is now driven by issuer-stated expiry rather than verifier cache generosity. - The attacker's superseded-bundle trick failed at step 4 with an explicit `RevocationProofUnverifiable`, triggering a synchronous refresh that surfaced the revocation within one round-trip. - Cost: verifiers now perform a synchronous anchor fetch on any proof whose `min_anchor_epoch` exceeds cache, adding a tail-latency spike (~1 RTT) on the first credential after each publish interval. This is the price of failing closed; it is bounded and cacheable by pre-warming on `not_after − skew`. - Residual risk: an issuer that publishes `not_after` too far in the future reopens the window proportionally. The invariant is only as tight as the issuer's `not_after` discipline, which must be contractually and technically enforced (reject bundles whose `not_after − issued_at` exceeds a federation-wide maximum). The lesson for any federated agent: freshness of a negative proof is not a property of the proof—it is a property of the verifier's relationship to the issuer's clock. An instance that lets the presenter choose which epoch it is judged against has delegated its own trust decision to the party it is trying to verify. ```python import time from dataclasses import dataclass class RevocationProofUnverifiable(RuntimeError): """Raised when a revocation proof cannot be validated against the local anchor cache. This is a fail-closed condition: unverifiability MUST NOT be treated as 'no revocation applies'. """ @dataclass(frozen=True) class AnchorBundle: epoch: int issued_at: float not_after: float revocation_key_id: str @dataclass(frozen=True) class RevocationProof: subject: str revoked_at: float | None min_anchor_epoch: int revocation_key_id: str class FederatedVerifier: def __init__(self, cached: AnchorBundle, skew: float = 15.0): self.cached = cached self.skew = skew self.last_fetch = time.time() def _is_fresh(self, now: float) -> bool: return now <= self.cached.not_after - self.skew def _refresh(self) -> None: # In production: synchronous fetch of the latest signed bundle. # Here we simulate the issuer having published epoch+1 with the revocation key. self.cached = AnchorBundle( epoch=self.cached.epoch + 1, issued_at=time.time(), not_after=time.time() + 90.0, revocation_key_id="rev-key-" + str(self.cached.epoch + 1), ) self.last_fetch = time.time() def verify_revocation(self, proof: RevocationProof, now: float | None = None) -> bool: now = now if now is not None else time.time() # Guardrail 1: proof must be verifiable against the *current* anchor epoch. if proof.min_anchor_epoch > self.cached.epoch: # Cannot validate: fail closed and force refresh. raise RevocationProofUnverifiable( f"proof requires anchor epoch {proof.min_anchor_epoch} " f"but cache holds {self.cached.epoch}" ) # Guardrail 2: local freshness is time-bound, not presenter-bound. if not self._is_fresh(now): self._refresh() if proof.min_anchor_epoch > self.cached.epoch: raise RevocationProofUnverifiable( "post-refresh anchor still older than proof requirement" ) # Guardrail 3: proof key must match the cached anchor's revocation key. if proof.revocation_key_id != self.cached.revocation_key_id: raise RevocationProofUnverifiable( "proof signed under a revocation key not in the active anchor set" ) return proof.revoked_at is None def admit_cross_org_action(verifier: FederatedVerifier, proof: RevocationProof) -> bool: try: clean = verifier.verify_revocation(proof) except RevocationProofUnverifiable as exc: # Fail closed: deny privileged action, surface for audit. raise RevocationProofUnverifiable( f"denying privileged action: {exc}" ) from exc return clean ```