Models About & Code

Standalone App & PWA

Install Local AI Safety & Privacy Firewall from its dedicated origin as an offline pre-inference security gateway PWA with direct OS .txt, .md, and .json file_handlers support and zero camera, microphone, or geolocation permissions.

Open firewall.webai.show ↗

Honest cache note: browsers isolate Cache Storage per origin, so firewall.webai.show caches its own ~518.5 MB ONNX weights (302.8 MB Injection Guard + 186.9 MB ZLM Moderation + 28.75 MB BERT-Small PII). Staying on webai.show shares Cache Storage across the catalogue.

RAG CHUNK · INDIRECT INJECTION + SECRET LEAK

Retrieved Vendor Support Chunk (Multi-Vector)

Prompt Injection Moderation Unsafe Privacy / Secret Cleared Safe
0 segments · 0 words
Edit or Paste Custom Agent Prompt / RAG Chunk / JSON Runs 100% locally off-thread
0 chars

Sample multi-vector payload loaded. Click Download & Scan 3 Layers (~518.5 MB) to execute real local ONNX inference.

Detecting browser WebGPU & CPU WebAssembly capabilities…

Gateway Exports & Audit Trail

OWASP Formula-Safe · Raw PII Omitted

Local AI Engine

Three dedicated ONNX models (~518.5 MB total) run strictly off the main thread in isolated FIFO Web Workers over shared Transformers.js 3.7.5 CPU WebAssembly — identical zero-egress protection on both WebGPU and CPU-only devices.

Stage 1 · Prompt Injection Shield (302.8 MB q8 · Apache-2.0)

Horizon-Labs/prompt-injection-guard-small · ModernBERT 141M (8k ctx, v2.7.1 OSC fix) · shared Transformers.js 3.7.5

Stage 2 · Content Moderation (186.9 MB q8 · OpenRAIL-M 0.1)

zgpu-ai/zlm-v1-moderation-edge · DeBERTa-base 139M multitask-v6 + 13-category isotonic calibration · shared Transformers.js 3.7.5

Stage 3 · Privacy & PII Guard (28.75 MB q8 · Apache-2.0)

onnx-community/bert-small-pii-detection-ONNX (49 BIO tags, built worker reuse) + deterministic API-secret prefix rules

Layer 1 · Injection Shield Not loaded
Layer 2 · ZLM Moderation Not loaded
Layer 3 · BERT-Small PII Not loaded
Tensor Integrity 0 NaN · transformers.js 3.7.5

How the Local AI Safety & Privacy Firewall Works

Every LLM agent gateway faces three distinct failure modes that no single classifier covers alone: instruction hijacking inside user prompts or retrieved RAG documents, abusive or illicit safety policy violations, and accidental PII or credential leakage. This showcase runs all three defenses client-side before a single token ever reaches an upstream model.

1. Prompt Injection Shield (ModernBERT 141M)

Horizon Prompt Injection Guard Small (Horizon-Labs/prompt-injection-guard-small, Apache-2.0, pinned rev 8fcf1ab with the v2.7.1 ANSI OSC tokenizer fix, 268.41 MB int8 gather weights + 34.39 MB tokenizer) scores both the full payload and each individual segment so indirect RAG injections buried inside HTML comments or tool outputs are isolated without false-alarming benign look-alikes (96.5% NotInject accuracy).

2. Calibrated 13-Category Content Moderation

ZLM v1 Moderation Edge (zgpu-ai/zlm-v1-moderation-edge, CodeML OpenRAIL-M 0.1, pinned multitask-v6 rev 5bc79ed, 185.34 MB int8 + 1.51 MB tokenizer + 21 KB postprocess.json) runs unpadded 192-token DeBERTa-base sequences and applies exact sigmoid, parent-hierarchy clamping, and piecewise-linear isotonic calibration across 13 OpenAI moderation categories (English-only; calibrated binary cut 0.4656).

3. 49-Label Neural PII + Secret Prefix Guard

BERT-Small PII Detection (onnx-community/bert-small-pii-detection-ONNX, Apache-2.0, 28.75 MB q8, reusing built models/bert-small-pii-detection/worker.js) tags 24 personal, financial, contact, and network entity classes with subword-aligned BIO merging, paired with an explicitly labeled deterministic scanner for structured API secrets (sk-live-*, ghp_*, AKIA*, PEM keys). Stage 0 note: openai/privacy-filter (809.1 MB q4f16 external weights / 837.1 MB total) exceeded Stage 0 transfer budgets under live browser probing and was fail-closed in favor of fast, universal CPU WASM parity.

Show the code — applyZlmModerationPostprocess() 5-step isotonic calibration & hierarchy clamp
Show the code — mergePrivacyFindings() non-overlapping neural BIO + deterministic secret fusion
Show the code — evaluateFirewallPolicy() instant Allow / Sanitize / Block gateway & scrubbing
Show the code — Stage 1 off-main-thread Horizon ModernBERT per-segment injection scoring
Show the code — Stage 2 off-main-thread ZLM v6 unpadded DeBERTa moderation analysis
Show the code — StageWorkerClient FIFO lifecycle, epoch-safe disposal & cancellation

OWASP-Safe Security Audit & Scrubbed Payload

Export machine-readable audit telemetry (.json), human security reports (.md), or the scrubbed safe payload.