BGP Hijack Sent Bitcoin Mining Work to an Attacker-Controlled Pool
Key Facts
- Braiins reported that an attacker used forged BGP routes to redirect miners on unencrypted Stratum V1 connections to an imposter pool.
- On November 20, more than a thousand mining sites across hundreds of networks lost their pool connections in the same second, with episodes lasting 6 to 49 minutes.
- The forged announcement was a more specific /24 covering a pool endpoint inside a /20 announced by the pool's network provider.
- The fake server accepted any username and password, issued real jobs from another public pool, and submitted the miners' shares under the attacker's account.
- Braiins says neither its pool nor the miners' hardware was compromised; the attack depended on the network path and the plaintext protocol.
- Braiins recommends Stratum V2, Stratum V1 over TLS with certificate verification, or a local proxy, and says network operators should enable RPKI route origin validation.
Bitcoin miners at more than a thousand sites lost their pool connections in the same second on November 20. Their machines kept hashing. Their pool dashboards showed nothing. The work was going somewhere else.
Braiins, which operates a mining pool, traced the diversion to a BGP hijack. An attacker announced a forged route for a block of addresses that contained a pool endpoint, pulled miners’ traffic to a server under their control, and submitted the resulting shares under their own account at another pool.
The miners were not breached. The pool was not breached. The weakness was the path between them and a mining protocol that sends work instructions in plaintext.
What the miners saw
The first reports came in early November. Miners saw share difficulty values in the hundreds of millions, far above anything a pool sets for a single machine. Logs from three Antminer S19s in Brazil showed the same sequence: the pool connection dropped, the miner reconnected to the same hostname and IP address, and the difficulty climbed in steps to 536,870,912.
The machines kept hashing while the pool dashboard showed zero hashrate.
On November 20, more than 1,000 mining sites across hundreds of networks dropped at once. Earlier waves in Latin America ran from November 7 to 12 and involved 120 to 400 sites per episode.
How a route announcement became a fake pool
BGP is the protocol networks use to tell each other which IP addresses they can reach. It runs largely on trust. A network announces a block of addresses, its neighbors pass the announcement along, and routers prefer the most specific match.
The pool’s Stratum endpoint sat inside a larger block announced by its network provider. The attacker announced a smaller /24 that included the pool’s address. Because the smaller block was more specific, networks that accepted the announcement sent miners’ traffic to the attacker.
The forged route appeared four times on November 20, for periods between 6 and 49 minutes. The block’s owner confirmed that it never announced the route and that diverted connections never reached its network. That evening, the provider blocked the network that had propagated the route.
Two conditions made the hijack work. Some networks validate announcements against the Resource Public Key Infrastructure, or RPKI, and rejected the forged route. Many do not. The forged announcement also listed the real owner as its origin, so monitoring that relies only on origin validation did not raise an alarm.
Where the rewards went
The fake server answered the Stratum handshake in about 30 milliseconds from Brazil, compared with roughly 280 milliseconds for the real pool. It accepted any username and password and sent real mining jobs.
Those jobs came from another large public pool. The coinbase tags and payout addresses belonged to that pool. The attacker was not solo mining. They ran a proxy with a worker account at the pool, relayed its jobs to the hijacked miners, and submitted their shares under that account.
That pool was not part of the attack. It was where the attacker chose to point the stolen hashrate. The miners’ own accounts and payout settings were not changed.
Why plaintext Stratum V1 is the weak point
Stratum V1 has sent instructions in plaintext since it appeared in 2012. A miner has no way to verify that the server on the other end is the pool it claims to be.
This is not new. In 2014, Dell SecureWorks documented the same routing trick taking about $83,000 in mining rewards; Braiins warned about it in 2020.
The November campaign changed the scale: episodes grew from under 175 PH/s to 1.9 EH/s in two weeks, and the attacker moved from one continent to another.
Detection is difficult on the miner: it reports normal hashrate, normal temperature and a live pool. The drop is visible on the pool dashboard. Backup pool URLs do not help when they resolve to the same address.
The fixes
Stratum V2 is the strongest option. The pool URL ends with the pool’s public key, and the miner drops servers that cannot prove they hold the matching private key.
Stratum V1 over TLS is a stopgap, but only if the firmware verifies the pool’s certificate. Braiins found that two of seven tested firmware implementations accepted invalid certificates, which turns TLS into an encrypted connection to whoever answers.
For miners that cannot do either, a local proxy can speak Stratum V1 inside the LAN and Stratum V2 to the pool. Braiins released one on November 25.
Network operators should enable RPKI route origin validation, which would have rejected the November 20 route. Pools can ask their host to announce a /24 for the Stratum endpoint with a matching ROA.
Miners can look for connection resets followed by difficulty values in the hundreds of millions, and for periods where the miner hashed but the pool dashboard showed nothing.
What remains unknown
The attacker’s identity and the total value taken are not known. The campaign spanned multiple services, and the first Latin American wave has less detail.
Braiins is an interested party. It sells pool services, firmware and a proxy, and its report recommends its own products. That does not make the packet captures wrong, but it is a reason to treat the vendor’s framing as one account.
What the record does establish is that the attack did not require compromising a miner or a pool. It required a route announcement that many networks accepted and a protocol that could not tell the real pool from an impostor.
Sources & References
- Braiins incident report with packet-level observations, episode data and mitigation guidance. https://braiins.com/blog/bitcoin-hashrate-hijacking-unencrypted-stratum-v1
- Braiins' 2020 analysis of hashrate hijacking and the case for authenticated Stratum V2 connections. https://braiins.com/blog/hashrate-robbery-stratum-v2-fixes-this-and-more
Analyst-reviewed briefings on active exploitation, ransomware operations, nation-state campaigns, and the threat intelligence that connects them.
Security Digest
The most important cybersecurity stories, CVE alerts, and threat intelligence — one concise email. Unsubscribe anytime.
Related Articles
DOJ Indicts Russian National Over Alleged Surveillance of Palantir Employees
The DOJ alleges Igor D'iu entered the United States to surveil Palantir employees using physical following, cafe photography and remote-capture equipment.
Scattered Spider Hackers Plead Guilty on Day 1 of Trial
According to the NCA, the cyberattack at TfL forced all 28,000 employees to visit their local offices to reset their passwords and caused £29 million...
Nancy Guthrie Case Reframed by Crypto Firm's "Wrench Attack" Label as Police Confirm Motive Pending
In it, CertiK described Nancy Guthrie's kidnapping as part of a "$6 million bitcoin ransom demand" and tied it to what the company called "the documented...
14,971 WordPress Sites Cleaned in Global SocGholish Takedown
Data from Infoblox shows that approximately 55% of its cloud customers attempted to reach SocGholish infrastructure this year alone, with the attacks...