MUST D6: Decoy session reaches real-account settings; shipped model diverges from threat-model §11.1 #173

Closed
opened 2026-11-12 06:30:53 +01:00 by amiryahaya · 1 comment
Owner

SettingsPage has no active_tree gate (only FilesPage does). Decoy session can arm the REAL account's wipe (arm_self_service_wipe = require_auth only) and change-unlock-passphrase re-wraps the in-memory key (master_key_service.rs:337) = decoy key overwriting real layer. decoy_add_file (commands/decoy_vault.rs:68) lacks tree guard despite docstring. Threat-model §11.1 promises separate decoy account + own tokens — not shipped. DECISION 2026-11-12: keep local-vault model, amend §11.1/§11.2, desktop-gate Settings by active_tree + add tree guard in DecoyVaultService.

SettingsPage has no active_tree gate (only FilesPage does). Decoy session can arm the REAL account's wipe (arm_self_service_wipe = require_auth only) and change-unlock-passphrase re-wraps the in-memory key (master_key_service.rs:337) = decoy key overwriting real layer. decoy_add_file (commands/decoy_vault.rs:68) lacks tree guard despite docstring. Threat-model §11.1 promises separate decoy account + own tokens — not shipped. DECISION 2026-11-12: keep local-vault model, amend §11.1/§11.2, desktop-gate Settings by active_tree + add tree guard in DecoyVaultService.
Author
Owner

Closed — all three halves landed

Per the recorded decision (amend docs + gate UI, not JIT decoy account):

  • UI gate: PR #189 (merged 2910b92) — SettingsPage fetches active_tree on mount; decoy sessions see device-level prefs + DecoyVaultSection only; account/linked-logins/devices/unlock-passphrase/wipe/recovery hidden. Tests assert the gate.
  • Tree guard (Rust): PR #190 (merged 4a8bb02) — decoy_add_file now rejects non-decoy trees at the command layer (the service docstring promise is enforced).
  • Docs: PR #191 (merged 6b70ffa) — threat-model §11.1/§11.2 amended to the shipped local-decoy model (client-boundary isolation, local-only vault, single-key-in-memory) with the honest residual delta vs the original JIT-account brief recorded; JIT account tracked as long-term closure.

Combined with the wipe-arm fix in #176/#177 (server) and the arm-failure retry panel (#179), the concrete damages enumerated in this issue (decoy-session wipe arm, unlock-layer rebind, wrong-key decoy encryption) are each closed at their own layer.

## Closed — all three halves landed Per the recorded decision (amend docs + gate UI, not JIT decoy account): - **UI gate**: PR #189 (merged 2910b92) — SettingsPage fetches active_tree on mount; decoy sessions see device-level prefs + DecoyVaultSection only; account/linked-logins/devices/unlock-passphrase/wipe/recovery hidden. Tests assert the gate. - **Tree guard (Rust)**: PR #190 (merged 4a8bb02) — `decoy_add_file` now rejects non-decoy trees at the command layer (the service docstring promise is enforced). - **Docs**: PR #191 (merged 6b70ffa) — threat-model §11.1/§11.2 amended to the shipped local-decoy model (client-boundary isolation, local-only vault, single-key-in-memory) with the honest residual delta vs the original JIT-account brief recorded; JIT account tracked as long-term closure. Combined with the wipe-arm fix in #176/#177 (server) and the arm-failure retry panel (#179), the concrete damages enumerated in this issue (decoy-session wipe arm, unlock-layer rebind, wrong-key decoy encryption) are each closed at their own layer.
Sign in to join this conversation.
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
primatekuntech/failsulit#173
No description provided.