Skip to main content
Forged BGP Route Steers Bitcoin Miners to a Fake Pool
Security
4 min read126 views

Forged BGP Route Steers Bitcoin Miners to a Fake Pool

On 25 November, Braiins, which runs one of Bitcoin's oldest mining pools and develops mining firmware, published a forensic report on a campaign that stole hashrate from miners without breaching a single pool, miner or DNS record. The attacker forged an internet route, put an impostor server in the path between miners and their pool, and collected the credit for their work. On 20 November, more than a thousand mining sites lost their pool connection in the same second.

What happened#

According to Braiins, the campaign came in waves. Between 7 and 12 November there were 19 episodes, mostly in Brazil and Argentina, each affecting 120 to 400 sites with 36 to 174 PH/s of hashrate. On 20 November there were four episodes, mostly in Europe, lasting between 6 and 49 minutes and each involving 1,050 to 1,600 sites and 0.6 to 1.9 EH/s. The affected machines ran at least 12 firmware types across hundreds of networks, which rules out a single vendor or provider.

How the route was forged#

The pool's Stratum endpoint sat inside a block of 4,096 addresses announced by its network provider through BGP, the protocol networks use to tell each other which addresses they can reach. Someone announced a smaller block of 256 addresses that contained the pool's address. Routers prefer the most specific route, so every network that accepted the announcement sent miners' traffic to the attacker. The address owner confirmed it never announced that route, and its provider blocked the network that propagated it that evening.

Two details explain why it worked. Networks that validate routes against RPKI, the registry in which address holders sign off on who may announce their space, rejected the forged route, but many networks do not validate. And the forged announcement listed the real owner as its origin, so monitors that only check the origin stayed silent.

Why the miners kept working#

Affected miners received a TCP reset, reconnected within a second to the same hostname and IP address, and a different server answered. It accepted any username and password and handed out real jobs relayed from another large public pool, submitting the resulting shares under the attacker's own account there. Braiins says that pool was not part of the attack. The machines reported full hashrate and a live pool; only the pool dashboard showed zero. The one visible tell was share difficulty, which climbed as high as 2,147,483,640, while Braiins says its pool never sets it above 16,777,216.

The root weakness is old. Stratum V1, the default mining protocol since 2012, sends everything in plain text and gives a miner no way to verify the server. Braiins recalls a similar routing theft documented by Dell SecureWorks in 2014.

What is known and what is not#

  • Amount. Braiins gives no figure. CoinDesk estimates the affected mining revenue at under $17,000, assuming the highest hashrate and longest duration reported.
  • Attacker. No actor has been named. Braiins calls the activity "testing the waters".
  • Scope. Public routing data showed similar announcements covering address blocks of other large pools, some still active on 22 November. Those blocks also host unrelated services, so mining was not necessarily the only target.
  • Latin American wave. Braiins says it is not yet confirmed in the same detail as 20 November.

Our analysis#

The money involved is small; the lesson is not. A miner's payout depends on a connection the miner cannot authenticate, and a forged BGP route can redirect it. Encryption alone does not close the gap: Braiins reports that in its lab tests two widely used firmwares offered TLS but accepted invalid certificates. Braiins sells the firmware, pool and proxy it recommends, and those test results are its own, so we would welcome independent replication.

The practical steps are clear: remove every plain stratum+tcp:// entry, including backups; use Stratum V2, which pins the pool's public key, or TLS only on firmware that verifies certificates; alert on share difficulty above the pool's maximum; and, for network operators, enforce RPKI validation. The same pattern applies beyond mining: any system that moves value over an unauthenticated channel trusts the network path more than it should.

Sources#

Share this article

Related Articles