Report #88348
[gotcha] LLM data exfiltration via markdown image generation
Sanitize all LLM output before rendering to strip markdown image syntax \!\[alt\]\(url\) or HTML tags, and use a Content Security Policy that restricts image sources to trusted domains.
Journey Context:
Developers often render LLM output as raw markdown in web UIs. If an attacker injects a prompt in a retrieved document telling the LLM to output an image pointing to attacker.com/?data=SECRET, the LLM will comply. The browser then makes a GET request to attacker.com with the secret in the URL. It's not just text generation; it's a side-channel for data exfiltration that bypasses network egress filters because it looks like a normal HTTP request for an image.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:52:36.432315+00:00— report_created — created