AI Security · Level 2 · Intermediate

Data Leakage Controls for AI Tools

How companies keep sensitive data out of the wrong AI tools: approved accounts, masking, DLP for prompts, browser controls, access rights, logs and contracts.

By 10 min read
How companies keep sensitive data out of the wrong AI tools: approved accounts, masking, DLP for prompts, browser controls, access rights, logs and contracts.

A service agent pastes a customer complaint into a free chatbot to get a friendlier reply: name, address and order history included. A colleague in legal uploads a contract draft to a PDF summarizer she found through a search engine. Nobody wants to cause harm. But the data now sits with providers your company has no contract with, under terms nobody has read.

This is part 2 of Level 2 in our AI Security learning path. Level 0 explained what happens to your data in an AI chat. This part takes the company’s view: which controls keep sensitive data where it belongs when a whole team uses AI tools. You will learn the main leak paths, how approved accounts, masking, data loss prevention, access rights, logs and contracts work together, and in which order to set them up.

Where data leaks when people use AI tools

Data leakage means that sensitive data ends up where it should not be: with a provider you have no contract with, in a model’s training data, behind a public link or in front of a colleague who should not see it. With AI tools, it rarely takes an attacker. It happens on five paths:

Five leak paths as cards: unapproved tools, the provider’s processing, sharing and connections, too much internal access, copies in outputs and logs; a sixth card says controls should make the safe way the easy way
Five ways sensitive data leaves controlled space when people use AI tools.

  • Unapproved tools. Someone uses a personal account or a random web tool. Your company has no contract, no admin settings and no way to have the data deleted later.
  • The provider’s processing. Even approved tools store prompts and files for some time. Depending on the plan, people at the provider may review samples, and inputs may be used for training.
  • Sharing and connections. Shared chat links, plugins, connected apps and agents pass data on to further services.
  • Too much internal access. A company assistant that searches internal files shows each user what that user is allowed to open. That includes the salary list that someone shared with the whole company by mistake. Experts call this oversharing.
  • Copies in outputs and logs. Generated documents, chat histories, exports and logs keep copies of the data long after the task is done.

No single control closes all five paths. That is why companies stack several layers, from rules for people to technical checks. Each layer catches some of what the layer above misses:

Six control layers stacked from top to bottom: rules and training, approved tools, masking before the prompt, DLP and browser controls, access rights, logs and contracts; approved tools is highlighted
The control layers of this guide. The highlighted layer prevents the most leaks: a good approved tool.

Start with approved tools and safe settings

The most effective control is an approved tool that is good enough for the job. If people have a business account with sensible settings, they have little reason to paste data into random websites. Part 5 of this level shows how to deal with shadow AI, the unapproved tools that are already in use.

Business and enterprise plans of the large providers usually come with a contract, central administration and, by default, no training on your data. Check the terms of your specific plan, then go through the admin settings before the rollout:

Data Leakage Controls for AI Tools
SettingWhy it mattersSensible default
Training on company dataInputs could flow into future modelsOff, and confirmed in the contract
Retention of chats and filesThe longer data is kept, the longer it can leakAs short as your work allows
Single sign-on and multi-factor loginStops private accounts and stolen passwordsRequired for all users
Sharing of chatsShared links can reach people outside the companyOff, or only inside the company
Connectors, plugins and agentsEach connection sends data to another serviceOnly approved ones, switched on per team
Memory across chatsThe tool keeps personal details for laterOff for teams that handle sensitive data
Data regionSome plans let you choose where data is storedA region that your company and contracts accept
Admin and audit logsYou need to know who changed whatOn, readable by security and data protection

Mask and pseudonymize before you prompt

Often the AI does not need the real data at all. To improve the tone of a reply to a complaint, it does not need the customer’s name, address or order number. Leaving out what a task does not need is called data minimization, and it works with every tool. Three techniques help:

  • Masking removes details or replaces them with a generic marker such as [NAME]. You cannot undo it.
  • Pseudonymization replaces details with consistent placeholders such as Customer_1 and keeps the key, the list of who is who, separately inside the company. You can put the real names back into the AI’s answer later.
  • Anonymization changes data so that nobody can identify the person any more with reasonable effort. This is harder than it looks: a rare job title and a small town can be enough.

Example of pseudonymization: on the left, a complaint with name, email, order number and address; on the right, the same complaint with placeholders that go to the AI; below, three steps: replace locally, the AI works with placeholders, put the real data back locally
Pseudonymization in practice: the AI only sees placeholders, the key stays in the company. Example data.

