# Moordeck Security Architecture & Verification Center

> Verifiable defense layers across local-first encryption, HKDF-SHA256 + AES-256-GCM cloud sync, Ed25519 signed binaries, scoped agent guardrails, and zero-storage diagnostics.

## Local-First Encrypted Credential & Cookie Vault

Free and Founding Solo profiles remain on local workstation storage by default with zero forced cloud upload.

- Proxy passwords and sensitive profile secrets are encrypted locally prior to SQLite persistence.
- Each profile owns an isolated user-data directory, OS-matched font set, and per-profile WebRTC policy.
- Local loopback endpoints bind strictly to 127.0.0.1 with Host-header validation and Bearer token checks.

## HKDF-SHA256 + AES-256-GCM Envelope Encryption

Cloud-synced profile configs and compressed session checkpoints are sealed using authenticated envelope encryption.

- Profile payloads (MDKCLDP1) and session checkpoints (MDKCLDC1) derive unique per-record subkeys via HKDF-SHA256.
- Plaintext cookies, proxy credentials, and fingerprint JSON are never written into database rows or server logs.
- Each profile osTemplate remains immutable after creation while encrypted workspaces sync across macOS, Windows, and Linux (matching host OS recommended).

## Ed25519 Signed Kernels & Offline License Tokens

Every official Chromium kernel manifest, desktop update, and 7-day offline license token is cryptographically verifiable.

- Kernel catalogs carry canonical Ed25519 signatures verified by Moordeck Desktop and public manifests.
- Every macOS DMG and Linux daemon release publishes explicit SHA-256 checksums for independent verification.
- Offline license tokens (mdcl1.*) bind plan limits and concurrency rules with Ed25519 verification for up to 7 days.

## Scoped mdk_* Keys, Domain Guards & HTTP 423 Fence

Built-in deterministic security fences stop cross-profile lateral access and webpage prompt injection during AI automation.

- Issue scoped mdk_* tokens across 10 granular scopes with optional allowedProfileIds and per-session allowedDomains.
- Page snapshots are isolated inside randomized untrusted-content boundaries, while offscreen PNG SoM redacts password, card, and OTP pixels.
- Operators can pause competing agent writes instantaneously with HTTP 423 Human Takeover locks and close guards.

## Zero-Persistence Online Diagnostics (/check, /ip, /ai-check)

Every public diagnostic page and API executes strictly in memory without reading cookies or logging visitor payloads.

- Public routes enforce Referrer-Policy: no-referrer, Cache-Control: no-store, and zero Set-Cookie headers.
- Server proxy checks block loopback, RFC 1918 private ranges, CGNAT, and cloud metadata IPs via SSRF netguard validation.
- Client telemetry uses first-party aggregate analytics (opt out anytime via ?notrack=1) and scrubs paths/secrets from optional crash reports.

## Exclusive Workspace Leases & Role Separation

Collaborative Team workspaces serialize concurrent profile launches and govern seat access cleanly.

- PostgreSQL SELECT ... FOR UPDATE row locks guarantee single-operator session ownership with automatic TTL expiry.
- Owner, Admin, and Member roles separate billing/invite privileges from everyday browser operations.
- Passwordless Google OAuth PKCE and 6-digit email verification eliminate weak static password reuse.

## Public Verification Matrix

| Surface | Mechanism | How to Verify |
|---|---|---|
| macOS & Linux Client Checksums | Published SHA-256 digests on /download and /api/v1/releases/client/latest.json | `shasum -a 256 Moordeck_<version>_macos-arm64.dmg` |
| Anti-Detect Chromium Kernel Catalog | Canonical JSON Ed25519 signature + binary/archive SHA-256 verification | `GET https://moordeck.com/api/v1/releases/kernels/manifest.json` |
| Zero-Storage Diagnostic Privacy | Referrer-Policy: no-referrer · Cache-Control: no-store · zero Set-Cookie | `curl -I https://moordeck.com/check https://moordeck.com/ip https://moordeck.com/ai-check` |
| SSRF Proxy Validation Boundary | Server rejects 127.0.0.0/8, 10.0.0.0/8, 169.254.169.254, IPv6 private ranges (HTTP 400) | `POST /api/v1/ip/inspect {"proxyUrl":"socks5://127.0.0.1:9112"} -> 400` |
| Zero-CDP Runtime Readiness | Native pipe IPC (fd 7/8) with zero --remote-debugging-port on agent sessions | `mdk doctor --json` |

## Explicit Boundaries

- Moordeck isolates browser environments, aligns declared fingerprints, and protects authorized multi-account workflows; it omits CAPTCHA cracking, anti-bot solver APIs, or credential-harvesting tools by design.
- Cloud-synced Pro and Team data utilizes server-managed envelope encryption (HKDF-SHA256 + AES-256-GCM) to enable browser web-console preview, cross-device handover, and 30-day recycle bin recovery.
- Free diagnostic tools (/check, /ip, /ai-check) operate without database storage or authentication cookies; account data exists solely when a user voluntarily registers a cloud workspace at /login.

## Frequently Asked Questions

### Does Moordeck upload my local Free or Founding Solo profiles to the cloud automatically?

No. Free and Founding Solo run local-first on your machine by default. Cloud payload encryption and checkpoint storage activate only when you explicitly create or sync environments in a signed-in Pro or Team workspace.

### What is the difference between server-side envelope encryption and client-only zero-knowledge encryption?

Server-side envelope encryption (HKDF-SHA256 + AES-256-GCM) encrypts every cloud profile and session checkpoint with unique per-record keys at rest while still allowing authorized team members to manage profile metadata in the /app web workbench and restore from the 30-day recycle bin.

### How can I verify that an AI agent cannot access other accounts or leak passwords in screenshots?

Create a scoped mdk_* token restricted to specific allowedProfileIds and scopes (omitting cookie/proxy admin scopes), pass allowedDomains on start, and enable SoM redaction so password, card, and OTP fields are masked directly on PNG outputs.

### Do /check, /ip, or /ai-check log the proxy URLs or fingerprints I inspect?

No. Diagnostic routes and APIs process inputs in memory only, enforce Cache-Control: no-store and Referrer-Policy: no-referrer, never set session cookies, and never persist proxy credentials or fingerprint vectors.
---

- Canonical: https://moordeck.com/security
- Language: en
- Agent Index: https://moordeck.com/llms.txt
- MCP Server: https://moordeck.com/mcp
