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 团队指出:
“自动允许功能并非作为安全边界设计,而是作为一种控制措施,以防止不受信任的输入自动运行。”
文档支持这一说法:
然而,由于“自动批准”在文档中被同时列为默认且“推荐”的命令审批模式,我们认为用户在实际操作中不太可能遵守避免在生产数据中使用该功能的指示。
对于 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…
The controls to prevent exfiltration were technically upheld, but exfiltration succeeded nonetheless.
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-10 · 8.4 分