Shadow AI

Classify the content, not just the app

A CASB sees which AI app a request went to. Shadow AI Governance reads what was inside it. It intercepts the traffic your people send to public AI tools, extracts the content, and returns one of three decisions before it leaves: allow, warn, or block.

decision / send · enforce SAMPLE
request "summarise this supplier contract for the board pack" app chat.example-public-ai.com → ai_chat content supplier_master_agreement.pdf → contract_corpus/0041 actor priya.sharma@acme.com → support policy contract_corpus restricted · no external send for this role decision BLOCK · fail-closed tell fingerprint matched after paraphrase, not a keyword hit tags OWASP LLM02 · MITRE ATLAS · GDPR · India DPDPA

Illustrative format, not a client finding.

01  /  The gap

What a CASB misses

A CASB sees URLs and files and classifies apps. It does not see a paragraph with a card number pasted into a chat, an AI feature hidden inside a trusted app, or a brand-new AI app no URL list knows about.

A CASB or URL filter catches Shadow AI Governance catches
Which domain the request went to What the request actually carried
A file upload by name and type Text extracted from that file, matched against your data map
A known AI host on a list An AI feature inside an allow-listed host, and an unknown AI host
A single upload that trips a keyword A patient drip of individually benign fragments across turns and sessions

It runs behind an existing proxy, not instead of one. The ICAP mode receives already-decrypted HTTP from your proxy, so it sits next to your CASB rather than replacing it.

02  /  Capture surfaces

Where content enters

Three surfaces, one decision engine. The browser extension and the proxy call the same inspection path, so there is no forked heuristic per surface.

Browser

Extension pre-send

Patches fetch and XHR in the page, captures text and file bodies before the request goes out, and blocks in place on a non-allow verdict.

API & proxy

Inline MITM or ICAP

Squid ssl_bump decrypts TLS and hands the request to ICAP REQMOD/RESPMOD, which reconstructs the HTTP message and inspects it. In ICAP mode it receives already-decrypted HTTP from your own proxy.

Desktop

Clipboard, drag, screenshots

Endpoint capture reads the clipboard, drag-and-drop and screenshots, and records the process and window they came from. MCP tool calls and resource reads are detected inside any inspected body, not as a separate surface.

03  /  Decision pipeline

Two questions, answered in order

Is this an AI interaction, and is this a leak. They are separated deliberately, because a URL list can only ever answer the first.

What runs on every request

  1. Scope. Bank, health and government hosts are never inspected. Trusted hosts are inspected only for their AI features.
  2. AI classifier. Unknown traffic is judged on streaming behaviour, path, JSON schema and a telemetry veto.
  3. Detectors. Regex rules run first, against the original and de-obfuscated payload. A high-confidence hit blocks before anything else runs.
  4. Ontology. The org's data map escalates only. It can block or warn, never downgrade.
  5. ML layer. Gated and last. Runs only when enabled, with an explicit failure behaviour: fail-closed or the policy default.

Fail-closed by default. If a policy cannot be loaded, the decision is block. There is no path where "nothing matched" silently lets a request through.

The deterministic stages short-circuit before the ML stage, so the common case never pays model latency.

04  /  Detector library

What it recognises

45 built-in detectors, each a recall-first regex confirmed by a checksum or structural validator. A policy turns them on by id; the policy owner never writes a regex.

Credentials

Keys and secrets

AWS, GCP, OpenAI, Anthropic, GitHub, Stripe, Twilio, SendGrid, Datadog, Slack, npm, Azure SAS, JWTs and private keys. Each is confirmed by a structural validator, not a pattern match alone.

Identifiers

Financial and government

Cards (Luhn), IBAN (mod-97), ABA routing, Aadhaar (Verhoeff), PAN, GSTIN, SSN, NPI, MBI, NHS, NINO, SIN and VIN. Each is confirmed by its checksum, with context guards against bare digit runs.

Free text

Names, addresses, prose

A NER layer catches free-text PII that regex cannot. An embedding layer scores text against a labelled corpus of your sensitive documents, with an explicit score, threshold and fail mode.

Documents

Paraphrase and reformat

SimHash and MinHash fingerprinting matches a payload to a known-sensitive internal document even after reformatting, and names that document in the decision.

Evasion

  • Unicode normalisation, zero-width stripping and confusable mapping
  • De-obfuscation of base64, hex, ROT13, percent-encoding, HTML entities and leetspeak
  • A base64-encoded card number or a leet-speak API key does not hide

Extraction

  • PDF, DOCX, XLSX, PPTX, ZIP, CSV and images via OCR
  • JSON envelopes, Gemini form-encoded bodies and vendor legacy shapes
  • A vendor-agnostic raw-body fallback, so an unknown schema is not a silent bypass
05  /  Enforcement

What a decision does

One of three outcomes, applied at the surface that owns the request. A block is the default when anything is uncertain.

Allow

Passes through

