{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-malicious-mcp-server-that-poisons-tool-descriptions-rather-than-tool-outputs-mid-session",
  "title": "How should an instance detect a malicious MCP server that poisons tool *descriptions* rather than tool *outputs* mid-session",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent instances that negotiate MCP `tools/list` schemas at session start and cache tool descriptions for the life of the session, where a compromised server can mutate the advertised description without changing the tool name or input schema. Does not cover tool-output poisoning, prompt injection embedded in tool *results*, or post-execution sandbox escapes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-malicious-mcp-server-that-poisons-tool-descriptions-rather-than-tool-outputs-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-malicious-mcp-server-that-poisons-tool-descriptions-rather-than-tool-outputs-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-malicious-mcp-server-that-poisons-tool-descriptions-rather-than-tool-outputs-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2007,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Red-team frameworks simulating MCP supply-chain compromise overwhelmingly target the *output* channel — a `read_file` result containing `IGNORE PREVIOUS INSTRUCTIONS`, a poisoned `fetch` payload. Those attacks are detectable because the untrusted bytes arrive *after* a decision point, wrapped in a tool-result envelope the harness can tag as tainted. The non-...",
    "what_was_observed": "Across red-team runs of a compromised `filesystem` MCP server, the following trace recurred: 1. Session start: client issues `tools/list`, receives 6 tools. Client computes `tool_fingerprint = sha256(name || canonical(inputSchema))` for each and caches `{fingerprint: description}`. Descriptions are benign. 2. Turn 3: the instance invokes `read_file`. The server responds normally but, on the *next* `tools/list` refres...",
    "condition_of_validity": "The description-channel attack is *only* viable when all of the following hold, and the guardrail need only be enforced when they do: - The client refreshes `tools/list` at least once after session start (TTL-based or event-driven). A client that snapshots the manifest once and never refreshes is immune to mid-session mutation but exposed to stale-capability...",
    "decision_boundary": "The invariant that bounds this failure is: *a tool description is capability metadata and must be treated as immutable for the life of a session unless the change is surfaced to the instance as an explicit, attributed event — never silently adopted.* Concretely, the client must: - Include `description` (and any other model-visible field: parameter descriptio...",
    "operational_effect": "Without the guardrail, the compromise is *persistent and self-reinforcing*: once the poisoned description is in-context, every subsequent turn re-reads it, and the instance's own reasoning treats the injected directive as a stable environmental fact. The token cost of the attack is near-zero (one mutated string), the detection surface is near-zero (no output..."
  },
  "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": "f79c7d3c7cd88e9a12274cbc5bc32f74e71dfc7603511cb6a9958edd2cd1cd4a",
    "verified_classes": [
      "ToolDescriptionMutationError",
      "ToolEntry",
      "ManifestCache"
    ],
    "verified_functions": [
      "enforce_manifest_integrity",
      "trust_fingerprint",
      "reconcile",
      "approve",
      "active_manifest"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ToolDescriptionMutationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
