
AI Data Security - Which Data, Through Which Channel, and How to Keep Company Secrets Safe
A secure AI rollout in a company is possible, but it depends on which channel data takes to reach the model. In free and personal chat accounts, conversations may be used to train models unless the user turns that off. In business plans and in the OpenAI, Anthropic and Google APIs, customer data isn't used for training by default, and OpenAI lets you process API requests in a European region. So the biggest risk isn't the model itself, but employees pasting data into personal tools and poorly built integrations.
Where leaks really come from, how personal chat, business plans, the API and your own server differ (training, retention, EU region), a map of data classes and allowed channels, vendor requirements, masking and an accounting firm case.
In this post I show where leaks really come from, how a browser chat, a business plan, the API and your own server differ, how to match the channel to the type of data (with a ready-made map), what to require from a vendor, what a secure data flow with masking looks like, and how an accounting firm that was afraid to send anything to AI handled it.
Where leaks really come from
- Shadow AI. Employees paste contracts, price lists and customer data into personal accounts on free tools on their own initiative. It's a problem of missing rules and missing tools, not technology. More in the post on shadow AI.
- Leaky integrations. API keys stored in code, no data masking, apps from random vendors whose terms reserve rights to your data.
- Attacks on AI applications and agents. Hidden instructions in emails and documents can make a model reveal data. Details in the posts on prompt injection and AI agent security.
- Outside fraud using AI. An attacker doesn't need to break into your systems - cloning the CEO's voice and calling accounting is enough. I cover this in the post on deepfakes and AI fraud.
A browser chat, a business plan, the API or your own server
| Channel | Can data be used for training | Data retention | Suitable data |
|---|---|---|---|
| Personal and free chat accounts | Yes, unless the user turns it off (since 2025 also for personal Claude accounts) | Per account settings, up to 5 years on Claude if training is allowed | Public data only |
| Business plans (ChatGPT Business and Enterprise, Claude for business, Copilot, Gemini for Workspace) | No, by default | Per contract and administrator settings | Internal and confidential data, per company policy |
| API (OpenAI, Anthropic, Google) | No, by default | At OpenAI, logs for up to 30 days for abuse monitoring, zero retention with vendor approval, no storage in Europe-region projects | Confidential and personal data in a designed process |
| Your own server with an open-weight model | No | Only with you | Data that can't leave the company |
Two things companies often don't know. First, "we don't train on your data" isn't the same as "we don't store your data" - at OpenAI, API data is kept by default for up to 30 days in abuse monitoring logs, and zero retention requires vendor approval. Second, settings have to be turned on deliberately: the processing region, retention period and administrator access won't set themselves.
A map: which data through which channel
The simplest way to bring order is to split data into four classes and assign allowed channels to each. It's worth putting this map into your company AI policy:
| Data class | Examples | Personal chat | Business plan | API in a designed process | Your own server |
|---|---|---|---|---|---|
| Public | Website content, published materials | Yes | Yes | Yes | Yes |
| Internal | Procedures, meeting notes, plans | No | Yes | Yes | Yes |
| Confidential | Contracts, price lists, code, financial data | No | Yes, with a contract and administrator settings | Yes, with masking and logs | Yes |
| Personal and special-category data | Customer and employee data, health | No | Only after a GDPR review | Yes, with a data processing agreement, masking and an impact assessment | Yes |
A table like this answers most employee questions of the "can I paste this?" kind without involving IT every time.
What to require from a vendor
Before you connect a tool to company data, check that the vendor:
- Will sign a data processing agreement (DPA) that complies with GDPR.
- Guarantees no training on your data in the contract, not just in marketing materials.
- Clearly defines the retention period and lets you shorten it.
- Allows processing in the EU region (data residency).
- Publishes a list of subprocessors with access to the data.
- Holds certifications such as SOC 2, ISO 27001 or equivalent.
- Encrypts data in transit and at rest.
- Provides logs and access control for administrators.
If you're buying a ready-made app built on the big vendors' models, ask its maker the same questions - it's the app maker, not OpenAI or Anthropic, who decides what happens to the data along the way.
A secure data flow with masking
For personal and confidential data, an architecture in which the model never sees identifying data works well:
- 1.Source. An email or CRM record reaches the orchestration system.
- 2.Masking. Before anything goes to the model, a script replaces names, tax IDs, addresses and account numbers with placeholders such as [CLIENT_1].
- 3.API request. The masked text goes to the model over an encrypted connection, ideally in the EU region.
- 4.Response. The model returns a draft with placeholders.
- 5.Restoring data. In your environment, the placeholders are swapped back for the real data.
- 6.Approval and saving. A person approves the result, and the document goes to an encrypted destination.
/// ARCHITECTURE: SECURE DATA FLOW
A real example: an accounting firm and GDPR
I built automated email replies for a mid-sized accounting firm. The firm was drowning in client questions about filing statuses, and every reply contained amounts, account numbers and social security data. The owner was afraid to send anything to AI.
I used a model through the API with full masking. AI recognized that a client was asking about "July social security", but before the request was sent, the company name was replaced with a placeholder. The model drafted the reply, and the final email was assembled locally, on the firm's own servers.
The result: response time dropped from 2 days to 15 minutes, and clients' identifying data never reached the model.
Logs, access and keys
- Audit trail. Every request to the model is logged in the orchestration system: when, by whom and from which process.
- Access control. A designated group of employees uses the AI tools, ideally through company sign-in (SSO).
- API keys. Stored in a vault or environment variables, never in code, and rotated regularly.
- AI agents. When AI takes actions in systems, you need separate accounts, narrow permissions and limits - I cover them in the post on AI agent security.
GDPR and the AI Act in brief
GDPR applies unchanged: you need a legal basis, data minimization, a processing agreement with the vendor and sometimes an impact assessment (DPIA). I explain when a prompt becomes processing of personal data and when you need a DPIA in the post on GDPR and AI. The AI Act introduces obligations gradually - for most companies using AI in internal processes, it mainly means an inventory of the systems used, transparency toward customers where required, and staff training. Details in the AI Act guide.
The most common mistakes
- A ban without an alternative. Employees use AI anyway, just on personal accounts. It's better to give them a secure tool and clear rules.
- API keys in code. One repository leak and someone is using your budget and data.
- Trusting "magic" apps. A nice app from an unknown vendor with access to your CRM, no processing agreement and no check of what it does with data.
- No human approval. AI sending contracts or offers without sign-off is a legal and reputational risk.
- Assuming defaults are enough. Region, retention and administrator access have to be configured deliberately.
---
I design AI rollouts so customer data and company secrets stay safe - from a data map and tool selection to masking, the processing region, logs and permissions. I do this as part of AI consulting and AI app development. Get in touch - I start with a review of what data reaches AI in your company today, and through which channels.
Worth reading next:
- GDPR and AI - Personal Data in Prompts, DPIA and LLM Vendor Agreements (Practically)
- Shadow AI - Your Employees Are Using AI Without Your Knowledge and That's Your Problem
- AI Agent Security - Permissions, Sandboxing and an Audit Trail Before an Agent Breaks Something
- AI Policy at Your Company and ISO/IEC 42001 - Governance That Doesn't Kill Innovation
/// RELATED_SERVICES
Need these concepts implemented? Explore the services related to this topic.
AI Consulting
Independent AI consultant for businesses. AI readiness audit, implementation strategy, and board-level advisory — before you engage any vendor.
View serviceServiceAI App Development
Custom AI software and AI-powered web applications. MVP development, full stack engineering, and AI systems programming from scratch to production.
View service/// SOURCES
/// RELATED_RECORDS
AI Vendor Lock-in - How Not to Depend on One Model Provider (Multi-Model Strategy and Plan B)
Every AI model has an expiry date: recently retired Anthropic models lived 12-16 months, and companies got about 60 days to migrate. I show where provider lock-in lives, how to build an access layer for several models, how tests cut a model switch down to one day, plus a 10-question test.
AI Agent Security - Permissions, Sandboxing and an Audit Trail Before an Agent Breaks Something
53% of companies say their AI agents have exceeded their intended permissions. What the Replit, GitHub MCP and EchoLeak incidents teach us, the lethal trifecta and the rule of two, and five layers of protection: permissions, sandbox, limits, human approval and an audit trail.
Deepfake Fraud - How Companies Lose Money to Fake CEOs, and How to Defend Against It
Poland's NASK checked: 66% of Poles can't tell a cloned CEO voice from the real one. In 2025 the FBI broke out AI as a standalone fraud category for the first time ever - 22,364 complaints and $893 million in losses. The single biggest case: $25.6 million wired after one video call with a deepfake fake CFO. This isn't conference-talk science fiction anymore - it's a real risk for any company with a finance department and a phone. Here's the anatomy of the attack, the procedures that stop it, and why “spotting the fake” alone is a losing strategy.
Signal received?
Terminate
Silence
Initiate protocol. Establish connection. Let's build something loud.
