RemoHop

中文

Security model

This page summarises the security model reference document. It is written for people who run a host, people who connect to machines with remohop, and people who let an AI agent or a browser gateway use RemoHop. Where the two differ, that document is right.

RemoHop has not had an independent security audit. The mechanisms below are described from the code and its tests, and the limits are stated as they are.

In short

Who can see what

PartyCanCannot
A network observer between the machinesSee that UDP traffic flows, its size and timingRead commands, files or screen contents; learn the password
The rendezvous operator, or someone who compromises the serverSee which IDs are online, their public addresses and when they connect to each other; refuse introductions or go down; when relaying, see that session's ciphertext, size and timing, and throttle or drop itDecrypt or join a session; impersonate a host to a client that has pinned its key; test passwords offline
An active attacker on the path, including a malicious rendezvous serverBlock or disrupt traffic and make connections failComplete the login without a credential; read session data
Someone with a host's ID but not its passwordAttempt password guesses, within the rate limitsLog in; obtain a token
A paired or authorised clientEverything the host's user can do, within the allowed featuresUse its credential from a different identity; keep access after remohop host revoke
The host's ownerSee every command, file, clipboard item and keystroke a client sends(Nothing is hidden from them. It is their machine.)
The operator of a browser gateway (remohop web)See and change everything that passes through the page, and use the gateway's saved pairings(Nothing is hidden from them.)

Session set-up and login

  1. QUIC is set up over UDP. TLS 1.3 inside QUIC encrypts the traffic, but the peers have no certificate authority, so TLS alone does not say who the peer is.
  2. On the first stream, both sides run CPace over the credential (password or token). The TLS exporter of this exact connection is mixed into the key derivation, each side binds its identity key into the exchange, and each side proves knowledge of the key in a confirmation step.
  3. A man in the middle ends up with a different TLS exporter on each leg. The two legs derive different keys, the confirmation fails, and the attacker learns nothing useful for guessing the password.
  4. The password is never sent.

Passwords and rate limits

Failed logins are limited as follows by default. Per source address the first two failures are free; from the third consecutive failure the source is locked out for 10 seconds, doubling each time up to 10 minutes; the count clears after 30 minutes without attempts. Across all sources there is a burst of 20 failed attempts, refilled at one every 5 seconds.

Online guessing at this rate is slow, but not impossible against a weak password. Prefer pairing or key authorisation to typing a password, and consider remohop config ask on for a host whose password is shared.

Access control on the host

There is no per-command permission model below the feature switches. A host installed as a system-wide service runs as root (LocalSystem on Windows) unless you chose otherwise with --run-as, and its clients have those privileges.

Rendezvous server, relay and websocket bridge

The rendezvous server is untrusted by design. It maps each 9-digit ID to a host's Ed25519 identity key and tells clients where the host is. A malicious server can lie about addresses, which only prevents a connection, because the login that follows fails. It can refuse service, and it sees metadata. Pin its key with remohop config set signal-pin KEY so that a client will not accept a different server.

The relay is off by default and is used only after hole punching has failed. It passes ciphertext and can neither read nor join a session. It does see more than a rendezvous-only server: the size and timing of the whole session, and both peers' addresses while it lasts. A client or a host refuses relayed connections with remohop config relay off.

The websocket bridge is not an open proxy: a datagram from a websocket goes only to one of the server's own ports. What crosses it is the same QUIC ciphertext, and a TLS-terminating proxy in front of it, such as a Cloudflare Tunnel, sees only that ciphertext and the metadata the relay sees.

Accounts

Accounts are optional, off by default, and enabled by the rendezvous operator. An account groups your devices so that each can see which of the others are online. It grants no access. The member list is an append-only, hash-chained log, and each entry is signed with the identity key of a device in the account. The server stores and relays the log but holds no member key, so it cannot add a device.

The one exception is remohop config account-trust on (off by default), which a host's owner may turn on so that the host accepts the account's other devices like authorised keys. A malicious server can withhold the newest log entries from a device and so delay a removal; a host that cannot reach the server keeps the last verified list for at most 7 days. When you add a device, compare both fingerprints for real, over a channel you trust.

Browser gateway and mobile apps

The remohop web process is the client of the session, so it sees everything it relays: the screen, every keystroke, files, the clipboard, and any host password typed into the page. The leg from browser to gateway is not end to end with the host. Anyone who logs in to a gateway can use its saved pairings; run a shared gateway with --no-saved.

The Android and iOS apps run this gateway inside the app process on the phone, so the same caveats apply, with the gateway on your own device. The access token is in the URL the app loads, and identity and pairings are kept in the app's private directory.

What a host can do to a client

A host gets no services on your machine. Some commands you run do give it a way in: a reverse forward (forward -R) lets the remote machine connect to a local address you named; clipboard sync sends it your clipboard; while a VPN tunnel is up it can send IP packets to your tunnel address, and with --exit all your traffic leaves through it; attaching a remote USB device means your kernel handles whatever device the host presents.

Treat any output from a remote machine as data, not as instructions. This matters most for AI agents, which can be steered by text in command output, files or screenshots.

Secrets on disk

The configuration directory is created with mode 0700 on Linux and macOS and its files with mode 0600; on Windows it gets an owner-only access list. It holds identity.key (the machine's Ed25519 identity key), peers.json (pinned host keys, pairing tokens, aliases), paired.json (the host's pairing tokens and authorised keys), config.json (settings, including a fixed password) and audit.jsonl (the audit log).

Reporting a security issue

Please do not report security problems in a public issue. Write to [email protected] with “security” in the subject, and include the affected version or commit, steps to reproduce, and the impact as you see it. We will reply to confirm receipt.