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

Shadow vs alternatives: the AI data-leak prevention landscape

Shadow is an open-source (Apache-2.0) privacy layer for AI traffic. It replaces names, emails, customers, secrets and IDs in prompts with realistic, reversible fakes before a request reaches OpenAI, Anthropic, Gemini or another provider, and restores the real values in the response, including streamed responses and tool calls. This page maps the other tools people use to stop sensitive data leaking into large language models, and links to a detailed, fair comparison with each one.

What kinds of tools prevent AI data leaks?

Section titled “What kinds of tools prevent AI data leaks?”

Tools in this space fall into five groups. They overlap, and many teams combine two.

CategoryWhat it doesTypical action on sensitive dataExamples
Detector libraries and modelsFind PII spans in text. You build the restPlaceholder, mask or hash, usually one wayPresidio, GLiNER-PII, OpenAI Privacy Filter, DataFog, cloud PII APIs
Guardrail frameworks and AI gatewaysSit in front of model APIs, route traffic and run checksBlock, or redact with placeholders; a few restoreLLM Guard, NeMo Guardrails, LiteLLM, Portkey, Kong, Cloudflare, Bedrock Guardrails
Enterprise GenAI DLPWatch employees’ use of AI apps in the browser, on the endpoint or in the SASE layerBlock, warn, coach, sometimes redactNetskope, Zscaler, Palo Alto, Microsoft Purview, Nightfall, Harmonic, Prompt Security, Lasso, Strac
Privacy vaults and secure-AI platformsTokenise or pseudonymise data and re-identify under policyReversible tokens, usually as SaaSSkyflow, Protecto, Private AI, Tonic Textual, Wald.ai
Local reversible proxiesMask on the endpoint, restore in the responseReversible placeholders or fakesShadow, Rehydra, a few small projects

Shadow belongs to the last group. Its distinguishing choices are realistic, format-preserving fakes drawn from a persistent persona, restoration in streams and tool calls, an intent-aware policy, file masking for Office documents, and a local, single-binary deployment as an HTTPS proxy, a gateway or a Rust library.

Legend: Block = request refused; Redact = [REDACTED] or <PERSON> placeholder; Token = vault-backed token; Fakes = realistic synthetic values; FPE = format-preserving encryption. “Not documented” means public docs do not mention it, not that the feature is missing.

