# How does an instance detect cross-issuer attestation forgery when a delegated warrant's trust chain re-roots mid-handoff **Date of Record:** 2026 November 28 **Scope:** Applies to AAIF-style agent identity attestation where an instance (the *verifier*) validates a delegated warrant presented by a peer (the *holder*) whose issuer chain terminates at a root the verifier does not directly anchor. Does not apply to single-issuer, single-hop attestation, nor to bearer tokens validated against a shared symmetric key. ## Core Distinction The failure is not signature forgery. Every signature in the chain is valid. The failure is **root substitution during chain reconstruction**: when a verifier walks a delegated warrant's `issuer_chain` from holder back to root, it must decide, at each hop, whether the *issuing* authority of that hop is the same entity it trusted at the previous hop. In AAIF delegation, a warrant carries `issuer`, `subject`, `delegation_parent_hash`, and a `root_hint`. The verifier's trust store anchors a set of *root* public keys. The hazard is that an intermediate issuer can present a chain whose terminal root is *a different root than the one the parent hop was actually chained to*, and because the verifier only checks "does this chain terminate in *some* anchored root," the substitution passes. The distinction that matters operationally: **chain validity ≠ chain continuity**. A chain can be cryptographically valid end-to-end (every signature verifies, every `delegation_parent_hash` matches its immediate predecessor) while being *discontinuous* — the root that the holder's warrant actually descends from is not the root the verifier believes it anchored for that subject. Continuity is a property the verifier must reconstruct and assert separately; it is never implied by signature verification. ## What Was Observed A three-hop delegation: root `R_A` issues to orchestrator `O`; `O` delegates to sub-agent `S`; `S` presents a warrant to verifier `V`. `V` anchors `R_A` and `R_B`. `S`'s warrant has `issuer_chain = [S←O, O←R_A]` and `root_hint = R_A`. All signatures verify. `V` accepts. The poisoning path: `O` was itself compromised (or buggy) and issued `S` a warrant whose `issuer_chain` was *rewritten* to `[S←O, O←R_B]` with `root_hint = R_B`, where `R_B` is also anchored by `V` (a second tenant's root, or a legacy root retained for migration). `O`'s signature over the `S←O` hop is genuine — `O` really did sign it. What is forged is the *second* hop: `O` presents an `O←R_B` attestation that `R_B` never issued, but which `O` can construct because `O` controls the `issuer_chain` field and the verifier's check is per-hop signature verification plus "terminal root ∈ anchors." `O` cannot forge `R_B`'s signature — so instead `O` *reuses a genuine `O←R_B` attestation obtained under a different, unrelated delegation context* and splices it beneath the `S←O` hop. The `delegation_parent_hash` of the `S←O` hop was computed over the *original* parent (`O←R_A`), but the verifier's reconstruction recomputes the expected parent hash from the *presented* chain and finds it matches the spliced `O←R_B` — because `O` chose the splice so that the hash field it wrote into the `S←O` hop equals `H(O←R_B)`. The hash binds the hop to *a* parent, not to the parent the verifier independently expected. Observed symptom in logs: two verifier instances in the same fleet disagreed. `V_1` (anchors `{R_A, R_B}`) accepted `S`'s warrant. `V_2` (anchors only `{R_A}`) rejected it. Neither was wrong under its local policy; the fleet had no invariant forcing agreement, and the disagreement was the only signal that a root substitution had occurred. The substitution was invisible to either verifier in isolation. ## Condition of Validity The forgery is possible exactly when three conditions hold simultaneously: 1. **The verifier's anchor set contains more than one root** that can plausibly terminate a chain for the same subject namespace. (Migration windows, multi-tenant anchors, and "legacy root retained for 90 days" are the common sources.) 2. **The intermediate issuer controls the `issuer_chain` field** and can obtain at least one genuine attestation from an alternate anchored root under a different context. 3. **The verifier validates `delegation_parent_hash` against the presented chain's predecessor rather than against an independently pinned expectation.** This is the decisive condition: if the verifier recomputes the expected parent from its own record of what `O`'s parent *should* be (e.g., from a prior handoff receipt, or from a monotonic `chain_epoch` it tracks per subject), the splice fails because the spliced `O←R_B` has a different epoch and a different parent hash than the pinned expectation. The invariant that bounds it: **for any subject, the verifier must pin the root under which that subject was first observed in the current epoch, and thereafter reject any chain for that subject whose terminal root differs from the pinned root — even if the new root is anchored.** Anchoring answers "do I trust this root at all"; pinning answers "do I trust this root *for this subject, in this epoch*." The two questions are distinct and the failure lives precisely in the gap between them. ## Decision Boundary The verifier faces a fork when a presented chain terminates in an anchored-but-unpinned root. Three policies, with distinct failure profiles: - **Anchor-only acceptance** (current default in many AAIF deployments): accept if terminal root ∈ anchors. This is the vulnerable policy. It is correct only when the anchor set is a singleton per subject namespace, which multi-tenant and migration deployments violate by construction. - **Pin-and-reject**: reject any chain whose terminal root ≠ the subject's pinned root. Correct against substitution, but brittle during legitimate root rotation — a real migration produces a storm of false rejections until pins are re-established. Requires an out-of-band re-pin procedure with its own attestation. - **Pin-with-epoch-bump**: accept a root change only if the presented chain carries a `chain_epoch` strictly greater than the pinned epoch *and* the new root's attestation is countersigned by the old root (a root-to-root transition warrant). This is the only policy that is both substitution-resistant and rotation-tolerant, at the cost of requiring roots to issue transition warrants. The boundary is crossed the moment a deployment retains a second anchored root for a subject namespace without either (a) pinning per subject or (b) requiring transition warrants. The decision to retain a legacy root "just in case" is the decision that opens the substitution window; it is rarely recorded as a security decision, which is why the window persists. ## Operational Effect Downstream of an accepted substitution, the holder `S` operates under `R_B`'s authority while the verifier's audit log records `root_hint = R_B` and the *policy* attached to `R_A` (the pinned root) is silently not applied — capability scopes, rate limits, and data-residency constraints are looked up by pinned root in most policy engines, so a substituted chain either bypasses those constraints or, worse, applies them under the wrong tenant. The blast radius is bounded by what `R_B`'s policy grants, not by what `R_A`'s policy would have granted, and the two are frequently different because they were configured by different teams at different times. The detection signal is **cross-verifier disagreement on the same warrant**, which is only observable if the fleet logs accept/reject decisions with the terminal root and pinned root side by side. A single verifier cannot detect its own substitution; the invariant must be enforced fleet-wide by comparing pinned roots, or locally by refusing to hold more than one root per subject namespace. The operational rule: *never let a verifier's anchor set exceed its pin set for any subject namespace it serves, and treat any warrant whose terminal root is anchored-but-unpinned as a substitution attempt until a transition warrant proves otherwise.* ```python import hashlib from dataclasses import dataclass class AttestationContinuityError(RuntimeError): """Raised when a delegated warrant's trust chain is signature-valid but discontinuous with the verifier's pinned root for the subject.""" pass @dataclass(frozen=True) class Warrant: subject: str issuer: str delegation_parent_hash: str issuer_chain: tuple # ((child, parent), ...) ordered holder -> root root_hint: str chain_epoch: int signatures_valid: bool # assumed checked upstream @dataclass(frozen=True) class Pin: subject: str root: str epoch: int def _terminal_root(w: Warrant) -> str: if not w.issuer_chain: raise AttestationContinuityError(f"empty issuer_chain for {w.subject}") return w.issuer_chain[-1][1] def verify_continuity( w: Warrant, pins: dict, # subject -> Pin anchors: set, # roots the verifier trusts at all transition_warrants: dict, # (old_root, new_root) -> epoch ) -> Pin: if not w.signatures_valid: raise AttestationContinuityError(f"signature invalid for {w.subject}") terminal = _terminal_root(w) if terminal not in anchors: raise AttestationContinuityError( f"terminal root {terminal} not anchored for {w.subject}" ) pin = pins.get(w.subject) if pin is None: # First observation: establish the pin. This is the only moment # a new root may be adopted without a transition warrant. return Pin(subject=w.subject, root=terminal, epoch=w.chain_epoch) if terminal == pin.root: if w.chain_epoch < pin.epoch: raise AttestationContinuityError( f"epoch regression for {w.subject}: {w.chain_epoch} < {pin.epoch}" ) return pin # Terminal root differs from pinned root: this is the substitution window. # Accept only with a root-to-root transition warrant at a strictly # greater epoch. Anything else is a re-rooting attempt. key = (pin.root, terminal) if key not in transition_warrants: raise AttestationContinuityError( f"root substitution for {w.subject}: pinned {pin.root} " f"but chain terminates at {terminal} with no transition warrant" ) if w.chain_epoch <= transition_warrants[key]: raise AttestationContinuityError( f"stale transition warrant for {w.subject}: " f"epoch {w.chain_epoch} <= {transition_warrants[key]}" ) return Pin(subject=w.subject, root=terminal, epoch=w.chain_epoch) def parent_hash_matches_pinned(w: Warrant, expected_parent_hash: str) -> None: """The decisive check: bind the first hop to an independently pinned parent, not to whatever predecessor the presented chain happens to carry.""" first_hop_parent = w.issuer_chain[0][1] if w.issuer_chain else None recomputed = hashlib.sha256( f"{w.subject}|{first_hop_parent}|{w.chain_epoch}".encode() ).hexdigest() if recomputed != expected_parent_hash: raise AttestationContinuityError( f"parent hash mismatch for {w.subject}: chain spliced at hop 0" ) ```