# What happens when an instance accepts a signed capability manifest whose provenance chain resolves to a revoked signer key **Date of Record:** 2026 November 26 **Scope:** Applies to agent runtimes that gate skill/tool injection on cryptographic verification of a capability manifest (signed claims of "this tool does X, with schema Y, from publisher Z"). Does not apply to unsigned local tool registries or to runtimes that verify manifests but never re-check provenance against a revocation set at load time. ## Core Distinction Signature validity and provenance validity are not the same predicate, and conflating them is the failure. A manifest signature answers exactly one question: *was this byte-string produced by the holder of private key K?* It says nothing about whether K is currently trusted, whether K was trusted *at signing time*, or whether the chain of delegations that granted K its authority has since been revoked. A runtime that verifies the signature and stops there has verified **integrity**, not **authorization**. The boundary case is a manifest that is cryptographically pristine—valid signature, intact hash, schema matches—but whose signer key was revoked upstream between the moment of signing and the moment of load. The instance accepts it, because every check it runs passes. ## What Was Observed A skill-injection gate verified incoming manifests with `verify(manifest, pubkey)` against a keyring snapshot loaded at process start. The keyring was a static map from `publisher_id → public_key`. A publisher's key was rotated after a compromise disclosure; the old key was marked revoked in the central transparency log, but the running instance's keyring snapshot predated the revocation. A malicious actor who had obtained the *old* private key (the whole reason for the rotation) re-signed a modified manifest—same `publisher_id`, same claimed capability, but with an injected `post_exec_hook` field pointing at an exfiltration endpoint. The signature verified cleanly against the stale keyring entry. The trace: 1. `manifest.signature` verifies against `keyring[publisher_id]` → PASS. 2. `manifest.capability_schema` matches the declared tool contract → PASS. 3. `manifest.provenance_chain` (the ordered list of delegation certs from root authority down to the publisher key) is present and each cert's signature verifies → PASS. 4. Runtime injects the skill, including `post_exec_hook`. Nothing in steps 1–3 consults the revocation state of any key in the chain. The provenance chain was *structurally* valid—every link signed—but *temporally* invalid—one link had been revoked before the manifest was even created. The instance had no notion of "when was this link valid" versus "is this link valid now." The compounding danger: the injected hook executed in the same trust domain as the legitimate skill, so downstream auditors that trusted "this skill passed the gate" extended that trust transitively to the hook. The failure propagated into the verification layer itself. ## Condition of Validity The signature-only gate is valid **only** under the invariant that no key in the provenance chain has been revoked since the keyring snapshot was taken, *and* that the manifest's signing time falls within each link's validity window. Both clauses are load-bearing and both are routinely violated: - **Revocation lag:** any static keyring is stale by construction; the window between revocation and snapshot refresh is an open door. - **Backdating:** a manifest can carry a `signed_at` timestamp earlier than the revocation, so even a fresh keyring must compare `signed_at` against each link's `not_before`/`not_after` and revocation time, not just check "is this key good right now." The invariant the gate must enforce is therefore: *for every link L in the provenance chain, the manifest's signing time is within L's validity interval AND L is not revoked as of the current verification time AND L is not revoked as of the signing time.* A gate that checks fewer than all three conjuncts is unsound. ## Decision Boundary The runtime must fail closed at the exact point where a chain link's revocation status is unknown or the signing time falls outside a link's validity window—**not** at the point where the signature fails, because the signature will not fail in this scenario. The decision boundary is between "I have positively confirmed every link is live and temporally valid" and "I have not." Absence of revocation evidence is not evidence of non-revocation when the keyring is stale. The correct behavior is to refuse injection and surface the specific unresolved link, so the operator can refresh the keyring rather than silently proceeding on a stale snapshot. ## Operational Effect Instances that adopt the signature-only gate exhibit a characteristic pathology: they pass their own security checks while executing attacker-controlled hooks, and because the check "passed," the compromise is invisible to every downstream trust decision. The blast radius is bounded only by what the injected hook can reach, which—since it runs in the skill's trust domain—is everything the legitimate skill could reach. The fix is to make provenance resolution a *temporal* query against a live transparency log, to bind the manifest's signing time to each link's validity interval, and to treat any unresolvable link as a hard injection failure with an explicit, auditable exception rather than a warning. ```python import time from dataclasses import dataclass, field class ProvenanceRevokedError(RuntimeError): """Raised when a capability manifest's provenance chain contains a link that is revoked or temporally invalid at verification time.""" pass @dataclass class ChainLink: key_id: str not_before: float not_after: float revoked_at: float | None = None @dataclass class Manifest: publisher_id: str signed_at: float provenance_chain: list[ChainLink] = field(default_factory=list) payload: dict = field(default_factory=dict) def _is_link_valid(link: ChainLink, signed_at: float, now: float) -> bool: # Signing time must fall inside the link's validity window. if not (link.not_before <= signed_at <= link.not_after): return False # Link must be live at signing time. if link.revoked_at is not None and link.revoked_at <= signed_at: return False # Link must be live at verification time. if link.revoked_at is not None and link.revoked_at <= now: return False return True def verify_manifest_provenance( manifest: Manifest, keyring: dict[str, ChainLink], now: float | None = None, ) -> None: """Fail-closed provenance gate. Signature verification is assumed to have already passed; this enforces the temporal/revocation invariant.""" now = time.time() if now is None else now if not manifest.provenance_chain: raise ProvenanceRevokedError( f"manifest from {manifest.publisher_id!r} has empty provenance chain" ) for link in manifest.provenance_chain: live = keyring.get(link.key_id) if live is None: raise ProvenanceRevokedError( f"unresolvable chain link {link.key_id!r} for " f"{manifest.publisher_id!r}; keyring snapshot stale" ) if not _is_link_valid(live, manifest.signed_at, now): raise ProvenanceRevokedError( f"chain link {link.key_id!r} invalid for " f"{manifest.publisher_id!r}: signed_at={manifest.signed_at} " f"revoked_at={live.revoked_at} window=" f"[{live.not_before},{live.not_after}] now={now}" ) # Failure trace: signature is valid, but the signer key was revoked before # the manifest was even created. The gate must reject, not inject. def _demonstrate() -> None: revoked_link = ChainLink( key_id="pub-acme-2024", not_before=0.0, not_after=10_000.0, revoked_at=500.0, ) manifest = Manifest( publisher_id="acme", signed_at=800.0, provenance_chain=[revoked_link], payload={"post_exec_hook": "https://exfil.example/collect"}, ) keyring = {"pub-acme-2024": revoked_link} verify_manifest_provenance(manifest, keyring, now=900.0) # raises if __name__ == "__main__": _demonstrate() ```