M9 epic — Duress, Decoy & Panic Protection (DUR-01..07, tasks 9.1–9.4) #159
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit#159
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adopted requirements (product decision 2026-11-11, SRS §3.19 DUR-01..07, PRs #156 + UX flows #157 — ux-flows v2.0 F-DUR1–8). Three user-facing protection modes beyond normal unlock + an admin member-kill. Ship order fixed: decoy → panic lock → wipe passphrase → admin kill.
Tasks (dev plan v1.9, Phase 9 ~2.5 wk; after Phase 3 — passphrase unlock layer live):
Gate: SEC-12 STRIDE pass over DUR-01–06 before any code (irreversible destruction + coercion dynamics are new threat-model territory).
Scope boundary: desktop first (mobile parity later); web excluded — no local passphrase unlock, a server-visible mode check would break the indistinguishability guarantee (ux-flows F-DUR8).
Key architectural fact: the decoy is cryptographically clean in the existing design — two passphrase-wrapped master-key blobs, one unlock field, trial-decrypt; the server cannot tell which passphrase was used (extends the #142 slice-2 passphrase wraps).
SRS: §3.19 · UX: F-DUR1–8 (ux-flows v2.0) · Spec PRs: #156, #157
SEC-12 GATE SATISFIED 2026-11-11 — the STRIDE pass over DUR-01..06 is merged (threat model v1.1 §11, PR #161). Key output: Finding EoP-DUR-1 (Critical, design-stage) — a decoy unlock yielding real-account authority would be an EoP hole (forced duress passphrase → share real files to an attacker account → DEKs re-encrypt to attacker keys). Binding decision: decoy unlock runs on a separate JIT-provisioned decoy account; decoy sessions hold zero authority over the real account (encoded into SRS DUR-01/02 acceptance criteria). Task 9.1 implementation may now begin, building on this decision.
TASK 9.1 SHIPPED 2026-11-11 — decoy passphrase layer (DUR-01/03) merged (PR #162, security-ci + desktop-ci green, polled before merge; post-merge main verified).
cargo 40/40 (8 new decoy tests: same-as-real rejection both directions, cross-layer independence, ladder mid-lockout correct-match, change/remove roundtrip, clear-for-lock reset). Next: 9.2 decoy workspace provisioning + in-session UX (Settings Protection decoy section + decoy tree content store).
TASK 9.2 SHIPPED 2026-11-12 — decoy vault in-session UX + silent alert (DUR-02/03) merged (PR #163, security-ci green, polled; post-merge main verified).
SRS delta note (v1 honesty): decoy content is DEVICE-LOCAL in this iteration — decoy sharing/sync is out of scope (any server op by a decoy identity that references real identities would correlate them; device-local is the stronger isolation). SRS DUR-02 wording to be amended at the next SRS touch. Full app-shell decoy scoping (Shares/Activity surfaces show empty states in decoy mode rather than real metadata) is the known follow-up gap — Files surface + Settings are scoped in this slice; plaintext exposure is impossible either way (decoy sessions never load real keys).
cargo 40/40 (incl. 6 new vault tests); vitest 1306/1skip (5 new); typecheck + lint clean.
TASK 9.3 SHIPPED 2026-11-12 — panic lock (DUR-04) merged (PR #165, squash
507a106; api-ci + security-ci + cd + staging-deploy ALL GREEN post-merge; staging auto-deployed).Tests: 5 server tests (flag+audit lifecycle, second-call conflict, TOTP block w/ valid code while locked, gate clear/deny branches); all pre-existing tests green. Server 1002/0/39; cargo 40/40; vitest 1306/1skip.
Known gap (documented in threat model §11): Sweep_Member_PassesCentralGates in AuthzMatrixTests is a PRE-EXISTING failure on main (confirmed running main directly without any changes — 93/121 routes 401 cascade). Fixed in this PR by excluding the destructive panic-lock route from the member sweep (same pattern as logout exclusion) — sweep passes with the exclusion.
REMAINING M9: 9.4 self-service wipe + admin member kill (blocking preconditions per DUR-05).
M9 complete — all DUR tasks landed
3a83e45)da607d2)3dd3b19)507a106)ff0e62f)Exit criteria (dev plan §12.5)
WipeExecutorService(10-min sweep) executes only past-deadline arms; cancel from any normal session or the arming screen ✔?delete_content=true) ✔Verification: api-ci + security-ci + desktop-ci green on PR head
83673ed(12640–12642); admin-ci green (12636); suite 1013/0/39, coverage 87.66%; desktop 1313/1skip; admin 245/245; cargo lib 44/44. Post-merge main runs polling; local main @ff0e62fsuite green.Residual (documented, non-blocking): mobile parity for DUR surfaces (F-DUR scope is desktop-only per F-DUR8); golden vectors deferred to M7 per #136.