How to Prevent Data Leakage in ChatGPT and Claude Without Blocking Staff Access

Learn how to keep approved ChatGPT and Claude workspaces available, apply DLP to sensitive prompts and uploads, and test that clean requests still go through.

Akash

Akash

2026 State of Agentic AI Security

How ready is your organization to secure AI agents?

3 quick questions. See how you compare to other security leaders.

Prevent data leakage in ChatGPT and Claude: an allowed prompt, a blocked API key, and a masked card number
Prevent data leakage in ChatGPT and Claude: an allowed prompt, a blocked API key, and a masked card number

Keep approved ChatGPT and Claude workspaces, then add inline DLP where staff actually use them. With Akto, supported prompts are checked against your data policies. Clean requests go through to the AI tool. Customer records, API keys, or source code trigger the action you configured, such as a block or a redaction, and the decision is logged for review. Coverage follows the surface: browser controls protect managed browsers, endpoint controls protect desktop apps on managed devices, and Claude Enterprise inference hooks protect the connected workspace on any device.

Where company data leaves through ChatGPT and Claude

Company data leaves through three actions: typing, pasting, and uploading. Each one reaches the AI provider by a different path, so each needs an inspection point that sits on that path before the request is sent.

Leak path

Typical example

Where it can be inspected

Typed prompt

A support rep types a customer’s name, account number, and SSN to draft a reply

In the browser before submission (Atlas extension), on the device for desktop apps (AI Endpoint Shield), or before inference in Claude Enterprise (inference hook)

Pasted text

A developer pastes a config block that contains a live API key, or a whole source file, to debug it

Same as a typed prompt: the pasted text becomes part of the prompt and is checked when the prompt is submitted

Uploaded file

An analyst attaches a spreadsheet of customer records or a signed contract PDF for summarizing

In the browser, where Atlas intercepts file uploads; confirm the supported file types and policy action for each tool before you rely on it

Typed prompts, pasted text, and file uploads mapped to the browser extension, AI Endpoint Shield, and Claude inference hooks

The difference between the rows matters for enforcement. A pasted API key is a short string inside prompt text, so a secrets policy can block it before it is sent. A 40-column spreadsheet is a file. Akto documents block and redact actions for supported prompt text, not redaction inside uploaded files. Treat file uploads as their own policy decision, not as a long prompt.

Desktop use is the other split. A prompt typed into the ChatGPT or Claude desktop app never touches the browser, so a browser extension does not see it. Desktop apps need an endpoint control on a managed device, or, for Claude Enterprise only, an inference hook that evaluates the request inside the workspace.

Which controls keep ChatGPT and Claude available to staff?

Five controls do the work, and they act at three different moments. Some inspect content before it leaves the device, one decides before the model runs, and one records activity after the event. Leaving ChatGPT and Claude available means picking the controls that cover the surfaces your staff actually use.

Control

When it acts

What it controls

Where coverage ends

Workspace restrictions (OpenAI Workspace Blocking, Claude Tenant Restrictions)

At sign-in, on traffic your proxy decrypts

Which account or workspace a session can use

Does not inspect content; laptops off the proxy bypass it

Browser DLP (Atlas extension)

Before submission, inside the managed browser

Prompt text in supported ChatGPT, Claude, and Gemini sessions; file uploads are intercepted

Desktop apps, mobile apps, and browsers without the extension

Endpoint controls (Atlas AI Endpoint Shield)

On the device, for desktop, CLI, and IDE workflows

Supported desktop AI activity through the bundled System Proxy

Unmanaged devices and phones

Claude Enterprise inference hooks

After submission, before inference

Allow or deny for prompts in the connected Claude Enterprise workspace, on any device

Personal Claude accounts, ChatGPT, and other AI tools; no redaction

Compliance logs (OpenAI and Anthropic Compliance APIs)

After the event

Activity records for investigation and audit

Cannot stop a prompt

Workspace restrictions at sign-in, DLP before submission, inference hooks before inference, and compliance logs after the event

Workspace restrictions decide the account, not the data

OpenAI and Anthropic both let your proxy inject a header that names the approved workspace or organization. Personal accounts are filtered out on any traffic that carries that header. Nothing about the prompt is inspected, and a laptop on home Wi-Fi outside your proxy never receives the header. The full setup, including the anonymous ChatGPT path and desktop certificate pinning, is in Akto’s guide to blocking personal ChatGPT and Claude accounts.

Browser DLP checks the prompt before it is sent

The Akto Security extension runs in Chrome and Chromium browsers such as Edge, Brave, and Opera, and Akto also ships extensions for Firefox and for Safari on macOS. Atlas checks supported prompts in ChatGPT, Claude, and Gemini for personal information, secrets, and source code, and can block or redact them while allowing requests that meet policy. Because it runs in the browser, it keeps working on managed laptops off the corporate network. It does not see the desktop apps.

Endpoint controls cover the desktop apps

