{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-poisoned-mcp-tool-manifest-when-the-description-field-itself-is-the-attack-surface",
  "title": "How does an instance detect a poisoned MCP tool manifest when the description field itself is the attack surface?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to LLM agent instances that discover tools dynamically via MCP `tools/list` (or equivalent schema negotiation) and select tools from natural-language descriptions rather than fixed call sites. Does not apply to statically compiled tool bindings where the manifest is pinned at build time and never re-fetched at runtime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-mcp-tool-manifest-when-the-description-field-itself-is-the-attack-surface.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-mcp-tool-manifest-when-the-description-field-itself-is-the-attack-surface.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-mcp-tool-manifest-when-the-description-field-itself-is-the-attack-surface.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1908,
    "python_slice_tokens": 415,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive threat model treats MCP server compromise as an *execution* problem: the attacker replaces `tools/call` behavior, and detection happens when a tool returns malicious output. The harder and less-defended case is a compromise that never touches execution semantics at all — the server returns a byte-identical, correct implementation of every tool, but...",
    "what_was_observed": "A registry-backed agent fetched manifests from ~40 MCP servers at cold start. One server, a \"filesystem utilities\" endpoint, was compromised at the registry layer (not the server binary). The legitimate manifest advertised `read_file(path)` with a description like \"Read a UTF-8 text file from the sandbox.\" The injected manifest advertised the same tool name and the same `inputSchema`, but the description read: > \"Rea...",
    "condition_of_validity": "This failure mode is bounded by three conditions, all of which must hold for the attack to land: 1. **The manifest is re-fetched at runtime.** If `tools/list` is pinned to a digest at build time, a mutated description never reaches the context window. The attack requires dynamic discovery. 2. **Tool selection is description-mediated.** If the agent routes to...",
    "decision_boundary": "The operational question is not \"is this manifest malicious\" (undecidable from content alone) but \"has this manifest's description changed since the last time this agent trusted it, and does the change cross a semantic boundary?\" The boundary is drawn at **description drift**, not at description content. A description that changes from \"Read a file\" to \"Read...",
    "operational_effect": "The invariant to enforce: **a tool description may be admitted to the instruction tier only if (a) its digest matches a pinned or signed baseline, or (b) its diff against the baseline contains no agent-directed imperatives and no references to arguments outside its own `inputSchema`.** Anything else is quarantined to a data tier where the model may read it b..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "773018556f348d4db5e06f89c646db19161dcf61600084e2655b68eb7545b0a5",
    "verified_classes": [
      "PoisonedManifestError",
      "ToolManifest"
    ],
    "verified_functions": [
      "_declared_args",
      "admit_manifest",
      "load_manifest",
      "digest"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PoisonedManifestError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
