MITRE ATLAS 2026.10 · AML.T0077 · High severity
LLM Response Rendering
Adversaries abuse how client applications render LLM responses (markdown images, hyperlinks, HTML, SVG, or script blocks) to silently exfiltrate sensitive conversation context or trigger client-side cross-site scripting when the victim's browser processes the model output.
Technique dossier overview
- Category
- Inference privacy
- Severity
- High
- Attack surface
- LLM / Prompt Layer · RAG & Retrieval
- Framework maturity
- Demonstrated
- Platforms
- Generative AI, Agentic AI
- Tactics
- Exfiltration
- Catalog entry modified
How the mechanism works
- Direct or indirect prompt injection instructs the model to summarize private context and encode it into a URL parameter inside a markdown image or link.
- The chat interface renders the model's markdown automatically, causing the victim's browser to issue an image GET request to the attacker's server.
- If HTML or script sanitization is weak, rendered payloads execute arbitrary client JavaScript or leak session tokens directly.
Detection & telemetry signals
- Outbound browser image or resource fetches triggered from chat views toward unapproved third-party domains carrying long query strings.
- Output filters or Content Security Policy telemetry reporting blocked inline scripts, external image loads, or malformed markdown tags.
- Generated completions containing Base64 or hex-encoded strings embedded inside markdown image syntax or anchor href attributes.
Architectural defensive countermeasures
- Disable automatic external image rendering and link prefetching inside LLM chat interfaces by default.
- Enforce a strict Content Security Policy (restricting img-src, connect-src, and script-src to self or explicit asset proxies) and sanitize all rendered HTML/Markdown.
- Strip or block arbitrary external URLs emitted by the model unless they match backend-verified retrieved source manifests.
- Apply output DLP checks before streaming completions to catch encoded secrets or PII packed into URLs.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Unsafe client rendering of model-generated markup is a textbook Improper Output Handling vulnerability (LLM05) triggered by prompt injection (LLM01) to cause silent data exfiltration (LLM02).
- NIST AI RMF functions
- NIST AI RMF guidance
- MAP all client-side markdown and rich-text parsers consuming model tokens, and MANAGE exfiltration risk via strict CSP headers, disabled auto-fetched external images, and URL allowlisting.
Mapped defensive controls
- Generative AI Guardrails AML.M0020
Deploy layered input and output classifiers, constitutional/topic rails, and structural validators with measured benign over-refusal rates—never relying on classifiers as the sole authorization boundary.
- AI Telemetry Logging and Monitoring AML.M0024
Emit structured, PII-redacted OpenTelemetry GenAI security traces covering auth, guardrail verdicts, token bursts, and agent tool calls without creating a toxic raw-prompt honeypot.
- Input and Output Validation for AI Agent Components AML.M0033
Validate structured JSON schemas, types, bounds, and safety policies at every handoff between users, retrievers, LLMs, and downstream tools/renderers.
Test with Refract
Refract is Silvauren's Apache-2.0 defensive LLM evaluation harness. Its 2x2 Detect-vs-Complete matrix crosses whether a detector flagged each probe with whether the model complied, so silent breaches are counted with Wilson 95% confidence intervals. Replace <model-id> with an OpenRouter route ID; each model page lists a ready-to-run command for its own route.
refract scan \
--target "openai_compat:<model-id>" \
--base-url https://openrouter.ai/api/v1 \
--api-key "$OPENROUTER_API_KEY" \
--battery markdown_link_exfil
refract reportmarkdown_link_exfildata exfiltration through rendered Markdown images and links
Export OPENROUTER_API_KEY first. Passing --api-key keeps Refract from using an unrelated OPENAI_API_KEY, which it would otherwise read first. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.
Documented incidents & exercises (15)
- ChatGPT Conversation Exfiltration AML.CS0021 · Exercise · May 2023 · High · LLM Chat & Plugin Ecosystems
Disclosed in May 2023 by Johann Rehberger ("ChatGPT Plugins: Data Exfiltration via Images & Cross Plugin Request Forgery"), this exercise demonstrated how an untrusted webpage fetched by a browsing plugin could hijack ChatGPT via indirect prompt injection. The injected…
- Google Bard Conversation Exfiltration AML.CS0029 · Exercise · Nov 23, 2023 · High · Consumer & Enterprise AI Assistants
Disclosed in November 2023 ("Hacking Google Bard: From Prompt Injection to Data Exfiltration"), researchers demonstrated an indirect prompt-injection attack embedded inside a shared Google Doc or email processed by Bard Extensions. The hidden instructions directed Bard to…
- Data Exfiltration from Slack AI via Indirect Prompt Injection AML.CS0035 · Exercise · Aug 20, 2024 · High · Enterprise Collaboration & SaaS
Disclosed by PromptArmor in August 2024 ("Data Exfiltration from Slack AI via indirect prompt injection"), this exercise showed that an attacker with access to a single public channel could plant a crafted message containing indirect prompt-injection instructions. When another…
- EchoLeak: Zero-Click Prompt Injection Targeting M365 Copilot for Data Exfiltration AML.CS0059 · Exercise · May 2025 · Moderate
ATLAS case study: EchoLeak zero-click prompt injection exfiltrated data from M365 Copilot via trusted context.
- Cross-Site Scripting via Prompt Manipulation in Lenovo AI Chatbot AML.CS0060 · Exercise · Aug 18, 2025 · Moderate
ATLAS case study: prompt manipulation in a Lenovo AI chatbot triggered XSS via file-content reflection.
- MLflow Untrusted Recipe Template XSS Escalating to Client-Side Notebook RCE INC-2024-27132 · Incident · Feb 23, 2024 · High · Software Development & AI Tooling
CVE-2024-27132 (published February 23, 2024) disclosed a template sanitization flaw in MLflow Recipes when rendering step cards inside interactive notebook environments like Jupyter. Insufficient escaping of untrusted recipe variables allowed attacker-controlled JavaScript to…
- JupyterLab Untrusted Notebook Markdown DOM Clobbering XSS INC-2024-43805 · Incident · Aug 28, 2024 · Elevated · Software Development & AI Tooling
CVE-2024-43805 identified a DOM clobbering cross-site scripting (XSS) vulnerability in JupyterLab triggered when a user opened or previewed an untrusted `.ipynb` notebook or Markdown file. Crafted HTML elements inside Markdown cells clobbered global DOM properties used by…
- Gradio Uploaded File Stored Cross-Site Scripting via Disguised HTML/SVG Assets INC-2024-47872 · Incident · Oct 10, 2024 · Elevated · Cloud & AI Infrastructure
CVE-2024-47872 (published October 10, 2024) exposed a stored cross-site scripting (XSS) vulnerability in Gradio (`< 5.0`) deployments supporting user file uploads. Attackers could upload active HTML, JavaScript, or SVG documents disguised as benign data files, which Gradio…
- Microsoft 365 Copilot EchoLeak Zero-Click Email Context Exfiltration INC-2025-32711 · Incident · Jun 11, 2025 · Critical · Enterprise SaaS & Productivity
CVE-2025-32711 disclosed a critical zero-click indirect prompt injection chain in Microsoft 365 Copilot where an external email planted hidden instructions processed during routine assistant queries. Because retrieved external email text entered the same generation context as…
- AnythingLLM Desktop Streaming Phase XSS Escalating to Host OS RCE INC-2026-32626 · Incident · Mar 16, 2026 · Critical · Consumer AI & Local Runtimes
CVE-2026-32626 (CVSS 9.6) revealed a critical vulnerability in AnythingLLM Desktop (`<= 1.11.1`) where streaming chat responses underwent unsafe markdown/HTML rendering inside an overly permissive Electron context. An indirect prompt injection inside an ingested RAG document or…
- Salesforce Agentforce ForcedLeak CRM Exfiltration via Web-to-Lead Prompt Injection INC-OBS-003 · Incident · Sep 25, 2025 · Critical · Enterprise SaaS & Productivity
On September 25, 2025, Noma Security disclosed ForcedLeak (CVSS 9.4), a critical indirect prompt injection and exfiltration chain affecting Salesforce Agentforce deployments using public Web-to-Lead forms. Any unauthenticated internet user could submit a lead form containing…
- GitHub Copilot Chat CamoLeak Hidden PR Comment Secret Exfiltration via Camo Proxy INC-OBS-004 · Incident · Oct 8, 2025 · Critical · Software Development & AI Tooling
Disclosed publicly in October 2025 by Legit Security researcher Omer Mayraz, CamoLeak (rated CVSS 9.6) demonstrated zero-click exfiltration of private repository source code and secrets from GitHub Copilot Chat. Attackers embedded invisible instructions inside HTML/markdown…
- Slack AI Private Channel Data Exfiltration via Indirect Prompt Injection in Public Messages INC-OBS-047 · Incident · Aug 20, 2024 · High · Enterprise SaaS & Productivity
Disclosed by PromptArmor and patched by Slack on August 20, 2024, an indirect prompt injection vulnerability in Slack AI allowed an attacker in a public workspace channel (or an external Slack Connect guest) to steal sensitive data from private channels they could not access.…
- The Devil Wears Markdown: Hybrid Static-Dynamic Auditing of 140 Agent Skills OBS.EX0136 · Exercise · Nov 7, 2026 · 140 Agent Skills (80 Malicious, 60 Benign) · Cisco Skill Scanner & Hybrid Pipeline
Truong-Le et al. (2026) evaluated static and LLM-assisted skill scanners, including Cisco Skill Scanner with and without Qwen3:8B, on a held-out benchmark of 80 malicious and 60 benign hybrid Markdown/code agent skills. Default static scanning reached 0.91 recall with 33/60…
- Render Before Reading: Cross-Modal Typographic Defense Against Prompt Injection OBS.EX0178 · Exercise · Sep 28, 2026 · 10 Multimodal LLMs on DirectInject & AgentDojo · Pictionary Visual Rendering Defense
Zhang et al. (2026) evaluated a modality asymmetry across ten multimodal LLMs on DirectInject and AgentDojo, showing that models obey text-borne prompt injections far more readily than identical instructions rendered visually as page images. Turning this gap into a…
Source citation records
- MITRE ATLAS: LLM Response Rendering · MITRE ·
Common questions
- What is LLM Response Rendering (AML.T0077)?
- Adversaries abuse how client applications render LLM responses (markdown images, hyperlinks, HTML, SVG, or script blocks) to silently exfiltrate sensitive conversation context or trigger client-side cross-site scripting when the victim's browser processes the model output.
- How do you mitigate LLM Response Rendering?
- MITRE ATLAS maps 3 mitigations to AML.T0077: Generative AI Guardrails, AI Telemetry Logging and Monitoring, and Input and Output Validation for AI Agent Components. Disable automatic external image rendering and link prefetching inside LLM chat interfaces by default.
- How can I test a model for LLM Response Rendering?
- Run the Refract
markdown_link_exfilpack:refract scan --target "openai_compat:<model-id>" --base-url https://openrouter.ai/api/v1 --api-key "$OPENROUTER_API_KEY" --battery markdown_link_exfil, then refract report. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.