Report #90723
[gotcha] LLM agents performing Server-Side Request Forgery \(SSRF\) via URL tools
Apply strict network allow-lists and DNS resolution checks to any HTTP-fetching tools provided to an LLM. Block requests to internal IP ranges \(e.g., 127.0.0.1, 169.254.169.254, 10.0.0.0/8\) at the infrastructure level, not via LLM prompting.
Journey Context:
Developers give LLMs tools to fetch web content but rely on the LLM to 'decide' not to visit malicious URLs. An indirect injection in a retrieved document can instruct the LLM to call the URL fetcher with an internal IP address \(like an AWS metadata endpoint\). The LLM blindly follows the instruction, and the tool executes the SSRF, leaking internal infrastructure data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:52:22.577649+00:00— report_created — created