加载图片中Why Bitcoin Core developers want to make wallet rebroadcasting optional - 1

Share

A Bitcoin Core contributor has demonstrated how a long-standing privacy flaw in the software’s wallet could allow attackers to associate Bitcoin addresses with the IP addresses of nodes monitoring them.

• Bitcoin Core research demonstrated how automatic transaction rebroadcasting could allow observers to associate Bitcoin addresses with the network identities of nodes monitoring them.

• The researcher successfully identified the correct nodes in all 30 controlled observations, with estimated transaction costs ranging from $0.18 to $0.34 per targeted address.

• The privacy weakness potentially affects several Bitcoin wallet applications that rely on Bitcoin Core, including certain configurations of Sparrow and Liana.

• Bitcoin Core developers are discussing whether automatic wallet rebroadcasting should become optional after concerns emerged that an existing proposed fix would offer insufficient protection.

In a Nov. 25 discussion on the Delving Bitcoin developer forum, Bitcoin Core contributor Abubakar Sadiq Ismail detailed how the software’s automatic transaction rebroadcast mechanism could expose node operators even when they have not recently spent any funds from their wallets.

Ismail successfully identified the nodes tracking individual Bitcoin addresses in all 30 observations during experiments conducted across six separate trials involving five target wallets on Bitcoin’s local regression testing network.

As previously reported by crypto.news, the findings have prompted discussions among developers about whether automatic transaction rebroadcasting should remain enabled by default.

How does the Bitcoin Core privacy flaw work?

Bitcoin Core wallets periodically announce unconfirmed transactions to their peers to help ensure payments reach the network. The process takes place within a 12 to 36-hour window and applies to both incoming and outgoing transactions.

According to Ismail, the behavior creates a recognizable signal because ordinary transaction relay nodes do not independently announce old transactions from their mempools to newly connected peers in the same manner.

An external observer could exploit the difference by monitoring how nodes respond to unsolicited payments sent to previously used Bitcoin addresses.

Ismail estimated that the transaction costs associated with targeting an individual address could range from $0.18 to $0.34, based on the type of Bitcoin address involved and a BTC price of approximately $59,000 on Nov. 25.

Repeated observations could allow blockchain analysis firms to group multiple addresses based on their association with individual nodes, even when wallet operators have avoided address reuse.

There are limitations to such classifications, since exchanges and shared wallet infrastructure can monitor addresses belonging to multiple individuals, while a single Bitcoin holder may operate several nodes.

Private transactions and third-party Bitcoin wallets could be affected

The privacy weakness extends to watch-only wallets, which monitor addresses and transaction histories without storing the private keys required to spend the associated funds.

Among the potentially affected applications identified by Ismail were Bitcoin Knots, Specter Desktop, Fully Noded, Gordian Wallet, JoinMarket, Jam, Caravan and Electrum Personal Server.

Sparrow Wallet and Liana could inherit the same behavior when configured to use specific Bitcoin Core backends, while Lightning Network implementation Eclair relies on a Core wallet for its on-chain transactions.

According to the researcher, Bitcoin Core’s private transaction broadcasting feature does not provide complete protection because its privacy restrictions apply to the initial announcement of a payment but not subsequent automatic rebroadcasts.

Nodes that communicate through both Tor and the public internet could consequently disclose their public IP addresses, despite relying on privacy networks for certain connections.

Restricting connections exclusively to Tor or I2P would prevent public IP exposure through this mechanism, although the Bitcoin address could still be associated with the node’s identity on either network.

Developers consider making wallet rebroadcasting optional

One proposed software change, documented in Bitcoin Core pull request #36482, would limit automatic transaction rebroadcasting to payments newly added to a node’s mempool.

In a September GitHub discussion, Bitcoin Core contributor Vasil Dimov described automatic wallet rebroadcasting as a “privacy nightmare,” arguing that the functionality exposed users to privacy risks even when they did not benefit from it.

Dimov proposed introducing a separate configuration option that would allow users to disable periodic rebroadcasting without affecting the initial announcement of outgoing transactions.

Bitcoin Core contributor Martin Zumsande argued that the modification would leave node operators vulnerable under certain circumstances, particularly when transactions are removed from mempools but remain recorded as unconfirmed in the wallet.

“36482 only raises the cost of the active attack slightly, it doesn’t prevent it,” Zumsande wrote on Nov. 25.

The developer recommended making automatic rebroadcasts of incoming payments optional, with recipients retaining the ability to manually announce transactions when an expected payment remains unconfirmed.