Skip to content
GitHubOpen source
Product
Docs
Solutions
IndustriesAll industries
CompareCompare all AI data-leak tools
Benchmarks
GitHubApache-2.0

Shadow AI governance: how to manage unsanctioned AI tools without banning AI

Shadow AI is the use of AI tools that your organisation has not approved: personal ChatGPT accounts, unvetted browser extensions, AI features switched on inside SaaS apps. You govern it by finding out what is used, offering an approved alternative that is genuinely useful, and making that alternative safe for real data. Shadow, the open-source privacy layer documented here, helps with the third part: it masks sensitive data in AI API traffic from sanctioned tools, so saying yes to AI does not mean sending detected customer data to a provider in clear.

People use AI because it saves them hours. They use unapproved AI when the approved route is missing, slow to get, or so locked down that it is useless for their actual work. A DLP rule that blocks any prompt containing a customer name pushes that work to a personal phone.

The data at risk is ordinary and constant: customer emails pasted for a reply, a spreadsheet uploaded for analysis, a stack trace with an internal hostname and an API key, a contract for summarising.

StepWhat it involvesWhere Shadow fits
1. DiscoverFind which AI services are used: proxy and DNS logs, CASB or SASE reports, SSO app catalogues, expense reportsNot a Shadow feature
2. DecidePick approved providers and clients; sign agreements; write an acceptable-use policyShadow widens what is safe to approve
3. ProvideGive people approved tools that work on real tasksShadow masks data in those tools’ API traffic
4. ProtectTechnical controls on what leavesReversible masking, secret redaction, file masking
5. Monitor and reviewTrack usage and decisions; revisit the policyPer-request counts in logs today; audit log on the roadmap

How to give teams a safe, sanctioned AI path with Shadow

Section titled “How to give teams a safe, sanctioned AI path with Shadow”

1. Choose API-based tools for the approved list

Section titled “1. Choose API-based tools for the approved list”

Shadow intercepts provider APIs (OpenAI, Anthropic, Azure OpenAI, Gemini and Vertex AI, Bedrock runtime, OpenRouter, Mistral and others; see providers). Good candidates for the approved list:

  • coding assistants that call the provider with your key: Claude Code, Codex CLI, Aider, Continue, Cline;
  • desktop chat clients that use your own API key;
  • internal assistants and agents your teams build on the OpenAI or Anthropic SDKs.

Consumer web apps such as chatgpt.com and claude.ai, and vendor backends such as GitHub Copilot or Cursor’s hosted service, are not built in. Govern those with your existing web controls.

Terminal window
curl -fsSL https://raw.githubusercontent.com/Tiny-Bubble-Company/shadow/main/packaging/install.sh | sh
shadow init --org "Acme GmbH"
shadow install --apply # background service, CA trust, proxy env file

Run shadow install without --apply first to see every change it will make.

organization = ["Acme GmbH"]
terms = ["Project Falcon", "org:Globex Ltd", "org:Initech"]
internal_domains = ["acme.example", "acme.internal"]
[policy.always]
secret = "redact"
[files]
images = "block"

Distribute it with MDM or configuration management. There is no central console yet, so treat the file like any other managed configuration.

Terminal window
export OPENAI_BASE_URL=http://127.0.0.1:8877/gw/openai/v1
export ANTHROPIC_BASE_URL=http://127.0.0.1:8877/gw/anthropic

For services in Kubernetes, use the sidecar pattern.

Make the acceptable-use policy concrete: which tools are approved, that they must run with Shadow, what still must not be pasted (for example scanned documents, since there is no OCR), and how to request a new tool. Tell people what Shadow does; it works better when they know the approved tool is safe to use with real data.

Terminal window
shadow status
shadow scan sample-prompt.txt

The service log shows each request’s intent and treatment counts, and the local activity dashboard (shadow dashboard) shows them by data type, provider and app.

  • Discovery. It cannot tell you which AI tools are in use.
  • Personal devices and accounts. It protects the machines it is installed on.
  • Web chat UIs and pinned apps. Browser chat and certificate-pinning apps are outside its scope.
  • Phones and Chromebooks. Shadow runs on macOS, Linux, Windows, servers and containers.
  • User-level monitoring. No per-user reporting; logs never contain values.

ISO/IEC 42001 (AI management systems) expects organisations to know how AI is used and to manage the risk, and the EU AI Act adds AI literacy and deployer expectations on top (check the current text: the 2026 Digital Omnibus amended several provisions and timelines). GDPR Articles 25 and 32 expect data protection by design and appropriate security. Shadow supports these as one technical control on sanctioned AI data flows; it is not a governance programme by itself.

Frequently asked questions

What is shadow AI?

Shadow AI is the use of AI tools that IT and security have not approved, such as personal ChatGPT accounts, browser extensions or AI features in SaaS apps. The main risk is company and customer data reaching providers outside any contract or review.

Is the Shadow privacy layer a shadow AI discovery tool?

No. Shadow, the open-source product these docs describe, does not discover or inventory AI tools. It masks sensitive data in AI API traffic from the tools you sanction. For discovery, use network logs, a CASB or SASE product, or your identity provider's app catalogue.

Should we just block ChatGPT and other AI tools?

Outright bans tend to push usage onto personal devices and accounts, where you have no visibility at all. Most guidance favours offering an approved tool that is safe enough to use for real work, plus a clear policy and monitoring.

How does Shadow reduce shadow AI?

It removes the main reason people go around policy: the approved tool was either blocked or too restricted to be useful. With Shadow, teams can use API-based assistants and agents on real work while the names, customer data and secrets Shadow detects leave as reversible fakes (or redacted, for secrets, if you opt in).

Can Shadow show which employees sent sensitive data to AI?

No. Shadow logs per-request intent and counts by treatment, never values, and has no central console. An optional local audit log of decisions is on the roadmap. It is a protection layer, not a monitoring tool.