返回

A tiny payment can expose the IP address behind a bitcoin wallet, developer finds

中性分享至X(推特)Telegram
A tiny payment can expose the IP address behind a bitcoin wallet, developer finds

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 earlier this week, in a move that may theoretically marr 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, where the a 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.

Many Bitcoin users run Bitcoin Core, the software that powers most of the network, on their own computers. That setup, known as a node, keeps its own copy of Bitcoin's transaction history, communicates with other nodes and can hold a wallet.

Every node also has an IP address, the number that identifies an internet connection. It 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 to help it get processed. Most payments are confirmed well before then, so the behavior rarely comes into play.

An attacker can make it come into play 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. Then the attacker waits. A day or so later, the only node that announces that payment again is the one whose wallet is keeping track of that address. By connecting to likely nodes and watching which one speaks up, the attacker can tie a wallet to an internet connection, and possibly to a home.

Each planted payment costs about 18 to 34 cents, with Bitcoin trading near $60,000.

The exposure reaches past Core to various bitcoin wallets that run on top of it, 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.

As such, a user can switch the habit off with a setting called -walletbroadcast=0, but then every transaction has to be sent by hand.

A proposed code change, PR #36482, would resend only payments newly added to the node's memory pool, 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 Zumsande pointed to sit in separate pull requests, #36398 and #36481.

前往 CoinDesk 閱讀原文

更多新聞