The Forged Route Behind the Bitcoin Hashrate Hijack Was 172.65.65.0/24, and Thirteen More Had Been Announced Since October 9

The Forged Route Behind the Bitcoin Hashrate Hijack Was 172.65.65.0/24, and Thirteen More Had Been Announced Since October 9

On November 25, the mining company Braiins disclosed that someone had been diverting bitcoin miners to a fake pool by hijacking the route to the pool's address. On November 20 it happened four times, each time to between 1,050 and 1,600 mining sites, with 0.6 to 1.9 EH/s of hashrate working for the attacker for 6 to 49 minutes. Braiins did not publish the prefix, the AS number or the carrier. All three are in the public BGP archives. The route was 172.65.65.0/24, a slice of Cloudflare's 172.65.64.0/20, announced with an AS path ending in 266409 13335 and carried to Europe by Orange's AS5511.

The route was RPKI invalid and still reached 51 RIPE RIS peers, through carriers that are listed as filtering invalid routes. The same path ending is also attached to thirteen other /24s of Cloudflare's 172.65.0.0/16, the first on October 9, six weeks before the day Braiins describes, and Stratum hostnames of F2Pool, ViaBTC, AntPool and SECPOOL resolve into seven of them.

A reset at 12:16:08, then a pool that accepts any password

Stratum V1, the protocol most miners use to talk to a pool, is JSON over a plain TCP connection, and nothing in it lets the miner check who is answering. Braiins published the log of one machine for November 20. The connection is reset at 12:16:08 UTC, the miner reconnects one second later to the same hostname and the same IP address, and the share difficulty climbs from 262,144 to 1,073,741,824 in under a minute. Braiins Pool never sets it above 16,777,216. A second reset at 12:20:10 puts the miner back on the real pool.

According to Braiins, the server that answered in between took any username and password, handed out jobs from another public pool and submitted the shares there under its own account.

The reset is what a route change does to an open TCP connection. The miner's next packet lands on a machine that has never heard of the connection, and TCP answers such a packet with a reset. The real pool receives nothing, which matches Braiins' note that sessions on its side died of a timeout more than two minutes later. In RIS, the first announcement of the forged route is stamped 12:16:01, seven seconds before the reset in the log.

The route in the collectors: a /24 inside Cloudflare's /20

stratum.braiins.com resolves to 172.65.65.63. Cloudflare's AS13335 announces that address in 172.65.64.0/20, a block of 4,096 addresses, the size Braiins gives for the block of "the pool's network provider". We pulled every update for 172.65.65.0/24 from RIPEstat's bgp-updates endpoint, which covers the RIPE RIS collectors, and parsed the 56 RouteViews update files for 12:15 to 12:30 UTC. Before November 20 the /24 appears in RIS once, for seven minutes on October 13, at a single peer. On November 20 it appears in 434 updates, and the first seconds look like this:

12:16:01  rrc15 (RIS)       AS263152  path 263152 53013 266409 13335
12:16:01  route-views.rio   AS52468   path 52468 53013 266409 13335
12:16:02  route-views.flix  AS52468   path 52468 266409 13335
12:16:02  route-views.linx  AS5511    path 5511 52468 (x11) 266409 13335
12:16:03  rrc01 (RIS)       AS5511    path 5511 52468 (x11) 266409 13335
12:16:03  rrc00 (RIS)       AS34549   path 34549 5511 52468 (x11) 266409 13335
12:16:44  rrc12 (RIS)       AS48919   path 48919 6939 5511 52468 (x11) 266409 13335

The origin at the right end of every path is AS13335. That is the route Braiins says "listed the real owner as its origin", and a monitor that only alarms on a new origin AS had nothing to report. Routers pick the longest matching prefix before they compare paths, so the /24 beat the /20 in every network that accepted it.

Announced by Cloudflare: 172.65.64.0/20, RPKI valid AS13335 Cloudflare 364 sessions in RIPE RIS Received by collectors on November 20 from 12:16 UTC: 172.65.65.0/24, RPKI invalid AS13335 forged origin AS266409 SECW Telecom AS52468 UFINET Panama AS5511 Orange 49 of 51 RIS peers prepended 11 times AS53013 UFINET Brasil 1 RIS peer in São Paulo
Top: the route Cloudflare announces. Bottom: the route for 172.65.65.0/24 as RIPE RIS peers received it in the first episode on November 20, 2026. The remaining RIS peer, a Brazilian network, heard it from AS52468 directly, without the prepending.

RIS shows four episodes, counted from the first announcement to the last withdrawal: 12:16:01 to 12:21:43, 13:00:21 to 13:49:20, 14:38:02 to 14:46:54 and 15:56:59 to 16:04:46 UTC. That is 5.7, 49.0, 8.9 and 7.8 minutes, in line with the "between 6 and 49 minutes" of the disclosure. In the first episode 51 RIS peers in 45 networks held the route, and 38 peers in each of the other three, of which 47 and then 35 were among the 321 peers that RIPEstat counted that day as sending a full IPv4 table. RouteViews adds 59 peer sessions in 42 networks for the first episode. A collector hears only each peer's best path, and most networks feed no collector at all, so these counts are floors.

