mediumAgent ThreatData Exfiltration

URL-Based Data Exfiltration in LLM Agents (ChatGPT/Bing Chat) via Markdown Image/Link Rendering

First seen Jul 5, 2026 · Updated Jul 5, 2026

data-exfiltrationmarkdown-injectionzero-clickprompt-injectionchatgptbing-chatdisclosuremitigation-paperASI05 · Unsafe Code ExecutionAML.T0051AML.T0024Surface: ModelPropagation: None

This item is a retrospective and largely positive report: OpenAI published a paper detailing mitigations for a long-known zero-click data exfiltration technique in which a language model can be manipulated into rendering attacker-controlled URLs (e.g., markdown images) that leak conversation data to an external server. The underlying vulnerability class was disclosed by the author nearly three years ago and was already mitigated by Microsoft in Bing Chat in 2023; this post covers OpenAI's newer, more formal write-up of defenses. Severity is moderate rather than critical because this is historical/defensive reporting on a well-understood, largely mitigated issue rather than a new active exploit.

Technical Analysis

The root technique relies on prompt injection (via untrusted web content, documents, or tool outputs fed to the agent) causing the model to emit markdown that auto-renders as an image or link, with exfiltrated data (e.g., snippets of user conversation or context) embedded as URL parameters pointing to an attacker-controlled domain. When the client auto-loads the image, the attacker's server logs the request, completing a zero-click exfiltration channel without any user click. The entry point is any untrusted content the agent ingests (webpages, emails, documents); the attacker gains covert exfiltration of sensitive session data; the boundary crossed is model-output-to-rendering-client, turning a content-consumption surface into a covert side-channel. Mitigations discussed include blocking automatic loading of images from arbitrary domains (CSP-based, as Microsoft did) and OpenAI's newer, more systematic controls described in their paper.

Affected Systems

ChatGPT, Bing Chat

Detection Signatures

  • Model output containing markdown image/link syntax with unusually long or encoded query strings
  • Outbound requests to newly-registered or unrecognized domains immediately following LLM content rendering
  • Repeated rendering of external images from domains not on an allowlist
  • Conversation logs showing user data patterns (emails, tokens, snippets) appearing in outbound URL parameters

Remediation Steps

  1. 1

    Enforce CSP / image-loading restrictions

    Block automatic loading of images and other passive network requests from non-allowlisted domains in the chat client, as Microsoft did for Bing Chat in 2023.

  2. 2

    Sanitize and constrain markdown rendering

    Restrict or strip markdown link/image rendering capabilities for model output derived from untrusted input, or require user confirmation before loading external resources.

  3. 3

    Isolate untrusted content ingestion

    Treat webpage/document/tool content fed to the agent as untrusted and apply prompt-injection defenses before it influences output that gets auto-rendered.

  4. 4

    Review vendor mitigation papers

    Adopt the technical controls described in OpenAI's 'Preventing URL-Based Data Exfiltration in Language-Model Agents' paper as a baseline for internal agent deployments.

  5. 5

    Monitor egress patterns

    Log and alert on outbound requests triggered by LLM-generated content, especially to unfamiliar domains shortly after a conversation turn.

Industries Most Exposed

technologyall-industries-using-conversational-ai

Sources

Respond to this threat

Pro subscribers get a full AI-generated incident-response playbook for this threat — detection, containment, eradication, and recovery steps — plus an unlimited AI Threat Advisor for questions about your environment.