Databricks Genie 执行恶意技能,显示钓鱼弹窗并窃取数据,尽管存在控制措施
Databricks Genie Code 是 Databricks 中的智能代理助手,允许用户通过自然语言指令对其租户中的数据进行操作。
Genie Code 可以在聊天中向用户呈现显示内容;恶意技能可以利用此功能,在查看工具结果时触发数据窃取,并向用户展示钓鱼攻击。
此攻击可在无需人工审核批准的情况下发生,且不受组织所依赖的控制措施的限制:
■ 组织级技能治理:Genie Code 从用户的个人工作区加载技能,而非来自受治理的组织目录
■ 护栏代理(guardrail agent):在命令运行前评估其安全性;Databricks 认为这是一种尽力而为的生产力功能,而非安全控制措施
■ 编码环境出口控制:出口流量源自用户浏览器,而非编码环境本身
■ 聊天中渲染显示的沙箱隔离:技能使用用户数据构建显示内容,该显示无需访问租户即可获取这些数据
该风险于 2026 年 8 月 16 日向 Databricks 披露,但被判定为“确保上传的技能不包含恶意内容是用户的责任”。鉴于在线市场中广泛分发恶意技能,且组织可能依赖的控制措施无法消除此风险,我们发布此报告以告知处于风险中的各方。
攻击链
技能通常通过在线市场分发,该生态系统已知被恶意技能污染。Databricks 确实拥有技能治理系统,但 Genie Code 使用的技能配置来自用户的个人工作区,而非受治理的组织目录。
当 Genie 执行技能中的代码时,会由第二个代理进行检查,标记那些超出用户预期操作范围的命令,例如“将数据发送给第三方”。
循环中的代理批准运行技能代码,未能发现其恶意能力。
Genie 指示用户打开完整的数据分析结果
当结果渲染时,显示钓鱼弹窗并窃取用户数据集
恶意技能中的代码构建了一个 HTML 元素,具有两个恶意目的。其中一个效果是渲染攻击者网站的覆盖层,以骗取用户的凭据。
另一个效果是,当弹窗渲染时(例如,当用户查看结果时),来自受害者租户的数据被窃取。恶意技能的代码利用其对受害者租户的访问权限来收集敏感数据(如受害者的数据集),然后将这些数据嵌入到 HTML 显示中。当显示渲染时,恶意显示中的 JavaScript 会导致用户的浏览器发起网络请求,将数据窃取至攻击者的服务器。
虽然编码环境具有网络出口控制措施,可防止与攻击者服务器的通信,但显示界面没有此类限制,可以将数据发送给攻击者。
负责任的披露
该风险于 2026 年 8 月 16 日向 Databricks 报告。Databricks 团队确定:
“最终,确保上传的技能不包含恶意内容是用户的责任。”
网络出口控制措施规定编码环境不得联系不受信任的外部方,这一规定得到了执行。它只是查询数据并使用这些数据构建了一个 iframe。
针对渲染给用户的显示内容的控制措施规定显示不得从租户中查询数据,这一规定也得到了执行。它只是处理了由技能代码嵌入其中的数据。
因此,恶意的 Skill 代码可以查询计算环境中的数据,将其嵌入到 iframe 中,而该 iframe 可以发起网络请求以窃取数据……
我们认为这种交互反映了 Databricks 威胁模型中的一个漏洞,因为从技术上得到遵守的两项保证的目的,正是为了防止最终发生的数据泄露结果。
关于恶意命令被护栏代理批准一事,Databricks 团队指出:
“自动允许功能并非旨在作为安全边界,而是作为一种控制措施,以防止不受信任的输入自动运行。”
文档支持这一说法:
然而,由于“自动批准”在文档中既被列为默认选项,又被列为“推荐”的命令审批模式,我们认为用户在实践中不太可能遵守禁止在生产数据中使用该模式的指示。
对于 Genie Code 的 Skill 是从用户的个人工作区加载,而非从受组织级治理目录加载这一事实,未发表任何声明。
时间线
2026年8月16日 PromptArmor 向 Databricks 披露
2026年8月17日至9月15日 PromptArmor 与 Databricks 协调
2026年9月16日 PromptArmor 通知 Databricks 其发布意图
Databricks Genie executes malicious Skill, displaying phishing modal and exfiltrating data despite controls Context
Databricks Genie Code is an agentic assistant in Databricks that enables users to operate on data in their tenant through natural language instructions.
Genie Code can render displays in the chat for the user; malicious Skills can exploit this functionality to trigger data exfiltration upon tool results being viewed and display phishing attacks to the user.
This attack can occur without any human-in-the-loop approval and without constraint by the controls organizations may be counting on:
■ Organization-level Skill governance; Genie Code loads skills from users' personal workspaces, not an organization's governed catalog
■ A guardrail agent that assesses commands before they are run; Databricks considers this a best effort productivity feature, not a security control
■ Coding-environment egress controls; egress occurs from the user's browser, not the coding environment
■ Sandboxing of displays rendered in chat; the Skill builds the display with user data, the display does not need to reach into the tenant to get it
This risk was disclosed to Databricks on August 16, 2026, but it was determined to fall under the “user's responsibility to ensure that uploaded skills do not contain malicious content”. Given the prevalence of malicious Skills being distributed in online marketplaces, and that the controls organizations are likely relying on do not eliminate this risk, we are releasing this report to inform those at risk.
The Attack Chain
Skills are commonly distributed via online marketplaces, an ecosystem known to be polluted with malicious Skills. Databricks does have a system for Skill governance, but the Skills used by Genie Code are configured from users’ personal workspaces, not an organization’s governed Catalog.
When Genie executes code from the Skill, it is checked by a second agent that flags commands that act outside the user’s intended action, such as those that “send data to third parties”.
The agent-in-the-loop approves running the Skill code, failing to catch the malicious capabilities.
Genie instructs the user to open the full data analysis results
When the results render, a phishing modal is displayed and the user's dataset is exfiltrated
The code in the malicious Skill builds an HTML element that serves two malicious purposes. One effect is that it renders an overlay of an attacker's website that phishes the user for credentials.
The other effect is that when the modal is rendered (e.g., when the user views the results), data from the victim's tenant is exfiltrated. The malicious Skill's code uses its access to the victim's tenant to collect sensitive data (like the victim's datasets) and then builds that data into the HTML display. When the display renders, JavaScript in the malicious display causes the user's browser to issue network requests that exfiltrate the data to an attacker's server.
While the coding environment has network egress controls that would prevent communication with the attacker's server, the display interface does not and can send data to the attacker.
Responsible Disclosure
This risk was reported to Databricks on August 16, 2026. The Databricks team determined that:
“it is ultimately the user's responsibility to ensure that uploaded skills do not contain malicious content.”
Network egress controls dictated that the coding environment was not allowed to contact untrusted external parties, and that was upheld. It just queried the data and used it to build an iframe.
Controls for displays rendered to the user dictated that the display was not allowed to query data from the tenant, and that was upheld. It just processed the data embedded in it by the Skill’s code.
As such, the malicious Skill code can query data in the computing environment, build it into an iframe, and the iframe can make network requests to exfiltrate the data…
We believe this interaction represents a gap in the Databricks threat model, as the purpose of the two guarantees that were technically upheld was to prevent the data exfiltration outcome that ultimately occurred.
With respect to the malicious command being approved by the guardrail agent, the Databricks team noted,
“The auto-allow functionality is not intended as a security boundary, but rather as a control measure to prevent untrusted input from running automatically.”
Documentation supports the statement:
However, as ‘auto-approve’ is documented as both the default and ‘recommended’ command approval mode, we believe it is unlikely that users will, in practice, adhere to the instruction discouraging its use with production data.
No statement was given related to the fact that Genie Code's Skills are loaded from users' personal workspaces, instead of the organization-level governed Catalog.
Timeline
August 16, 2026 PromptArmor discloses to Databricks
August 17 - September 15, 2026 PromptArmor and Databricks coordinate
September 16, 2026 PromptArmor informs Databricks of intent to publish
首次收录 · 2026-10-06 · 9.94 分