$2 / month

Comment and reply across TML.

Start or manage membership

Most pulsed

Latest from other desks

tml.the modern leap
Money / Crypto

Attackers Hijack Bitcoin Mining Power Through Plain-Text Pool Links

Braiins says route hijackers impersonated mining pools through November and diverted up to 1.9 exahashes per second, hitting more than a thousand mining sites in a single second.

TML Markets DeskNov 30, 5:46 AM ET · 2 min read

Edited and fact-checked by Stephen Sprague

An Icarus bitcoin mining rig (archive). Photo: Xiangfu, via Wikimedia Commons.
Summary

The machines never stopped working and the pools were never breached, so the fix sits with every miner still running an unencrypted connection: encrypt it, verify the pool, or stay exposed.

Tap a passage. React to the part that matters.

Three Antminer S19s in Brazil dropped their pool connection in early November, reconnected to the same hostname and the same address, and then watched their share difficulty climb in steps to 536,870,912, a number no pool sets for one machine.

Braiins, the mining software and pool company, published its forensic account on November 25, and it describes a theft that never touched a miner or a pool server. An attacker rerouted the internet traffic between miners and their pools, answered in the pool's place, and fed the machines real mining work copied from another large public pool, so the shares the machines produced landed in the attacker's own account at that pool.

"Recently, somebody stole hashrate from bitcoin miners without touching the miners or Braiins Pool, neither the ASICs nor Braiins Pool was compromised," Braiins wrote. "They rerouted the internet traffic between the two, impersonated the pool, and submitted their own work to the miners."

The weak point is Stratum V1, the protocol miners and pools have used since 2012. It sends everything in plain text, and a miner has no way to verify that the server answering is really its pool, so any connection that starts with stratum+tcp:// can be hijacked, backup pools included.

AdFour office chairs in a rowFor businessesAmazon Business is Amazon’s purchasing store for companies, with business accounts and quantity ordering.Register with Amazon Business

Braiins logged 19 episodes across Latin America, mostly Brazil and Argentina, from November 7 to November 12. Each one hit 120 to 400 mining sites and diverted 36 to 174 petahashes per second for anywhere from 90 seconds to three hours, and a November 16 episode in Brazil was captured packet by packet.

On November 20 the attack jumped scale and crossed the Atlantic. Four episodes that day hit 1,050 to 1,600 mining sites each, mostly in Europe, diverting 0.6 to 1.9 exahashes per second for six to 49 minutes at a time, and more than a thousand sites lost their real pool connection in the same second.

The routing trick worked through the Border Gateway Protocol, the trust-based system networks use to announce which addresses they can reach. Somebody announced a block of 256 addresses inside the 4,096-address block that held a pool's Stratum endpoint, and the more specific route won, so from Brazil the impostor server answered the handshake in about 30 milliseconds where the real pool would have needed about 280. The fake server accepted any username and password a miner offered.

Pool accounts, balances and payout settings were never touched, Braiins said, which is what made the theft hard to see. The machines kept hashing at full power while their pool dashboards showed zero, and the bitcoin those miners should have earned went to the attacker instead.

Braiins is telling miners to move to Stratum V2, or to run Stratum V1 over TLS on firmware that verifies the pool's certificate, and it released a free proxy for machines that can do neither. The technique itself is old: Dell SecureWorks documented the same routing trick stealing about $83,000 in mining rewards in 2014, and Braiins has warned about hashrate hijacking since 2020.

Sources

The conversation

A little more perspective.

Reading is free. Verified members can comment and reply for $2 a month.

The conversation.

Loading comments…

Keep your curiosity going.

Some links here are affiliate links. If you buy through one, we might make a commission — it never changes what you pay. As an Amazon Associate I earn from qualifying purchases.