ChatGPT for Google Sheets Exfiltrates Workbooks

Hacker News Top News

Summary

A security researcher discloses that OpenAI's ChatGPT extension for Google Sheets is vulnerable to indirect prompt injection attacks, allowing attackers to exfiltrate workbooks and execute unauthorized actions despite user settings requiring approval.

No content available
Original Article
View Cached Full Text

Cached at: 05/31/26, 10:37 PM

# ChatGPT for Google Sheets Exfiltrates Workbooks Source: [https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration) 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](https://framerusercontent.com/images/HL0JGinAasvm0rRWElfj95y4YOw.png) ### [Overview](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#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](https://help.openai.com/en/articles/20001063-chatgpt-for-excel-and-google-sheets)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](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#the-attack-chain) 1. #### [A user is working on an internal financial model](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#a-user-is-working-on-an-internal-financial-model) ![GPT for Sheets user is working on an a financial model](https://framerusercontent.com/images/6mXmoFHxT70AhPjZCaWuk5XGGk.png) 2. #### [The user imports an external data set to use in their model](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#the-user-imports-an-external-data-set-to-use-in-their-model) ![ChatGPT for Sheets user imports external data to enhance their model](https://framerusercontent.com/images/2xg41JsteIQimDAsu7T1P5SM.png) 3. #### [The external sheet has a prompt injection hidden in white text\.](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#the-external-sheet-has-a-prompt-injection-hidden-in-white-text.) ![The external sheet contains a hidden prompt injection](https://framerusercontent.com/images/T8F5l41Z3l8qbhVQEKOwIJkfwA.png) 4. #### [The user asks ChatGPT for Google Sheets to help integrate the data from the imported sheet into their financial model\.](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#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](https://framerusercontent.com/images/HpCmIypDolIQYaw47Y7cGxQguRA.png) 5. #### [The injection manipulates ChatGPT for Google Sheets to run an external script](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#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](https://framerusercontent.com/images/UvR4f9cKNEWYOVdpdw7eLfq8DAs.png) 6. #### [The external script exfiltrates the financial model from the user’s workbook](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#the-external-script-exfiltrates-the-financial-model-from-the-user%E2%80%99s-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](https://framerusercontent.com/images/k8yMBHZnREsEaBhbPnQz2ulrUks.png) 7. #### [The external script identifies links to other workbooks in the stolen data, exfiltrates the discovered workbooks, and continues across all workbooks it can find](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#the-external-script-identifies-links-to-other-workbooks-in-the-stolen-data-exfiltrates-the-discovered-workbooks-and-continues-across-all-workbooks-it-can-find) 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](https://framerusercontent.com/images/dSYK966kSY8bWezWrfCSfw4oM.png) ### [Phishing Overlay Attacks](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#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](https://framerusercontent.com/images/PCQD4kzQtiSOClwXdGzPWvtEXX4.png) **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](https://framerusercontent.com/images/8LJGCXd0sfE5hGayZR4D9awgROc.png) ### [Control Access to ChatGPT for Google Sheets](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#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](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#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](https://help.openai.com/en/articles/20001063-chatgpt-for-excel-and-google-sheets)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](https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration#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

Similar Articles

ChatGPT for Google Sheets

Product Hunt

A new Google Sheets add-on allows users to chat with their spreadsheets and edit cells using natural language commands.

Introducing ChatGPT for Excel and Google Sheets

YouTube AI Channels

OpenAI released ChatGPT add-ins for Excel and Google Sheets, enabling users to analyze, update, and explain spreadsheets using AI. The add-ins are powered by GPT-5.5 and are now available globally for all plans.

Introducing ChatGPT for Excel and new financial data integrations

OpenAI Blog

OpenAI introduced ChatGPT for Excel, a beta add-in that brings ChatGPT directly into spreadsheets to help build models and run analyses, alongside new financial data integrations from providers like FactSet and S&P Global. The release features GPT-5.4 Thinking, OpenAI's most advanced model optimized for financial reasoning and modeling tasks.

ChatGPT Wants Access to Your Bank Account

Reddit r/ArtificialInteligence

OpenAI now allows ChatGPT users to connect their bank accounts via Plaid, giving the AI access to balances, transactions, and investments for a spending dashboard and financial advice, raising privacy concerns.

More ways to work with your team and tools in ChatGPT

OpenAI Blog

OpenAI is rolling out shared projects for ChatGPT business plans, allowing teams to collaborate with shared files, instructions, and context. New connectors integrate with Gmail, Google Calendar, Microsoft Outlook, Teams, SharePoint, GitHub, Dropbox, and Box, alongside new compliance certifications and admin features.