Data Leakage Controls for AI Tools (2)
TechniqueExampleReversible?Still personal data under the GDPR?
Masking“Dear [NAME], your order [NUMBER] …”NoOnly if the rest still identifies the person
Pseudonymization“Dear Customer_1, your order Order_7 …”, key kept internallyYes, with the keyYes
Anonymization“A customer in a large city reported a damaged parcel”NoNo, if nobody can identify the person

Some DLP tools and AI gateways mask data automatically: they find names, email addresses or bank account numbers in a prompt and replace them before the text leaves the company. Automatic detection misses things, especially names in unusual formats. For very sensitive data, check by hand. Level 1 shows which data classes need the most care in what not to paste into an AI tool.

DLP: check prompts and uploads automatically

Data loss prevention (DLP) is software that recognizes sensitive data and stops it from leaving through the wrong channel. Many companies already use DLP for email and file sharing. For AI tools, it checks what people type or paste into an AI website and which files they upload.

Four steps of a DLP check: detect sensitive data, decide based on data and destination, act by allowing, warning, masking or blocking, and log the event; below, a rollout in three stages: monitor, warn, block clear cases
How DLP handles a prompt or an upload, and how to roll it out without stopping the work.

A DLP check has four steps. It detects sensitive data through patterns such as card or account numbers, keyword lists, sensitivity labels like “confidential” and fingerprints of specific documents. It decides based on the data and the destination: an approved business tool is not the same as an unknown website. It acts: allow, warn and ask for a reason, mask, or block. And it logs the event for later review.

Roll DLP out in stages. Start in monitoring mode for a few weeks and see what happens without blocking anyone. Then warn, and block only clear cases, such as card numbers on their way to an unapproved tool. A rule that blocks too much teaches people to work around it, for example with their private phone.

Most AI use happens in the browser, so the browser is a good control point. A managed company browser can send people from unapproved AI sites to the approved tool, allow only approved extensions and restrict uploads or pasting on unapproved sites. Extensions deserve extra attention: many AI extensions ask for permission to read every page you open, including your email and your CRM.

Access rights, logs and contracts

Access rights decide what an internal assistant can find. According to the vendors, assistants such as Microsoft 365 Copilot or Gemini in Google Workspace respect existing permissions: they show users only what those users could already open. That sounds safe, but it brings old mistakes to light, such as folders shared with everyone, forgotten guest access or outdated groups. Before you switch on such an assistant, clean up permissions in sensitive areas, label confidential documents and give the assistant no more rights than the user. Part 1 of this level lists this risk as LLM02 in the OWASP Top 10.

Logs show what happened: which AI tools are used and by which teams, which DLP events occurred and which admin settings changed. Prompt contents are a special case, because storing every prompt creates a new pile of sensitive data. Keep content logs only where you need them, protect them like the original data and delete them on schedule. Agree on the rules with your data protection officer; in Germany, the works council also has a say when technical systems can monitor employees.

Contracts decide what the provider may do with your data. Before work data flows into a tool, check these points:

  • a data processing agreement, which the GDPR requires when a provider processes personal data on your behalf (Article 28)
  • no training on your data, in writing
  • retention periods and deletion when you leave
  • the list of sub-processors, such as the provider of the language model behind the tool
  • where data is stored and processed, and the legal basis for transfers outside the EU
  • security evidence, such as an ISO/IEC 27001 certificate or a SOC 2 report, and a duty to report incidents

Our comparison lists a few tools for these layers. According to the vendors, Airia secures and governs agents, models, tools and data access, Sentaro checks the context of emails and warns users before they make a mistake, and Bitdefender protects the devices of smaller companies against ransomware and phishing. None of them replaces clean permissions and clear rules:

Short descriptions from our tool comparison, based on the vendors' information — not tested by ABXK.

Common gaps and how to close them

Most leaks happen in the gaps between good intentions and daily work. Check your setup against this table:

Data Leakage Controls for AI Tools (3)
GapWhat happensBetter
A ban without an alternativePeople switch to private phones and accountsOffer an approved tool first, then restrict
DLP blocks from day oneMany false alarms, and people find workaroundsMonitor, then warn, then block clear cases
Business plan with default settingsSharing, plugins and long retention stay onReview the admin settings before the rollout
Assistant on before the permission cleanupUsers find files they should never have seenClean up sensitive areas and labels first
Every prompt logged foreverA new store of sensitive dataLog events; keep content only where needed
No contract check for small toolsData flows to providers without an agreementEvery tool with work data goes through the same review

Our guide on protecting personal data with AI tools adds more advanced techniques, such as differential privacy and federated learning.