Blockchain 51 Percent Attack

A 51 percent attack happens when one party controls most of a network's mining power or staked coins. The attacker gains enough influence to rewrite recent history. Small networks face the greatest danger, and large networks make the attack extremely costly.

Why Majority Power Matters

Blockchains follow the longest valid chain. Honest participants build one chain, and the majority decides which chain becomes the longest. A group with more than half of the total power can build a longer chain than everyone else combined. The rest of the network then accepts that chain as the truth.

A Voting Room Comparison

Picture a room where every decision follows the majority vote. If one person secretly controls 51 of 100 votes, that person decides every outcome. The room still follows its rules. The rules just serve one controller.

How the Attack Works

Honest chain:    Block 100 → 101 → 102 → 103
                    \
Attacker's       Block 100 → 101' → 102' → 103' → 104'
secret chain:       (built in private, then released)

The secret chain grows longer, so the network switches to it.

Double Spending Step by Step

  1. The attacker sends 100 coins to an exchange or shop and receives goods or another asset.
  2. The attacker secretly builds a parallel chain where that payment never happened.
  3. The attacker releases the longer secret chain.
  4. The network drops the honest chain, and the original payment disappears.
  5. The attacker keeps the goods and the coins.

What an Attacker Cannot Do

ActionPossible?
Reverse recent transactions and double spendYes
Block new transactions from confirmingYes
Steal coins from another person's walletNo, signatures still protect them
Create coins out of nothingNo, nodes reject invalid blocks
Change protocol rules aloneNo, nodes enforce the rules
Rewrite very old blocksPractically no, the cost grows with depth

Cost and Difficulty

The attacker needs enormous resources. On a proof of work chain, the attacker needs mining hardware and electricity that exceed the rest of the network. Renting hash power from marketplaces can lower the barrier for small chains. On a proof of stake chain, the attacker needs to buy and lock a huge share of coins, and the network can destroy part of that stake as punishment.

Real Cases

Smaller networks have suffered such attacks. Bitcoin Gold experienced attacks in 2018 and 2020. Ethereum Classic faced reorganizations in 2019 and 2020. Bitcoin and Ethereum have never suffered a successful attack of this kind because of their scale.

How Networks Defend Themselves

  • Large and diverse mining or validator communities.
  • Higher confirmation requirements for large payments.
  • Monitoring tools that detect deep chain reorganizations.
  • Penalties in proof of stake systems that burn the stake of dishonest validators.
  • Changes to the mining algorithm after an attack.

What Users Can Do

Wait for more confirmations before accepting large payments on smaller chains. Prefer exchanges and merchants that raise confirmation limits for risky networks. Check how much total power secures a chain before you trust it with significant value.

Key Takeaways

A 51 percent attack gives a majority holder control over transaction order and recent history. The attacker cannot steal from wallets or change the rules. Size, diversity, and smart design protect networks. Small chains carry the highest risk.