Bitcoin Mining Hijack Redirects Over 1,000 Rigs to a Hacker’s Wallet

A cybercriminal managed to redirect as much as 1.9 exahashes per second (EH/s) of Bitcoin mining power to a fake mining pool earlier this month by exploiting a weakness in internet routing that remains unaddressed by many major industry participants.

The attack affected Bitcoin miners across South America and Europe for much of November. Rather than breaking into mining machines, the attacker manipulated internet traffic routes, allowing thousands of miners to unknowingly send their computing power to an unauthorized server.

Braiins, which operates one of Bitcoin’s longest-running mining pools and provides mining firmware, published a forensic investigation on Wednesday detailing the incident. According to the report, the attacker first redirected miners’ connections to a counterfeit pool server before supplying them with genuine mining tasks obtained from another pool. The completed calculations were then submitted through an account belonging to the attacker.

As a result, miners continued operating as usual, but the rewards generated by their work went to the cybercriminal instead of the rightful pool participants.

The diverted hashrate, which represents the computing power dedicated to mining Bitcoin, rose from below 175 petahashes per second (PH/s) in early November to a peak of 1.9 EH/s on November 20.

On that date, more than 1,000 mining facilities, mostly located in Europe, simultaneously lost their connections to legitimate mining pools within a single second.

Hashrate measures the number of calculations mining machines perform every second while attempting to solve Bitcoin’s cryptographic puzzle. The compromised 1.9 EH/s represented approximately 1.9 quintillion attempts per second.

Based on mempool.space’s seven-day average network hashrate of 1,040 EH/s, the hijacked computing capacity accounted for roughly one out of every 550 calculations performed across the Bitcoin network.

How the Bitcoin Mining Hijacking Worked

Bitcoin miners generally connect to mining pools, where operators distribute computational tasks among participating machines and divide rewards based on their contributions.

These machines communicate with pool servers through Stratum, a messaging protocol introduced in 2012. Although its original version remains widely used, it transmits information without encryption and does not provide a built-in method for verifying whether the responding server genuinely belongs to the selected mining pool.

The attacker exploited this limitation by targeting the internet’s routing infrastructure instead of directly compromising the mining protocol.

Internet service providers use the Border Gateway Protocol (BGP) to exchange information about which networks control specific IP address ranges and where traffic should be directed.

During the incident, the legitimate pool’s internet provider announced a range containing 4,096 IP addresses. The attacker then issued a competing announcement for a smaller block of 256 addresses within that range.

Because internet routers generally prioritize more specific routing announcements, miners’ connections were automatically redirected to the fraudulent server.

Braiins explained that miners continued using the correct hostname and IP address, but their requests were answered by a different server.

The counterfeit server accepted any username and password, distributed authentic mining jobs copied from another large public pool, and submitted the completed work through an account controlled by the attacker.

This allowed the cybercriminal to collect mining rewards without interrupting the machines’ normal operations.

Financial Losses Estimated Below $17,000

Although the attack redirected a substantial amount of computing power, the estimated financial damage appears relatively limited.

Braiins did not provide an exact figure for the stolen Bitcoin. However, CoinDesk estimated that the affected mining rewards amounted to less than $17,000 based on the available data.

The calculation assumes the highest hashrate and longest attack duration reported by Braiins for each incident. It also uses the network’s current daily mining rewards of approximately 453 BTC, distributed across 1,040 EH/s of total computing power.

Braiins identified another warning sign in the fake server’s configuration: an unusually high share difficulty setting. Share difficulty determines the amount of work a miner must complete before submitting a result to the pool.

The fraudulent server reportedly increased this threshold to 2 billion, compared with Braiins’ maximum setting of approximately 17 million.

Networks using Resource Public Key Infrastructure (RPKI) validation were able to reject the forged routing announcement. RPKI allows legitimate IP address owners to authorize which networks can advertise their address ranges.

However, many networks still do not perform these checks. The attacker also listed the legitimate network owner as the origin of the fraudulent announcement, helping the route evade certain monitoring systems.

To prevent similar incidents, Braiins recommends that miners migrate to Stratum V2, which encrypts communications and allows mining equipment to verify the identity of pool servers.

For miners that continue using Stratum V1, the company advises enabling encrypted connections and using firmware that checks security certificates.

Braiins said properly encrypted connections would prevent this type of attack from generating rewards for the attacker, stating, “The attacker does not earn any bitcoin.”

The incident adds another challenge for Bitcoin miners already dealing with tight operating margins. Bitcoin is trading near $59,000, while mempool.space data indicates that mining difficulty could increase by approximately 9% within the next two days.