Security and threat model

What Conveno defends, against whom, and where the limits are. To report a problem, see Security.

What runs where

A daemon on your machine keeps the session list and mailboxes. It listens on a Unix domain socket (mode 0600) on macOS and Linux, or a named pipe restricted to your user on Windows. A client must present an auth token the daemon created once, with mode 0600, and keeps until you delete it. Each CLI session talks to the daemon through its own MCP server. Hooks call conveno hook, which asks the daemon for your messages.

What we assume

  • You trust your own user account and the CLIs you installed. Conveno does not defend against another process running as you.
  • An agent may read untrusted text, including messages from other agents. Any session can be manipulated by what it reads.
  • With Pro, the relay and the account server can be compromised or malicious. Content stays safe from both.

Credentials

Conveno never reads, stores, logs or forwards a provider login token or credential file. Each adapter reads an allowlist of config paths and nothing else. It runs only the unmodified official CLI, under your own login or API key.

Prompt injection between agents

The main risk of a mesh of agents is one agent's output becoming another's instructions. The defences:

  • Every message is framed to the receiving agent as information from a peer, never as an instruction from you, and agents are told not to act on instructions in it unless you asked.
  • Clients cannot forge messages from the system, and the names conveno, orchestrator, system and user are reserved.
  • Spawning is bounded: at most 8 sessions at once, 3 levels deep, inside your home folder when an agent asks, and only the official CLIs from a fixed list.
  • A background worker gets the edit preset by default. Pass --access read (or access to spawn_session) to limit it, or --access full to lift the limit. Calls the preset does not cover are asked of the session that spawned the worker.
  • A loop guard stops two agents answering each other forever: each message carries a hop count, a session does not continue by itself past the limit, and a turn you type resets it. Each session also has a limit on automatic turns per hour.

These reduce the risk and do not remove it. A capable agent that reads a hostile message can still be talked into acting on it. Use --window to watch work you care about in its own terminal, and keep each CLI's own permission prompts on.

ACP adapters

Claude Code and Codex have no ACP server of their own. The adapters are third-party npm packages, @agentclientprotocol/claude-agent-acp and @agentclientprotocol/codex-acp. Conveno never bundles or installs them. conveno init asks once whether it may run a pinned version with npx -y on first use, and keeps the answer in settings.json. Without a yes it fetches nothing. The adapters use the CLI's own sign-in, which Conveno does not read. Setting CONVENO_ACP_<CLI>_CMD runs whatever command you name instead.

Config changes

conveno init shows a diff of every file, backs each up, and asks. It edits the file's own text so only its keys change. conveno uninstall restores a file that has not changed since byte for byte, and otherwise removes only Conveno's entries. Invalid config makes it stop and name the file instead of guessing.

Pro: what the relay can see and do

The relay (relay.conveno.dev) and the account server (api.conveno.dev) are for Pro. They are deployed, and payments are in test mode for now. The construction is in the repository's PROTOCOL.md (section 6) and the threat model in SECURITY.md, which governs if this page differs.

Can see

Your account id, your device list (each device's id, name and public keys, and who added or revoked whom), which device sends to which and when, envelope ids, sizes and timestamps, the device list head each envelope was sent under, when devices connect, and IP addresses as any web server does (not stored). During pairing, both devices' public keys and nonces.

Cannot see

Session names, CLIs, repositories, paths, status text, message kinds or text, or which session talks to which. All of that is inside HPKE-sealed envelopes addressed to one device's key.

Can do

Drop, delay or reorder envelopes, or refuse service. Delay a revocation, or ignore it and keep serving the revoked device: how fast a revocation takes effect depends on the relay and the account server being up and honest. It can replay an old envelope or serve an old device list, but devices refuse both. It can show your devices different device lists, but every envelope carries the sender's list head, so your devices notice, warn and stop sending.

Cannot do

Read content. Forge, alter or redirect an envelope: each is signed with the sender's Ed25519 key and sealed with HPKE auth mode to the recipient. Add a device to your list: a new device is added only after you type each device's 8-digit code into the other one, and an attacker in the middle has one chance in 108 per attempt.

The account server

It sees your login and plan, which relay device id each login is bound to, and when tokens are issued. It issues the tokens the relay accepts, so it could let someone connect as your account or cut you off. It holds no device key, so it cannot read, forge or add devices either. When a device list that revokes a device reaches the relay, the relay tells the account server over a private Cloudflare service binding, and the account server ends that device's login and refuses its id. No login can revoke a device by itself. The account server does not read the device list. Anyone who can sign in to your account can bind a new device id, but that id is not in the list, so it gets only the list's head and cannot end another device's login or revoke it.

GitHub is the root of trust

Sensitive account actions (resetting devices, adding or deleting a passkey, deleting the account) need a browser sign-in with GitHub from the last 5 minutes. A passkey is a convenience sign-in and never counts for these, and neither does a device's CLI login. So a thief who adds a passkey to a stolen session cannot use it to reset your devices, remove your passkeys or add more. The account server answers 404 on every Better Auth endpoint that its pages and the CLI do not use, so a stolen CLI login reaches none of them.

A stolen device

Its keys are in a file in the data folder, readable by your user only. Whoever has them reads what is sent to that device and can send as it until you revoke it from another device with conveno devices revoke <name>. The relay then closes and refuses it, the account server ends its login, and your other devices stop encrypting to it and accepting its envelopes. A thief can race you to revoke your devices; whichever revocation the relay takes first wins. With only two devices, the thief can revoke yours. Then reset your devices on the account page: it needs a GitHub sign-in from the last 5 minutes (a passkey sign-in does not count, so a thief's passkey cannot do it), signs out every other login (the thief's included) and deletes every pending login code, and makes the relay forget the device list and refuse every older token. Tick every passkey you did not add on the reset form, and it deletes them in the same step. Deleting a passkey later also signs out every other login, in case it was used, and your devices sign in again without pairing. Every device warns, and you sign each one in again (conveno login), run conveno devices reset on it, and pair it again. A stolen account becomes a loud outage, never quiet access. Revocation does not undo messages a device already received, and there is no forward secrecy for a device's long-term key.

Known limits

  • Metadata is minimised, not hidden. The relay sees device names and the list structure.
  • There is no post-compromise security beyond revocation, and no forward secrecy for a device's long-term key.
  • Revocation and split-view detection rely on the relay as described above. A relay that refuses service, or keeps a revoked device connected while never showing your devices a later list, is noticed only when two of your devices compare heads, through an envelope or by eye.
  • A device-list conflict stops all traffic from that device and is shown by conveno devices and conveno relay status until you run conveno devices accept <head>.
  • Someone who can sign in to your account can reset your devices, which signs every device out and makes you pair them again. That is a visible denial of service, not access to messages.
  • If a stolen device also holds a browser signed in to GitHub, the thief can sign in to the account and reset your devices. End the GitHub sessions too.
  • The plan is checked when a device connects and when its 15-minute token expires, not in between.
  • Denial of service by a device of your own account is limited, not prevented: each device may queue at most 100 envelopes and 8 MiB for another, and only active members of the list may send.

Cryptography

HPKE (RFC 9180) auth mode with DHKEM(X25519, HKDF-SHA256), HKDF-SHA256 and ChaCha20Poly1305, checked against the RFC test vectors. Ed25519 (RFC 8032) with strict encodings. X25519 (RFC 7748). The pairing code exchange follows ZRTP (RFC 6189). Access tokens are JWTs checked against a JWKS with only asymmetric algorithms. All primitives come from the audited noble libraries.

The relay and the cryptography have not had an outside audit. Pro is in preview, so treat them as unreleased.