Introduction
This post is a result of curiosity about the bitcoin p2p network. In the bitcoin p2p network addresses are gossiped to peers and there are various projects that aggregate this data and can use it for either good or harm.
This post spans a series of topics, basically during my detour to learn about the p2p network, and with the help of LLMs it has become easy to analyze this data for me even with little knowledge.
I analyzed what the network looks like to a naive observer, all based on public information.
Is it possible to use that data, for example, to find for e.g nodes in resource-constrained.
I analyzed the metadata available for free from nodes and then how an adversary can use
this metadata, then lastly I looked at the clients and their potential weak points based on disclosed vulnerabilities.
The methodology is simple: I used a single node with a single IP, I run the node for a while to gather ~47k addresses in its addrman, crawl the list of addresses from bitcoin-data: Bitcoin datasets, and some lists of peers were provided to me by Bitcoin Network Monitor - DSN Research Group, KASTEL @ KIT.
Then attempt to be an inbound to them and run this research.
This is limited to nodes that receive inbound, nodes that don’t are out of scope of this research. I think there is a potential way to catch them, which is to aggressively broadcast my address and hope for them to request an outbound to me.
Census of Addresses
The clearnet side came from 73,345 unique addresses aggregated from five sources (addrman, KIT, achownodes, fishfoo, Bitnodes), of which 11.6% answered; the rest were stale. Onion (11,586 addresses via 4 Tor SOCKS5 instances) and I2P (5,967 addresses via i2pd) were probed separately (CJDNS net addresses is not included here, its pretty much dead and not interesting data point see Future of CJDNS support · Issue #36041 · bitcoin/bitcoin · GitHub). A node counts as reachable here only if it completed a version handshake with me, so these are nodes I actually connected to, not just addresses I had.
Note also I reach what I target, so it may or may not be the network’s true composition. Because It is interesting to see that for example bitnodes samples differently and sees far less IPv6 than other samplers for some reason.
Bitcoin Core is almost the whole network, btcd is the second largest alternative (Older knots clients are still Bitcoin Core with Knobs). The client is read straight from the user agent string each node sends in its version message.
By AS type, most reachable nodes sit in hosting, not on residential lines. The type comes from mapping each node’s AS, via Core’s embedded asmap, onto PeeringDB’s network category.
Probing shows that onion addresses are barely pruned (7% vs 23% clearnet), almost never below v25 (0.4% vs 5%). Onion addresses also have higher P2P_V2 adoption (95% vs 80%), and Knots has slightly more onion addresses. These onion numbers come from probing the onion addresses directly over Tor, not from a crawler.
Across networks, pruned and vulnerable node shares split the same way: IPv6 is the most pruned and a bit more vulnerable, onion and I2P the least.
Demography of Addresses
This is limited to clearnet nodes, onion and I2P addresses are not geolocatable and their latency is not comparable to clearnet. Country here comes from a GeoIP lookup on each reachable address.
The network lives in a handful of countries. The US (3,433) and Germany (1,614) alone are 59% of the reachable clearnet nodes.
95 countries host at least one node, but after the top two the tail falls off fast: France (686), Canada (227) and the UK (224) are the next three. Here it is broken down per continent.
Africa is almost absent: 13 nodes in total, split across South Africa (10), Seychelles (2) and Angola (1).
Of the 8,535 reachable nodes, geolocation places 8,531, and 4 are real IPs that no source could resolve to a country.
Who hosts the network
I also recorded each node’s autonomous system (AS) using Core’s embedded asmap.
asmap collapses each AS to a single network group, so a big cloud or ISP that spans many address ranges counts as one group.
Serving capacity is more concentrated than node count. Weighting each node by its measured block-serving throughput (I timed a real block download from each node), the single largest AS holds about 10% of reachable nodes but serves roughly 31% of the observed block bandwidth, and the top ten ASes hold about 39% of nodes.
Hosting networks serve blocks about 3.2x faster than residential.
Vulnerable clients
I wanted to know if hiding the user agent helps a node. So I mapped each node’s real version to the behavioural group I can observe by probing, using the set of protocol features it supports. The 82 distinct full versions collapse into 8 bands. With the features my probe checks, only 5 nodes were uniquely version-identifiable from behaviour, and the largest band (v26 and up) groups 38 versions into one.
Hiding the user agent cuts both ways. For the old high-severity remote crashes the exposed nodes are behaviourally ancient, so I can flag them without the user agent at all: a node without wtxidrelay/sendaddrv2 is pre-0.21, without segwit it is older still. But for the recent advisories the exposed nodes sit inside the v26+ band, which my probe cannot split and also can’t know whether its a old version with a backported fix, so there the user agent is the only thing that reveals the exact info for targetting. Removing it would hide that.
Then I mapped versions to published advisories. Since I can see each node’s full version, I compared it to the advisory’s exact fix line and its backport releases, so these are the observed exposed set. Nodes already patched by a backport are excluded, which is why the v30 advisories backported to 28.3/29.1/29.2 sit near 40% instead of counting every node below v30.
The “Flaggable w/o UA” column is whether behavioural probing alone, ignoring the self-reported user agent, can tell a node is in the vulnerable range. It is “yes” when the exposed nodes fall below a behavioural boundary (pre-0.21 lacks wtxidrelay/sendaddrv2, older nodes lack segwit), “no” when the fix sits inside the v26+ band that probing cannot split so you would need the user agent, and “partial” for CVE-2024-35202, whose v25.0 fix falls inside the v0.21-25 band, so probing flags the band but cannot separate the exposed v21-24 nodes from the patched v25. The “no” rows are where removing the user agent would actually conceal the exposure.
| CVE | Type | Fixed in | Backport / caveat | Trigger | Exposed | Flaggable w/o UA |
|---|---|---|---|---|---|---|
| CVE-2018-17144 | inflation / assert DoS (Critical) | 0.16.3 | — | block | 0.3% | yes |
| CVE-2024-52912 | timestamp-overflow net-split (Med) | 0.21.0 | — | p2p msg | 1.8% | yes |
| CVE-2024-35202 | blocktxn assert crash (High) | 25.0 | — | p2p msg | 5.1% | partial |
| CVE-2024-52911 | script interpreter crash (Critical) | 29.0 | — | crafted block | 37.4% | no |
| CVE-2024-52919 | addrman 32-bit id overflow (Low) | 29.0 | rate-limited from 22 | p2p msg | 2.5% | no |
| CVE-2025-46598 | CPU DoS via unconfirmed txs (Med) | 30.0 | — | p2p msg | 53.4% | no |
| CVE-2025-54604 | disk fill via spoofed self-conn (Med) | 30.0 | bp 29.1 | p2p msg | 39.7% | no |
| CVE-2025-54605 | disk fill via invalid blocks (Med) | 30.0 | bp 29.1 | block | 39.7% | no |
| CVE-2025-62861 | TRUC eviction corrupts mempool (Med) | 30.0 | bp 28.3 / 29.2 | reorg | 40.3% | no |
| CVE-2025-62860 | Tor whitelist bypass (High) | 30.0 | bp 28.3 / 29.2 | p2p msg | 40.3% | no |
| CVE-2025-62859 | compact block witness stall (Med) | 30.0 | bp 29.2 | p2p msg | 40.6% | no |
| CVE-2026-117349 | OOM via paused peer queues (Med) | 32.1 | bp 29.5 / 30.4 / 31.2 | p2p msg | 81.9% | no |
| CVE-2026-117350 | OOM via TCP urgent data (Med) | 32.1 | bp 29.5 / 30.4 / 31.2, non-Linux | p2p msg | 6.4% | no |
| CVE-2026-117346 | undo file overflow crash (Low) | 32.1 | bp 29.5 / 30.4 / 31.2 | miner reorg | 81.9% | no |
Exposure is not the same as exploitability, which is why I added the trigger column.
So does hiding the user agent help? It depends on the node’s era. The dangerous cheap crashes are old: the blocktxn crash (below v25) and the addrman overflow (below v22, 2.5% after rate-limiting). Those nodes are old enough that probing spots them anyway, user agent or not. The one cheap High bug that reaches modern nodes, the Tor whitelist bypass, sits inside the v26+ band where probing goes blind. There the user agent is the only tell, so hiding it would help the node.
The 430 nodes below v25 are, if anything, better resourced than average: 28 Mbps median, less residential, more often pruned.
Targeting Resource Constrained Nodes
I assume resource-constrained are the nodes that are cheap to overwhelm. I scored two separate axes, a bandwidth axis and a disk axis (the pruned flag).
Datacenter nodes answer in 83 ms and serve 35 Mbps, residential nodes 265 ms and 11 Mbps.
Bandwidth was measured by downloading a block from the node and timing the throughput to get the transfer in Mbps. Latency was tracked by recording the TCP round-trip speed recorded when the connection opens in ms.
Datacenter nodes answer in 83 ms and serve 35 Mbps; home nodes answer in 265 ms and serve 11 Mbps.
In this data pruned nodes are faster (170 ms vs 207 ms overall), maybe because people prune to save disk on cheap well-connected VPS hosts, not on constrained home machines. Pruning is a disk constraint, orthogonal to bandwidth.
Thanks to @b10c, Mathias from KIT, @davidgumberg and a few others for answering my questions.
Mistakes here are entirely my own, artifact is available publicly GitHub - ismaelsadeeq/peers-probe · GitHub.

