ZTDS Architecture Specification · 100% Local CPU Execution

Technical Security & Architecture

PrivacyScrubber enforces data confidentiality not through legal policy promises, but through mathematical impossibility and local execution boundaries. All scanning, deterministic ZTDS™ pattern matching, and cryptographic tokenization execute strictly inside on-device memory with zero cloud prompt ingestion across all 7 product planes: Web, Extension, MCP, SDK, TEAMS, WordPress, and Outlook.

< 1ms
Processing Latency
Zero network roundtrips
0 Bytes
Server Ingestion
Zero backend API endpoints
Tab Memory
Ephemeral Memory
0 disk footprint / 0 database
30 Profiles
Sanitization Rules
ZTDS™ Level-1 Certified Pioneer ImplementationZTDS-CERT-2026-PRIVACYSCRUBBER-WEB-D0EA62

Cryptographically signed Ed25519 conformance seal • IETF Internet-Draft draft-sibiryakov-ztds-protocol-02

Verify Live Certificate

Zero-Trust Data Sanitization (ZTDS) Lifecycle

How data flows exclusively within the local host security perimeter.

Zero-Trust Data Sanitization Architecture Lifecycle - 100% Client-Side Processing
Figure 1: Under ZTDS execution, detected PII is replaced locally in browser memory with reversible safe placeholders before prompts leave the device.
1. Ingest & Disambiguate

Raw inputs are evaluated locally in memory through our Contextual Entity Disambiguation Engine across 30 specialized industry compliance profiles.

30 ProfilesLocal CPU & Memory
2. Deterministic Mapping

Safe placeholders (e.g. [NAME_1]) are deterministically assigned while preserving strict code, JSON, and table formatting integrity.

[TYPE_N] SurrogatesSyntax Preserved
3. Ephemeral Local Restoration

When the AI responds with sanitized tokens, 1-Click Reveal restores original values in sub-millisecond local memory execution, with zero disk trace.

< 1ms Reveal0 Disk Trace

Zero-Database Credential Architecture — Why No Login Exists for Community Use

Because PrivacyScrubber runs sanitization locally in device memory with zero scrubbing-content servers, there is physically no user account database or central prompt store. Users never need accounts, passwords, or corporate emails for the Community Tier, which remains permanently free locally on your device. For enterprise evaluations requiring 30 specialized industry profiles, batch processing, or team governance, corporate 7-day TEAMS pilots operate on strict RS256 asymmetric tokens with automated fail-closed expiration.

Auth Model: 0 Central DB · Offline Asymmetric VerificationVerify 0 Subprocessors →

Post-Quantum HNDL Immunity & CNSA 2.0 Crypto-Agility

Following the December 2, 2026 NSA, CISA, and ONCD post-quantum advisory (Executive Order 14412), PrivacyScrubber pairs transport-layer TLS 1.3 security with pre-transit local-RAM elimination and quantum-resistant offline verification:

  • Pre-Transit HNDL Elimination: Raw PII, PHI, and credentials never cross a network socket (0.00 B cleartext wire egress), neutralizing Harvest Now, Decrypt Later capture on AI prompts regardless of classical RSA/ECC key lifetimes.
  • CNSA 2.0 Compliance Receipts: Local CISO audit receipts rely on canonical SHA-256 digests with zero third-party telemetry.
  • Hybrid Offline Token Agility (ZTDS-LIC-v2): Air-gapped Developer SDK, MCP Server, and Enterprise runtimes enforce fail-closed dual-signature verification combining Ed25519 + ML-DSA-87 (NIST FIPS 204 / CNSA 2.0) alongside ZTDS-LIC-v1 compatibility.

Execution Isolation Across All 7 Product Planes

Detailed technical runtime boundaries for every deployment modality.

Web Workspace (In-Browser SPA)

Web Worker Sandbox

Executes via an isolated HTML5 Web Worker thread detached from the main UI thread. Employs the ZTDS™ offline OCR and local PDF engine for local OCR. Network activity during scrubbing is physically blocked by Content Security Policy directives (connect-src 'none' for worker endpoints).

CSP: connect-src 'none'Launch Workspace →

Chrome Extension (Manifest V3)

Target Tab Isolated World

Injected strictly into active target tabs (ChatGPT, Claude, Gemini) within an Isolated World context. The in-page shield HUD (Alt+Shift+X) intercepts the text area DOM node locally. Zero background page syncing or remote logging is executed.

