Privacy, Safety & Honest Limits
Security & Trust
You stay in charge of your computer—and we tell you plainly what is and isn't protected.
Whether you are using LUCID on a family laptop or auditing the underlying Phase protocol, this page starts in plain English and then lists every technical safeguard and honest limit straight from the source code.
In plain words (for everyday users)
Four simple rules guide how Phase and LUCID behave on your computer:
Off by default
Installing LUCID does not share your computer with strangers—or even with friends—until you explicitly turn sharing on or send an invite. Using AI never forces you to share your hardware.
Private by default
When you chat with a model on your own computer, your messages never leave your machine. Chat history is saved only if you turn it on, and stays strictly on your own disk—never synced to a cloud.
You approve every action
If an AI assistant wants to search the web, open a browser page, read a folder you picked, or run a tool, LUCID pauses and shows a clear approval card so you stay in control.
Honest about remote peers
If you ask a friend's computer to answer a question or generate an image, your connection is encrypted in transit—but that friend's computer has to read your prompt to compute the answer. Keep sensitive prompts local.
Technical safeguards (for engineers & auditors)
Every safeguard below is enforced directly in the Rust workspace and Desktop application on main:
Local machine & desktop isolation
- Loopback-only HTTP bind & DNS-rebinding guard:
luciddrefuses any non-loopbackLUCIDD_HOST(only127.0.0.1and::1) and returns403 Forbiddenon missing, duplicated, or non-loopbackHostheaders (allowinghost.docker.internalonly on local Ollama/OpenAI endpoints for Docker clients, never on/api/lucid/*). - Private control API & metadata-only Activity Monitor: All
/api/lucid/*endpoints require constant-time verifiedAuthorization: Bearer <64-hex>tokens (0600, held only in Rust, never exposed to the Svelte WebView) withCache-Control: no-store. The floating Activity Monitor runs under its own minimal capability (capabilities/monitor.json) and reads strictly metadata-only telemetry (zero prompts, replies, PeerIds, or IPs). - Receipt-gated tool calls & human approval cards: Remote tool calls are buffered and released only after a verified Ed25519
SignedReceiptpasses strict verification andToolCallPolicychecks. Tools execute strictly client-side in Rust with inline Allow Once / Allow for This Chat / Deny cards, SSRF blocking on private/loopback targets, canonicalized folder allowlists, and external MCP subprocesses locked off in Tor / TailsOS mode. - Air-gapped chat rendering & opt-in local history: Markdown and KaTeX pass through
DOMPurifywith scripts and remote tracking images stripped; HTML/SVG previews run inside<iframe sandbox="">withdefault-src 'none'CSP. Local history is off by default and hard-locked RAM-only in Tor / TailsOS mode. - Verified updates & pinned runtimes: Desktop updates and
lucidd updateenforce fail-closed SHA-256 verification againstSHA256SUMS.txtplus platform code signatures (Apple Developer ID + Gatekeeper; Windows Authenticode + RFC 3161 + build-time publisher pinning). Downloaded runtimes (llama.cpp b12977, optional portable Node.jsv24.23.0LTS pinned at compile time inmanaged-runtimes.json, and LUMEN'ssd-cli) verify exact SHA-256 digests before extraction and execution. - Explicit permission & workload boundaries: Enabling GPU sharing or runtime setup requires
confirm_permission: true(else428 Precondition Required). LUMEN image sharing defaults toshare_images = false, and the integrated PLASMwasm_engineinluciddis strictly local-only and disabled by default with Tor fail-closed guards. Desktop refuses to run asroot. - Worker & KV-cache isolation: Each
llama-serverspawn gets a cleared environment, fresh 256-bitLLAMA_API_KEY(never in argv), and--no-cache-prompt --cache-ram 0 --cache-reuse 0so co-tenants cannot probe each other's prompt prefixes via timing.
Network, identity & peer authorization
- Ed25519 identity & strict signature verification: Persistent 32-byte key stored atomically at mode
0600(phase-identity).phase-manifestandphase-receiptenforceverify_strictand reject weak keys, bindingsigner_pubkeyto the delivering libp2pPeerIdwith a 15-minute max manifest TTL and 5-minute clock-skew window. - Encrypted transport & fail-closed Tor SOCKS5: Peer traffic uses Noise XX (TCP & Circuit Relay v2), TLS 1.3 (QUIC v1), or native zero-
unsafe--tor-socks5(RFC 1928/1929 SOCKS5h with remote DNS and v3.onionrelays, automatically locking off direct listeners, LAN discovery, clearnet downloads, providing, disk history, and external MCP subprocesses). - Default-deny authorization & live revocation:
policy.tomlstarts withauthorized_submitters = []andallow_unauthenticated_jobs = false. GPU pooling (/phase/shard-rpc/1.0.0,/phase/shard-rpc/2.0.0, and leased/phase/shard-rpc/leased/1.0.0) drops non-enrolled peers before reading a single byte and re-checks authorization every 250 ms, tearing down live tunnels immediately on opt-out or revocation. - Memory safety: All library crates and Desktop's Rust backend enforce
#![deny(unsafe_code)], with CI runningcargo auditandcargo deny.
Read exact signature domains, commitment replay, and rollback protection →
What is NOT protected yet (honest limits)
Do not rely on Phase or LUCID for guarantees we have not built and verified yet:
- Serving peers see plaintext inputs: Encryption and Tor hide requests from relays and ISPs, not from the computer executing your prompt or image job. Use Local Only (
X-Lucid-Local-Only: true) whenever an input must never leave your device. - Receipts prove attribution, not hidden compute: A verified
SignedReceiptproves which peer signed the exact bytes delivered—not that the peer used an unquantized model or a hardware enclave. - Trusted-Circle GPU pooling requires strong peer trust: Sharing raw GPU memory over shard-RPC carries SSH-equivalent trust among enrolled peers. Pool GPUs only with devices you own or people you deeply trust. Untrusted public GPU sharding remains strictly fail-closed.
- Tor / TailsOS scope: Native
--tor-socks5hides your IP from relays and serving peers and routes built-in DuckDuckGo.onionsearch oversocks5h://, but serving peers still see plaintext prompts; LUMEN and integrated PLASM workloads are not yet qualified for Tor mode. See Tor & TailsOS guide. - DNS bootstrap without DNSSEC: Default TXT lookups on
bootstrap.phasebased.netpin each relay'sPeerId, but do not enforce DNSSEC; pass--no-default-bootstrap --relay-peer <multiaddr>for explicit pinning. - Whole-file blob checks & in-memory replay cache: Large P2P downloads verify exact whole-file SHA-256 on completion (per-chunk Merkle proofs are not shipped yet), and short-lived job replay protection is process-local within the 15-minute manifest TTL.
Reporting a vulnerability
Please report security issues privately through GitHub's Security Advisories page on msitarzewski/phase rather than opening a public issue. Include reproduction steps, affected version, and impact.