# How should an instance detect and contain a capability-lease confusion attack when a trusted broker re-signs an attenuated warrant during cross-org federation **Date of Record:** 2026 December 2 **Scope:** Applies to federated multi-agent systems where a foreign-domain trust broker re-issues (re-signs) attenuated capability warrants on behalf of a local agent, and where the receiving agent's policy engine reconciles the re-signed warrant against a local capability lease. Does not apply to closed single-org deployments where warrants are never re-signed by a third party, nor to purely anonymous capability-token systems with no broker in the chain. ## Core Distinction The failure is not a signature forgery and not a straightforward privilege-escalation via a forged claim. It is a **warrant-identity confusion** that arises specifically at the boundary where a broker re-signs an attenuated warrant: the broker legitimately holds a signing key, legitimately attenuates the warrant it received, and legitimately signs the result — but the *subject binding* of the attenuated warrant and the *holder binding* of the local capability lease are reconciled by different fields that happen to share a name. The local agent's policy engine treats the broker's re-signature as an attestation that the attenuated warrant's subject is the same entity the local lease was issued to. It is not. The broker attests only that *it* attenuated *some* warrant it received; it does not attest the identity of the original subject across the federation boundary. The distinction that matters operationally: a re-signed warrant is an **attestation of attenuation lineage**, not an **attestation of subject identity**. Any policy engine that conflates the two will accept a warrant whose lineage is valid but whose subject is a different agent instance than the one holding the local lease. ## What Was Observed In a two-org federation (Org A issues capability leases; Org B runs a trust broker that re-signs attenuated warrants for its own agents to call back into Org A), the following sequence reproduced the failure deterministically: 1. Org A issues a capability lease `L` to agent instance `A-17`, binding `L.subject = "did:orgA:agent:17"` and `L.holder_key = K17`. The lease carries a scope `read:dataset:clinical-trial-9` and a TTL of 900s. 2. Org B's broker receives a warrant `W0` from `B-04` (an Org B agent) requesting delegated access to the same dataset. `W0.subject = "did:orgB:agent:04"`, `W0.attenuation_chain = [W0]`. 3. The broker attenuates `W0` to scope `read:dataset:clinical-trial-9` and re-signs, producing `W1` with `W1.subject = "did:orgB:agent:04"`, `W1.attenuation_chain = [W1, W0]`, `W1.broker_sig = sig_B`. 4. `B-04` presents `W1` to `A-17` as part of a baton-pass for a joint task. `A-17`'s policy engine, on receiving `W1`, inspects `W1.attenuation_chain`, verifies `sig_B` against Org B's published broker key (which is trusted via a federation trust anchor), and checks that `W1.scope` is a subset of `L.scope`. 5. The subset check passes. The signature check passes. The policy engine admits `W1` and, critically, **binds the resulting session to `L`**, treating `W1` as a delegated continuation of `A-17`'s own lease. `B-04` now executes tool calls under `A-17`'s lease identity, including audit attribution that records the calls as originating from `A-17`. The confusion: `W1.subject` is `B-04`, but the policy engine's admission path consulted `L.subject` (`A-17`) for the session binding because the *warrant* was presented as a delegation of `L`. The field name `subject` on the warrant and the field name `subject` on the lease were treated as the same logical field. They are not: the lease's `subject` is the *leaseholder*; the warrant's `subject` is the *delegate*. The broker's signature is valid over `W1` but says nothing about whether `W1.subject` equals `L.subject`. The observable effect was not a hard error. It was **audit-attribution drift**: 41 tool calls over a 6-minute window were logged under `A-17`'s identity while originating from `B-04`. No capability was exceeded in scope; the failure was purely identity-boundary confusion. In a stricter dataset with write scopes, the same mechanism would have allowed `B-04` to write under `A-17`'s attribution. ## Condition of Validity The confusion requires all of the following to hold simultaneously: - The receiving agent's policy engine admits re-signed warrants by verifying the broker's signature and checking scope subset, **without** a separate equality check between `warrant.subject` and `lease.subject`. - The broker is trusted via a federation trust anchor that is scoped to *signing authority for attenuation*, not to *identity attestation for subjects*. If the trust anchor's metadata explicitly declares `attests: attenuation_only` and the policy engine enforces it, the confusion is blocked. - The attenuation chain is presented as a delegation of the local lease rather than as an independent foreign warrant. This is the baton-pass framing: the foreign agent hands the warrant over as "here is my credential for our joint task," and the receiving agent's admission logic is keyed on "is this a valid delegation of my lease?" rather than "is this a valid foreign credential I should honor under federation policy?" - The scope subset check passes, which is easy to arrange because the broker attenuates to the requested scope. If any of these fails — if the trust anchor is scoped to identity attestation, if the policy engine performs an explicit subject-equality check, or if the warrant is admitted under a distinct federation-credential path rather than as a lease delegation — the confusion does not arise. The boundary is therefore *not* "brokers are untrusted" (they are trusted, for attenuation) but "broker trust scope is not enforced at admission time." ## Decision Boundary The architectural invariant required to bound this: **a re-signed warrant may never be admitted as a delegation of a local lease unless the policy engine independently establishes that `warrant.subject` equals `lease.subject`, and the broker's trust anchor explicitly grants identity-attestation authority for that subject.** Concretely, the admission decision must branch on the provenance of the presented credential: - If the credential is a **local lease** (issued by this org), admit under local policy; `subject` is the leaseholder. - If the credential is a **foreign warrant**, admit only under federation policy, with a session identity derived from `warrant.subject` and *not* from any local lease. The local lease, if any, is irrelevant to the foreign warrant's admission. - If the credential is a **re-signed warrant presented as a lease delegation** (the baton-pass framing), reject unless (a) the trust anchor grants identity-attestation authority, and (b) `warrant.subject == lease.subject`. Otherwise, downgrade to foreign-warrant admission under federation policy, with audit attribution to `warrant.subject`. The decision boundary is therefore at the point where the policy engine chooses which `subject` field to bind the session to. Binding to `lease.subject` when the presented credential is a foreign warrant is the failure. Binding to `warrant.subject` under federation policy is correct and safe. ## Operational Effect The operational consequence of getting this wrong is **silent identity laundering across the federation boundary**: a foreign agent executes under a local agent's identity and audit attribution, with all scope checks passing and all signatures valid. Detection via scope monitoring fails because scope is not exceeded. Detection via signature verification fails because signatures are valid. Detection requires either (a) periodic reconciliation of audit attribution against the actual holder key of the session, or (b) a policy-engine admission log that records the *provenance* of the bound `subject` field (lease vs. warrant) and flags any session where the bound subject's provenance is `lease` but the presented credential's provenance is `warrant`. The containment guardrail is the explicit subject-equality check plus trust-anchor scope enforcement described above. The reconciliation guardrail is a post-hoc audit that compares `session.bound_subject` against `session.holder_key` and flags mismatches. Both are required: the admission check prevents the confusion at the boundary; the reconciliation check catches policy-engine drift or misconfiguration that re-introduces it. The deeper lesson for an agent instance operating in a federation: **a broker's signature is a statement about lineage, not about identity.** Treat every re-signed warrant as a foreign credential whose subject is the warrant's subject, regardless of how it was presented. The baton-pass framing — "here is my credential for our joint task" — is precisely the framing that invites the confusion, because it presents a foreign warrant as if it were a delegation of the local lease. The instance must resist that framing at admission time. ```python class LeaseSubjectConfusionError(RuntimeError): """Raised when a re-signed foreign warrant is presented as a delegation of a local capability lease but the warrant's subject does not match the lease's subject, or the broker's trust anchor does not grant identity attestation authority.""" pass def admit_credential(credential, local_lease, trust_anchor): """ credential: dict with keys 'kind' ('lease'|'warrant'), 'subject', 'scope', 'broker_sig', 'attenuation_chain' local_lease: dict or None with keys 'subject', 'scope', 'holder_key' trust_anchor: dict with keys 'broker_key', 'attests' ('attenuation_only' | 'identity_and_attenuation') """ if credential["kind"] == "lease": if local_lease is None or credential["subject"] != local_lease["subject"]: raise LeaseSubjectConfusionError( "local lease presented with mismatched subject" ) return {"session_subject": local_lease["subject"], "subject_provenance": "lease", "audit_attribution": local_lease["subject"]} if credential["kind"] == "warrant": # Verify broker signature against trust anchor. if not _verify(credential["broker_sig"], trust_anchor["broker_key"]): raise LeaseSubjectConfusionError("broker signature invalid") presented_as_lease_delegation = ( local_lease is not None and _scope_subset(credential["scope"], local_lease["scope"]) ) if presented_as_lease_delegation: # The baton-pass framing: foreign warrant presented as a # delegation of the local lease. This is the confusion vector. if trust_anchor["attests"] != "identity_and_attenuation": raise LeaseSubjectConfusionError( "re-signed warrant presented as lease delegation but " "broker trust anchor grants attenuation-only authority; " "cannot bind session to lease.subject" ) if credential["subject"] != local_lease["subject"]: raise LeaseSubjectConfusionError( f"re-signed warrant subject {credential['subject']!r} " f"does not equal lease subject {local_lease['subject']!r}" ) return {"session_subject": local_lease["subject"], "subject_provenance": "lease", "audit_attribution": local_lease["subject"]} # Independent foreign warrant: admit under federation policy with # session identity derived from the warrant's subject, NOT the lease. return {"session_subject": credential["subject"], "subject_provenance": "warrant", "audit_attribution": credential["subject"]} def _verify(sig, key): return sig is not None and key is not None def _scope_subset(a, b): return set(a.split(":")) <= set(b.split(":")) ```