[keys] Key pairs and API keys: custos-keys (Ed25519, ECDSA P-256, RSA), secret_key, api_key; threat model; v0.4.0
This commit is contained in:
@@ -14,6 +14,7 @@ just as plainly, what it does not.
|
||||
| Attacker | Has | Gets | Why |
|
||||
|:--|:--|:--|:--|
|
||||
| Thief or sync server | The `.custos` file (any number of old versions) | Item count and sizes roughly (the ciphertext length), the KDF parameters. Nothing else. | XChaCha20-Poly1305 over the whole body; titles, URLs and usernames are inside it too. |
|
||||
| Thief with one factor (v2) | The file plus the master password, or a copied key file, or a lost phone | Nothing | A version-2 vault opens only with two different factors (docs/FACTORS.md); one factor unwraps one factor key, never the vault key. |
|
||||
| Offline guesser | The file and a GPU farm | One Argon2id evaluation (64 MiB, 20 passes by default, ≈ 0.75 s on a desktop CPU) per guess | A 4-word memorable password with digits (~65 bits) is out of reach; a weak master password is not. **The master password is the whole defence here.** |
|
||||
| Tamperer | Write access to the file | Can destroy it, or roll it back to an older version they saw. Cannot change, reorder, add or remove items unnoticed. | The header is the body's AAD; each slot's parameters are its wrap's AAD. |
|
||||
| Share server operator | Every share blob, its id, size, expiry, view count, the uploader's login and the recipients' IP addresses | Nothing of the secret | The key is in the link's `#fragment`, which browsers never send; the server stores ciphertext only (docs/SHARE.md). |
|
||||
@@ -34,7 +35,11 @@ just as plainly, what it does not.
|
||||
desktop app), and by any clipboard manager that ignores the "exclude from history" marker.
|
||||
- **Auto-type** sends keystrokes to whatever window has focus. The app re-checks the target window before
|
||||
typing, but a window that steals focus at the wrong moment can receive them.
|
||||
- **Device unlock (Windows Hello).** The blob on disk is only as strong as the device key behind it: anyone
|
||||
- **A device factor (v2) on its own device.** The key file is bound to one Windows account by DPAPI; malware
|
||||
running as that account can use it. That is one factor, and a v2 vault never opens with one.
|
||||
- **The machine store** (the Claude Code store) opens with its device key alone, by design: anything running as
|
||||
the user can open it. It must hold only what that program generated, never the user's own secrets.
|
||||
- **Device unlock (Windows Hello, version 1 only).** The blob on disk is only as strong as the device key behind it: anyone
|
||||
who can make Windows Hello sign as you on that machine (your PIN, your face, or malware running while
|
||||
you approve a prompt) can unlock the vault there. It does not help an attacker who has only the vault file.
|
||||
- **Rollback.** Someone with write access to the synced file can replace it with an older version.
|
||||
|
||||
Reference in New Issue
Block a user