Osegi
Security·2 min read

Bitcoin miners hijacked: attackers redirect hashrate via BGP

Bitcoin miners' machines kept running at full power while the rewards went to an attacker. Braiins says hijacked internet routes diverted up to 1.9 EH/s.

Rows of bitcoin mining machines in a data hall with network cables, representing hijacked mining traffic.
Image: Gizmodo

Imagine your mining rig hashing away at full power, every light green, and every satoshi it earns landing in a stranger's account. That is what Braiins says has been happening to bitcoin miners, in what it calls a live, industry-wide threat.

In a forensic report published Wednesday, the mining technology company said attackers hijacked internet routes and impersonated mining pools. Neither the machines nor Braiins Pool were compromised. The attackers simply sat in the middle. On Nov. 20th, as much as 1.9 exahashes per second (EH/s) of computing power was diverted.

How does the bitcoin miner hijack work?

Most miners join a pool, which hands out slices of work and splits the rewards. Machines talk to the pool over Stratum, and the original version, still used by most of the network's hashrate, sends everything in plain text. A miner cannot check that the server answering is really its pool.

Braiins Pool announced a block of 4,096 IP addresses. Someone else announced a smaller, more specific block of 256 inside it, including the address miners use. The Border Gateway Protocol (BGP), which networks use to tell each other what they can reach, prefers the more specific route. Traffic went to the attacker's server, which accepted any login and fed miners real jobs copied from another large public pool, then submitted the results under its own account there. Braiins did not name that pool and says it was not involved.

How big was it?

On Nov. 20th Braiins logged four episodes, mostly in Europe, lasting 6 to 49 minutes and touching 1,050 to 1,600 miner sites. From Nov. 7th to 12th it saw 19 episodes in Latin America, mostly Brazil and Argentina. Braiins did not give a total, but CoinDesk estimated the revenue involved at under $17,000.

The trick is old. In 2014, researchers at Dell SecureWorks documented a nearly identical attack that took an estimated $83,000.

How can miners protect themselves?

Braiins says miners can switch to Stratum V2, which encrypts the connection and verifies the pool, or use Stratum V1 over TLS on firmware that checks the pool's certificate. It also released a free proxy for machines that can't do either, plus Braiins OS 26.11 with certificate checks.

Separately, attackers used Luxor's Commander fleet tool to repoint a little over a dozen client accounts to another pool starting on the night of Nov. 14th. Luxor says it patched the tool within two hours and will pay affected clients in full.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:bitcoin miningbraiinsstratumbgp hijackluxormining pool

More from this day

See all →

More in: Security

See all →