A combination of technical controls and clear policy is required to prevent sensitive data from entering public AI tools. An Bifrost AI gateway with endpoint governance can enforce data loss prevention automatically.
The use of public AI assistants like ChatGPT, Claude, and others has created a significant data security blind spot for most organizations. Employees, aiming for efficiency, often copy and paste internal data into these tools without considering the consequences. Research shows this behavior is widespread; one report found 77% of AI users have pasted company data into generative AI tools. This ungoverned usage, often called "shadow AI," creates a direct channel for sensitive information—including customer PII, financial records, source code, and internal strategy documents—to leave a controlled environment.
Once data is submitted to a public large language model (LLM), the organization loses control over how it is stored, used for training, or potentially exposed. While employee training and acceptable use policies are necessary first steps, they are not sufficient to stop the behavior. A durable solution requires technical controls that can inspect, redact, and block sensitive data before it ever leaves the company's perimeter, even from unmanaged applications running on employee laptops.
Why Banning AI Tools Fails
For many organizations, the first reaction to the risk of data leakage is to ban public AI tools outright. This approach is rarely effective. Employees facing deadlines will find ways to use the tools they find most productive, often resorting to personal accounts or devices, which pushes the activity further into the shadows where security teams have zero visibility. A more effective strategy is to enable safe AI use by establishing guardrails that apply to all AI traffic, regardless of its origin.
This requires a multi-layered approach:
- Clear Policies: Define what constitutes sensitive data and which AI tools are approved for use.
- User Education: Train employees on secure prompting practices, such as anonymizing data before submission.
- Technical Enforcement: Implement systems that can automatically detect and prevent sensitive data from being submitted to AI models.
Policy and education set expectations, but technical enforcement ensures compliance. This is where AI gateways and endpoint governance agents become critical components of an organization's security posture.
Using an AI Gateway for Data Loss Prevention
An AI gateway is a centralized proxy that intercepts all requests to AI models, allowing an organization to enforce security, compliance, and governance policies from a single control plane. Instead of letting every application and developer connect directly to a provider like OpenAI or Anthropic, all traffic is routed through the gateway. This provides a chokepoint to enforce data loss prevention (DLP).
An open-source AI gateway like Bifrost can be configured with content-aware guardrails that inspect the data within each prompt. Key capabilities include:
- Secrets Detection: Gateways can automatically scan prompts for credentials like API keys, database connection strings, and tokens. If a secret is detected, the request can be blocked entirely before it reaches the external LLM.
- PII Redaction: Using regular expressions and named entity recognition (NER), a gateway can identify and redact or mask personally identifiable information (PII) like names, social security numbers, and credit card numbers from prompts.
- Custom Rules: Organizations can define their own rules to block company-specific sensitive information, such as project codenames, financial reporting terms, or other intellectual property.
- Audit Logging: The gateway creates an immutable audit trail of all AI interactions, logging who made the request, what data was sent (in its redacted form), and the model's response. This is essential for compliance with regulations like GDPR, HIPAA, and SOC 2.
By centralizing AI traffic, a gateway makes data protection policies enforceable and auditable. It shifts data security from a hopeful request to an automated, consistent control.
The Endpoint Problem: Closing the Last Mile of Governance
A gateway is effective, but only for the traffic that is configured to pass through it. The reality in most companies is that employees use AI on their laptops through desktop applications (like Claude Desktop or the ChatGPT app) and web browsers. This "last mile" of AI usage typically bypasses the corporate gateway entirely, rendering its protections useless.
This is the core challenge of shadow AI. To solve it, the same governance enforced at the gateway must be extended to every employee's machine. This is accomplished by pairing an AI gateway with an endpoint agent.
The Bifrost AI gateway and Bifrost Edge work together to solve this problem.
- The Gateway as Control Plane: The Bifrost gateway acts as the central policy engine where administrators configure guardrails, virtual keys, access rules, and audit logging.
- Edge for Endpoint Enforcement: Bifrost Edge is a lightweight agent installed on each employee's macOS, Windows, or Linux machine. It automatically intercepts all AI traffic from desktop apps, coding agents, and browsers and routes it through the company's Bifrost gateway.
This combined approach means there is no need to reconfigure individual applications or rely on employees to change their behavior. The same secrets detection and PII redaction rules configured in the gateway are automatically applied to a prompt typed into the public ChatGPT website on an employee's laptop. If an employee attempts to paste a list of customer details into a chatbot, the gateway's guardrails can block or redact the sensitive information before it ever leaves the corporate environment, with the entire event captured in the gateway's audit logs.
A Complete Strategy for Preventing AI Data Leaks
Stopping employees from pasting sensitive data into AI chatbots requires moving beyond simple prohibitions. A successful strategy acknowledges that employees will use AI tools and focuses on making that usage secure by default.
- Establish a Clear AI Use Policy: Document which tools are approved and explicitly define what data categories are too sensitive for public AI tools.
- Route Configured Traffic Through an AI Gateway: Use an AI gateway like Bifrost to centralize API traffic and apply content-aware DLP guardrails for secrets, PII, and custom patterns.
- Deploy Endpoint Governance: Extend gateway policies to every machine with an endpoint agent like Bifrost Edge. This closes the shadow AI gap by bringing traffic from desktop and web apps under governance.
- Monitor and Audit: Use the centralized logs from the AI gateway to monitor AI usage, audit for compliance, and identify areas where policies may need refinement.
By combining a central policy engine with endpoint enforcement, organizations can effectively prevent sensitive data leaks without blocking the productive use of AI tools. Teams evaluating solutions for this can request a Bifrost demo or review the open-source repository to learn more.
Sources
- LayerX, "The State of GenAI Security," 2025
- Palo Alto Networks, "What Is Shadow AI? How It Happens and What to Do About It"
- Wiz, "What is Shadow AI? Why It's a Threat and How to Embrace and Manage It," March 2026
- Maxim AI, "From AI Gateway to the Endpoint: Closing the Last Mile of AI Governance," June 2026
- Fisher Phillips, "Acceptable Use of Generative AI Tools [Sample Policy]"
- API7.ai, "How AI Gateways Enforce Security and Compliance for LLMs," November 2025



Top comments (0)