A Brazilian AS next to Cloudflare, and Orange behind it

AS266409 is SECW Telecom, a Brazilian network that originates 1,536 IPv4 addresses and, per its PeeringDB record, connects to IX.br in São Paulo and Brasília and to Equinix São Paulo. Next in the path come AS52468 (UFINET Panama) and AS53013 (UFINET Brasil). UFINET Panama passed the route to Orange's international backbone, AS5511, and 49 of the 51 RIS peers got it through Orange, including Orange's own session with the RIS collector at LINX in London.

Toward Orange, AS52468 is written eleven times in the path. Prepending makes a route look long so that other networks prefer an alternative, and for this /24 no alternative existed.

Hurricane Electric (AS6939) took the route from Orange as well. Fifteen RIS peers reported a path through AS6939 from 12:16:44, each dropped it within a minute, most after about 31 seconds, and AS6939 is absent from the three later episodes.

The path does not say who made the announcement. Cloudflare never announced 172.65.65.0/24, so the /24 was created at AS266409 or behind it. The adjacency itself is probably real: on 20 days between October 7 and November 22, RIS peers received legitimate Cloudflare /20s with the same 266409 13335 ending, as many as 22 peers at once, as they would from a network that peers with Cloudflare and leaks those routes. A leak does not put a Stratum server on the pool's address, though, and the packet capture Braiins describes has one answering six hops closer than the real pool. Whether SECW Telecom's staff, one of its customers or an intruder on its routers sent the routes is not in the data.

RPKI marked the route invalid, and Orange and Cogent carried it

Cloudflare's ROA for 172.65.64.0/20, as published on December 2, authorizes AS13335 with a maxLength of 20. Any /24 inside it is invalid whatever origin it claims, which is the reason RFC 9319 asks for tight maxLength values. Braiins is right that networks running route origin validation rejected the route.

Three networks that Cloudflare's isbgpsafeyet.com list marks as "signed + filtering" appear in the paths anyway. Hurricane Electric dropped the route within a minute and a half. Orange carried it through all four episodes on November 20. Cogent (AS174) shows up on November 9, when another of the /24s described below reached 100 RIS peers for eight minutes with the path 174 52468 266409 13335. Both carriers passed the route on to their own peers, which a carrier does with routes it learns from customers. We cannot see either router's configuration, so the narrow statement is that on at least one session with UFINET Panama in each network, an invalid /24 inside a signed /20 was accepted and passed on.

In the Hetzner hijack we covered in September, the forged /24 was RPKI valid because the ROA allowed /24s, and we wrote that a tight ROA would have cut its footprint to a fraction. This time the ROA was tight, and the forged /24 still reached 35 to 47 of the 321 full-table RIS peers. ASPA would give carriers a second reason to drop it, since AS266409 is not one of Cloudflare's providers, but when we counted in July, 2.54 percent of ASNs had published an ASPA record.

Braiins advises pools to have their provider announce the /24 itself, with a ROA limited to that length. Most networks drop anything longer than a /24, so the more-specific trick stops working. A forged-origin /24 then becomes RPKI valid and competes on AS path length, which an attacker a few hops from the miners still wins locally.

Thirteen more /24s, the first on October 9

The same two path endings, 52468 266409 13335 and 53013 266409 13335, are attached to thirteen other /24s in RIS, all inside Cloudflare's 172.65.0.0/16 and all invalid against a /20 ROA. We found the first of them in RIPEstat's routing history for AS13335 and by scanning RouteViews and RIS update files for paths with AS266409 directly before AS13335, then pulled the updates for each of the 256 /24s of the /16 from October 1 to December 2.

PrefixFirst announcement (UTC)Last seenDays seenPool hostname resolving into it on December 2
172.65.196.0/24October 9, 20:23November 2427btc.f2pool.com
172.65.195.0/24October 9, 21:21November 2440ss.antpool.com (from the Americas)
172.65.170.0/24October 9, 22:15November 205none found
172.65.217.0/24October 9, 22:19November 2530none found
172.65.233.0/24October 11, 01:48November 66btc.viabtc.com
172.65.65.0/24October 13, 02:32November 202stratum.braiins.com
172.65.193.0/24October 13, 02:59October 142none found
172.65.230.0/24October 14, 01:23November 2027none found
172.65.175.0/24October 15, 17:03October 151ss.antpool.com (from Europe)
172.65.209.0/24October 15, 17:03October 151none found
172.65.219.0/24October 15, 17:03November 203none found
172.65.24.0/24October 17, 22:38November 2425btc.viabtc.io
172.65.190.0/24October 21, 02:43October 211btc.secpool.com
172.65.254.0/24October 29, 02:49November 206etc.f2pool.com
Forged /24s with at least one announcement in RIPE RIS, per day (UTC) 2 4 6 8 0 Oct 9 Oct 16 Oct 23 Oct 30 Nov 6 Nov 13 Nov 20 October 9: first forged /24, seen by one RIS peer in São Paulo November 9: one /24 reaches 100 RIS peers through Cogent November 19 and 20: eight /24s reach up to 50 RIS peers through Orange seen by one or two RIS peers, both in Brazil carried to 37 or more RIS peers
Forged /24s inside 172.65.0.0/16 with at least one announcement in RIPE RIS per day, October 9 to November 25, 2026. Source: RIPEstat bgp-updates for the fourteen prefixes in the table.

