Retour

Over 1,000 Bitcoin miners were tricked into working for a thief by a fake internet route

NeutrePartager surX (Twitter)Telegram
Over 1,000 Bitcoin miners were tricked into working for a thief by a fake internet route

Someone spent most of November stealing work from bitcoin miners in South America and Europe, with the trick taking nothing more than a false claim to the internet's routing system.

Braiins, which runs one of bitcoin's oldest mining pools and sells mining firmware, published a forensic report on Wednesday describing attacks that grew from under 175 petahashes per second (PH/s) in early November to as much as 1.9 EH/s exahashes per second (EH/s) on Nov. 20.

That day, more than a thousand mining sites, mostly in Europe, lost their pool connection in a single second.

Hashes are computing units that count the number guesses done by a system per second. Bitcoin miners race to solve a numbers puzzle by brute force, and 1.9 exahashes per second is about 1.9 quintillion guesses every second.

So the hijacked pools were making about one of every 550 guesses the whole network makes, going by mempool.space's one-week average of 1,040 EH/s.

How the hijack worked

Most miners join a pool, which hands each machine a slice of the puzzle and splits the reward among everyone who contributed. The machine and the pool talk over Stratum, a messaging protocol from 2012. Its original version is still the industry default, and it sends everything in plain text without giving a miner any way to check that the server answering is really its pool.

The attacker targeted a layer lower. Internet providers tell each other which network owns which addresses through BGP, the internet's routing system.

The pool's provider announced a block of 4,096 addresses, and the attacker announced a narrower block of 256 inside it.

"Somebody announced a smaller block of 256 addresses, and that block included the pool's address," Braiins wrote. Routers always prefer the most specific route, so miners' traffic flowed to the attacker.

The miners reconnected to the right hostname and the right IP address, and a different server answered.

It accepted any username and password, fed the machines real mining jobs copied from "a different large public pool," and submitted their results under its own account there, so the payouts went to the attacker.

Lots of reach, little money

Braiins gives no figure for what was stolen.

A CoinDesk calculation of available data pegs the total impacted funds under $17,000 worth of bitcoin. This assumes the highest hashrate and longest duration Braiins reported for each round of attacks, and values that mining at what the network currently pays miners, about 453 BTC a day split across 1,040 EH/s of computing power.

Attackers who hijacked bitcoin mining sites in November earned at most about $17,300, roughly a fifth of a 2014 routing theft. (Shaurya Malwa/CoinDesk)

The fake server left a tell, by raising share difficulty — the bar a miner's result has to clear before it gets reported to the pool — as high as 2 billion. Braiins says it never sets that figure above about 17 million.

Networks that check routes against RPKI, a registry that lets address owners sign off on who may announce their addresses, rejected the forged route. Many networks don't check. The forged announcement also listed the real owner as its origin, so monitoring tools that watch for that stayed quiet.

Meanwhile, Braiins said miners should use Stratum V2, the newer version that encrypts traffic and lets a machine verify the pool's identity. Failing that, it recommends encrypted Stratum V1 with firmware that checks certificates.

With an encrypted connection, Braiins wrote, "The attacker does not earn any bitcoin."

The attacks hit an industry already short on margin. Bitcoin is near $59,000, and mining difficulty, the network's measure of how hard the puzzle is, is set to rise about 9% within two days, according to mempool.space.

Lire l'article original sur CoinDesk

Plus d'actualités