Security

KeyValet's security model in plain terms: what it protects, the trust boundary, what it guarantees — and the full list of what it does not protect against.

This page is a readable digest of SECURITY.md, which remains the authoritative document. A credential tool that runs code as root should be precise about its limits — so the "does not protect" list below is complete, not a summary of the flattering half.

What's protected

Protection status

Installation and keyvalet status --summary show the configured key protection scheme, hardware evidence and current TPM detection. credential_status can query the same public metadata while locked, without authentication or secret access. Secure Enclave is not a TPM; missing Hello attestation and unverified Linux TPM implementations are explicitly unknown. Linux polkit approval alone is not a TPM PIN or boot-state policy. See the macOS / Windows / Linux protection matrix.

The trust boundary

The AI agent or MCP client is semi-trusted: it may be prompt-injected, may speak MCP to the KeyValet server, and may run arbitrary commands as your user. The KeyValet MCP server is a convenience layer — security checks never rely on it alone. Every enforcement decision is made by the privileged helper — the root dev.keyvalet.helper launchd daemon on macOS, the keyvalet systemd service user on Linux, the LocalSystem service on Windows — which holds no vault key while idle. Touch ID and Secure Enclave work happens in the per-user agent dev.keyvalet.agent, which the daemon only accepts after verifying its peer uid and its code signature (dev.keyvalet.touchid, team PWCRJPY7YC, exact installed path) — so a same-user process can't impersonate it and approve prompts for you.

What KeyValet guarantees

Assuming macOS and the installed files are not compromised:

  1. No secret without the device owner. The vault (/var/db/keyvalet, root-only, AES-256-GCM) requires Touch ID or login-password authentication before serving anything.
  2. You set the cadence, and only you can loosen it. Grant modes — per-use, per-credential (default), per-session, remember — live in root-only settings; loosening requires your Touch ID, so an agent can't do it by itself.
  3. Long-term protocol secrets never leave the root helper. Agents get derived, short-lived material or proxied responses.
  4. Proxy-only credentials are never revealed through reads, tokens, error messages, or (best effort) proxied responses.
  5. Secrets go only where you allowed. HTTPS on port 443 to an exact/wildcard domain allowlist — no IPs, no localhost, no redirects.
  6. The local gateway is token-gated and loopback-only. Every route needs a random token bound to one credential and the current session; reusable gateways don't exist in per-use mode.
  7. Exposure can only grow with your consent, enforced in the helper. Adding hosts, loosening rules, overwriting or deleting each need a confirmation dialog from the root process. Bypassing the MCP server doesn't bypass them.
  8. Secrets you type don't pass through the agent — they go into native dialogs or are imported from files you confirm.
  9. Every use is recorded. Unlocks, grants, reads, token fetches, proxied calls and config changes go to a root-only audit log; secret values are never logged.
  10. The helper builds the authorization prompt and binding itself from the complete operation — client-provided hints can't substitute for it. Per-use prompts show the real request: method, host, path, query, agent headers, and for known APIs a body line built from a fixed whitelist of business fields, never arbitrary body content. In per-use mode one approval runs exactly that operation once.
  11. Session-bound. When the agent session ends, the grant ends.
  12. Secure Enclave is required on macOS. The vault key is derived per session from a Secure Enclave P-256 key mixed with a root-only device-binding secret, so a copied vault file plus one approved prompt isn't enough; an Argon2id recovery passphrase is the offline path.

What KeyValet does NOT protect against

Release integrity

Published macOS and Linux release archives are built by GitHub Actions from the tagged commit. macOS workflow packages use the Simvito Limited Developer ID (team PWCRJPY7YC, hardened runtime, timestamped) and Apple notarization; the macOS installer verifies the publisher signature before enabling daemon mode. Linux archives have published SHA256 checksums. Windows release packages are unsigned. Local and remote features authenticate the actual service/owner SID, fixed installed file identity, privileged ownership/ACLs and service-created workers without requiring Authenticode. See downloads and the Code signing policy for each artifact's status. Checksums verify integrity, not publisher authenticity. The build-from-source path has no publisher signature on downloaded source; audit it if that matters to you.

Reporting a vulnerability

Please do not open a public issue. Use GitHub's private vulnerability reporting (Security tab → "Report a vulnerability") with steps to reproduce and the affected version. Reports are acknowledged within a few days.

The full, authoritative model — including design notes and the exact cryptographic construction — is in SECURITY.md.