For most of those six weeks the routes stayed in Brazil. On 40 of the 43 days with announcements, the only RIS peers that received them were two Brazilian networks, AS263152 at the São Paulo collector and AS61573, often for a few minutes at a time. That fits Braiins' account of a first wave on November 7 to 12 that hit "mostly Brazil and Argentina". RIS holds no announcement of 172.65.65.0/24 itself on those six days. What it does hold is Cloudflare's own 172.65.64.0/20 with AS266409 in the path. Between October 1 and December 2 that happened on eight days: the six of the first wave, November 14, and November 16, the day of the packet capture from Brazil. On each day of the first wave, 14 to 21 RIS peers received the /20 that way, most of them through EdgeUno (AS7195), in about 20 periods, the longest of three hours. Braiins counts 19 episodes of up to three hours in that wave and writes that "the attacker changed the method between the two waves". A path through AS266409 does not show what happened to the packets, but it brings them there without any /24.

The reach changed three times. On November 9 at 20:51 UTC, 172.65.217.0/24 went out through Cogent for eight minutes. On November 19 at 12:04:41, five /24s went out through Orange together, 24 hours before the Braiins prefix joined them. Two more followed between 12:48 and 12:53, and the routes came and went in 18 bursts of up to 26 minutes until 02:38 the next morning. November 20 is shown below. After 16:04 that day no announcement got past the two Brazilian peers again, which agrees with Braiins' statement that "the provider blocked the network that had propagated the forged route" that evening. The regional announcements continued until November 24, and from 22:20 that evening until 18:01 UTC on November 25, AS266409 originated 172.65.217.0/24 under its own AS number, with Cloudflare gone from the path.

172.65.65.0/24 stratum.braiins.com 49 minutes 172.65.254.0/24 etc.f2pool.com 172.65.196.0/24 btc.f2pool.com 172.65.24.0/24 btc.viabtc.io 172.65.195.0/24 ss.antpool.com, Americas 172.65.230.0/24 172.65.170.0/24 172.65.219.0/24 12:00 13:00 14:00 15:00 16:00 UTC, November 20, 2026
November 20, 2026: periods during which at least ten RIPE RIS peers held each forged /24. Hostnames are the pool endpoints that resolved into the prefix on December 2.

On December 2, btc.f2pool.com resolved to 172.65.196.131, btc.viabtc.io to 172.65.24.253 and btc.viabtc.com to 172.65.233.152. AntPool's ss.antpool.com answers by region. For client subnets in Brazil, Argentina, the United States and Canada it resolved to 172.65.195.40, in the /24 that was announced on 40 days, more than any other, and for Europe to 172.65.175.9. That second /24 and the one that holds SECPOOL's btc.secpool.com, 172.65.190.223, show up in RIS once each and only at the São Paulo peer, for under three minutes on October 15 and for an hour on October 21. F2Pool's Ethereum Classic endpoint, etc.f2pool.com, sits in 172.65.254.0/24. A route in a collector does not prove that any miner of those pools was diverted, and each /24 holds many other Cloudflare customers. Braiins wrote that the forged announcements covered blocks with "Stratum endpoints of other large pools" and named none. We could not match the remaining six /24s to a pool.

What to watch if your TCP service lives in a shared /20

If you mine, the fix is on Braiins' connection security page: no pool URL that starts with stratum+tcp://, backups included, and Stratum V2 or TLS on firmware that verifies the certificate (two of the seven firmwares Braiins tested accepted invalid ones).

If you run the service, an origin-change alert will stay quiet through a hijack like this one. Watch instead for anything more specific than the prefix your provider announces. RIS Live pushes those over a WebSocket at wss://ris-live.ripe.net/v1/ws/ once you send it a subscription:

{"type": "ris_subscribe",
 "data": {"prefix": "172.65.64.0/20", "moreSpecific": true, "type": "UPDATE"}}

On that subscription, the first message for a prefix longer than the /20 would have arrived on October 13, 38 days before the miners were diverted in Europe.

The baseline to compare against is the prefix and origin as the owner announces them. For 172.65.65.63, the Ipregistry API returns connection.route 172.65.64.0/20, connection.asn 13335 and connection.is_anycast true, and you can look up your own endpoints with 20,000 free lookups to get started.

Engage customers with in-app updates using Noticeable Keep users in the loop Ship release notes that get read. Try Noticeable

Get started with 20,000 free lookups: sign up