{"id":"XE-13134","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":2432,"title":"Desk brief promises vault key rotation; no rotation mechanism exists","area":"other","claimed_tier":"minor","assessed_tier":null,"verdict":null,"duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":null,"status":"triaging","closed_reason":null,"github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T17:22:11.374414+00:00","updated_at":"2026-11-20T19:46:43.739341+00:00","source_created_at":null,"told_at":"2026-11-20T19:45:48.242283+00:00","status_changed_at":"2026-11-20T19:45:43.689246+00:00","url":"https://bounty.xe.network/XE-13134","body":"## Summary\r\n\r\n`docs/DESK_BRIEF.md` §13 promises that the vault key is rotated: \"Private ticket bodies and attachments encrypted at rest with PyNaCl SecretBox under a scoped key in the service keyfile, the keyfile itself unlocked from an env-injected secret, rotated; decrypted per request for scoped readers only.\" No rotation mechanism exists anywhere in the desk: zero `rotat*` matches in any `desk/` code, `desk/vault.py` uses a single `vault` key with no versioning or rekey path, `desk/signer.py` has no rotate function, the CLI offers only `keys init` / `keys show`, and the keyfile has no key-version field.\r\n\r\n## Impact\r\n\r\nMinor. Operators believe the vault key rotates; a compromised key cannot be rotated without losing every sealed body, because there is no re-encryption path — the only recovery is generating a new keyfile and losing access to all previously sealed private reports. Long-lived key exposure is unmitigated. The desk holds working exploits for a live network, so the vault key is one of its most sensitive secrets.\r\n\r\n## Why this is not a duplicate\r\n\r\nThe rotation tickets are all about other keys: XE-0988/XE-1002/XE-1705/XE-1761/XE-2373/XE-3007/XE-7979/XE-11805/XE-12095 cover DAO keyset, session, and lease-key rotation. The vault tickets XE-0202/XE-0426/XE-0791/XE-1044/XE-5824/XE-6395/XE-7407 cover sealing, read-logging, disclosure, and loss — not rotation. A live search for \"vault rotation\" returns 0 tickets.\r\n\r\n## Suggested fix\r\n\r\nCode-side preferred: key versioning in the keyfile plus a rekey procedure (decrypt sealed bodies under the old key, re-seal under the new one). Minimum: remove the \"rotated\" claim from DESK_BRIEF.md so operators are not misled.\r\n\r\n## Environment\r\n\r\nRepo `github.com/xeprotocol/desk`, HEAD ab9df7f.\r\n\r\n## Payout address\r\n\r\nXE address (also bound to this reporter account): a01c018553bc14456084cd784344d8e99a3b977b9ffc1646b9ec8e5a91a362e1","patch_refs":[],"thread":[{"id":15162,"source":"desk","source_ref":"reply:13053","author":"Joseph Denne","team":true,"body":"Thanks for the report. We have read it against the desk's code and the line of the brief you point to, and it describes the current state accurately. It is with the team for a decision.","created_at":"2026-11-20T19:45:48.234845+00:00"}]}