Trust

Security

How to report a vulnerability, how Kith is put together, and the gaps it has today. The authoritative text is SECURITY.md, which names the code behind each item.

Report a vulnerability

Report it privately on GitHub. Open the Security tab of the repository and choose Report a vulnerability. Please don't open a public issue.

Include what you found, how to reproduce it, and the version. kith --version prints it, and so does the app's About window.

Fixes go into the latest release only. SECURITY.md lists the supported versions.

How Kith is put together

The agents run on your own Mac. The host, kith-serve, keeps your chats there and runs the agents. Phones, other computers and invited people reach the Mac through the Kith cloud, a set of Cloudflare Workers. The cloud forwards encrypted messages and keeps the account records.

The cloud
KeepsThe account records.
ForwardsEncrypted frames between your devices and your Mac, without reading them.
Keeps for up to 30 days, encryptedYour chats with people, until every device has collected them. The cloud never has the keys.
Never storesYour chats with agents. A device that was offline collects its messages from a mailbox of ciphertext, where they expire after 24 hours.
Holds unencryptedWebhooks waiting for a Mac that is offline. See the known gaps.

On the Mac

  • The local API accepts requests only from this computer, and each one needs a bearer token. The token check is constant-time. The token is stored in the host's database and in a mode 0600 file in the data folder.
  • The host listens on all interfaces by default, so a phone on the same network or on Tailscale can reach it. Anything that does not come from the Mac itself must use the encrypted, paired channel described below.
  • Pairing uses a one-time code. A code lasts 10 minutes, at most 5 can be open at once, attempts are rate limited, and codes are kept only in memory.
  • The computer's identity key is in identity.json, mode 0600, outside the database.
  • Credentials you give connectors are encrypted with XChaCha20-Poly1305 in the database. The master key is kept in the macOS Keychain.
  • Your own agents run with your permissions. They are guarded by Claude Code's permission prompts and classifier. There is no sandbox around them. Turning on bypassPermissions or auto for an agent requires kith-auth --trusted.
  • People you invite, and their bots, run in a sandbox. It is Claude Code's seatbelt sandbox, and the run won't start if the sandbox is not available. Commands can't run outside it, and the only network it allows is the host's socket. Deny rules keep your secrets folders and keys out of reach. For anyone other than the owner, only Claude Code may run, and the run won't start without the memory-write check.

Between your devices

  • Messages between a phone or browser and the Mac are encrypted end to end. Keys are agreed with X25519 and HKDF-SHA256, frames are sealed with ChaCha20-Poly1305, and devices sign with Ed25519. Channel keys are replaced after 24 hours.
  • Requests to the cloud are signed with the device's Ed25519 key. Each signature carries a timestamp and a single-use nonce.
  • Device keys. The iPhone app keeps them in the Keychain, readable only after the first unlock and only on that device. The web client uses a non-extractable WebCrypto key. The Mac app stores its key seed with Electron's safeStorage.
  • Push notifications carry a generic line that the push relay and Apple can see. The real text is sealed for the device and decrypted on the phone, without a network call. The APNs key stays in the relay.

Releases

  • Each release lists the SHA-256 sums of its files in SHA256SUMS. That file is also signed with minisign. The public key is packaging/minisign.pub, key ID 7FF80CDEC1769B21. How to check a download by hand is in packaging/README.md.
  • scripts/install-guest.sh checks the signature before it installs anything.
  • The Mac app can't be signed or notarized until Kith joins the paid Apple Developer Program.

Known gaps

Most of these are planned work. They are listed so you can judge the risk for yourself.

  • scripts/install.sh checks only the checksums, not the signature. To check the signature yourself, follow packaging/README.md.
  • install-guest.sh installs an unsigned build when KITH_ALLOW_UNSIGNED=1 is set.
  • The minisign key that signs releases is kept as a GitHub Actions secret, with no passphrase.
  • The Mac app is not signed or notarized, so macOS can't verify where it came from.
  • Chats are stored unencrypted in the host's SQLite database, ~/.kith/serve-main/serve.db, including the chats of people you have invited.
  • Backups are unencrypted. kith-state commits your state and your agents' memory, with databases as SQL dumps, to private GitHub repositories that it creates. Anyone with access to those repositories can read them.
  • Webhooks wait in the cloud unencrypted. While the Mac is offline, the cloud holds a webhook's body and its forwarded headers, Authorization included, for up to 72 hours. Hook keys are stored as given, not hashed.
  • In the Mac app, safeStorage can fall back to a plain file. When the system can't encrypt, the device key seed and the account token are written to a mode 0600 file instead. The iPhone's device keys are in the Keychain, not the Secure Enclave.
  • Accounts can't be deleted from the apps yet. See privacy.
The full text. SECURITY.md is the authoritative version. If this page and that file differ, the file is right.