Skip to content

Security model

<config> below is ~/Library/Application Support/pl.kryodesk/ on macOS and %APPDATA%\pl.kryodesk\ on Windows.

Configuration files hold no secrets: sessions.json, settings.json, monitoring.json, assistant.json, projects.json, mcp.json, agent-permissions.json, windows.json. Passwords, key passphrases, API tokens and the authenticator secret are entries of one encrypted vault. The list of entries and their keys is in Where sessions and secrets are stored.

Values that would carry a secret into a configuration file are refused where they are typed: user:password@ in a Quick connect address or a session host, user:password@, ? and # in the assistant’s API URL.

Part Where What it is
Vault <config>/vault.kdbx (mode 0600) KeePass database, KDBX 4, group Secrets, one entry per secret (title = key, password = secret, protected field).
Vault key macOS Keychain, service pl.kryodesk, item vault-key; Windows Credential Manager, generic credential vault-key.pl.kryodesk 32 random bytes used as the KeePass key file (no password). Argon2id runs with the smallest parameters: a key-derivation function adds nothing to a random key.
Marker <config>/vault.kdbx.created Written at the first save of the vault.

Writes go to a temporary file that is read back and decrypted before it replaces vault.kdbx. The Keychain item records the SHA-256 of the last saved files, so an older copy of vault.kdbx put back in place is refused at unlock (Use this file anyway… on the lock screen accepts it, and changes saved after it are lost). A vault.kdbx that is missing although it was saved is an error on the lock screen, never a silent new vault: Start with an empty vault… (or Restore from the old copy… when an older vault item exists) is an explicit choice.

macOS: Touch ID (LocalAuthentication, policy DeviceOwnerAuthentication: fingerprint, Apple Watch or the account password) is asked by the app before it reads the Keychain item. Touch ID and the authenticator code (two-factor unlock, or the code as the only step) are gates of the app: the Keychain item is not bound to biometry, and the vault key in it is encrypted with neither.

Windows: with Windows Hello the vault key in Credential Manager is encrypted (AES-256-GCM) with a key derived (HKDF-SHA256) from a Windows Hello signature of a random challenge; the Windows Hello key pair signs only after face, fingerprint or PIN. With the authenticator code as the only step the credential holds the key unencrypted, readable by any program of the same Windows user, and the code is a gate of the app.

Release builds start locked. The app locks again when:

  • the unlock time ends (Unlock lasts, default 60 minutes);
  • there was no keyboard or mouse input for Lock after inactivity minutes (default off);
  • with Lock on sleep, closed lid, display sleep and screen lock (default on): system sleep, display sleep or a closed lid, screen lock, a switch to another macOS user (Windows: suspend, display off, closed lid, a locked, disconnected or switched session);
  • 5 wrong authenticator codes are typed in a row (in Settings).

Settings: App Lock. Debug builds (pnpm tauri dev) have no lock unless KRYODESK_APP_LOCK is set in the environment.