DOM: Closed Shadow RootInstall MV3 Extension →

PII MCP Server (@privacyscrubber/mcp-server)

Local Stdio / IPC Stream

Compliant with Model Context Protocol (Anthropic/Cursor). Communicates over local standard input/output (stdio) or loopback interface (127.0.0.1). Does not initialize HTTP listener ports, external sockets, or telemetry beacons.

Transport: JSON-RPC 2.0 StdioMCP Server Spec →

Developer SDK (@privacyscrubber/sdk)

Deterministic Node/WASM

Isomorphic npm package with zero runtime telemetry dependencies. Functions execute synchronously on input strings. License validation is achieved via offline asymmetric cryptographic signature checks (Ed25519) without phone-home verification.

Auth: Offline Ed25519 KeyView Node/WASM SDK Docs →

TEAMS Governance Cockpit

Protocol V5 AEAD

Centralized fleet rule packs, CISO Policy Hard Lock, and peer-to-peer encrypted session handoff (.pssession / RFC 3986 #fragment) executed strictly inside local browser memory with zero central sync server.

Sync: Zero-Knowledge #hashTEAMS Governance →

WordPress ZTDS™ Form Guard

Visitor WebCrypto

Intercepts Contact Form 7, WPForms, Gravity Forms, Elementor, and Fluent Forms inside the visitor's browser via native WebCrypto before HTTP POST, sealing an AES-256-GCM vault only WP-Admin can unlock.

Vault: AES-256-GCM Dual-EnvelopeWordPress Guard →

Microsoft Outlook Pre-Send Guard (M365 Add-in)

OnMessageSend Local Hook

Executes locally inside Classic Windows, New Outlook, Mac, and Outlook on the Web via Office.js OnMessageSend Smart Alerts. Inspects external recipients, message bodies, tables, and text/CSV attachments in local memory before send with 0 bytes reaching vendor mail relays.

Rollout: M365 Integrated Apps XMLOutlook Guard Spec →

Memory Lifecycle & Dual-Plane Cryptographic Primitives

Zero-persistence memory destruction and Protocol V5 authenticated session handoff.

Ephemeral Tab Token Dictionary Lifecycle

The mapping dictionary ([NAME_1] → "John Doe") is instantiated as a tab-isolated in-memory JavaScript Map object (with ephemeral tab-scoped backup for soft-reload resilience). It is strictly never committed to:

  • Persistent browser storage or disk files
  • Plaintext localStorage or WebSQL
  • HTTP Cookies, Service Worker caches, or remote APIs

Upon tab closing or clicking "Reset Session", all references and tab-scoped memory allocations are immediately severed and zeroed.

Persistence: 0 Disk FootprintZeroized on Tab Close

Protocol V5 Dual-Plane Session Handoff

When TEAMS Session Handoff exports an encrypted dictionary via RFC 3986 URL #fragment (< 1,850 chars, 0 HTTP egress) or .pssession container, Protocol V5 (0x05 framing) enforces:

  • Payload Compression: In-memory binary stream compression prior to AEAD sealing.
  • Symmetric AEAD Cipher:XChaCha20-Poly1305 (256-bit key, 192-bit nonce, 128-bit MAC tag).
  • Memory-Hard KDF:Argon2id (RFC 9106 memory-hard MODERATE profile; WebCrypto PBKDF2-SHA256 fallback).
  • Recipient Licensing: External recipients (outside counsel, clients, auditors) decrypt locally in 0.4s for free.
Framing: 0x05 · RFC 3986 #hashDeploy TEAMS ($99/mo Flat) →

Cryptographic Taxonomy: Client-Side ZTDS™ vs. Homomorphic Encryption (FHE) & Legacy PGP

Why lattice-based encrypted compute (FHE) and PGP fail on commercial Frontier Cloud LLMs — and how Dual-Plane ZTDS solves it in < 1ms.

1. The FHE Compute & Server Wall

Why Homomorphic Encryption (FHE) Cannot Power Frontier LLMs

Fully Homomorphic Encryption (FHE — e.g., lattice-based encrypted compute platforms) allows mathematical evaluation over ciphertexts, but incurs a 10,000× to 1,000,000× computational overhead (10s–120s+ per query) and requires custom homomorphic circuits on the server. Commercial frontier LLMs (OpenAI GPT-4.1/o3, Anthropic Claude Sonnet 4.5, Google Gemini 2.5 Pro) execute standard floating-point Transformer weights and do not accept FHE ciphertexts.

Latency: 10s–120s+Custom Server Circuits
2. The PGP Linguistic Blindness Wall

Why Legacy PGP & E2EE Break AI Reasoning

End-to-end encryption (OpenPGP, S/MIME, Signal) collapses the entire document into a single opaque ASCII-armored ciphertext block (-----BEGIN PGP MESSAGE-----). If pasted into ChatGPT or Claude, the LLM is completely blind to syntax, legal clauses, clinical timelines, and code structure, rendering AI reasoning impossible until decrypted.

Syntax: DestroyedOpaque Ciphertext
3. The ZTDS™ Dual-Plane Breakthrough

Sub-Millisecond On-Device · Zero Server Cooperation

ZTDS™ requires zero cryptographic cooperation from OpenAI, Anthropic, or Google. By splitting the Sanitized AI Context Plane ([NAME_1], [IBAN_1]) from the Client Lookup Dictionary Plane, standard uncooperative Cloud LLMs reason at 100% native token speeds while direct PII never leaves on-device memory (< 1ms execution).

Latency: < 1ms On-Device100% Native AI Reasoning

Swipe table horizontally to compare all 5 architectures →

Architectural DimensionClient-Side ZTDS™ (PrivacyScrubber)Homomorphic Encryption (FHE)Confidential Computing (Server TEEs)Legacy PGP / E2EECloud DLP / Token Vaults
Works with Commercial Cloud LLMs (ChatGPT, Claude, Gemini)Yes (100% Native Reasoning)No (Requires Custom FHE Server Circuits)Only Self-Hosted Enclave ModelsNo (Opaque Ciphertext Blinds AI)Yes (Via Cloud Proxy MITM)
End-to-End Processing Latency< 1 ms (On-Device CPU)10,000 ms – 120,000+ ms (10⁴×–10⁶× Penalty)150 ms – 800 ms (Remote Enclave RTT)5 ms (Manual CLI / Keyring)600 ms – 2,500 ms (Cloud API RTT)
Raw PII Network Egress0 Bytes (Stays On-Device)Encrypted Lattice Ciphertext EgressFull Raw PII Egress to Cloud EnclaveArmored Ciphertext EgressFull Raw PII Egress to DLP Vendor
Collaborative Team HandoffProtocol V5 #hash SafeLink (Recipients Decrypt Free in 0.4s)Requires Shared FHE Evaluation KeysServer IAM Session AccessManual Public Keyring & Re-TypingPaid Per-Seat Cloud DB Lookup
Statutory Compliance PostureGDPR Art. 32, HIPAA & SOC 2 Safe Harbor (No Prompt Subprocessors)Cryptographic Research / Niche ComputeRequires Cloud Processor BAA / DPAStorage/Transit Only (No AI Use)Sub-Processor DPA & Breach Liability

The 3-Step "Airplane Mode" Verification Playbook

Independent technical audit protocol for security engineers and SOC analysts.

Step 1: Open Workspace

Navigate to PrivacyScrubber in Chrome, Firefox, or Safari.

Client Hydrated0 Auth Needed
Step 2: Disconnect Network

Toggle your device to Airplane Mode or physically disconnect your Ethernet cable.

Physical Air-GapNIC Disabled
Step 3: Scrub & Inspect

Paste confidential text. Notice immediate sanitization with DevTools Network panel recording 0 requests.

0 Packets Sent100% Local Pass
DevTools Network Monitor (Live Diagnostic Probe) Active Egress Sniffer
POST /api/v1/scrub (Remote API)ERR_INTERNET_DISCONNECTED (0 bytes)
POST /telemetry/events (Telemetry)ERR_INTERNET_DISCONNECTED (0 bytes)
Local CPU Web Worker SandboxSTATUS 200 OK · 0.12ms Execution · 0 bytes uploaded
Open Full DLP Latency Benchmark →

Automated QA Suite & Empirical Security Benchmarks

Continuous Integration (CI) test assertions executed on every software build.

5.68 MB
JS Memory Heap
Budget: < 35 MB (Passed)
70.8 ms
DOM Mutation Scan
5,000 Live Nodes (< 100ms)
236 ms
First Contentful Paint
Budget: < 1200ms (Passed)
0 Bytes
Network Egress
Zero prompt exfiltration
Scroll test matrix horizontally
Automated CI Test SuiteTarget Threat VectorVerified Security AssertionCI Status
E2E UI & XSS Guard DOM-based XSS & Reverse Scrub Payload Injection HTML tags sanitized to textContent; zero JavaScript execution. 100% Passed
Extension Shadow DOM Isolation Host-Page DOM Traversal & Script Hijacking Closed Shadow Root (mode: "closed"); host scripts cannot access extension UI. 100% Passed
Tab Isolation & Memory Lifetime Cross-Tab Data Contamination & Storage Persistence 0 token leakage between parallel tabs; memory cleared on tab close. 100% Passed
Extension Weak Vectors Guard Prototype Pollution & Cross-Frame Message Spoofing Rejects e.source !== window; postMessage prototype pollution mitigated. 100% Passed
Cross-Platform Crypto Handoff Cryptographic Desynchronization 100% AES-GCM / Argon2id bit-level interop across Web, Extension & MCP. 100% Passed
MCP Stdio JSON-RPC 2.0 Protocol Network Port Exposure in AI IDEs (Cursor/Claude) Air-gapped stdio transport only; zero listening network ports opened. 100% Passed

Independent CLI & Socket Verification

Reproduce Zero Network & Cloud Leakage cryptographic proof on your own air-gapped infrastructure.

Socket-Level Invariant AuditDeterministic

Monkey-patches node:net, node:tls, and node:http. Simulates 30 specialized profiles across 12,000+ characters to verify 0 socket openings and 0 bytes uploaded.

npm run verify:zero-egress
Hooks: node:net / tls / http0 Sockets Asserted
In-Process SDK Demo VerificationZero Install

Run the zero-trust sanitization engine directly in any terminal via npx. Verifies local string tokenization and sub-millisecond execution latency.

npx @privacyscrubber/sdk demo
Runtime: Node.js / WASMSDK Docs →

Academic Attestations & Protocol Standards

Formal mathematical publications, preprint archives, and IETF protocol drafts.

Architectural Verification Complete

Deploy Zero-Trust Sanitization in Your Stack

Integrate in-process Node.js/WASM sanitization into your backend ETL and RAG pipelines, or deploy company-wide via Chrome Extension and Teams workspace governance.

Technical Security & Cryptographic FAQs

Direct architectural answers for CISOs, cryptographers, and DPOs.

How does Client-Side ZTDS™ compare to Fully Homomorphic Encryption (FHE) for generative AI?
Fully Homomorphic Encryption (FHE) computes on lattice ciphertexts, but it slows queries by 10,000× to 1,000,000× (10–120s+ per prompt) and requires custom servers. Hosted LLMs (OpenAI, Claude, Gemini) run standard Transformer weights and do not accept FHE ciphertexts. Client-Side ZTDS™ runs in under 1 millisecond on your device and replaces direct PII with readable tags ([NAME_1]) so AI models answer at full speed.
Why does legacy PGP or end-to-end encryption fail for collaborative AI workflows?
PGP and standard E2EE turn the whole message into an unreadable ciphertext block. An AI model cannot reason over encrypted text inside a prompt. ZTDS Dual-Plane Session Handoff splits the clean prompt from the locked key dictionary (sealed with Argon2id and XChaCha20-Poly1305 inside a URL #fragment), so the AI still answers and colleagues reveal real values locally in 0.4 seconds.
How does client-side ZTDS™ differ from server-side Confidential Computing (TEEs / Secure Enclaves)?
Server enclaves (such as Intel SGX, TDX, or NVIDIA Confidential Computing) still send raw PII across the network to remote cloud hardware. That usually requires vendor DPAs, transfer reviews, and hardware attestation checks. ZTDS™ masks PII inside local device memory before any network request opens, keeping raw data off third-party servers.
How does PrivacyScrubber establish Technical Safe Harbor under GDPR Article 32, CCPA/CPRA, and SOC 2 Type II?
Regulators focus on technical safeguards and risk reduction rather than blanket exemptions. PrivacyScrubber supports Technical Safe Harbor under GDPR Article 32, CCPA/CPRA, and SOC 2 Type II with three controls. It masks direct PII on your device, reduces contextual leakage with 30 industry profiles, and exports local SHA-256 PDF audit receipts.
CISO AI Security Guide →