Risks
Source: .usm/system.usm → risks
| ID | Title | Severity | Status | Description | Mitigation |
|---|---|---|---|---|---|
| rooted-os | Rooted OS or compromised local agent process | high | identified | A fully compromised host can attempt to observe or interfere with the sidecar's resolution path. | Process isolation in the MVP; secure element, TEE, or TPM binding in Phase 1. Plaintext remains transient and zeroised. |
| stolen-token | Stolen or replayed capability token | medium | identified | A token copied out of a prompt, memory, or log could be replayed by an attacker within its lifetime. | Short TTL, audience binding, scope least-privilege, jti denylist revocation, and optional mTLS device identity. |
| provider-kms-exposure | Multi-tenant AI-cloud KMS used as the root | high | mitigated | Using a provider KMS that the model provider itself can access would re-introduce model-side exposure of the root of trust. | Do not use multi-tenant AI-cloud KMS as root. Self-hosted key store, then HSM or secure element. |
| quantum-harvest-now | Harvest-now-decrypt-later against long-lived ciphertext | medium | accepted | Folders may be copied and stored indefinitely, so classical-only key wrapping is exposed to future quantum capability. | Explicitly not an MVP concern. Hybrid KEM and ratchet in Phase 2. |
| human-pastes-plaintext | A human pastes plaintext into a chat | high | accepted | No architecture can prevent a person from pasting a secret into a model conversation. | Out of scope even in later phases. The product exists to make this unnecessary, not to detect it. |
| output-relay-leak | A prompt-injected agent reads the secret back out of relayed command output | high | mitigated | resolve_for_tool runs a model-chosen command and relays its output to the model. A command such as printenv, env, or cat on the injected file would echo the value straight back into model context, and encodings (base64, hex) or partial echoes would evade a naive check. | The sidecar redacts the resolved value — and substrings of 8+ characters — from any output it relays, in raw, base64, base64url, hex, percent-encoded, and JSON-escaped form, including split-across-chunk matches; output is size-capped by default; MCP-initiated resolves require a command allowlist and CLI/SDK resolves fall back to a documented backstop denylist. See safekeys/output-control. |
| network-exfil-allowed-command | An allowed command exfiltrates the secret over the network or via a written file | medium | accepted | Redaction covers only the sidecar's relay channel. A command the policy allows can send the value to a remote host under its own protocols, or write it to a file the agent can later read; neither passes back through the relay. | Command allowlists bind high-value tokens to exact executables and argument patterns. The residual risk is stated in the README's Security guarantees and limits section rather than claimed away. |
| dev-kek-agent-readable | The development KEK is readable by the same user the coding agent runs as | high | mitigated | The default dev flow stored the KEK in a 0600 file under .dev/, owned by the OS user any coding agent runs as, so an agent with file access could read the key that decrypts every local folder. | The default dev flow keeps the KEK in the macOS Keychain with an ACL restricted to the sidecar binary, or in the containerised OpenBao dev instance on Linux; a plaintext file survives only behind SAFEKEYS_ALLOW_INSECURE_KEYSTORE=1 with a permission check and a loud warning. A separate-user local mode mirrors the deployment isolation. See safekeys/dev-key-custody. |