AI Endpoint Shield covers desktop, CLI, and IDE workflows, with desktop coverage through its bundled System Proxy. It deploys through MDM or on individual devices. Use it wherever staff run the ChatGPT or Claude desktop app, because the browser extension cannot see those sessions.

Claude Enterprise inference hooks decide before the model runs

With the Claude inference integration, Claude Enterprise sends content to Akto for an allow or deny decision before inference. Approved requests continue. Denied requests show the employee a policy explanation and are recorded for investigation. Hooks cover the connected workspace on unmanaged devices too, with no endpoint install. Two limits apply: the verdict is allow or deny, with no redaction, and the hook only sees your Claude Enterprise organization.

Compliance logs record, they do not block

The OpenAI Compliance connector pulls enterprise usage, audit logs, and organization activity into Akto. Those records describe events that already happened. Use them for investigation and audit, and pair them with an inline control for prevention.

Key takeaway: Map each surface to one inline control. Managed browsers get the extension, desktop apps get AI Endpoint Shield, Claude Enterprise gets inference hooks, and compliance logs sit underneath all three.

How to set up DLP for ChatGPT and Claude

Set up ChatGPT and Claude DLP in four steps: define the data, deploy the control for each surface, set the action, and pilot in monitor mode before you block. The settings named below are the ones Akto documents publicly. Confirm anything else with Akto Support during rollout.

  1. Select the sensitive data. In an Atlas guardrail policy, select the PII types to detect, enable secrets detection and set its confidence threshold, and set a code detection level (or ban code entirely). Add up to 10 custom regex patterns for internal identifiers such as customer IDs, and a ban-words list for internal project names. Start with the categories that carry regulatory or contractual weight, such as customer records and credentials.

  2. Deploy the control for each surface.

    • Browsers: request the extension ID and deployment URLs from Akto Support. Google Workspace admins can force-install the extension for a selected organizational unit, and the Chrome setup guide covers Microsoft Intune, NinjaOne, Jamf, and manual installs.

    • Desktop apps: roll out AI Endpoint Shield through MDM or on individual devices.

    • Claude Enterprise: connect the inference hook using the Claude inference hooks guide.

    • Audit records: connect the OpenAI connector and confirm expected activity appears in Akto.

  3. Configure the policy action and scope. For each PII type, choose Block to deny the request or Mask to redact the PII before the content is processed. Secrets and code detection block on a match. Scope each policy to users, devices, and AI assets. You can apply rules to personal or unidentified accounts while excluding work accounts. In the browser, the Bypass Guardrails setting controls enforcement: on logs the violation and lets the request proceed, off blocks it and shows the user a browser alert. For Claude inference hooks, set the failure behavior for requests when Akto is unavailable.

  4. Pilot with a small group. Pick one team that uses both tools, such as support or engineering. Run the browser policy with Bypass Guardrails on, and run Claude inference hooks in shadow mode. Every flagged request is recorded in monitoring mode too, so you can see what enforcement would stop. Review events in Akto Atlas > Agentic Guardrails > Guardrail Activity, tune any policy that flags ordinary work, then switch enforcement on for that group before you widen it.

Tell the pilot group what will happen before you enforce. A short line in the acceptable use policy works: use company ChatGPT or Claude accounts for work, and do not enter customer records, credentials, or source code unless policy allows it.

How to test sensitive pastes and file uploads

Run six tests before you widen enforcement: a clean prompt, a sensitive paste, and a sensitive upload in each tool. Use a managed device on the enforced path, one approved test user, and synthetic data only. This is a test plan. Record your own results against each row rather than assuming them.

Synthetic data to prepare:

  • A fake secret, such as AWS’s published example key AKIAIOSFODNN7EXAMPLE, inside a short config snippet.

  • A test card number such as 4111 1111 1111 1111 with an invented name and address.

  • A file named synthetic_customers.csv with 20 invented rows: name, email, phone, and test card number.

Test

Surface

Configured action

Expected result

What staff see

What admins check

1. ChatGPT clean prompt (“Summarize the benefits of SSO in three bullets”)

chatgpt.com, approved workspace, managed Chrome with the Atlas extension

PII and secrets policies on, enforcement on

Request reaches ChatGPT unchanged

A normal response, no alert

No Guardrail Activity event, because only flagged requests are recorded. The session appears under Agentic Assets > chatgpt.com, mapped to the username

2. ChatGPT sensitive paste (config snippet with the fake key)

Same as test 1

Secrets policy: block

Prompt is stopped before submission

Atlas browser alert asking them to remove the sensitive information and try again

Guardrail Activity shows the user, endpoint, path, and triggering secrets policy

3. ChatGPT sensitive upload (synthetic_customers.csv)

Same as test 1

The file policy you configured

Upload is intercepted and your configured file action applies

Record the exact message shown

An event for the upload with the user and policy. Confirm with Akto which file types and actions are supported; do not expect redaction inside the file

