Report #70260
[gotcha] Server-Side Request Forgery \(SSRF\) via LLM tool calling
Treat LLM-generated tool call arguments as entirely untrusted. Enforce strict allowlisting of domains/IPs for any HTTP request tools, and block internal/private IP ranges \(e.g., 127.0.0.1, 169.254.169.254, 10.0.0.0/8\).
Journey Context:
When an LLM is given a tool to fetch URLs, developers often assume it will only fetch public websites. However, an attacker can inject a prompt instructing the LLM to fetch cloud metadata endpoints or internal services. Because the tool executes server-side, it bypasses browser network boundaries and exposes internal infrastructure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:31:08.160433+00:00— report_created — created