-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add password input delay to slow down brute force attacks #749
Conversation
ideally brute force protections should be at the logical layer. Perhaps increase number of derivation iterations based on phone specs ? |
Yeah, we could do that but for now, we're leaving the number of derivation iterations to dcrwallet's default as it's not currently possible to change the number outside dcrwallet and we're currently investigating how the current derivation iterations could be increasing the app's CPU/memory usage. |
Decred Wallet/Features/Custom Dialogs/SimpleTextInputDialog.swift
Outdated
Show resolved
Hide resolved
Decred Wallet/Features/Security/SecurityCodeRequestBaseViewController.swift
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -50,6 +50,9 @@ class SecurityCodeRequestBaseViewController: UIViewController { | |||
func hideError() { | |||
self.isInErrorState = false | |||
} | |||
|
|||
func showPassphraseError(text: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@C-ollins nothing seems to be done inside this function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function is implemented in subclasses.
https://github.com/planetdecred/dcrios/pull/749/files#diff-a03f6b93d054b97dd40df7affd98091d143090b230b94b6f916541ab3801683bR224
This pr adds a 5 seconds delay after every even password trial and 2 seconds delay for otherwise in an attempt to slow down a brute force attack.
Closes #740
![](https://user-images.githubusercontent.com/19960200/117936600-f5300600-b2fc-11eb-935a-3c515d2b86e7.gif)
(Password & keyboard are censored but the delay is visible)