Skip to content
Detecti.ai

← All articles

· 5 min · by Gardien Security

The attached file is the leak nobody sees: PDFs, spreadsheets, saved emails and images with text

When people talk about data leaking into AI, the picture that comes to mind is someone pasting a CPF (the Brazilian individual taxpayer ID) into ChatGPT. That is real, and it happens every day. But the event that carries the most data per occurrence is not the paste. It is the file.

A paste carries one customer. A spreadsheet dragged into the chat carries five hundred. A contract in PDF carries the parties, the amounts, the bank accounts and the confidentiality clause. An email saved as .eml carries the entire conversation with the customer. And a screenshot of the internal system carries all of that in an image that no text filter can see.

Why uploads go unnoticed

Three reasons:

  1. Most monitoring tools look at text. Browser extensions and proxies inspect what is typed or pasted. A file upload takes a different path, often encrypted end to end with the vendor.
  2. Dragging is fast. There is no Ctrl+V, no selection. The file goes from the desktop to the chat in a single gesture.
  3. An image is not text. A screenshot of the CRM has the same CPF as the spreadsheet, but to a text classifier it is a rectangle of pixels.

How an endpoint agent detects the upload

On Windows, when a process opens a user's file, the system records the operation. An agent watching those events can cross-reference two things: who opened it (a browser with an AI tool in focus, or the desktop app of an AI tool) and what was opened (a user data file, not a system library).

That cross-reference produces an event with the file's extension and type: "a PDF was sent to ChatGPT at 2:32 pm on machine X". That alone changes the monthly report, because it shows an exit channel the paste never showed.

What can be read locally

If the company wants more than the extension, the agent can extract the text from the file right there on the machine and classify it the same way it classifies a paste: CPF, card number, credential, banking data, Pix key (Pix is Brazil's instant payment system), health data, email address, source code. The formats worth covering:

What goes up to the server is the same as for a paste: "a PDF with 11 CPFs and 3 health data items". The file's path never goes up, and the content only goes up if the customer turns on evidence retention, encrypted with a key only the customer holds. The file name, without the folder, goes up by default, because it is the line of the alert the analyst needs to read; the customer can turn it off, and then only the extension remains.

This must ship off by default. Reading file contents, even locally, is a decision the customer makes together with the DPO, and the product should leave that choice in a clear setting, with separate switches for files and for images.

Why alert instead of block

A paste can be blocked on the spot: the agent sees the Ctrl+V before it happens and decides. A file upload is different. The system records the file being opened when it is already under way, and interrupting that reliably requires a kernel driver, signed by Microsoft, with a risk of instability that is not justified for most companies.

The honest choice is to say what the product does: the upload is detected and becomes an alert, listing the categories found, so the company can act the same day. The paste is blocked, if the customer turns that on. A vendor that promises to block uploads without a kernel driver is promising something worth asking how it works. The honest answer is being inside the browser: an extension can hold the attachment in the page, before the site receives it.

What changes in the conversation with the team

When the report shows "14 files sent to AI tools this month, 5 with customer data", the conversation stops being about banning and starts being about the path forward: which approved tool solves the same problem, and how to use the file without the data (a spreadsheet without the CPF column solves it almost every time).

How Detecti.ai does it

The file sensor is one of the agent's five sensors and ships enabled, recording the file's name and extension (the customer can turn the name off). Content reading and OCR are two separate switches in the customer's settings, off by default. The agent detects the attachment and raises an alert; with the Detecti.ai extension on in Chrome, Edge or Brave, it follows the same mode as the paste, and blocking access to unapproved tools stops the upload, because the tool no longer opens. Everything happens on the machine, with dedicated extractors for PDF, current and legacy Office formats, email and zip, plus the OCR built into Windows. The sensors section of the home page describes the full set.

Read next