Attackers hijacked Bitcoin miners' work by forging internet routes and impersonating their pools, mining-technology company Braiins said in a security alert published Nov 25. In the largest episode, on Nov 20, up to 1.9 exahashes per second of mining power — from 1,050 to 1,600 mining sites, mostly in Europe — was diverted to the attacker's account. Neither the miners nor the pool were breached.

How the hijack worked

The weakness is Stratum V1, the protocol that connects mining machines to pools, introduced in 2012 and still used by the vast majority of the network's hashrate. It sends everything in plain text, and a miner has no way to verify that the party on the other end of the connection is who it says it is. The pool's Stratum endpoint sat inside a block of 4,096 addresses announced by its network provider. Someone announced a smaller block of 256 addresses inside that range — and on the internet, the more specific route wins, so every network that accepted the announcement started sending miner traffic to the attacker instead. The forged route even listed the legitimate owner as its origin, which is why origin-only BGP monitoring stayed silent. Each miner's connection got a TCP reset, the miner reconnected within a second to the same hostname and the same IP address, and a fake server answered the handshake. It accepted any username and password, handed out real mining jobs copied from a different large public pool, and submitted the resulting shares under the attacker's own account there. The giveaway, if anyone had been looking, was difficulty: the fake server ramped share difficulty in steps up to 536,870,912 — once to 2,147,483,640 — while Braiins Pool never goes above 16,777,216. In early November, miners started reporting share difficulty in the hundreds of millions; logs from three Antminer S19s in Brazil showed the same sequence on each one: the pool connection dropped, the miner reconnected, and the difficulty climbed in steps while the pool dashboard showed zero hashrate.

The scale

Braiins logged 24 episodes between Nov 7 and Nov 20. From Nov 7 to Nov 12 there were 19 episodes, mostly in Latin America — Brazil and Argentina — each hitting 120 to 400 miner sites at 36 to 174 PH/s for 1.5 minutes to 3 hours. On Nov 20 there were four episodes, mostly in Europe, each catching 1,050 to 1,600 sites at 600 to 1,900 PH/s for 6 to 49 minutes. In the company's words, the attacks "grew from under 175 PH/s to 1.9 EH/s in two weeks." Against a network hashrate of about 1,033 EH/s (Luxor's seven-day average in its Nov 23 roundup), 1.9 EH/s is about 0.18% of the network. The longest Nov 20 episode, at 49 minutes, prorates to roughly $1,900 — about 0.03 BTC. Nobody has put a number on the total bitcoin lost, and Braiins does not name an actor; its read is that "we interpret this as testing the waters." The provider blocked the network that propagated the route that evening, and it has not come back. Pool accounts, balances and payout settings were not affected.

The fix

Remove every unencrypted Stratum URL — stratum+tcp:// — including backup pools. Use Stratum V2, where the pool's public key is part of the URL and the miner refuses any server that cannot prove it, or Stratum V1 over TLS on firmware that verifies the pool's certificate. Miners that can do neither can connect through a small proxy in their own network; Braiins released one. One caveat when reading the alert: Braiins sells the firmware, pool and Stratum V2 proxy it recommends. The mechanism itself is not new — similar BGP-based hijacks of mining traffic have been documented before — but this campaign is the best-documented case of it running at scale.

Sources: Braiins' security alert, Bitcoin Hashrate Hijacking Detected on Stratum V1 (published Nov 25); episode figures and prorated loss as reported by AInvest and Hardware Busters. This article is reporting and explanation, not investment advice.