Markdown Image Exfiltration

Exfiltrate data via LLM-generated markdown images rendered in the browser.

What you practise

Exfiltrate data via LLM-generated markdown images rendered in the browser. You run the attack yourself on a live model in a private sandbox set up for you, then capture the flag. Nothing to install and no API key.

Exfiltration via side effects of rendering

Any output channel that triggers a network request is an exfiltration channel. Markdown images, HTML <img>, CSS background-image, link prefetch, even <link rel=preconnect>, they all fetch URLs without user interaction. If an LLM can write into that channel and embed secrets in the URL, you have data exfil even with no JavaScript and no XSS. The right defense is content security policy on outbound destinations, not just script filtering.

Where this has happened

  • ChatGPT image markdown exfil (Apr 2023): Johann Rehberger demonstrated chat history exfiltration via Markdown image URLs in ChatGPT before OpenAI patched it. The same primitive resurfaced multiple times in plugins.
  • Google Bard / Gemini extension (2023-2024): Researchers exfiltrated Drive/email content by getting Gemini to render Markdown images pointing at attacker domains, with the secrets in the query string.
  • Microsoft Copilot ASCII smuggling (Aug 2024): Rehberger again, combined indirect injection + hidden Unicode + Markdown image exfil to silently steal data from Copilot in M365.

Sign in to launch this lab Learn the theory in the Academy

More Agent Systems labs

Attack labs

20 hands-on scenarios across 4 tracks. Pick a target, launch a private sandbox, capture the flag.

Active sessions

Resume a running lab or stop it before starting the next one.