Repository navigation
fix(onboarding): continuing without any unlock factor needs an explicit confirmation - #46
Merged
Merged
Conversation
…it confirmation Without a factor the identity entropy lies in the system keychain and BitDM opens without asking: anyone who can use the device, or copies the profile folder together with the keychain, can read every message and take over the identity. "Skip for now", "Continue", the Enter key and the back gesture all went past this silently, while the text said a factor was needed "before the app unlocks" (security assessment 2026-11-23, SEC-H1). - All four ways off the secure screen now ask "Continue without protection?" and explain the consequence when no factor is set up. - secureSub and the settings line "At least one factor stays required" no longer promise protection that does not exist (the last factor can be removed). - Existing UI tests confirm the new dialog. Making a factor mandatory is left as a separate decision. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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.


Addresses SEC-H1 from the external security assessment of 16–23 Nov 2026: "Without an app password, the full identity and all messages can be reconstructed from the profile folder + keyring. Onboarding allows skipping the password even though the UI states it is required."
Confirmed
DeviceSecretStorekeeps the 16-byte identity entropy (equivalent to the twelve words) in flutter_secure_storage, which on Linux is a plain libsecret item. The database key is derived from it on every open, so keyring entry plusbitdm.dbis everything (vault_store.dart: no slots →basis.read()).Fix
_weiterNachSchutz: with no factor set up, a dialog "Continue without protection?" explains that the keys lie in this device's keychain, that BitDM opens without asking, and that anyone who can use the device, or copies its files with the keychain, can read every message and use the identity. Back stays on the screen; Continue without goes on.secureSubandminOne(EN/DE) now say what is true.Making a factor mandatory is a product decision and is not part of this PR.
Tests
test/oberflaeche/ohne_schutz_test.dart: "Skip for now" without a factor asks first, Back stays, "Continue" asks too and goes on after confirming; the back gesture asks; the texts no longer promise protection that does not exist. All three fail atorigin/main, and pass on this branch.Run in CT 107:
flutter analyzeshows only the 29 existing hints;test/oberflaeche,test/nah,test/lock: 537 green.🤖 Generated with Claude Code