PrismDesk
Security & Privacy by Design

Local-First Architecture with Verifiable Boundaries

PrismDesk keeps local data, SQL execution, and encrypted credentials on your machine — connecting to external models and tools strictly within boundaries you control.

Multi-Process Isolation Boundaries

Control Plane / Data Plane Split
01 · Renderer Layer
Multi-View UI & Partitions
  • • BaseWindow + WebContentsView
  • • Isolated tab Session Partitions
  • • Plugin UI persist:plugin-* sandbox
  • • Dedicated transparent OverlayView
02 · Main Process (Control)
PermGate & OS Keychain
  • • PermGate URL & scope enforcement
  • • safeStorage (DPAPI / Keychain)
  • • L1–L4 extraction & Privacy Switch
  • • Proxy / PAC / Private CA allowlist
03 · UtilityProcess (Data)
Isolated Worker & Sandboxes
  • • MessagePort streaming, zero UI lag
  • • DLP redaction + domain model routing
  • • Read-only WASM SQL + HITL engine
  • • Local SQLite persistence & audit logs

Five Layers of Defense in Depth

01

Perception Boundary (Zero Leak at Source)

  • L1 extractor hard-skips every type="password" and type="hidden" input across all frames
  • L2 network sniffer strips token / key / secret / password query parameters and gracefully detaches CDP whenever DevTools opens
  • Global Privacy Kill-Switch and per-tab privacy badge immediately halt all page reading and script injection
02

Automatic DLP Redaction Pipeline

  • Before sending context to public cloud models, PrismDesk automatically redacts JWTs, API keys (sk- / ghp_), phone numbers, national IDs, and optional emails
  • A live badge on each response reports the exact number of redacted items for full transparency
03

Domain-Level Model Routing & Private Lock

  • Wildcard domain rules (*.finance.corp, *.hr.corp) force local Ollama or private vLLM endpoints and block switching to public models
  • High-sensitivity domains can be locked to "Disable AI Perception" completely
04

HITL Approval & Read-Only Scheduler Lock

  • 100% of write or state-changing tools pause on an interactive HITL Approval Card with inline JSON editing and instant rejection
  • PrismFlow batch form drafting enforces numeric/discount rules and never auto-clicks final submit
  • Unattended scheduled checks enforce isWorkflowReadOnlySafe in code, rejecting workflows containing click, fill, or external tools
05

Encrypted Storage, Plugin Sandboxing & Governance

  • API keys are encrypted via OS keychains (Windows DPAPI / macOS Keychain) and never stored in plaintext
  • Third-party UI panels run inside sandbox: true with persist:plugin-* cookie partitions completely separated from business sessions and Node.js
  • All tool calls and approval decisions persist to local SQLite audit logs, with optional self-hosted policy sync and remote plugin Kill-Switch protocol

L0 – L3 Least-Privilege Permission Tiers

TierExample DeclarationsRuntime Enforcement
L0 Safe host:theme · storage:* · ui:toast Auto-allowed; plugin storage isolated per plugin ID
L1 Scoped Read page:read:<url> · ai:invoke · Read-only MCP tools Strict URL pattern matching; obeys Global Privacy Switch
L2 Guarded Write network:sniff · page:action · Write MCP tools Mandatory HITL approval card + full audit trail on every call
L3 Local High-Risk local:stdio · fs:* · shell:* High-risk warning; stdio processes capped by concurrency & timeout breakers

Private Network & Cross-Platform Compatibility

01

Private CA Allowlists

Never disables global TLS verification; trusts only explicitly configured host wildcards or root CA SHA-256 fingerprints.

02

Proxy / PAC / Integrated SSO

Supports system proxy, PAC scripts, bypass lists, NTLM / Kerberos / SPNEGO allowlists, and controlled OAuth/SAML auth popups.

03

Zero Native Build Dependencies

Powered by WASM SQLite (sql.js) and pure TypeScript XLSX/ZIP generation, avoiding fragile native module compilation across architectures.

Configuring private CA pins, domain routing, or self-hosted policy sync?
Read the full governance reference covering SSO, CA allowlists, DLP, and Kill-Switch APIs.
Read Governance Guide →