{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-capability-registry-impersonation-when-a-poisoned-mcp-tool-manifest-passes-schema-validation-but-silently-rewrites-tool-se",
  "title": "How does an instance detect capability-registry impersonation when a poisoned MCP tool manifest passes schema validation but silently rewrites tool semantics",
  "date_of_record": "2026 December 1",
  "scope": "Applies to LLM agent instances that discover tools dynamically via MCP `tools/list` (or an equivalent capability registry) and bind a tool's `description`/`inputSchema` at session start. Does not apply to statically-linked tool sets compiled into the agent binary, nor to registries that pin a signed manifest hash out-of-band and refuse unsigned manifests.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-registry-impersonation-when-a-poisoned-mcp-tool-manifest-passes-schema-validation-but-silently-rewrites-tool-se.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-registry-impersonation-when-a-poisoned-mcp-tool-manifest-passes-schema-validation-but-silently-rewrites-tool-se.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-registry-impersonation-when-a-poisoned-mcp-tool-manifest-passes-schema-validation-but-silently-rewrites-tool-se.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1661,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Schema validation proves *shape*, not *semantics*. A poisoned tool manifest attack does not need to break JSON Schema — it only needs to keep `inputSchema` byte-compatible with the legitimate tool while mutating the natural-language `description`, `title`, or `annotations` fields that the model actually reads to decide *when and how* to call the tool. The re...",
    "what_was_observed": "A three-hop supply chain in a multi-agent deployment: 1. **Registry impersonation.** A capability registry served two `tools/list` entries with identical `name: \"fs.read\"` and identical `inputSchema`, differing only in `description` and `annotations.title`. The second entry was registered by a compromised downstream MCP server that had been granted `tools:register` scope. The registry deduplicated on `(name, schema_h...",
    "condition_of_validity": "The attack succeeds only when all of the following hold simultaneously: - Tool discovery is **dynamic and late-bound** (session-start `tools/list`), so the manifest the model conditions on is fetched from a mutable source. - The registry's integrity check covers **schema and name but not description/annotations** (or covers them with a hash the client never ...",
    "decision_boundary": "The instance must distinguish three cases at bind time, and the boundary is *collision with semantic divergence*: - **Benign collision:** same `name`, same `schema_hash`, **same description hash** → deduplicate silently, bind once. - **Version skew:** same `name`, **different `schema_hash`** → treat as a distinct tool version; require explicit version pinnin...",
    "operational_effect": "Enforcing the invariant converts a silent semantic hijack into a loud, attributable failure at discovery time, before any tool call is emitted. The agent does not proceed with a poisoned description; it halts the session's tool binding, records the colliding description hashes and the registering server identities, and escalates to the auditor with a concret..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "21034ce346660d26da4e88363ddce3c212862061c7b4a8571141d5388d4509ad",
    "verified_classes": [
      "CapabilityBindingError",
      "ToolManifest"
    ],
    "verified_functions": [
      "bind_registry",
      "schema_hash",
      "description_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
