# Security Policy ReMCP provides remote access to paired computers through MCP. Treat every ReMCP deployment as privileged infrastructure. ## Reporting a vulnerability Please do not open a public issue for vulnerabilities that could expose credentials, authentication bypasses, cross-tenant access, remote command execution outside the intended tool boundary, or sensitive device data. **Private disclosure (preferred):** [Report a vulnerability privately](https://github.com/getremcp/remcp/security/advisories/new) using GitHub's enabled private vulnerability reporting. The [security advisory center](https://github.com/getremcp/remcp/security/advisories) lists published advisories when available. These URLs belong to the canonical public project; `https://github.com/antonbaider/remcp` redirects to it. Do **not** post an exploit, credentials, tokens, private file paths, screenshots containing personal data, or an undisclosed vulnerability in [public GitHub Issues](https://github.com/getremcp/remcp/issues). Use public issues only for nonsensitive defects. A report should describe the affected version, reproducible impact and steps, expected versus observed behavior, and sanitized evidence; do not attach real secrets or another user's data. **Disclosure and response process:** The maintainer reviews privately reported issues, validates impact, coordinates a fix and release, and publishes a [GitHub Security Advisory](https://github.com/getremcp/remcp/security/advisories) where appropriate. We aim to acknowledge an actionable private report within seven calendar days; this is a response target, not a promise of a fix within a specific time. Disclosure should be coordinated with the reporter after a verified fix or appropriate mitigation. Security updates and affected versions are documented in [GitHub Releases](https://github.com/getremcp/remcp/releases). ## Supported versions Security fixes are applied to the latest released version. Users should update both the central server and device agent when a security release is published. ## Operational guidance Use HTTPS/WSS, keep device credentials private, revoke devices that are lost or retired, and review mutating MCP actions before approval. Never commit `.env` files, OAuth tokens, Firebase Admin private keys, or device credentials. ## Device-to-client encryption boundaries ReMCP's default remote-control/MCP traffic is TLS-protected, **not** automatically end-to-end encrypted. The authenticated backend can process ordinary tool requests, results and file data. An independently pinned, owner-authorized HPKE client may send selected tool requests/results as opaque ciphertext through the relay. The authorized AI host/device still sees plaintext at its endpoints, while metadata, sizes and timing remain observable to the service. Device E2EE key availability or `remcp e2ee status` alone does not verify that a live request is encrypted. Read-only peer grants should be limited to explicit owner-approved tool names. An MCP `readOnlyHint` is advisory and does not certify tool safety. Legacy clients before the corresponding hardening release may have weaker default read grants. Operators should review actual tool behavior and upgrade before relying on stricter authorization. The authenticated HPKE implementation does not promise forward secrecy against later compromise of the recipient's long-term key, post-quantum security or FIPS 140-3 validation. The local client's JavaScript/runtime and the owner's machine remain trusted endpoints; malicious tools or compromised endpoints are outside the confidentiality guarantees. See the [E2EE setup and limitations](https://github.com/antonbaider/remcp/blob/main/docs/E2EE.md). ## User file and screenshot privacy The ordinary workspace file manager reads or streams files from the device on demand. ReMCP does not create a server-side document library or store file contents in PostgreSQL. For ordinary workspace downloads and file actions, the authenticated backend and device relay process file bytes in transit; this route is **not** device-to-browser E2EE. A separately enrolled encrypted MCP tool call can instead transport its tool-result bytes under HPKE, but does not convert the ordinary file-manager route into an encrypted channel. Downloads use user- and device-bound, expiring tickets. Absolute device paths are sent in authenticated POST request bodies, not download URLs or normal access logs. Temporary MCP App file, image, and terminal previews can be held in the shared Redis cache for up to two minutes; applications and infrastructure operators must protect that cache, logs, and any memory dumps. A manual diagnostic screenshot is returned to the requesting browser without database persistence by default. Users may explicitly opt in to storing one capture in their device history (up to 24 per device, for at most seven days), and may delete their saved screenshots from active PostgreSQL storage. Database backups may follow a separate retention schedule; deleting an active row does not retroactively erase backups. Diagnostic numeric samples are separate. God Mode is a deliberate, locally authorized power-user feature. It must not be silently disabled by remote services, and it never grants privileges beyond the OS identity running the device agent. Owners should run privileged agents only on trusted machines and carefully review AI-triggered operations: prompt injection and account compromise are still relevant threats. ### Encrypted screenshot retention The default view-only screenshot action never persists PNG bytes in PostgreSQL. When a user explicitly enables seven-day history, ReMCP encrypts the PNG with AES-256-GCM before inserting the device_screenshots.image_png BYTEA. The authenticated ciphertext binds the user ID, device ID and capture timestamp. No encryption keys are stored in PostgreSQL, Redis or Git. Retention requires REMCP_SCREENSHOT_KEYRING_FILE pointing to a mounted JSON secret. An invalid configured keyring fails startup. An absent optional keyring disables persistence without disabling one-shot screenshots. All backend replicas must share the same keyring. Keep older keys in that keyring until all captures encrypted with them have expired. Provision once on a trusted host; do not print keys to logs or commit them: umask 077 node scripts/create-screenshot-keyring.mjs /opt/remcp-backend/secrets/screenshot_keyring.json v1 chgrp remcp-secrets /opt/remcp-backend/secrets/screenshot_keyring.json chmod 0440 /opt/remcp-backend/secrets/screenshot_keyring.json Match the protected group-readable secret permissions used by the existing backend Docker deployment. Never make this file world-readable. Configure deployment before promotion: REMCP_SCREENSHOT_KEYRING_HOST_FILE=/opt/remcp-backend/secrets/screenshot_keyring.json REMCP_SCREENSHOT_KEYRING_CONTAINER_FILE=/run/secrets/screenshot_keyring The Compose service mounts the keyring read-only. Maintain a separately protected recovery copy, never alongside database snapshots. Old PNG captures remain readable until migrated or seven-day expiry. Do not re-encrypt plaintext rows during rolling deployment. Once all replicas are stable on the encryption-capable code, count legacy rows: node scripts/encrypt-legacy-screenshots.mjs --dry-run After an approved rollback window, migrate bounded batches: node scripts/encrypt-legacy-screenshots.mjs --execute --limit=100 Rollback to an older backend cannot display encrypted screenshots. Plan for that short-lived screenshot-history compatibility and do not rush the data migration. Old PostgreSQL/WAL backups may still contain plaintext images until those backups expire under the separately managed backup policy. For key rotation, first distribute a ring containing both old and new keys to all replicas while keeping the old key active; only then switch the active ID in a second rolling deployment. Remove the old key only after every capture written with it has expired or been re-encrypted. Never reuse key IDs. On the production backend inspected on 2026-10-28, the PostgreSQL backup service defaulted to 14 days of local dumps; the Storage Box rotation policy retains daily and up to eight weeks of weekly archives. These are separate from the screenshot table's seven-day active-data TTL. Historical backups made before encryption may therefore contain earlier plaintext captures until the relevant backup archives and provider snapshots expire. A restored pre-encryption database must not be exposed publicly without reapplying the screenshot-encryption migration or removing old captures.