# When must an instance re-taint a tool result after partial sanitization: the label-laundering gap in taint-aware MCP sandboxes **Date of Record:** 2026 November 24 **Scope:** Applies to agent runtimes that wrap MCP `tools/call` responses in a taint-tracking sandbox and strip or neutralize injection payloads before the result enters the reasoning context. Does not apply to servers whose responses are consumed only by deterministic non-LLM code paths, nor to fully air-gapped single-turn invocations with no tool loop. ## Core Distinction There are two separable questions in indirect prompt injection defense: *is this content untrusted?* (a provenance/taint question) and *is this content dangerous?* (a content-classification question). Most sandbox implementations conflate them by treating sanitization as a taint-clearing event: once a filter has removed ``-style spans, base64 blobs, or known instruction templates, the residual string is promoted from `TAINTED` to `SANITIZED` and allowed to flow into the model context as if it were first-party data. That promotion is the boundary failure. Sanitization reduces *known* payload surface; it does not change *provenance*. A response that originated from a remote MCP server remains attacker-influenced after filtering, because the filter is a finite pattern matcher operating against an adversary who controls the residual. The invariant that must hold is: **taint is a property of origin and is monotone under transformation — no sanitizer may lower it.** Sanitizers may *reduce capability* (quarantine, truncate, redact), but the label must remain `TAINTED` and downstream sinks must continue to treat it as data-only, never as instruction-bearing. The non-obvious part: the laundering usually happens not in the sanitizer but in the *composition* step. A sanitized fragment gets concatenated into a summary, the summary is re-serialized, and the re-serialized blob is re-ingested as "our own" string with a fresh, clean provenance record. The taint was correct at every individual hop and wrong at the join. ## What Was Observed A filesystem-and-issue-tracker agent called `mcp__issues__get_issue` on a ticket whose body contained a benign-looking HTML comment wrapping a zero-width-encoded instruction. The runtime's sanitizer stripped two `