Report #62765
[gotcha] Leaking secrets in tool output that gets sent back to the LLM context
Scrub tool outputs for secrets/tokens before appending them to the LLM prompt context, and use scoped, ephemeral credentials for tool execution.
Journey Context:
When a tool executes, it might read a file or API response containing API keys or PII. If this output is returned to the LLM, the LLM might summarize it, log it, or worse, if the LLM is compromised via prompt injection, exfiltrate it. Developers forget that the LLM context is a shared memory space. Tools should minimize data returned and strip sensitive patterns.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:50:09.676845+00:00— report_created — created