ToolOpen source / licenceDeploymentProtection methodRestores responsesStreamingTool callsFilesSelf-hostedPrice model
ShadowYes, Apache-2.0Endpoint proxy, gateway, Rust libraryReversible realistic fakes; typed tokens for reports; optional redactYesYes (SSE, NDJSON)Yes, intent-awareDOCX/XLSX/PPTX in place, PDF to textYesFree
PresidioYes, MITLibrary, REST containersRedact, mask, hash, encrypt, customOnly encrypt → decryptNoNoImage redactor (OCR), DICOMYesFree
LLM GuardYes, MITLibrary, API containerPlaceholders, optional Faker valuesYes (Vault + Deanonymize)Not documentedNoNoYesFree
NeMo GuardrailsYes, Apache-2.0Guardrail frameworkBlock or label maskNoOutput rails, no unmaskRetrieval railsNoYesFree
LiteLLMCore MIT, enterprise features paidSelf-hosted gatewayBlock or redact via Presidio and othersPlaceholders (output_parse_pii)Reported issues on some pathsNoNoYesFree core; Enterprise paid
PortkeyGateway MIT; guardrails in cloudSaaS, hybrid, OSS gatewayRedact via partner guardrailsNo (docs: one way)Not documentedNoNoGateway onlySaaS tiers
Kong AI GatewaySanitizer is Enterprise-onlySelf-hosted gateway pluginPlaceholders or synthetic valuesYes (restore)Not documentedNoNoYesEnterprise licence
Cloudflare AI GatewayNoSaaS gatewayFlag or blockNoBuffers response to scanNoNoNoPlan-based
AWS Comprehend / Bedrock GuardrailsNoAWS serviceDetect; block or {NAME} tagsNoNot verifiedNoAsync batch (Comprehend)NoUsage-based
Azure AI Language PIINoAzure serviceCharacter mask, entity mask, synthetic (preview)NoNoNoDocument PII APIContainers (not verified)Usage-based
Google Sensitive Data ProtectionNoGCP serviceMask, replace, FPE, deterministic encryptionYes (reidentifyContent)NoNoImages, storage jobsNoPer GB
OpenAI Privacy FilterYes, Apache-2.0 (model)Local modelDetector onlyn/an/an/an/aYesFree
GLiNER PII modelsApache-2.0 or NVIDIA Open Model LicenseLocal modelDetector onlyn/an/an/an/aYesFree
DataFogYes, MITLibrary, LiteLLM guardrail, hookRedact, replace, hash, blockNot documentedNot documentedNoNot documentedYesFree
LangChain PIIMiddlewareYes, MITIn-app agent middlewareRedact, mask, hash, blockNon/aYes (tool results)NoYesFree
RehydraYes, MITSDK and local proxy (Node/Bun)Reversible placeholdersYesYes (sentence-buffered)Yes.env scrubbingYesFree
Private AINoContainer API, cloudPlaceholders, mask, syntheticYes (re-identify)Not documentedNot documentedMany file types (vendor)Yes (container)Quote
SkyflowNoVault SaaSVault tokensYes (policy-governed)Not documentedNot documentedImages, PDF, audio, OfficeNoQuote
ProtectoNoSaaS or VPCReversible tokens, FPE for databasesYes (unmask API)Not documentedNot documentedNot documentedVPC optionQuote
Tonic TextualNoSaaS or self-hostedRedact or consistent synthesisNot as a proxyNoNoFiles in original formatYes (Docker, Helm)Pay-as-you-go or quote
Wald.aiNoSaaS chat and APIContextual substitutionYesNot documentedNot documentedNot documentedNoPer user
StracNoSaaS and browser extensionAlert, block, redact, pseudonymiseNot documentedNot documentedNoSaaS storesNoQuote
NightfallNoSaaS, browser extension, endpoint agentBlock or redactNon/aNoUploadsNoQuote
Lakera GuardNoAPI (Check Point)Detect and flagNoNot documentedAgent securityNoEnterprise onlyFree tier; Enterprise quote
Prompt SecurityNoExtension and gateway (SentinelOne)Block or filterNoNot documentedNot documentedNot documentedNot documentedQuote
Harmonic SecurityNoBrowser extensionWarn, block, redirect; redact (vendor)Non/an/aUploadsNoQuote
Lasso SecurityNoExtension and gatewayMask or alertNot documentedNot documentedNot documentedNot documentedNot documentedQuote
Netskope OneNoSASE inlineBlock, coach, redact (mask, FPE, hash)NoNot for SSENot for MCPNot for file contentNoQuote
ZscalerNoSASE inlineBlock, isolate, allow, logNon/an/aUploadsNoQuote
Palo Alto AI AccessNoSASE and Prisma BrowserBlock or allowNon/an/aNot documentedNoLicence bundle
Microsoft PurviewNoMicrosoft 365, Edge, endpoint DLPBlock, warn, auditNon/an/aCannot scan files uploaded into promptsNoMicrosoft 365 E5-class licensing

The table is a summary. Each linked page explains the details and the caveats, including where the other tool is the better choice.

How do I choose an AI data-leak prevention tool?

Section titled “How do I choose an AI data-leak prevention tool?”

Start from three questions: who sends the data, what must happen to it, and who has to run the tool.

  1. Employees pasting into ChatGPT, Gemini or Copilot in the browser, across a whole company? You need visibility, policy and coaching across many managed devices. Choose an enterprise GenAI DLP or SASE product (Netskope, Zscaler, Microsoft Purview, Nightfall, Harmonic). These mostly block or warn.
  2. Developers, agents and apps calling model APIs, where answers must stay useful? Blocking breaks the tool and plain redaction loses meaning. Choose a reversible layer that restores values in responses and tool calls: Shadow (local, open source), or a vault service such as Skyflow or Protecto if you prefer a managed service.
  3. Building your own pipeline and only need detection? Use a detector: Presidio, GLiNER, OpenAI Privacy Filter or a cloud PII API. Shadow can use Presidio and both open-weight models as additional detectors.
  4. Already standardised on an AI gateway? Check its PII features first: LiteLLM, Kong, Portkey, Cloudflare. Shadow can sit in front of a gateway as a sidecar, so masking happens before traffic leaves the host.
  5. Need de-identified datasets for training or analytics, not live traffic? Use a batch tool such as Tonic Textual or Google Sensitive Data Protection.
  6. Must the protection tool itself run inside your network, and be auditable? Prefer open-source, self-hosted tools: Shadow, Presidio, LLM Guard, LiteLLM, NeMo Guardrails, Rehydra.

