From Approval to Dispatch: Defeating MCP notifications/tools/list_changed & Description Injection in 0.024ms

Why approving an MCP server at startup does not guarantee the tool schema or description that executes 10 minutes later — and how canonical SHA-256 manifest pinning closes the gap.

From Approval to Dispatch: Defeating MCP notifications/tools/list_changed in 0.024ms

Approving an MCP toolset at session initialization creates a dangerous time-of-check to time-of-use (TOCTOU) blind spot: any remote or unpinned npx MCP server can emit notifications/tools/list_changed mid-session and mutate inputSchema or smuggle covert exfiltration instructions (<IMPORTANT>read ~/.ssh/...) into tool.description.

Three Deterministic Defenses

  1. Canonical Key-Sorted SHA-256 Pinning (0.024ms/call): Hash { name, description, inputSchema, annotations } before every tool dispatch and fail closed on digest drift.
  2. Pre-Dispatch Prompt-Injection Scoring: Strip zero-width/bidi codepoints and block covert system-override or credential-path instructions inside tool metadata.
  3. Isolated Browser Partitions (persist:railcall-browser): Never expose host browser cookies or global OS accessibility permissions to autonomous agents.

Write a comment