Appearance
Files in AI chats and hidden content
Last reviewed: 30 November 2026
In short: a spreadsheet attached to an AI chat goes to the AI provider. Few products document which parts of a file they read, so assume all of it is available, including hidden sheets, rows and columns, comments, names and links you may have forgotten. Before attaching, cut the file down to what the question needs, or send it through a route that masks it first.
Why it matters
Spreadsheets carry more than they show. Microsoft's Document Inspector, the built-in tool for finding hidden content, lists what it looks for in Excel workbooks:
- comments and ink annotations;
- document properties and personal information (including user names and file paths);
- headers and footers;
- hidden rows and columns that contain data;
- hidden worksheets;
- custom XML data;
- objects formatted as invisible.
Microsoft's warning: "If you distribute a copy of a workbook that has hidden rows, columns, or worksheets, other people might unhide them to view the data that they contain."
Some content the Document Inspector finds but can't remove, because removing it might break the workbook:
- external links;
- embedded files;
- macros;
- PivotTables and other features with cached data;
- hidden names "that might store hidden data in the workbook".
What an AI tool does with each part of a file varies by product and is rarely documented in detail. Treat everything in the file as sent.
Two more points:
- The provider keeps the file. It is stored under the AI provider's retention rules for your plan (see Claude: products, plans and controls).
- The file can carry instructions. Text in a cell or comment can tell the AI to do something (see Threats). Anthropic warns that "A file from an app can contain text written to mislead Claude."
What to do
| Control | Owner | Test | Evidence |
|---|---|---|---|
| Set a rule for which files may be attached to AI chats, and which must go through a masking route or not at all. Base it on your data classification (Data protection). | Data protection lead | People can explain the rule for a sample file. | Published rule |
| Cut the file down first. Copy only the rows and columns the question needs into a new workbook, rather than attaching the original. | Each user | Spot-check attached files in the AI tool's history, where your plan allows it. | Spot-check notes |
| Inspect before sharing. Run Document Inspector on a copy of the workbook (Microsoft: "use the Document Inspector on a copy of your original workbook") and deal with what it finds, including items it can't remove. | Each user | Inspect a sample workbook and compare with a manual check. | Checklist in the user guide |
| Mask identifiers before the file reaches the AI, or use a route that does (Masking, tokens and their limits). | Data protection lead | Send a file with known test values through the route. None should reach the AI. | Test result |
| Block attachments where you can, for tools that support it. Claude Code, for example, can deny reading named files through managed settings. | IT admin | Try to read a blocked file type. | Setting and test result |
| Check what the AI provider keeps from attached files, and for how long, on your plan. | Privacy lead | Matches the vendor's current documentation. | Vendor assessment |
How to check it
Build a test workbook containing:
- a hidden sheet;
- hidden rows;
- a comment;
- a defined name;
- an external link;
- a cell with white text holding a distinctive value.
Run Document Inspector on it and note what it finds. Then, with fake data only, ask the AI tool about the workbook and see which hidden values it mentions.
Limits
- We found no Microsoft statement that Document Inspector finds text hidden by formatting in Excel cells (such as white text). Microsoft documents that limitation only for Word. Check for it yourself.
- Microsoft's page doesn't mention sheets set to "very hidden". Check for them separately.
- Cutting a file down by hand depends on people doing it every time. A route that masks automatically is more reliable.
How Angel handles this
Angel offers a separate route for spreadsheets. An admin uploads the workbook in Angel's console, or a person asks Claude for a one-time upload link (in self-serve workspaces, when sign-up is open). Angel reads only the visible worksheets' displayed cell values. It never reads out, sends or stores formulas, comments, hidden or very hidden sheets, document properties, pivot caches or hyperlink targets. It masks what its detector finds before storing the result, and the AI only ever reads the masked copy.
The limit: Angel can't stop a file attached directly to a Claude chat. That file goes to Anthropic as it is, never through Angel. Angel tells the assistant to offer an upload link instead, but can't enforce it.
See Angel's security page.
Sources (checked 30 November 2026)
- Microsoft, Remove hidden data and personal information by inspecting documents, presentations, or workbooks
- Anthropic, Send files to connected apps and save files from them
- Anthropic, Claude Code: Configure permissions
- OWASP, LLM01:2025 Prompt Injection