Repository navigation
fix(security): duress PIN review fixes, tests and privacy notes - #136
Merged
Merged
Conversation
…auto-lock - PRIVACY.md: what the duress PIN and the decoy vault keep on the device. - Duress PIN set-up and change killed at each step: the real vault always opens, the duress PIN works fully or not at all. - An unlock interrupted by an OS lock (lock request, keyguard, screen off, background) ends locked, for the real and the duress PIN. - A save, purge or backup step started in one vault and finishing after a switch never writes into the other. - 15 and 30 minute auto-lock across process death, the alarm and a device lock. Refs: #131
- The decoy vault keeps its own trash purge time, so unlocks of it with a clock set forward can no longer use up the real vault's allowance and empty its trash at once. - Deleting the decoy database is checked: turning the duress PIN off or setting a new one fails if a file stays, instead of reporting success and later opening a stale file. - In the decoy vault a refused PIN change runs the same KDF step as the real vault, so it is not answered instantly. - A screen that goes off and on while the PIN is still being checked counts as a lock request, so an insecure keyguard no longer lets that unlock through. - SECURITY.md: what an observer of the device can and cannot tell, the pin.strikes tell as it really lasts, and the fingerprint behaviour in the decoy vault as a known tell. Refs: #131
Coverage
|
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.
What
pin.strikestell as it really lasts, the fingerprint behaviour in the decoy vault as a known tell.Why
#131: the duress PIN shipped without its PRIVACY.md text, these tests or a recorded review.
Testing
Local:
:core:security,:core:database,:sharedhost tests,:app:testPlayDebugUnitTest, detekt, spotless, ABI checks. Each fix has a test that fails without it.Not verified: on a device; a really truncated first SQLCipher creation; screen-off after Android froze the process.
References
Closes #131.