适用于 Google 表格的 ChatGPT 插件会泄露工作簿内容
ChatGPT for Google Sheets is vulnerable to data exfiltration and phishing

原始链接: https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration

PromptArmor 的安全研究人员在热门的“ChatGPT for Google Sheets”插件中发现了一个严重的间接提示注入漏洞。攻击者可以通过在外部数据中嵌入恶意指令,操纵人工智能执行未经授权的脚本,从而绕过用户设置的“人机回环”审批等安全协议。 该攻击允许攻击者执行以下操作: * **窃取用户账户中的多个敏感工作簿**。 * **篡改 ChatGPT 侧边栏**,植入恶意界面以获取提示词或窃取凭据。 * **弹出钓鱼窗口**以欺骗用户。 关键在于,即使在用户禁用自动编辑功能后,该攻击依然持续有效;一旦恶意脚本开始运行,点击插件中的“停止”按钮也无法终止执行。 尽管研究人员已履行负责任的披露义务,但 OpenAI 目前尚未做出实质性回应,也缺乏关于此类特权脚本执行风险的相关文档。因此,建议各机构审查其工作区权限,并在处理敏感数据时谨慎使用第三方人工智能插件。用户应通过工作区安全设置管理插件访问权限,以降低这一尚未修复的重大风险。

```Hacker News新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交登录Google Sheets版ChatGPT会窃取工作簿数据 (promptarmor.com)17分 由 hackerBanana 发布于 1 小时前 | 隐藏 | 过往 | 收藏 | 讨论 帮助 准则 | 常见问题 | 列表 | API | 安全 | 法律 | 加入 YC | 联系 搜索: ```
相关文章

原文

This attack does not require human-in-the-loop approvals, even when in settings the user has explicitly required human approval before ChatGPT edits workbooks.

ChatGPT for Google Sheets Exfiltrates Workbooks

Overview

Recently, OpenAI launched an AI extension for using ChatGPT in Google Sheets, which has accumulated over 185,000 downloads since its launch less than a month ago. This allows users to operate on their spreadsheets by interacting with an AI chatbot that lives in a sidebar, with the added benefit of drawing on data from ChatGPT connectors. 

A single indirect prompt injection attack triggered by a single benign user query can trigger all of the following effects at once:

  • Exfiltration of many workbooks from across the victim’s account

  • Display of an interactive phishing pop-up

  • Overwriting the entire GPT sidebar with an attacker-controlled chatbot interface

  • Attacker-controlled edits to your workbooks

This attack occurs when any untrusted data source (e.g., from an imported sheet or ChatGPT connector) manipulates ChatGPT to run an attacker-controlled external script, which executes leveraging permissions the user has granted to the ChatGPT for Google Sheets extension.

This vulnerability was responsibly disclosed to OpenAI. Despite multiple follow-ups, we received no communication beyond an automated reply to our initial disclosure. OpenAI's documentation fails to describe sensitive capabilities granted to the model (e.g., running privileged scripts) or risks of model manipulation via indirect prompt injection, instead focusing solely on functional limitations and data-handling concerns. As such, we are publishing our findings to enable informed decision-making regarding the risk surface.

The Attack Chain

  1. A user is working on an internal financial model

    GPT for Sheets user is working on an a financial model
  2. The user imports an external data set to use in their model 

    ChatGPT for Sheets user imports external data to enhance their model
  3. The external sheet has a prompt injection hidden in white text.

    The external sheet contains a hidden prompt injection
  4. The user asks ChatGPT for Google Sheets to help integrate the data from the imported sheet into their financial model.

    ChatGPT for Sheets is asked for help using the external dataset
  5. The injection manipulates ChatGPT for Google Sheets to run an external script

    Note: ChatGPT for Google Sheets has a setting called ‘Apply edits automatically’ that determines when human approvals are required before an agentic action completes. However, this attack succeeds even when the user has explicitly disabled automatic edits.

    ChatGPT for Sheets executes an external attacker-controlled script
  6. The external script exfiltrates the financial model from the user’s workbook

    Below, the attacker's server logs show the user’s exfiltrated financial model.

    The victim's financial model is visible in the attacker's server
  7. Here, the internal financial model sheet included a link to another spreadsheet relevant to budgeting. The malicious script identifies the spreadsheet URL in the stolen data and exfiltrates the newly discovered workbook. It then continues to process the stolen data, identifying and exfiltrating additional workbooks, eventually exfiltrating 12 in total.

    Note: Clicking the ‘stop’ button in the ChatGPT sidebar does not stop scripts that have started from finishing execution.

    The malicious script exfiltrates many workbooks from the victim's account

Phishing Overlay Attacks

In addition to the data exfiltration described above, the same attacker-controlled scripts enable a malicious actor to target two variants of a phishing overlay attack.

Variant 1: A sidebar is opened that overlays the ChatGPT for Google Sheets extension with an attacker-controlled site, allowing the attacker to impersonate the extension. The malicious sidebar can execute scripts that edit the sheet in the same way ChatGPT can, allowing it to act in most of the ways the extension normally does, while also performing malicious activities such as:

  • Harvesting all user prompts

  • Providing the user with a misaligned chatbot to interact with

  • Convincing the user to ‘reconnect’ connectors to gain access to additional apps

  • Displaying a phishing UI to steal credentials for OpenAI

Malicious script overlays the ChatGPT sidebar with an attacker-controlled ChatGPT clone

Variant 2: A pop-up modal is opened that renders an attacker-controlled website to phish the user for credentials.

Malicious script opens an interactive phishing pop-up

Control Access to ChatGPT for Google Sheets

Organizations can leverage the following configuration to control access to ChatGPT for Google Sheets:

Workspace settings > Permissions & roles > ChatGPT for Excel and Google Sheets

Responsible Disclosure

This vulnerability was responsibly disclosed to OpenAI. Despite multiple follow-ups, we received no communication beyond an automated reply to our initial disclosure. OpenAI's documentation fails to describe sensitive capabilities granted to the model (e.g., running privileged scripts) or risks of model manipulation via indirect prompt injection, instead focusing solely on functional limitations and data-handling concerns. As such, we are publishing our findings to enable informed decision-making regarding the risk surface.

Timeline

May 08, 2026 PromptArmor discloses to OpenAI via email
May 08, 2026 OpenAI sends an automated reply, confirming the intended reporting channel
May 08, 2026 PromptArmor confirms email preference
May 12, 2026 PromptArmor follows up
May 18, 2026 PromptArmor follows up
May 27, 2026 Public disclosure

联系我们 contact @ memedata.com