A Bitcoin Core contributor found that a payment costing less than 35 cents can reveal the IP address of the computer watching a bitcoin wallet. The technique picked the right computer in all 30 trials on a test network, but nobody has measured it on the live network yet.
A payment worth less than 35 cents is enough to find the internet address of the computer watching a bitcoin wallet, Bitcoin Core contributor Abubakar Sadiq Ismail said. The move may theoretically harm the privacy of affected users.
Ismail laid out the attack in a post on Delving Bitcoin, a forum for bitcoin developers. On a test network built from standard Core software, the software meant to watch transactions picked the right computer 30 times out of 30. It hasn't yet been measured on Bitcoin's live network.
How a stuck payment gives the node away
Many users run Bitcoin Core on their own computers. That setup, known as a node, keeps its own copy of Bitcoin's transaction history and can hold a wallet. Every node also has an IP address, which can point to an internet provider, a city and sometimes a specific home.
When a payment to or from a Bitcoin Core wallet goes unconfirmed for roughly 12 to 36 hours, the software announces it to other nodes again. Most payments confirm well before then, so the behavior rarely comes into play.
An attacker can trigger it on purpose. The attacker sends a tiny payment with the lowest fee the network allows to an address that has already been used, so the payment is unlikely to go through. A day or so later, the only node that announces the payment again is the one whose wallet tracks that address. By connecting to likely nodes and watching which one speaks up, the attacker can tie a wallet to an internet connection.
Cost, reach and possible fixes
Each planted payment costs about 18 to 34 cents, with Bitcoin trading near $60,000. The exposure also reaches wallets built on top of Core, including Sparrow in its Core mode, Specter, Liana, JoinMarket and Electrum Personal Server. Nodes that hide behind Tor but keep some regular internet connections can leak their real IP too, because the reannouncement goes out on every network.
Users can switch the habit off with a setting called -walletbroadcast=0, but then they have to send every transaction by hand. A proposed code change, PR #36482, would resend only payments newly added to the node's mempool, its list of transactions waiting to confirm.
Fellow Core contributor Martin Zumsande replied that the change "only raises the cost of the active attack slightly" and wants resending of incoming payments made opt-in. PR #36482 is unreleased, and the opt-in versions sit in separate pull requests, #36398 and #36481.
Source: CoinDesk
Trading involves risk.