Skip to content

Integrity of local data at rest against modification without the database key #1720

Backlog
1 of 3 issues completed
Backlog

Description

@smart-ssh-planner

Goal

Files in the data directory that steer security behaviour cannot be planted or changed by a party that can write to that directory but does not have the database key or the master password, or such a change is refused or made visible instead of being taken over silently.

Scope

In scope:

  • who may provide the data directory (pointer file and directory ownership),
  • the silent take-over of a plaintext database and of an MCP token from the settings file,
  • the plaintext security settings in settings.json and the trusted host keys in host_keys.json.

Out of scope: malware running as the user while the app is unlocked (THREAT-MODEL.md section 3 keeps this out of scope), the default data directory location, the encryption scheme of the database itself.

Shared decisions

  • No silent fallback anywhere: a failed check stops the start or refuses the value; it never falls back to the default directory, to "no known hosts" or to weaker settings.
  • Every part updates THREAT-MODEL.md section 3 (table "Where data lives" and the sentence on what encryption at rest protects against) and, where it changes, section 6 "Plaintext outside the database". The parts run one after another (blocked-by chain) because they all edit this section.
  • Start-up refusals reuse the existing start-up error/dialog infrastructure (crates/app-shell/src/startup_dialog.rs); no new window type.

Sub-issues

Order: #1717 → #1718 → #1719 (blocked-by chain, shared files).

Sub-issues

Sub-issues

1 of 3 Issues completed
Loading 3 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicsecurity

    Type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions