Flood-and-Loot Attack

Flooding the chain with transactions so a Lightning counterparty cannot get its penalty transaction confirmed in time.

Basically

An attacker closes many Lightning payment channels at once to clog Bitcoin. The delay can stop you from reclaiming your money before a deadline passes.

Key Takeaways

  • A flood-and-loot attack has two phases. The attacker force-closes many channels using revoked states, then profits when congestion stops victims' justice transactions from confirming in time.
  • Jona Harris and Aviv Zohar formalised the attack in a 2020 research paper. It exploits Bitcoin's finite block space and the time limits on HTLCs to steal funds from routing nodes.
  • Anchor outputs, package relay and watchtower services can reduce the risk. Statechains-based protocols like Spark avoid the attack entirely because they do not use penalty-based channels.

What Is a Flood-and-Loot Attack?

A flood-and-loot attack targets the Lightning Network by exploiting the link between on-chain block space and off-chain channel enforcement. The attacker force-closes many channels at once to congest the Bitcoin blockchain. The resulting traffic can stop victims from broadcasting penalty transactions before their timelock windows expire.

Jona Harris and Aviv Zohar of The Hebrew University of Jerusalem formalised the attack in the 2020 paper "Flood & Loot: A Systemic Attack On The Lightning Network". They presented it at the ACM Conference on Advances in Financial Technologies (AFT '20). Their simulations showed that an attacker targeting as few as 85 channels at once could guarantee theft of funds, assuming no competing blockchain transactions.

The flood-and-loot attack is systemic rather than an isolated channel attack. It turns Bitcoin's shared block space into a weapon against multiple victims at once. More targeted channels create more congestion and increase the attacker's probability of success.

How It Works

The attack has two distinct phases. Each phase exploits a different property of the Lightning Network's security model.

Phase 1: Flood

The attacker operates two Lightning nodes, a source node and a target node, with no direct connection between them. The source node opens channels with victim routing nodes along paths to the target node. The attacker then carries out the attack steps after establishing the channels.

Each Lightning channel can hold hundreds of concurrent HTLCs. LND, for example, allows up to 483 concurrent HTLCs per channel. Filling channels across dozens of victims generates thousands of transactions that must compete for limited block space.

Phase 2: Loot

The attacker exploits the time-bounded nature of HTLC resolution while closing transactions congest the blockchain. The attack's next steps use these time limits to steal funds.

The attacker knows exactly when the timelocks expire and can time their transactions accordingly. Victims must compete blindly in a congested fee market, giving the attacker an asymmetric advantage.

Attack Parameters

The original research identified several implementation-specific parameters that affect the attack's feasibility. These parameters determine how easily the attacker can create congestion and steal funds.

The researchers simulated an attack on 100 channels and found that the attacker successfully stole 7,402 out of 48,300 HTLC payments. At the time of publication, 95% of Lightning nodes accepted channel-opening requests from unknown nodes. That acceptance rate made the setup phase trivial.

Mitigations

The original paper proposed eight mitigations. Several have since been implemented across Lightning Network software, but none fully eliminates the attack on its own.

Anchor Outputs

Anchor outputs let either party use child-pays-for-parent (CPFP) to raise the fee on a commitment transaction after broadcasting it. Victims can then increase their transaction priority and counter the attacker's fee-manipulation strategy. Anchor outputs are now deployed in all major Lightning implementations.

Package Relay

Package relay is a Bitcoin Core relay policy that lets nodes evaluate a parent transaction's feerate together with its children. A low-fee commitment transaction can still propagate through the network when a high-fee child transaction accompanies it. Combined with v3 transaction policy, package relay significantly strengthens victims' ability to get justice transactions confirmed under congestion.

Watchtower Services

Watchtowers are third-party services that monitor the blockchain for Lightning users and broadcast justice transactions if a counterparty publishes a revoked state. They submit penalty transactions even when a victim is offline during an attack. However, watchtowers face the same block space congestion as victims during a flood-and-loot attack.

Reduced HTLC Limits

A lower max_accepted_htlcs parameter reduces the number of HTLCs an attacker can stack in each channel and limits the flood's intensity. Routing node operators can configure this parameter to balance routing throughput against attack exposure.

Longer Timelocks and Earlier Closing

A higher HTLC expiry delta or earlier channel closing through a higher commitment broadcast delta gives victims more blocks to confirm their transactions. Eclair's default HTLC expiry of 144 blocks provides substantially more buffer than LND's 40 blocks. Longer timelocks also increase capital lockup for routing nodes.

Why It Matters

The flood-and-loot attack exposes a fundamental tension in penalty-based payment channel designs. Security depends on publishing transactions on-chain within a time window, but block space is shared and finite. An attacker who saturates that resource undermines the enforcement mechanism that keeps channels honest.

Layer-2 protocol design must account for the dependency on timely on-chain access. Payment channel networks like Lightning inherit that dependency, creating a class of attacks that alternative scaling approaches can avoid. Statechains-based protocols like Spark transfer ownership of UTXOs through cooperative key signing rather than penalty-based channel closures, so there are no revoked states to publish and no justice transactions to race. The flood-and-loot attack vector therefore does not apply.

Lightning routing node operators can reduce their exposure by setting conservative HTLC limits and running watchtower services. They should also keep node software updated with the latest mitigations, including anchor outputs and package relay support.

Related Attack Vectors

The flood-and-loot attack belongs to a broader family of Lightning Network attacks. These attacks exploit HTLC mechanics and on-chain enforcement.

No Confirmed Real-World Exploitation

No confirmed instances of a flood-and-loot attack had been documented on the Lightning Network mainnet as of 2026. The researchers responsibly disclosed the attack to the developers of LND, C-Lightning and Eclair before publishing the paper. The attack remains theoretically viable, and improvements to Lightning's security model continue to address the underlying vulnerabilities.

Attacker Cost and Risk

The attacker must open channels with real Bitcoin and pay on-chain fees for channel openings and closures. A failed attack can cost the attacker those fees, and the cost scales with the number of targeted channels. A successful attack can nevertheless yield stolen HTLC funds that significantly exceed those costs.

Evolving Defenses

The Lightning Network's defences against flood-and-loot attacks have improved substantially since the 2020 paper. Anchor outputs, package relay and v3 transaction policies each address different aspects of the attack. Their combination makes the attack considerably harder to execute profitably, but no single defence fully eliminates the underlying vulnerability of competing for finite block space.

The information in this glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.

0

← All 1876 glossary terms