bug: Enrollment database stored unencrypted on disk #26
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
elegos/linux-hello#26
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
crates/linux-hello-daemon/src/db.rs:18opens the SQLite enrollment DB in plaintext. The code is marked// TODO(EPIC-02-integration)— the AES-256-GCM encryption with a TPM-sealed key was designed in EPIC-02 but never wired into the daemon.Impact
The security guarantee of ARCHITECTURE.md §8 ("DB encrypted with TPM-sealed key; useless without the specific machine") is not met. Biometric templates and PIN hashes are readable by any process with filesystem access.
Fix
Wire in
linux-hello-tpm::EnrollmentDb::open(which does unseal + AES-GCM decrypt) in place of the current plaintextrusqlite::Connection::opencall indb.rs.