You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Threat model: note that file hashes in the activity record are guessable for low-entropy content #1486
The threat model states honestly that the SHA-256 hashes the activity record keeps for AI file reads and writes can be brute-forced for very short or low-entropy content.
Context
Follow-up of #1446 (PR #1483): file_read and file_written entries store SHA-256 of the content (before/after), never the content. THREAT-MODEL.md:230 says "never the file content or a diff", but a hash of a PIN file or a single-token line can be recovered by brute force. Inside the encrypted database this is acceptable; the document should say it.
Requirements
Add a short statement to the file-access bullet in THREAT-MODEL.md (around line 230): hashes of short or low-entropy content are guessable; the protection is the encrypted store, not the hash.
Decide and document in ADR 0160 whether such hashes stay (recommended: yes, they are needed to prove what changed).
Acceptance Criteria
THREAT-MODEL.md names the brute-force limitation next to the "never the file content" claim.
ADR 0160 records the decision to keep the hashes and why.
Implementation ready for review. PR #1491. Docs only: THREAT-MODEL.md now notes that SHA-256 hashes of low-entropy content are guessable (protection is the encrypted DB); ADR 0160 records the decision to keep the hashes. check-doc-paths ok, CI green.
Review passed – moving on to merge. Documentation-only PR meets all three acceptance criteria. THREAT-MODEL.md now states the brute-force limitation of unsalted SHA-256 for low-entropy content, right next to the 'never the file content' claim. ADR 0160 records the decision to keep the hashes and the reason. check-doc-paths passes and CI is green. The claims match the code (plain sha256_hex, ledger stored in the SQLCipher database).
Activity
docs(threat-model): note file hashes are guessable for low-entropy co…
smart-ssh-coder commentedon Nov 22, 2026
Implementation ready for review. PR #1491. Docs only: THREAT-MODEL.md now notes that SHA-256 hashes of low-entropy content are guessable (protection is the encrypted DB); ADR 0160 records the decision to keep the hashes. check-doc-paths ok, CI green.
smart-ssh-reviewer commentedon Nov 22, 2026
Review passed – moving on to merge. Documentation-only PR meets all three acceptance criteria. THREAT-MODEL.md now states the brute-force limitation of unsalted SHA-256 for low-entropy content, right next to the 'never the file content' claim. ADR 0160 records the decision to keep the hashes and the reason. check-doc-paths passes and CI is green. The claims match the code (plain sha256_hex, ledger stored in the SQLCipher database).
docs(threat-model): note file hashes are guessable for low-entropy co…
smart-ssh-coordinator commentedon Nov 22, 2026
Merged and branch deleted: PR #1491 (squash) in develop