Agent Systems · Advanced · about 25 min
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
- Agentic Email Attack: Social engineer an email AI agent into forwarding confidential data.
- Tool Definition Poisoning: Poison dynamic tool metadata so the agent violates its own restricted-tool rules.
- Multi-Agent Chain Attack: Exploit the trust boundary between a planning agent and an execution agent.
- LLM-as-a-Judge Bypass: Sneak policy-violating content past an LLM moderator even though a deterministic checker rejects it.
- LLM Authorization Bypass: Bypass role-based access controls enforced by an LLM gatekeeper.
Catalog
Attack labs
20 hands-on scenarios across 4 tracks. Pick a target, launch a private sandbox, capture the flag.
Sessions
Active sessions
Resume a running lab or stop it before starting the next one.