4. Claude clean prompt (same text as test 1)

claude.ai, approved organization, managed Chrome with the Atlas extension

PII and secrets policies on, enforcement on

Request reaches Claude unchanged

A normal response, no alert

No Guardrail Activity event. The session appears under Agentic Assets > claude.ai, mapped to the username

5. Claude sensitive paste (test card number with invented name)

Same as test 4; repeat in the Claude desktop app with Claude Enterprise inference hooks or AI Endpoint Shield

PII policy: Mask in the browser; deny in the inference hook

Browser: the card number is masked before the prompt is processed. Hook: denied before inference

Browser: record how the masked prompt appears. Hook: a policy explanation from Claude

Guardrail Activity for the browser event; a recorded denial for the hook event

6. Claude sensitive upload (synthetic_customers.csv)

Same as test 4

The file policy you configured

Upload is intercepted and your configured file action applies

Record the exact message shown

An event for the upload with the user and policy. Note whether the hook also evaluated the file content

Expected results for a clean prompt, a sensitive paste, and a sensitive upload in ChatGPT and Claude

Then repeat tests 2 and 5 off the corporate network on the same managed laptop. Browser controls should behave the same. Proxy-based workspace restrictions will not, which is expected.

If a row fails, change one thing at a time: the policy scope, the action, or the deployment. A pass in Chrome says nothing about the desktop app, so test each surface you allow.

Does ChatGPT Enterprise or Claude Enterprise replace DLP?

No. An enterprise plan governs the workspace. DLP governs what goes into it. You need both, because they answer different questions at different moments.

Workspace governance is real and worth buying. Both vendors say business data is not used for training by default. Both offer SSO, user provisioning, and admin-set retention on their enterprise tiers. Both expose a Compliance API that feeds conversation records to eDiscovery, SIEM, and DLP tools. That gives you control over who signs in, how long data is kept, and what you can produce for an audit.

None of that stops a paste. Retention and audit logging describe data that has already reached the provider. A compliance record that shows a customer list arrived in a chat is evidence, not prevention.

Capability

Acts before submission

Acts before inference

Records after the event

SSO, provisioning, retention

No

No

No (governs storage)

Compliance API (OpenAI or Anthropic)

No

No

Yes

Claude Enterprise inference hooks

No

Yes, allow or deny

Yes, denials are recorded

Browser or endpoint DLP (Atlas)

Yes, in supported sessions

No

Yes, in Guardrail Activity

Claude Enterprise inference hooks are the one native control that acts before the model runs. They still return only allow or deny, and they cover only your Claude organization. OpenAI does not document an equivalent pre-inference hook for ChatGPT Enterprise, so inline protection for ChatGPT has to come from the browser or the endpoint.

Lower tiers leave more to you. ChatGPT Business and Claude Team lack several enterprise controls, including the Compliance API on ChatGPT and inference hooks on Claude. If your company is on those plans, browser and endpoint DLP carry more of the load.

Frequently asked questions

How do I stop employees from pasting sensitive data into ChatGPT without blocking ChatGPT?

Deploy the Atlas extension to managed browsers (Chrome and other Chromium browsers, Firefox, or Safari on macOS) and turn on PII and secrets detection. Set each PII type to Block or Mask. Pasted text becomes part of the prompt, so it is checked before submission. Clean prompts go through normally. When a prompt is blocked, staff see an alert asking them to remove the sensitive information and try again.

Can we allow ordinary uploads to Claude but block sensitive file uploads?

Plan for it, then verify it. Atlas intercepts file uploads in the browser, and a policy that targets sensitive content leaves ordinary files alone. Akto documents block and redact actions for prompt text, not redaction inside files, so confirm the supported file types and the file action for claude.ai with Akto before rollout. Then run tests 3 and 6 from the test plan above.

Does this cover Claude Desktop?

Yes, through two routes. AI Endpoint Shield covers desktop AI activity on managed devices through its bundled System Proxy. If you run Claude Enterprise, inference hooks also evaluate prompts from Claude Desktop in your organization before inference, with an allow or deny verdict. The browser extension alone does not cover the desktop app.

What happens on unmanaged devices?

Most controls stop at the device boundary. Browser extensions and endpoint controls only run where you deploy them, and proxy-based workspace restrictions only apply to traffic through your proxy. The exception is Claude Enterprise inference hooks, which cover your Claude Enterprise workspace on any device because the check runs in the workspace, not on the laptop. Personal accounts on personal devices stay outside every control, so the employee policy has to cover them.

Do the OpenAI and Anthropic compliance connectors block prompts?

No. They bring activity and audit records into Akto after events occur. Use them for investigation and audit, and use browser, endpoint, or inference hook controls for prevention.

See how Akto Atlas applies AI DLP to ChatGPT and Claude, or book a demo to map your own surfaces.


Follow us for more updates

Secure AI Agents and MCPs with Atlas and Argus.

Experience enterprise-grade Agentic Security solution