spesmilo / spesmilo/electrum

[Security Suggestion] Increase PBKDF2-HMAC Iterations for Stronger Key Derivation

Open
#9,742 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Description

Hi, while reviewing the code I noticed that the PBKDF2-HMAC implementation currently uses:

return to_hexstr(hashlib.pbkdf2_hmac('sha512', key, b'Digital Bitbox', iterations = 20480))

According to OWASP 2023 recommendations, the recommended minimum for PBKDF2-HMAC-SHA512 is 210,000 iterations.

This should significantly improve security and protect against brute-force attacks.
Would it be possible to update this in future releases?

Thank you!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the PBKDF2-HMAC-SHA512 call shown in the issue and inspect how its iteration value is used by the surrounding key-derivation code. Check nearby callers or tests for compatibility expectations, then verify that the updated iteration count is applied consistently and the relevant checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cryptography, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.