Skip to content
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

Merged
merged 3 commits into from
May 17, 2021

Conversation

beansgum
Copy link
Contributor

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
(Password & keyboard are censored but the delay is visible)

@degeri
Copy link

degeri commented May 12, 2021

ideally brute force protections should be at the logical layer. Perhaps increase number of derivation iterations based on phone specs ?

@beansgum
Copy link
Contributor Author

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.

Copy link
Contributor

@dreacot dreacot left a 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) {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@macsleven macsleven merged commit 1992b6d into planetdecred:master May 17, 2021
@beansgum beansgum deleted the password_delay branch May 17, 2021 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Password input delay to resist brute force attacks
5 participants