Attacker hijacks 1.9 EH/s of Bitcoin hashrate via forged BGP routes

Key points

  • Over 1,000 mining sites, up to 1.9 EH/s, were hijacked on November 20
  • A forged 256-address BGP block containing the pool's IP redirected miner traffic
  • On November 23, most large pools still offered only plain-text Stratum V1
Share

An attacker redirected more than 1,000 mining sites, up to 1.9 EH/s, to an impostor pool on November 20 by forging internet routes. Braiins published its incident analysis and warns that the attack works against any miner on unencrypted Stratum V1, on any pool.

What happened

Every affected miner received a TCP reset on its pool connection in the same second, then reconnected within a second to the same hostname and the same IP address. DNS was never touched, so this was not DNS spoofing.

A different server answered instead of the legitimate one. From Brazil, the fake server replied to the Stratum handshake in about 30 ms, versus about 280 ms for the real pool, and it accepted any username and password.

The server sent real Bitcoin mining jobs and raised share difficulty step by step, up to 2,147,483,640 in one log. Miners hashed at full power and reported the pool as alive, while the pool dashboard showed zero hashrate.

Three waves in November

Dates

Region

Episodes

Size per episode

Length

November 7-12

Latin America, mostly Brazil and Argentina

19

120-400 sites, 36-174 PH/s

1.5 minutes - 3 hours

November 16

Brazil

1 (full packet capture)

3 miners

3 minutes

November 20

Mostly Europe

4

1,050-1,600 sites, 0.6-1.9 EH/s

6-49 minutes

The November 16 capture shows the fake server handing out ordinary jobs from a different large public pool, with that pool's tag and payout addresses in the coinbase. The attacker runs a proxy with a worker account at that pool and submits the hijacked miners' shares under its own account.

How the routes were hijacked

The pool's Stratum addresses sit inside a 4,096-address block announced by the pool's network provider. On November 20, someone announced a smaller 256-address block via BGP that included the pool's address.

The smaller block is more specific, so every network that accepted the announcement sent miner traffic to the attacker. The forged route appeared four times that day, and the provider blocked the network that propagated it that evening.

  • Networks that validate routes with RPKI rejected the announcement, but many networks do not validate
  • The forged announcement listed the real owner as origin, so origin-based hijack monitors raised no alarm
  • Stratum V1 has sent everything in plain text since 2012, and miners cannot verify the pool's identity
  • Affected miners ran at least 12 firmware types across hundreds of networks

Public routing data shows the same kind of announcement for several address blocks hosting Stratum endpoints of other large pools. Some were still receiving forged announcements on November 22.

Most large pools remain exposed

When Braiins checked the public endpoints of the largest pools on November 23, most offered only plain-text Stratum V1. Only a few served Stratum over TLS with a valid certificate.

The weakness is not new: in 2014, Dell SecureWorks documented an attacker using the same routing trick to take about $83,000 in mining rewards. The November episodes grew from under 175 PH/s to 1.9 EH/s in two weeks, and the attacker changed methods between the two waves.

What you can do if you mine

  • No pool entry on your miner should start with stratum+tcp://, including backups
  • Stratum V2: the miner drops servers that cannot prove they hold the pool's private key
  • Stratum V1 over TLS (stratum+ssl://), only on firmware that verifies the pool certificate
  • Braiins SV2 Proxy, a free program run inside your own network, for miners with no TLS or Stratum V2

Braiins OS 26.11, released on November 26, adds TLS with certificate and hostname verification and blocks fallbacks to plain Stratum. Of seven firmware implementations tested in the lab, two with a TLS option still accepted invalid certificates, and others have no TLS for third-party pools at all.

Braiins Pool never sets share difficulty above 16,777,216. If your logs show values in the hundreds of millions after a connection reset, your miner was not talking to the pool.

Share article