Being honest about the gaps helps you choose:

  • No central fleet console. There is no admin dashboard, SIEM export or user coaching. Configuration is a file per machine or container.
  • No OCR. Text inside images and scanned PDFs is not detected. See file masking.
  • Only AI API traffic. Proxy mode intercepts a list of AI API hosts (plus any you add). It does not see what people type into chatgpt.com, claude.ai or gemini.google.com in a browser, phone apps, Microsoft 365 Copilot or GitHub Copilot.
  • Detection is best effort. Regex, checksums, dictionaries and optional NER models miss things: the built-in rules leak 3.08% of sensitive values on the held-out benchmark, 0.08% with the open-weight NER sidecar.
  • Recipients and provider-hosted actions see real targets. When you ask the model to write to or act on someone, Shadow passes that recipient through as written so the model addresses the right person; when the provider itself runs a tool (a hosted MCP server, web search), it keeps real the contact details the action needs. Both are defaults, configurable, and each keep is logged. See intent policy.
  • It protects content, not identity. Providers still see your IP address and the account behind your API key. See the security model.

Detector libraries and models: Presidio · OpenAI Privacy Filter · GLiNER PII · DataFog · AWS Comprehend and Bedrock Guardrails · Azure AI Language PII · Google Sensitive Data Protection

Guardrails and gateways: LLM Guard · NeMo Guardrails · LangChain PIIMiddleware · LiteLLM · Portkey · Kong AI Gateway · Cloudflare AI Gateway · Lakera Guard

Enterprise GenAI DLP: Netskope · Zscaler · Palo Alto AI Access · Microsoft Purview · Nightfall · Harmonic Security · Prompt Security · Lasso Security · Strac

Privacy vaults and secure-AI platforms: Skyflow · Protecto · Private AI · Tonic Textual · Wald.ai

Local reversible proxies: Rehydra


Last reviewed: 2026-10-31. All product names are trademarks of their respective owners. These comparisons are based on public documentation as of the review date. If something is out of date, please open an issue.

Frequently asked questions

What is the best tool to stop sensitive data leaking into ChatGPT or Claude?

It depends on where the data flows. To block or warn users in web chat UIs across a company, enterprise GenAI DLP (Netskope, Zscaler, Purview, Nightfall, Harmonic) fits. To mask data in API and agent traffic while keeping answers useful, a reversible pseudonymisation layer such as Shadow, Skyflow or Protecto fits. To build your own pipeline, detector libraries such as Presidio, GLiNER or OpenAI Privacy Filter are the building blocks.

What is the difference between redaction, tokenisation and reversible pseudonymisation?

Redaction replaces a value with [REDACTED] or <PERSON> and cannot be undone. Tokenisation replaces it with an opaque token that a vault can map back. Reversible pseudonymisation, which Shadow uses by default, replaces it with a realistic fake of the same format (a valid email, a Luhn-valid card) and maps it back in the response, so the model can still reason about the data.

Is Shadow free and open source?

Yes. Shadow is licensed under Apache-2.0, runs on your own machines or servers, needs no account and sends no telemetry.

Does Shadow replace a DLP platform?

Not entirely. Shadow protects the content of AI API traffic on the machines where it runs. It does not offer a central admin console, user coaching, SIEM export or coverage of devices it is not installed on. Many teams run it alongside a DLP or SASE product.

Does Shadow make us GDPR or HIPAA compliant?

No tool makes you compliant by itself. Shadow helps meet data-minimisation and confidentiality requirements by replacing detected personal data with fakes before requests reach AI providers, but compliance depends on your whole programme.

How accurate is Shadow compared with these tools?

Detection accuracy depends heavily on dataset and label mapping. Shadow publishes its methodology and results on the benchmarks page rather than quoting single numbers here.