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

Shadow vs Microsoft Purview — open-source Purview DSPM for AI alternative

Microsoft Purview Data Security Posture Management (DSPM) for AI gives Microsoft 365 organisations visibility into AI use and applies DLP to Copilot and to third-party AI sites through Endpoint DLP and a browser extension, mainly by warning, blocking and auditing. Shadow is an open-source privacy layer that translates sensitive values in AI API requests into realistic, reversible fakes and restores them in the response. If your AI use centres on Copilot and Microsoft-managed devices, Purview is the natural control. If developers, agents and services call model APIs directly, Shadow keeps that content private while answers stay useful.

ShadowMicrosoft Purview DSPM for AI
Open source / licenceYes, Apache-2.0No, commercial
DeploymentEndpoint HTTPS proxy, gateway (/gw/<provider>/), Rust libraryMicrosoft 365 service, Endpoint DLP, browser extension (Edge, Chrome, Firefox)
Protection methodReversible realistic fakes from a persona; typed tokens for reports; optional redactionBlock, warn, audit
Restores responsesYes, automaticallyNo (block and audit model)
StreamingYes, SSE and NDJSON with split-fake reassemblyNot applicable
Tool callsYes, arguments restored locally; intent-aware for provider-hosted toolsNot applicable
FilesDOCX, XLSX, PPTX masked in place; PDF to text; CSV, JSON, HTMLCannot scan files uploaded into prompts (per docs)
Self-hostedYes, single binary, no accountNo, Microsoft cloud
Price modelFreeMicrosoft 365 E5-class or add-on licensing
  • Native Microsoft 365 coverage. Purview understands Copilot interactions, sensitivity labels and Microsoft 365 content, which no third-party proxy can match.
  • Classification and labels. Sensitive information types, trainable classifiers and sensitivity labels are reused for AI policies, so classification work done for email and SharePoint pays off.
  • Visibility into AI use. DSPM for AI reports which AI apps are used and what kinds of sensitive data are involved, which helps prioritise risk.
  • Endpoint and browser enforcement. Endpoint DLP and the extension for Edge, Chrome and Firefox warn or block when users paste sensitive data into third-party AI sites.
  • Audit, eDiscovery and compliance tooling. Interactions can be audited and investigated with the same Purview tools used for the rest of Microsoft 365.
  • Little extra infrastructure for organisations already licensed and managed through Intune.

Does Purview keep AI useful when data is sensitive?

Section titled “Does Purview keep AI useful when data is sensitive?”

Purview’s actions are block, warn and audit. That stops leaks but also stops the task. Shadow lets the request through with sensitive values translated: jane@acme.com becomes hui.zhao@zhilan.cn, a card number stays Luhn-valid, from a persistent persona. The model answers, and Shadow restores the real values.

Microsoft’s documentation says Purview cannot scan files uploaded into prompts. Shadow masks DOCX, XLSX and PPTX uploads in place, keeps them valid documents, and turns PDFs into masked text. See file masking.

Purview’s AI controls focus on Copilot and browser use, which Shadow does not cover. Shadow intercepts model API calls to supported providers from any tool via proxy mode or gateway mode, restores streams and tool-call arguments, and applies an intent-aware policy.

Shadow runs on macOS, Linux and Windows, in containers and inside Rust services, with no account and no telemetry.

  • Your organisation is standardised on Microsoft 365 and Copilot.
  • You need classification, labels, audit and eDiscovery that span AI and the rest of your content.
  • You manage devices with Intune and want warn-or-block on third-party AI sites.
  • You already hold the licences.
  • Developers, agents and services call OpenAI, Anthropic, Gemini or other APIs directly.
  • Users must keep working with sensitive data, with real values restored in answers.
  • Files attached to prompts must be masked, not just blocked.
  • You need an open-source, self-hosted control that works outside Microsoft-managed endpoints.
  1. Keep Purview for Copilot governance, classification, labels and audit.
  2. Use Purview’s Endpoint DLP and browser extension for web-chat AI on managed devices.
  3. Install Shadow on developer machines, CI runners and services that call model APIs.
  4. Reuse your Purview classification thinking: add organisation names, codenames and customer names to Shadow’s dictionary terms.

Microsoft does not publish Purview AI detection results on public PII datasets. Shadow publishes its methodology on the benchmarks page.


Last reviewed: 2026-10-31. Microsoft, Microsoft 365, Copilot and Purview are trademarks of their owner; this comparison is based on public documentation as of the review date.

Frequently asked questions

Is Shadow an alternative to Microsoft Purview for AI?

They cover different ground. Purview DSPM for AI governs Microsoft 365 Copilot and employee use of third-party AI sites in Microsoft-managed browsers and endpoints, mainly by warning, blocking and auditing. Shadow masks AI API traffic with reversible fakes on the machines where it runs. Shadow does not cover Copilot inside Microsoft 365.

Can Purview scan files uploaded into ChatGPT prompts?

Microsoft's documentation states that Purview cannot scan files uploaded into prompts on third-party AI sites. Shadow masks DOCX, XLSX and PPTX uploads in place and turns PDFs into masked text before they leave.

Does Purview redact or block AI prompts?

Purview's controls for AI are block, warn and audit, via Endpoint DLP and the browser extension for Edge, Chrome and Firefox. DLP for Copilot prompts was announced with a general-availability target of mid-2026 in a Message Center post; check Microsoft's current status. Reversible pseudonymisation is not documented.

How much does Purview DSPM for AI cost?

It is part of Microsoft 365 E5-class or Purview add-on licensing; exact entitlements vary by plan. Shadow is free under Apache-2.0.

Does Shadow make us compliant with GDPR?

No tool does that alone. Shadow helps meet data-minimisation requirements by replacing detected personal data with fakes before requests reach AI providers. Purview helps with discovery, classification and audit. Compliance depends on your whole programme.