Security hardening: protocol, client, CLI, MCP, importers #15

Merged
backmeupplz merged 2 commits from audit into main 2026-11-27 19:03:49 +00:00
Owner

Fixes from a security review of the protocol, client, CLI, MCP server and importers. Every fix has a test; DESIGN.md and README.md describe the new behavior.

Breaking changes before the first release, with no users yet:

  • Signed bytes: messages are bound to their sender, and messages and the keyring are padded.
  • Rosters: a roster that gives an owner an expiry is now invalid.
  • CLI: --password asks for the password instead of taking it as an argument, and plaintext mcp needs an agent key.

Server-side hardening is in #12.

🤖 Generated with Claude Code

Fixes from a security review of the protocol, client, CLI, MCP server and importers. Every fix has a test; DESIGN.md and README.md describe the new behavior. Breaking changes before the first release, with no users yet: - **Signed bytes:** messages are bound to their sender, and messages and the keyring are padded. - **Rosters:** a roster that gives an owner an expiry is now invalid. - **CLI:** `--password` asks for the password instead of taking it as an argument, and `plaintext mcp` needs an agent key. Server-side hardening is in #12. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Security audit fixes: protocol, client, CLI, MCP, importers, dependencies
Some checks failed
CI / wasm (pull_request) Failing after 1m34s
CI / check (pull_request) Successful in 1m56s
1a0bacdbe9
Protocol (pre-release, so signed bytes change):
- Agents start out pinning their owner and accept only vaults their owner signed a roster version of.
- Vault::apply leaves the keyring untouched unless the whole response verifies; v0 signers must match pins.
- The keyring records the newest roster seen per vault; older ones are a rollback.
- Owners can't expire; a changed item must come with its blob; a re-seal isn't an edit.
- Messages bind sender and recipient in the AD and are padded, as is the keyring; items are shared as their current fields (#963).
- A valid invite proof replaces an unverified pin; trust_inviter pins nothing on a mismatch; verify_fingerprint re-pins after an in-person check; default_vault never falls back to a vault others can read.

Client and CLI:
- Output is safe for terminals (escapes shown, not run); downloads and inject -o are 0600 and replace symlinks; attachment names are base names everywhere.
- The unlocked session is tied to its terminal; lock and expiry end it on the server; plain http:// to remote servers is refused; no secrets in arguments (--password asks).
- MCP needs an agent key, hides keys, card numbers, PINs and notes, and scrubs encoded secrets; agent create checks first and shows the key at once.
- HTTP: no redirects, timeouts, truncated error text. Imports: 1PUX caps, no overflow, CSV stray quotes, Bitwarden custom fields.
- zip 9 and rusqlite 0.43 (RUSTSEC advisories).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sync keeps going past a vault that fails; invite conflicts are reported, not resolved by the proof; MCP search skips notes and secret fields; rebuild viewer wasm
All checks were successful
CI / check (pull_request) Successful in 1m40s
CI / wasm (pull_request) Successful in 1m44s
f81b93aa49
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
backmeupplz/plaintext!15
No description provided.