# How does an instance detect a revoked-but-still-valid federation trust anchor during cross-org agent credential verification **Date of Record:** 2026 November 27 **Scope:** Applies to federated agent systems where an agent instance presents a verifiable credential (VC) signed by a foreign org's trust anchor, and the verifying instance caches that anchor's public key or trust status locally. Does not apply to single-org deployments or to credentials verified fresh against a live, authoritative resolver on every call. ## Core Distinction The failure is not "expired credential" and not "invalid signature." Both of those fail closed and are trivially detected. The failure is a **revoked-but-still-valid trust anchor**: the leaf credential is unexpired, the signature verifies correctly against the anchor's public key, and the anchor's own validity window has not lapsed — yet the issuing organization has revoked the anchor (key compromise, org de-federation, policy withdrawal) and re-issued a new one. A verifier that validates the *chain* but treats the *anchor* as a static, immortal root will accept every credential the compromised anchor ever signed, indefinitely. The signature is genuine. The credential is current. The trust is void. This is the specific gap: **signature validity and trust-anchor liveness are orthogonal properties, and the first one is computed while the second one is assumed.** ## What Was Observed Org A federates with Org B. Org B publishes a trust anchor `B-root-1` (Ed25519 public key) at a well-known endpoint, alongside a signed anchor manifest with a `not_after` of 2026-01-01. Org A's verifier instance caches `B-root-1` on first fetch with a TTL of 24 hours, keyed by issuer DID. On 2025-06-01, Org B's `B-root-1` signing key is compromised. Org B revokes `B-root-1`, publishes `B-root-2`, and updates its anchor manifest to list `B-root-1` under `revoked`, with `revoked_at` = 2025-06-01T00:00:00Z. Org B does *not* retroactively invalidate credentials signed before revocation — that is the correct behavior, since those were legitimately issued. The attacker now mints *new* agent credentials dated 2025-06-02 onward, signing them with the compromised `B-root-1` private key. These credentials: - carry a `validFrom`/`validUntil` window entirely after the compromise, - verify cryptographically against `B-root-1`, - present a chain that terminates at a key Org A still has cached and still considers live. Org A's verifier accepts them. The TTL does not save it: within the 24-hour cache window, every forged credential passes. Across repeated cache refreshes, the verifier re-fetches the manifest but — critically — only *adds* new anchors and never *removes* or *demotes* anchors absent from the refreshed manifest, because the reconciliation logic treats manifest absence as "transient resolver hiccup, retain last-known-good." The revoked anchor persists in cache forever. The observable trace: a forged credential with `issued_at` after `revoked_at` validates as `TRUSTED`. The verifier's audit log shows `signature=ok, chain=complete, anchor=B-root-1, anchor_status=cached_live`. Nothing in the log is false. The composite verdict is wrong because `anchor_status` was never re-derived against the revocation list. ## Condition of Validity The invariant that must hold: **for any credential, the verifier's trust decision is only valid if the anchor's status was re-derived at a time after the credential's `issued_at`, and the anchor was not revoked at or before `issued_at`.** Formally, acceptance requires: ``` anchor.status_at(t_verify) == live AND NOT (anchor.revoked_at <= credential.issued_at) AND credential.issued_at >= anchor.not_before ``` The subtle clause is the second one. It is not enough that the anchor is live *now*; the anchor must not have been revoked *before the credential claims to have been issued*. A credential issued after its anchor's revocation is, by construction, forged — no legitimate issuer signs with a key it has already revoked. This is the temporal ordering that static chain validation never checks, because standard X.509-style path validation evaluates revocation at verification time, not at issuance time, and treats "revoked now" as the only relevant predicate. The condition fails the moment two things coincide: (1) the verifier caches anchors with any positive TTL, and (2) the verifier's cache-refresh reconciliation is additive rather than authoritative. Either alone is survivable; together they create an unbounded window in which a revoked anchor is simultaneously cached-as-live and absent from the authoritative revocation set the verifier bothers to consult. ## Decision Boundary The verifier must cross from "trust the cache" to "force re-derivation" at a specific, computable boundary. That boundary is: **whenever a presented credential's `issued_at` is later than the verifier's last confirmed-fresh anchor-status timestamp.** If the credential claims to have been issued after the last time you actually checked the anchor against the authoritative revocation list, you cannot rely on the cached status — you must re-fetch and re-derive before deciding. This inverts the usual caching heuristic. Instead of "refresh the anchor every N hours," the rule becomes "any credential newer than your freshest anchor-status check triggers an on-demand re-derivation." A flood of post-revocation forgeries then cannot ride the cache, because each forged credential's `issued_at` postdates the cached status and forces a fresh check that reveals the revocation. The guardrail is a **monotonic anchor-status watermark**: the verifier records `last_authoritative_check` per anchor. A credential is admissible against the cache only if `credential.issued_at <= last_authoritative_check`. Otherwise the verifier must block on a synchronous re-derivation, and if that re-derivation is unavailable, it must fail closed — not fall back to the cached "live" verdict. ## Operational Effect With the watermark in place, the compromised-anchor forgery collapses at the first post-revocation credential: `issued_at` = 2025-06-02 exceeds `last_authoritative_check` = 2025-05-31T23:xx, forcing a re-fetch. The refreshed manifest lists `B-root-1` as revoked at 2025-06-01, the temporal predicate `revoked_at <= issued_at` fires, and the credential is rejected with a distinguishable verdict (`ANCHOR_REVOKED_BEFORE_ISSUANCE`) rather than a generic signature failure — which matters for incident response, because it tells the operator the anchor, not the credential, is the compromised artifact. The cost is a latency spike on the first credential newer than the last check, and a hard dependency on resolver availability for that path. That dependency is correct: a verifier that cannot confirm anchor liveness for a credential issued after its last check has no basis to trust it, and failing closed is the only sound default. Pre-revocation credentials continue to verify against the cache without a round-trip, because their `issued_at` predates the watermark — the optimization is preserved exactly where it is safe and revoked only where it is not. ```python from dataclasses import dataclass from datetime import datetime class AnchorRevokedBeforeIssuanceError(RuntimeError): """Raised when a credential's issuance postdates its trust anchor's revocation.""" pass class StaleAnchorStatusError(RuntimeError): """Raised when anchor status cannot be re-derived for a post-watermark credential.""" pass @dataclass class Credential: issued_at: datetime anchor_id: str signature_valid: bool @dataclass class AnchorRecord: anchor_id: str revoked_at: datetime | None last_authoritative_check: datetime def verify_credential( cred: Credential, anchor: AnchorRecord, rederive_status, # callable(anchor_id) -> AnchorRecord | None ) -> str: if not cred.signature_valid: raise AnchorRevokedBeforeIssuanceError("signature invalid") # fail closed # Cached status is admissible only if the credential predates the last # authoritative anchor check. if cred.issued_at > anchor.last_authoritative_check: fresh = rederive_status(anchor.anchor_id) if fresh is None: raise StaleAnchorStatusError( f"cannot re-derive status for anchor {anchor.anchor_id}; " f"credential issued {cred.issued_at} postdates watermark " f"{anchor.last_authoritative_check}" ) anchor = fresh if anchor.revoked_at is not None and anchor.revoked_at <= cred.issued_at: raise AnchorRevokedBeforeIssuanceError( f"anchor {anchor.anchor_id} revoked at {anchor.revoked_at}, " f"credential claims issuance at {cred.issued_at} — forged" ) return "TRUSTED" ```