[Paper Review] Probing Channel Balances in the Lightning Network
This paper demonstrates that an attacker can efficiently probe and infer the balance distribution in Lightning Network channels using a low-cost, reversible probing technique that exploits HTLC-based error responses. The method reveals channel balances in under a minute per channel with minimal capital commitment, exposing a critical privacy-efficiency tradeoff in LN's design.
As Lightning network payments are neither broadcasted nor publicly stored. Thus LN has been seen not only as scalability but also as privacy solution for Bitcoin. The protocol guarantees that only the latest channel state can be confirmed on channel closure. LN nodes gossip about channels available for routing and their total capacities. To issue a (multi-hop) payment, the sender creates a route based on its local knowledge of the graph. As local channel balances are not public, payments often fail due to insufficient balance at an intermediary hop. In that case, the payment is attempted along multiple routes until it succeeds. This constitutes a privacy-efficiency tradeoff: hidden balances improve privacy but hinder routing efficiency. In this work, we show that an attacker can easily discover channel balances using probing. This takes under a minute per channel and requires moderate capital commitment and no expenditures. We describe the algorithm and test our proof-of-concept implementation on Bitcoin's testnet. We argue that LN's balance between privacy and routing efficiency is suboptimal: channel balances are neither well protected nor utilized. We outline two ways for LN to evolve in respect to this issue. To emphasize privacy, we propose a modification of error handling that hides details of the erring channel from the sending node. This would break our probing technique but make routing failures more common, as the sender would not know which channel from the attempted route has failed. To improve efficiency, we propose a new API call that would let the sender query balances of channels that it is not a party of. We argue that combining these approaches can help LN take the best of both worlds: hide private data when feasible, and utilize public data for higher routing efficiency.
Motivation & Objective
- To investigate the extent to which channel balances in the Lightning Network are exposed to probing attacks despite privacy guarantees.
- To evaluate the feasibility and cost of probing channel balances using HTLC-based error responses.
- To identify the privacy-efficiency tradeoff in LN's current design, where hidden balances hinder routing efficiency.
- To propose solutions that improve either privacy or routing efficiency without compromising the network's core properties.
- To assess the impact of probing on network stability and the risk of hanging HTLCs.
Proposed method
- The attacker opens a small number of entry channels with sufficient capacity to probe multiple routes.
- The attacker sends HTLCs with increasing amounts along multi-hop routes to infer the balance of a target channel based on error responses.
- The method relies on the fact that intermediate nodes return immediate errors when a channel lacks sufficient balance, revealing the balance of the failing channel.
- The attacker uses multiple routes and avoids channels with hanging HTLCs by using smaller probe amounts or retrying with different paths.
- The technique is reversible: all failed HTLCs are cleaned up after probing, so no funds are permanently lost.
- The authors implement and test the probing method on Bitcoin's testnet using the c-lightning implementation.
Experimental results
Research questions
- RQ1Can an attacker infer the balance of a Lightning Network channel without direct access or knowledge of the channel state?
- RQ2What is the cost and time efficiency of probing channel balances using HTLCs and error responses?
- RQ3How does the presence of parallel channels affect the reliability of probing attacks?
- RQ4To what extent does the current LN design compromise privacy due to balance leakage through error messages?
- RQ5What architectural changes could improve the balance between privacy and routing efficiency in LN?
Key findings
- An attacker can probe and determine the balance of over 90% of active channels on the testnet in under a minute per channel.
- The probing attack requires only a minimal capital commitment—up to 0.167 BTC (approx. $1500) for full coverage—due to the reversible nature of failed HTLCs.
- The attack is scalable: a single attacker with a few entry channels can probe the entire network using arbitrarily long routes.
- The presence of hanging HTLCs reduces probing efficiency, but the attacker can mitigate this by using smaller probe amounts or multiple entry channels.
- The current LN error handling leaks critical balance information, undermining the privacy guarantees of onion routing.
- The study confirms that the current balance privacy model is suboptimal, as it fails to protect balances while also not enabling efficient routing due to lack of public balance data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.