Cleared when the app locks
Vault contents and vault key Removed from memory; the next use needs an unlock. The entry names (for example password:deploy@web-01:22, not the secrets) stay, so the UI can still show that a secret is saved.
Pending second factor and a QR code being set up Dropped.
Certificates generated or reopened and waiting for export Their private keys are dropped: generate the certificate again (or reopen one kept by an app CA) to export it.
SecTools package scans Stopped; their temporary files are removed.
Monitoring API sessions (for example a Zabbix login) Dropped; a sign-in that finishes after the lock is not kept.
Kubernetes exec-plugin credentials Dropped (also one returned by a plugin run that outlived the lock); the plugin runs again after the unlock.
Authenticator secret and recovery codes shown in Settings Removed from the page.
Private keys loaded by KryoDesk (built-in agent keys and key files set in sessions) Removed; a key decrypted while locked or across a lock is not kept. After the unlock the passphrase is asked again (or read from the vault).
Secrets of open tabs: the MySQL/MariaDB password (for further connections: export, migration, account changes, a ProxySQL reconnect), the S3 secret key and session token, the Proxmox API token Removed; the tab’s open connection keeps working, and an operation started before the lock (a Files transfer, an S3 multipart upload and its abort, a folder rename or delete, a Proxmox power action and the following of its task) finishes with its own copy, dropped when it ends; the tab’s console names each such operation at the lock. A Proxmox task keeps its copy only while its panel follows it: closed panel, a failed status read, 2 min without a poll or 1 h in total end it. New requests while locked are refused (app locked: …, also in the tab’s console); nothing is sent unsigned. After the unlock the first one reads the secret from the vault again if the tab signed in with the saved secret (or saved the typed one there; MySQL: not over unverified TLS or a fallback to no TLS without consent); a saved secret rejected at sign-in is never tried again. Otherwise type it again with the console command password (MySQL), secret (S3) or token (Proxmox), after which the tab no longer reads the vault; an S3 profile is read again from ~/.aws/credentials.
Not cleared
Open connections (SSH, SFTP, FTP, RDP, SMB/NFS mounts, databases, S3, Proxmox) Keep running: they are already authenticated. The MySQL/MariaDB library keeps the login of the open session connection (password included) until the tab closes; KryoDesk does not use that copy. A Proxmox ticket (password sign-in) stays and is renewed as before.
Terminal contents and scrollback Stay in the tabs.

While locked, anything that needs a secret waits or is refused with a message naming the lock: new logins with saved passwords, monitoring refreshes and notifications, the assistant and its history, KeePass export with passwords, agents’ source tools and their consent prompts, and switching an agent permission to anything but Off.

  • Secrets are not written to configuration files or to the app’s log. A secret entered in a terminal prompt (password, passphrase) is read by the backend; the question to save it is asked in the same terminal (Save password in Keychain? [y/N]).
  • Stored secrets are not sent back to the UI: Settings shows only whether an API key or source token is saved.
  • External tools get passwords KryoDesk stores on standard input (-pass stdin), never in arguments or environment variables. brew install does get HOMEBREW_* variables of your environment (for example HOMEBREW_GITHUB_API_TOKEN).
  • The assistant’s API key is sent only to the origin (scheme, host, port) it was saved for; a key saved before the origin was recorded is bound to the first endpoint it is used with.
  • Conversation history (assistant-history/), crash reports (crashes/) and the MCP folder are created with mode 0700, their files 0600.

Off by default (mcp.json). Turning it on in Agents → Agent Security is the consent. Then Claude Code and Codex sessions started from the Agents window get a KryoDesk MCP server:

  • The agent’s CLI starts kryodesk mcp --launch <id>, a relay that talks to the app over the Unix socket <config>/mcp/mcp.sock (folder 0700, socket 0600). The app checks that the peer process runs as the same macOS user. The MCP server is available on macOS only for now.
  • Each agent tab is a launch with a random ticket (mcp/tickets/<id>, 0600, 32 random bytes), valid while the tab is open. Closing the tab, turning MCP off or quitting KryoDesk ends it.
  • The project folder, the agent and its session come from the launch, never from the model.
  • Tools: the journal (journal_report, journal_list, journal_update_status), project information and status, GitLab pipelines, job logs and issues, Sentry issues, Zabbix problems, YouTrack issues.
  • Source tools follow agent-permissions.json: Off / Ask / Allow per source and scope, Off by default, separate from the assistant’s Data Access. Ask (and Off) shows a prompt from Mr. Paperclip; Always there changes only the agents’ permissions. After Deny the same scope of the same tab is refused for 10 minutes without asking.
  • Limits per launch: 30 journal writes and 60 source calls per minute. While KryoDesk is locked no source is read; the journal tools and project_info still work.
  • Text from the model is untrusted: journal entries are length-limited, control characters made visible and secret-looking values masked before they are stored or shown.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close