Report #66813
[gotcha] LLM exfiltrates data by calling external tools/APIs with sensitive data as parameters
Sanitize and validate all parameters of LLM-generated tool calls. Restrict outbound tool calls to a whitelist of domains/operations. Never allow arbitrary URL generation or free-text fields in tool calls that hit external networks.
Journey Context:
When LLMs are given tool access, developers focus on sanitizing the LLM's text output, forgetting that tool calls are an output channel. An attacker can inject a prompt instructing the LLM to use a tool to send data to an attacker-controlled server. The right call is restricting tool call parameters, trading off tool flexibility for data containment, because tool execution environments are untrusted actors capable of exfiltrating data out-of-band.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:37:35.957648+00:00— report_created — created