Skip to content

docs(threat-model): note file hashes in the activity record are guessable for low-entropy content - #1491

Merged
smart-ssh-coordinator[bot] merged 1 commit into
developfrom
issue-1486-threat-model-note-that-file-hashes-in
Nov 22, 2026
Merged

smart-ssh-coordinator[bot] merged 1 commit into
developfrom
issue-1486-threat-model-note-that-file-hashes-in

Conversation

@smart-ssh-coder

Copy link
Copy Markdown
Contributor

Closes #1486

Summary

Documentation only. THREAT-MODEL.md now states next to "never the file content" that SHA-256 hashes of very short or low-entropy content can be brute-forced; the protection is the encrypted database. ADR 0160 gets a decision row to keep the hashes and why.

Acceptance Criteria

  • THREAT-MODEL.md names the brute-force limitation: met (file-access bullet)
  • ADR 0160 records the decision to keep the hashes: met (new row "Keep the hashes?")
  • npm run check-doc-paths passes: met (run locally, "Doc paths ok.")

Tests

Docs only; no code tests.

Assumptions

None.

Spec: none (documentation only)
Threat model: updated (this PR)

Manual test steps

None.

Follow-ups

None.

🤖 Generated with Claude Code

…ntent (#1486)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@smart-ssh-reviewer smart-ssh-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

Verdict: approved
Review level: elevated (issue label security; documentation only, no security-critical code path touched)

Blocking

None.

Non-blocking

None.

Verified

  • files read: 0/0 logic files (diff is THREAT-MODEL.md and ADR 0160 only, both read in full) (read: git diff origin/develop...HEAD)
  • AC1 THREAT-MODEL.md names the brute-force limitation right after "never the file content or a diff" in the file-access bullet → met (read: THREAT-MODEL.md:229-235)
  • AC2 ADR 0160 records the decision to keep the hashes and why (new row "Keep the hashes?") → met (read: docs/adr/0160-activity-record-file-reads-and-writes.md:21)
  • AC3 check-doc-paths → "Doc paths ok." (executed: node scripts/check-doc-paths.mjs)
  • claim accuracy: the hashes are plain, unsalted SHA-256 over the content (read: crates/app-logic/src/orchestration/remote_files.rs:33, sha256_hex), so "can be recovered by brute force" is accurate. The ledger is stored in the SQLCipher-encrypted smart-ssh.db (read: THREAT-MODEL.md:253), so "the protection is the encrypted database" holds. No code path exports the ledger hashes outside the database (executed: rg over crates/core/src/audit and the threat model)
  • counter-proof: not applicable, because no code or test changed
  • edge cases: not applicable (documentation only)
  • callers checked: not applicable (no code changed)
  • tests run locally: none apart from the doc-path check, because the PR changes only documentation
  • UI: not a UI change
  • data: not touched
  • CI: all checks green, including threat-model-note (executed: gh pr checks 1491)

Timing analysis

  • no test files changed

Spec

  • visible behaviour changed: none
  • spec searched (rg -il 'activity record|ledger|Aktivität' docs/specs/), spec covering the area: 0057 (rich session model); the stored values it describes do not change
  • verdict: not needed, because no product behaviour changes. The PR only documents an existing limitation in the threat model and an ADR.

Security checks

  • Loosening: none. The threat-model statement gets more precise and claims less, and no check or code changed.
  • Invariants (filter bypass, redaction, AutoExec/Confirm, credentials, fail-open): not touched by the diff.
  • Public boundary: title, body and commit message are in English; no internals or names.
  • Neighbours #1492 and #1484 also edit THREAT-MODEL.md, but in other sections as far as this hunk goes. A textual merge conflict is possible but not a content conflict.

Manual checks pending

None.

Follow-ups

None.

@smart-ssh-coordinator
smart-ssh-coordinator Bot merged commit a7a261b into develop Nov 22, 2026
10 checks passed
@smart-ssh-coordinator
smart-ssh-coordinator Bot deleted the issue-1486-threat-model-note-that-file-hashes-in branch November 22, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Threat model: note that file hashes in the activity record are guessable for low-entropy content

0 participants