The request proceeds and the decision is logged with its reason. A clean send is not interrupted.

Warn

Recorded, not blocked

The request goes through with a warning logged against the actor. Risk accrues even when nothing is blocked.

Block

Stopped at the surface

ICAP returns a 403 with the audit id and reason. The extension blocks in place. The actor sees why, in plain words.

Redaction and responses

Mask fields and redact patterns apply to responses on the way back, not just requests on the way out. A leak on the response side is in scope.

No protocol bypass

QUIC and UDP 443 are blocked at the enforcement point, forcing HTTPS fallback. A regression test asserts HTTP3 traffic is blocked or inspected, never silently passed.

06  /  Provenance and policy

Decisions that use your data map

The org's ontology generator feeds the decision engine directly. Sensitivity, ownership and regulatory tags come from your actual data map, not a hand-written hint.

Ontology

The org-wide graph

Ingests the generator's graph, inherits risk down the tree, pins the active version, and subscribes to live changes. It escalates only, never downgrades.

Provenance

Where the content came from

Source process, window title, file path and extension feed every decision, on Windows, macOS and Linux. A provenance claim that works on one OS only is not a claim you can rely on.

Policy

Policy-as-code

The active policy exports to Rego, so a decision is a testable, diffable artifact. Roles: admin, policy author, approver, auditor, viewer.

07  /  Exceptions

A legitimate send still gets through

A block is not the end of the conversation. An approved exception turns that one block into an allow, and nothing else.

The lifecycle

  1. Request. The blocked person asks, with a reason, from the block page.
  2. Approve or reject. An approver decides. The token is HMAC-signed and bound to that payload.
  3. Validate. The data plane checks the token before the block becomes an allow.
  4. Consume. The token expires and is single-use. It is not a standing allow.

Bounded, not standing. An exception is bound to a rule or pattern, carries an expiry, and is consumed once. A recurring legitimate need goes through the flow again, not around it.

08  /  Risk and coordinated exfiltration

Find the actor, not just the send

Per-request checks catch a send. Risk scoring catches an actor: the slow, steady behaviour no single request trips.

Accumulating score

Decayed, per user

Blocks, warns, obfuscation attempts, repeated categories, velocity and distinct hosts accumulate into a 0 to 100 score with a decay half-life. Tiers: elevated, high, critical.

Cross-turn

Fragments reassembled

Text split across turns is reassembled and re-checked. A reassembled hit never downgrades an earlier decision.

Coordinated

The same fragment, many people

The same rare fragment appearing across several subjects within a window is a coordinated signal. Cross-account graph analytics surface the shared entity.

09  /  Audit and compliance

A record that survives review

Every decision is a hash-chained event. Edited, reordered or deleted rows break the chain, and the chain head is anchored externally on a schedule.

Hash chain

Tamper-evident

Each row hashes the previous row and the payload. Database triggers block mutation, and a scheduled verify job checks the whole chain.

Forensics

Why each decision

A decision log records the stage, the signals, the score and the confidence, so a block is explained by its inputs, not by an assertion.

Erasure

Forgetting on request

Per-actor erasure and retention windows. Compliance toggles for GDPR, India's DPDPA and US state law, and redaction-by-default in every log.

Bank, health and government destinations are never inspected. The do-not-decrypt list keeps the platform off regulated traffic it has no business seeing.

10  /  Deployment

Three ways to run it

Pick the mode your topology needs. Onboarding is a CA trust, a PAC and the extension, rolled out through GPO or MDM.

Inline

Own proxy

Squid ssl_bump with its own CA. Self-contained MITM, for deployments with no existing proxy.

ICAP

Behind your proxy

Receives already-decrypted HTTP from your existing proxy or CASB. You keep the TLS decryption; ShadowAI does the inspection.

Browser-assisted

No network interception

The extension screens sends before they leave the page. For managed browsers where no proxy can sit in the path.

Where it runs

Self-hosted in your private cloud. Two boxes by default: a control plane and a proxy box. A third GPU box runs the local model when the ML layer is on. Content is judged inside your perimeter.

The test battery

250 scenarios run the real decision engine: 111 baseline, 121 adversarial, 16 semantic and 2 mock wiring. The CI gate requires precision and recall at or above 0.90 on the baseline set.

11  /  Scope

What it does not cover

A platform in the path of every send attracts hopeful assumptions. The boundaries are explicit.

In scope Out of scope
Browser, API and MCP use of public AI tools End-to-end encrypted personal apps
Desktop clipboard, drag-and-drop and screenshot capture Encrypted desktop-app payloads, governed by provenance and metadata instead
Requests and responses, both directions Bank, health and government destinations, never inspected

It enforces against your data map. If the map does not know a corpus is restricted, the policy cannot protect it. Classification comes first, and we will say so in the first conversation.

Point it at your traffic

Tell us whether you have an existing proxy, which browsers you manage, and what your data map looks like. Twenty minutes is enough to say which mode fits and what would be blocked first.