Repository navigation
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 intoNov 22, 2026
Conversation
…ntent (#1486) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
3 tasks
3 tasks
There was a problem hiding this comment.
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.mdand ADR 0160 only, both read in full) (read:git diff origin/develop...HEAD) - AC1
THREAT-MODEL.mdnames 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-encryptedsmart-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:rgover 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
Bot
deleted the
issue-1486-threat-model-note-that-file-hashes-in
branch
November 22, 2026 04:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
npm run check-doc-pathspasses: 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