15 November 2026

دليل · Guide8 min read

بيانات شركتك وأدوات الـ 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

  1. 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 path

    Tip: Count the tools too: email, calendar and files are all exits.

  2. 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 list

    Tip: Keep the token map per request, and never log it with real values.

  3. 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 rules
  4. Step 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 inventory
  5. Step 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.

  6. 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 injections
  7. Step 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 set
  8. Step 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

Here is our internal AI assistant: [description]. Audit it against seven locks: DLP with reversible placeholders, sensitivity classification, approvals and a domain allow list, SSO and employee permissions, output sanitizing and outside link blocking, full audit logs, and tests on every change. For each lock tell me: in place, partial, or missing, and the first step to take.
PromptQuick audit of your setup
Write an AI tool usage policy for staff at a company in the UAE, one page in plain language: what they may paste, what they may not, which official tool to use, and what to do if they paste data by mistake.
PromptStaff usage policy

The takeaway

Every lock closes a gap, but the last lock is people: an official tool that is easier than the personal one.

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

60minutes
  • A private session with you
  • Real building during the session
  • Results you take with you when we finish
Book a build session

100% free

A free consultation about your problem

Start