Brute Force Attack
A brute force attack systematically tries every possible combination to guess a private key or password. In cryptocurrency, it targets wallets but fails against strong keys due to immense computational demands.
What Is a Brute Force Attack?
A brute force attack tries every possible value of a secret until one works. It needs no cleverness; whether it succeeds depends only on how many possibilities there are and how fast the attacker can test them.
Against properly generated keys it is hopeless. A Bitcoin private key is a 256-bit number, which gives 2 to the power of 256 possible values, far beyond any realistic computing power. The same is true of a randomly generated recovery phrase.
Brute force works against secrets that are short or chosen by people. A four-digit PIN has only 10,000 combinations. Hardware wallets therefore limit guessing in the device itself, with growing delays between attempts or by wiping the device after a small number of wrong PINs. A short PIN is safe only because of this limit, and the limit is only as strong as the chip that enforces it.
No such limit exists for anything that can be attacked offline. If someone has obtained the recovery phrase, a short or common passphrase can be guessed at computer speed. The same applies to keys derived from a memorable sentence, to encrypted backups with weak passwords and to exchange accounts with weak passwords. A passphrase should therefore be long and random.
Real-World Examples
Example 1: A thief steals a hardware wallet and starts guessing the PIN. After the permitted number of wrong attempts the device erases itself, and the owner restores the wallet on a new device from the recovery phrase.
Example 2: An attacker photographs a recovery phrase. The owner had added a passphrase, but it is the name of their dog; a dictionary search finds it quickly and the is emptied.
Example 3: Someone derives a key from the phrase letmein instead of using random data. Attackers try common phrases first, and the coins are gone soon after the first deposit.
Frequently Asked Questions
Is a four-digit PIN on a hardware wallet enough?
Only because the device limits guessing. A four-digit PIN has just 10,000 combinations, so hardware wallets add growing delays between attempts or wipe themselves after a small number of wrong PINs. The limit is only as strong as the chip that enforces it, and after a wipe the wallet is restored from the recovery phrase.
Can someone brute-force my passphrase?
Yes, if they have the recovery phrase. Then nothing limits the attempts, and a short or common passphrase can be guessed at computer speed, for example with a dictionary search. A passphrase should therefore be long and random, not a name or a word that is easy to guess.
Can a Bitcoin private key be brute-forced?
Not if it was generated properly. A Bitcoin private key is a 256-bit number with 2 to the power of 256 possible values, far beyond any realistic computing power, and the same holds for a randomly generated recovery phrase. Keys derived from a memorable sentence are different: attackers try common phrases first.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.