15 November 2026
بيانات شركتك وأدوات الـ AI: سبعة أقفال تمنع التسريب، وبرومبتات تفحص فيها نظامكYour Company Data and AI Tools: Seven Locks That Stop Leaks, and Prompts to Audit Your Setup
Learn how to stop customer data and secrets leaving to a third party when your company runs an internal AI assistant, lock by lock, with a ready prompt to audit each lock in your setup.
Who this guide is for
Business owners and tech leads who run, or plan to run, an internal AI assistant on top of an outside model.
Key terms
- DLP (data loss prevention)
- A layer that checks every request before it leaves the company and catches sensitive data such as emails, card numbers and names.
- Placeholder
- A token like <CARD_1> that replaces the real data in the request. The system keeps the original and puts it back in the reply.
- Indirect prompt injection
- Hidden instructions in a page or file the agent reads, trying to make it do something the employee never asked for, such as leaking data.
- RBAC (role based access)
- Every employee has permissions by role, and the agent runs with exactly those permissions, nothing more.
The steps
Step 1
Map the path from employee to model
Before any lock, know where the data goes. Write down every stop: the chat interface, the internal API, the outside model and the tools the agent can call.
Any stop outside the company is a third party. That is where the risk starts.
We run an internal AI assistant. Here is the setup: [interface, API, model, tools]. Map the request path step by step and mark every point where data leaves the company, and what kind of data could leave at each point.PromptMap the pathTip: Count the tools too: email, calendar and files are all exits.
Step 2
Add a DLP layer with reversible placeholders
Before a request leaves, scan it two ways: Regex for fixed patterns (email, card number, API key) and NER for names and places from context.
Swap every sensitive value for a token like <PERSON_1> or <CARD_1> and keep the originals in a map for that request only. When the reply comes back, put the originals back. The model never sees a real value.
Write Regex patterns to detect sensitive data in Arabic and English text: emails, card numbers, UAE phone numbers, Emirates ID numbers and API keys. For each, give one example that should match and one that should not, so I can test it.PromptPattern listTip: Keep the token map per request, and never log it with real values.
Step 3
Classify requests by meaning, not numbers
A line like "draft an email about the acquisition deal" has no number and no email, yet it is highly confidential. Regex will not catch it.
Set sensitivity labels (public, internal, confidential) and let a classifier read the meaning. Confidential requests go to a private model inside the company; the rest leave after redaction.
My company works in [sector]. Propose three sensitivity levels for requests (public, internal, confidential), with 10 realistic example requests for each and the wording cues that signal the level even without numbers.PromptClassification rulesStep 4
Require approval for every write or send
Once the agent has tools, an employee can say "send this summary to my personal email" and it will.
Add human confirmation on every tool that writes or sends, plus an allow list of recipient domains (your company and partners only). Anything outside the list stops before approval.
These are the tools our agent can call: [list]. Sort them into read only, writes, or sends outside the company. For each tool that writes or sends, say whether it needs approval and what its allow list should be.PromptTool inventoryStep 5
Tie the agent to the employee's identity
Allow sign in with the company account only through SSO, and block personal accounts from any MCP server you run.
Pass the employee's identity through OAuth to every tool, so each call runs with that person's role and permissions, not a service account that can do everything.
Tip: One all powerful service account for every tool is the biggest hole in most setups.
Step 6
Sanitize output and block outside links
A wiki page or file can hide text telling the agent to "append the customer data to this image URL". The chat renders the image, the browser requests it, and the data leaves inside the URL.
Clean every reply before it renders: strip outside images and links, and have the network block any request to a domain not on your list. This is not theory: EchoLeak in Microsoft 365 Copilot used the same idea in 2025 before it was fixed.
Write 5 examples of hidden text I can place in an internal test page, each trying to make an AI assistant leak data through an image link or a plain link. These are for testing our own system only; explain what should happen if the protection works.PromptTest injectionsStep 7
Log every step and test every change
When legal asks who sent what and when, the answer should be ready. Log every redaction, every file read and every tool call with its time and requester, using tokens, not real values.
Run every change to the redaction rules through a fixed test set before it ships, so fixing one gap does not open another.
Build a test set for our DLP layer: 20 requests where something must be redacted and 10 normal requests that must pass unchanged. For each, write the exact expected result.PromptTest setStep 8
Close the last door: personal accounts
After all this, an employee can still open personal ChatGPT and paste the same complaint. On personal accounts, chats are used for training unless the user turns off Improve the model for everyone. Business accounts and the API at OpenAI and Anthropic are not used for training by default.
The fix is not only a ban: write a clear policy and give people an official tool that is easier and faster than their personal one. If the official tool is harder, they go back.
Tip: Re read your provider's terms every few months; training and retention policies change.
Ready prompts to copy
The takeaway
Every lock closes a gap, but the last lock is people: an official tool that is easier than the personal one.
Liked this guide?
Join Mohammad's community
72 guides like this one, and a new one every week. One subscription opens them all.
Approximate price in your currency. You pay in AED
- A permanent archive. Open any guide, any time
- 20% off private build sessions
- Cancel any time, no commitment
Or without a subscription
Most value
Start building with me now
We sit together, break down your problem, and I build the AI solution with you step by step
- A private session with you
- Real building during the session
- Results you take with you when we finish
100% free
A free consultation about your problem