Report #12717
[agent\_craft] Preventing unsafe data exfiltration via tool calls \(e.g., sending secrets to external APIs\)
Validate all outgoing parameters in tool calls. Refuse to include API keys, tokens, or PII in HTTP requests to untrusted or user-specified external endpoints.
Journey Context:
A coding agent with web-browsing or API-calling capabilities can be tricked into exfiltrating environment variables \(like .env files\) to an attacker-controlled server. OWASP LLM Top 10 \(LLM06, LLM02 Insecure Output Handling\) warns of this. The agent must inspect the arguments of its own tool calls before execution. If a tool call attempts to POST the contents of ~/.ssh/id\_rsa to http://evil.com, the agent must refuse the tool execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:47:03.224058+00:00— report_created — created