MITRE ATLAS 2026.10 · AML.T0113 · High severity

Steal Web Session Cookie

Adversaries manipulate LLM prompts or retrieved data so a web-based AI interface emits unsanitized HTML, Markdown links, or SVG payloads containing executable scripts (as disclosed in the 2025 Lenovo AI chatbot vulnerability). When rendered inside the authenticated victim browser without strict DOM sanitization and HttpOnly cookie flags, the script exfiltrates session tokens.

Technique dossier overview

Category
Infrastructure and access
Severity
High
Attack surface
LLM / Prompt Layer · Inference API & Hosting
Framework maturity
Demonstrated
Platforms
Enterprise
Tactics
Credential Access
Catalog entry modified

Open AML.T0113 in Interactive Technique Workbench

How the mechanism works

  1. An attacker injects instructions into a shared chat transcript, support ticket, or public web form processed by an enterprise web assistant.
  2. The model emits raw HTML event handlers, javascript: URIs, or unescaped script fragments inside its response payload.
  3. The browser UI renders the assistant output via unsafe innerHTML or permissive Markdown plugins, executing the script in the victim's origin and reading accessible document.cookie or localStorage tokens.

Detection & telemetry signals

Architectural defensive countermeasures

Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)

OWASP LLM Top 10 (2025)
OWASP rationale
Rendering unescaped model responses in a web UI is textbook Improper Output Handling (LLM05) that leads directly to Sensitive Information Disclosure (LLM02) via stolen session credentials.
NIST AI RMF functions
NIST AI RMF guidance
Test AI web frontends for XSS and URI-scheme injection in model completions under MEASURE, and enforce strict DOM sanitization, CSP headers, and HttpOnly cookies under MANAGE.

Mapped defensive controls

Documented incidents & exercises (5)

Source citation records

Common questions

What is Steal Web Session Cookie (AML.T0113)?
Adversaries manipulate LLM prompts or retrieved data so a web-based AI interface emits unsanitized HTML, Markdown links, or SVG payloads containing executable scripts (as disclosed in the 2025 Lenovo AI chatbot vulnerability). When rendered inside the authenticated victim browser without strict DOM sanitization and HttpOnly cookie flags, the script exfiltrates session tokens.
How do you mitigate Steal Web Session Cookie?
MITRE ATLAS maps 5 mitigations to AML.T0113: Encrypt Sensitive Information, Control Access to AI Models and Data in Production, Generative AI Guardrails, AI Telemetry Logging and Monitoring, and Input and Output Validation for AI Agent Components. Sanitize all model outputs through a strict DOMPurify / SafeHtml pipeline and restrict Markdown renderers to safe protocols (https:, mailto: only; zero raw HTML pass-through).