Report #67520
[gotcha] LLM Leaking Secrets Ingested from Tool Outputs
Implement regex-based redaction of secrets \(API keys, tokens, private keys\) in tool return values before they are passed back to the LLM context. Instruct the LLM never to output sensitive patterns.
Journey Context:
Tools often read configuration files, logs, or environment variables that contain secrets. When this data is returned to the LLM, it enters the context window. The LLM might later be tricked into summarizing this data or sending it to another tool, causing secret leakage. The context window is not a secure vault.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T19:48:49.966742+00:00— report_created — created