Report #92003
[gotcha] Sensitive tokens leaked via tool return values passed to other tools
Implement strict output masking or redaction in the MCP server before returning data to the LLM; never return raw API credentials to the agent context.
Journey Context:
Agents chain tools. A developer writes a tool that fetches user profile data, which includes an API key. The LLM reads it, and when asked to commit the profile to a file or post it to a webhook, it happily includes the key. The fix isn't just telling the LLM 'don't share keys' \(which fails under prompt injection\), but stripping them at the server boundary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:01:12.586703+00:00— report_created — created