LLM-Shield-Proxy is an open-source reverse proxy that redacts PII and secrets from Large Language Model API requests before they leave your corporate network, enabling SOC 2 and HIPAA compliance without breaking real-time chat latency.
It runs in under 60MB of RAM using deterministic regex and Shannon entropy detection, or optionally adds a quantized BERT model for conversational entity extraction, and requires no code changes—only a single endpoint URL change in your SDK.
All data stays inside your VPC; no external scanning APIs or persistent storage.
What happened
An open-source reverse proxy for Large Language Models has been released that intercepts API requests, redacts Personally Identifiable Information (PII) and secrets before they leave your infrastructure, and re-hydrates Server-Sent Event (SSE) responses with minimal latency. The proxy runs locally within a corporate VPC, requires less than 60MB of RAM in standard mode, and works with OpenAI-compatible APIs without requiring code changes—you only need to change your SDK's base_url endpoint.
Why it matters
Enterprises using cloud LLM providers (OpenAI, Anthropic, Google, DeepSeek, Mistral) face a compliance dilemma: sending sensitive data to external APIs violates SOC 2, HIPAA, and GDPR rules, yet existing local PII-detection tools (Microsoft Presidio, spaCy) consume 1GB+ of RAM and add 50–150ms latency per request, breaking real-time chat. LLM-Shield-Proxy solves this by running deterministic pattern matching and optional neural entity extraction (BERT-NER via ONNX) entirely within your VPC, keeping sensitive prompts and responses inside your corporate boundary with no persistent storage.
What to watch
The proxy offers two redaction modes—Synthetic Swapping (default, substitutes PII with realistic placeholder names to preserve LLM token efficiency) and Structural Tagging (bracketed labels for audit trails). It supports custom regex injection via a YAML file using the re2 C++ engine for ReDoS immunity. A quantized ONNX NER model can be added for conversational entity detection (>95% F1 recall) by installing the [ner] extra, adding 45–65MB RAM; enterprises can plug in domain-specific models (BioBERT for healthcare, Legal-BERT for contracts) by pointing ONNX_MODEL_PATH.
Ask the AI about this article →
The problem LLM-Shield-Proxy addresses is a fundamental tension in enterprise AI adoption: organizations sending requests to external LLM providers (OpenAI, Anthropic, Google, DeepSeek, Mistral) must comply with SOC 2, HIPAA, and GDPR regulations that prohibit unmasked PII egress, yet the existing open-source solutions for local PII detection—chiefly Microsoft Presidio and spaCy—carry heavy memory and latency penalties (1GB+ RAM, 50–150ms per request) that are incompatible with real-time streaming chat interfaces.
LLM-Shield-Proxy reduces this to a solved problem by operating a three-tier detection architecture entirely within a corporate VPC. Tier 1 uses regex to catch structured PII (SSNs, email addresses, IP/MAC addresses) and high-entropy secrets (API keys, hex tokens) with deterministic accuracy. Tier 2 applies Shannon entropy scoring to identify cryptographic tokens by statistical signature alone. For organizations requiring higher recall on conversational PII (patient names, organization names buried in free text), Tier 3 optionally layers in a quantized BERT-NER model via ONNX runtime, claiming >95% F1 recall on benchmark datasets while staying under 65MB additional RAM—roughly one-tenth the footprint of Presidio or spaCy.
The architectural innovation is that the proxy operates as a drop-in reverse proxy requiring zero code changes, no external API calls, no persistent storage, and submicrosecond latency overhead. Because it natively implements the OpenAI API schema, an existing application routing requests to OpenAI need only change its endpoint URL; the proxy transparently intercepts, redacts deterministically, re-synthesizes streaming packets (using either realistic placeholder names or bracketed tags), and forwards the masked payload upstream. This "zero-egress" model keeps sensitive prompts and responses within the corporate boundary at all times.
For example, today's edition would include:
AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.
Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. Q&As are published on this page for other readers too.
Chinese large-model developer Z.ai says it can now support large-scale inference using roughly 100,000 domesti…

Analyst Ming-Chi Kuo says Nvidia has revived the Rubin CPX AI accelerator with a substantially redesigned arch…

A UK study by UK AI Security Institute and Limbic AI surveyed 6,474 British adults

Broadcom's Clayton Donley says companies are doing mission-critical work with AI agents quickly, but without t…
Bank of England governor Andrew Bailey warned that advanced AI poses risks to financial infrastructure in a le…
OpenAI released a new evaluation framework on July 17, 2026, urging companies to measure AI ROI by 'useful out…
