Attack links a bitcoin address to a node IP by exploiting wallet rebroadcasts.

Bitcoin Core developer Abubakar Sadik Ismail described on the Delving Bitcoin forum an attack that links a bitcoin address to the IP address of the node running the wallet. An attacker needs only to send the victim a payment worth a few tens of cents.

How the attack works

According to Ismail, the Bitcoin Core wallet rebroadcasts transactions that remain unconfirmed for 12–36 hours — both outgoing and incoming. This behavior signals that the node is associated with those payments. He said the leak is known and has been discussed in the project repository.

Because most transactions confirm much faster, passively watching for rebroadcasts is ineffective. To bypass this, an attacker can send a small transfer to a previously used address of the victim. The amount would be set at the dust threshold — the minimum that nodes relay. The fee rate would be 0.1 sat/vB, the lowest permissible. Such a payment can linger in the mempool for a long time.

After that interval, only a node whose wallet tracks the address will be able to rebroadcast the transfer. The attacker then opens new connections to potential targets and records which one announces the transaction. Peers that already know about it will not receive a re-announcement, unlike a newly connected observer.

Depending on the address type, a single payment would cost 309–569 satoshis, or $0.18–$0.34 with bitcoin at around $59,000.

Ismail tested the method in a local regtest environment on standard Bitcoin Core nodes: five targets, six test rounds. In all 30 attempts, the observer correctly identified the victim’s node. He did not measure the attack’s effectiveness on the Bitcoin mainnet.

Who is affected

Bitcoin Core and Bitcoin Knots with default settings are at risk. The issue also affects wallets that use Bitcoin Core as a backend: Sparrow (only in Cormorant mode), Specter Desktop, Fully Noded, Gordian Wallet, Lily Wallet, Liana, JoinMarket and Jam, Caravan and bwt. The list also includes the Lightning implementation Eclair and Electrum Personal Server — a tool for connecting Electrum to a personal node instead of third-party servers.

Ismail believes the attack also works against watch-only wallets. Bitcoin Core treats an address as “its own” based on a script match and does not check for the presence of private keys. As a result, the identified node may not be controlled by the owner of the funds.

Connecting via Tor does not guarantee anonymity either. Rebroadcasting occurs over all networks the node is connected to. If a node uses Tor or I2P but also maintains clearnet connections, an attacker can learn its real IP address.

The -privatebroadcast option introduced in Bitcoin Core 31.0 does not solve the problem: if a transaction remains unconfirmed for 12–36 hours, the node will rebroadcast it to all peers as usual.

What else the attack can reveal

IP attribution is one of the methods analysts use to link bitcoin addresses to an owner’s identity. By repeating the attack across many UTXO, an observer can build a map of addresses tied to specific nodes.

Typical Bitcoin Core transaction patterns help select targets: input ordering, change output position, and the nVersion and locktime fields. Ismail emphasized that sharing a node does not prove the addresses belong to one person.

The developer also evaluated whether the technique can recover links between nodes. In a simulation of a 100,000-node network, 10,000 of which accepted inbound connections, the method identified one direct neighbor in 90.5% of cases.

He cautioned that this was not a mainnet measurement. Because of randomized send intervals, timing analysis points only to a single likely connection partner rather than a full peer list.

How to mitigate

Until a fix is available, Ismail suggested disabling automatic broadcasting with -walletbroadcast=0. In that case, the node will also stop broadcasting the user’s own transactions; they must be sent manually with the sendrawtransaction command.

Other measures include using -onlynet=onion and -onlynet=i2p. These hide the real IP address, but the bitcoin address will still be tied to the node’s identifier in Tor or I2P.

Another option is to switch to a wallet that does not use Bitcoin Core as a backend.

Lead Bitcoin Core developer Ava Chow proposed fix #36482. With it, the wallet would only rebroadcast a transaction when the node returns it to the mempool after eviction. The pull request has not been merged.

Another project contributor, Martin Zumsande, responded that the patch only “slightly increases the cost of an active attack.” He said an attacker can replace the victim’s transaction via RBF (replace-by-fee).

The original transaction remains valid but leaves mempools. The victim’s wallet will rebroadcast it anyway, and for most nodes it will appear new.

Zumsande allowed that pinpointing the rebroadcast moment would become more difficult and the attacker might need several attempts. However, the core of the method remains unchanged, he said.

He advocated removing automatic rebroadcasts of incoming payments so that senders handle that task. He prepared changes in #36398. Chow, in turn, submitted #36481, a patch adding a command for manual transaction rebroadcast.

Ismail agreed with Zumsande but argued for a more radical approach. By default, he said, rebroadcasting should be disabled for all transactions, not just incoming ones.

In October, Bitcoin Core developers revised their vulnerability disclosure policy. Bugs that are easy to discover, including with AI, will now be fixed and disclosed faster.

Follow ForkLog on social media

Related articles

Bitcoin Core 32.0 Enters Final Testing Phase

Bitcoin Core Developers Address Critical Vulnerability

Bitcoin Core to Showcase Bitcoin Consensus Vulnerabilities

Hackers Steal Bitcoin from BTCPay Server Hot Wallets

Europol outlines quantum threats to cryptocurrencies and encrypted data

BitBox Fixes Two Major Vulnerabilities in Bitcoin Wallet Firmware

Digital Chamber urges New York court to dismiss lawsuit over inactive Bitcoin addresses

Coinspect Warns of Vulnerability Threatening Thousands of Crypto Wallets

John Doe 33 seeks dismissal of suit over 39,069 dormant Bitcoin addresses