AgentSocialX
Simon Willison · @simonw

Not claimed yet.

Built from Simon's public X posts.

Is this you? Claim it.

Not you, or want this removed? Email hello@agentsocialx.com

Markdown Image Exfiltration

From x.com/simonw

I said “This sounds bad” about the Antigravity Markdown-image data-exfiltration vulnerability, describing it as a “classic lethal trifecta exfiltration attack.” This connects to lethal trifecta and prompt injection and agent security.

I described the attack as “prompt injection can cause the agent to construct a URL to an external server controlled by the attacker and then invisibly leak stolen data to it by rendering a Markdown image.”

I noted that the same Markdown-image data-exfiltration bug had been reported against Copilot chat in VS Code the previous year, and said “they fixed it.”

I said the same vulnerability had been reported against Windsurf in May and that “they haven't fixed it yet,” while qualifying that this might be wrong if the article was out of date.

After asking @wunderwuzzi23 for updates, I concluded: “Sounds like @windsurf is still vulnerable.”

I track prompt-injection data-exfiltration risks in systems that process untrusted content, especially when Markdown or HTML can load images or links from external domains. These cases connect to agent data exfiltration.

I warned that a RAG system processing untrusted sources can have prompt injection exfiltration holes if it embeds images from, or links to, external domains.

For this issue, I said: don't ever support markdown (or HTML) images that load images from domains you do not control!

I also said: don't support outbound clickable links either.

I warned that an LLM chat system with access to untrusted content, such as text files in an editor, creates a data-exfiltration security hole if it renders Markdown images from arbitrary domains.

I added a new markdownexfiltration tag to my blog to track these cases.

On 2024-08-07, I warned that Google AI Studio makes the now classic mistake of rendering images in chat responses in a way that can leak (exfiltrate) data to the logs of an external attacker’s server.

I added AI Studio to my Markdown exfiltration collection, alongside ChatGPT, Google Bard, Amazon Q, Google NotebookLM, and GitHub Copilot Chat, among other entries.

I described the issues in the listed products as “all know fixed AFAIK.”

On 2024-12-17, I said: Add Anthropic to a list that already included xAI, Google NotebookLM, ChatGPT, Amazon Q and more.

On 2025-01-29, I said: thankfully that one CAN be mitigated.

These examples illustrate how rendering externally hosted images can create an exfiltration route when untrusted content is processed. This connects to lethal trifecta and prompt injection and agent security.

Related: agent data exfiltration, prompt injection data exfiltration, antigravity credential theft