A yellow shutter blocks a red probe beam on Bitcoin-marked hardware beside connected junction boxes in a cobalt paper collage.
Image by CryptoSlate

Bitcoin Lightning fix blocks a probe linking private channels to onchain funding

LDK’s fix blocks a funding-location probe that required connections to both endpoints of an unannounced channel.

Quick Take

  1. LDK has a fix for an onion-message probe that could link an unannounced channel to its Bitcoin funding output.
  2. Successful probing required connections to both suspected endpoints and a guessed real short-channel ID derived from the funding output.
  3. Valid aliases remain usable. Which wallet releases and deployments include the fix still needs confirmation.

Lightning Development Kit (LDK), software used to build Bitcoin Lightning applications, has a privacy fix that blocks a documented probe linking an unannounced channel to the Bitcoin output backing it. The probe exploited how LDK forwarded onion messages, turning a guessed channel identifier into confirmation of a connection between two suspected nodes.

Bitcoin Optech highlighted the change on October 30. An unannounced channel stays out of the public network map, but that alone did not prevent LDK’s message-forwarding lookup from confirming its funding link.

Related Reading

Core Lightning patches critical security flaws and a Bitcoin payment bug

A real short-channel ID, or SCID, works like blockchain coordinates. The Lightning specification defines it using the block height, the transaction’s position within that block and the output’s position within that transaction. Together, those identify the particular Bitcoin output funding a channel.

An attacker can derive a candidate ID from an output’s location without yet knowing whether it belongs to a channel between the suspected nodes. The documented probe supplies that missing confirmation. It requires the attacker to connect to both endpoints and construct an onion-message path through them that returns to the attacker.

Before the fix, LDK’s channel lookup could resolve a real SCID even for an unannounced channel once its funding confirmed. If the message returned successfully, the attacker could confirm that the guessed output and the channel between those nodes matched.

The demonstrated leak therefore joins two pieces of information: a Bitcoin funding output and the Lightning nodes using it.

Related Reading

Lightning apps using unpatched LDK risk Bitcoin theft from a reconnect lie

What the fix changes

LDK now refuses to resolve an unannounced channel’s real SCID for onion-message forwarding. Valid aliases remain usable as alternative identifiers, so a sender can address the channel without using its real blockchain coordinates. The change closes this lookup route while preserving forwarding that uses an allowed alias.

The change is described in the pull request. Under BOLT 4’s onion-routing rules, an onion-message SCID must correspond to an announced identifier or a local alias.

The fix’s inclusion in installed wallet versions remains unverified. Users need confirmation from their wallet provider before assuming installed software has this protection.

Related Reading

Eclair tightens Bitcoin funding rules after unconfirmed inputs put Lightning payments at risk

Article context

Mentioned in this article

Related Asset Bitcoin #1 BTC $77,645.82 24-hour change: up 0.09% Loading price history… 24H Up 0.09% 7D Down 3.54% 30D Down 8.99%