---
title: "Eclipse Attack — definition | Nuri Glossary"
description: "Surrounding a node with attacker-controlled peers so it sees a false version of the network."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/eclipse-attack"
---

# Eclipse Attack

Surrounding a node with attacker-controlled peers so it sees a false version of the network.

## Basically

An eclipse attack takes over every connection your Bitcoin node uses and cuts it off from the honest network. The attacker can then trick you with false payments or misuse your mining power.

## Key Takeaways

- An eclipse attack isolates your Bitcoin node by filling every peer connection with adversary-controlled nodes. You lose contact with the honest network, which enables double spends or block withholding.
- The attacker fills your peer tables with adversary IP addresses and waits for a restart or connection cycle. Once every inbound and outbound slot leads to the attacker, you see only the attacker's version of the blockchain.
- Bitcoin Core mitigations include deterministic peer rotation, bucketed address tables and outbound connection diversity. Lightning Network nodes face added risk because stale channel state can lead to direct theft of funds.

## What Is an Eclipse Attack?

An eclipse attack is a network-level attack in which an adversary takes control of all peer connections to a target node. A Sybil attack floods the network with fake identities, but an eclipse attack targets one victim node. The attacker aims to isolate you from the rest of the network and feed you false information by hiding new blocks, censoring transactions or presenting a forged version of the chain.
The name describes how the attacker "eclipses" your view of the network, like a moon blocking out the sun. Your node believes it is communicating with the wider Bitcoin network, but every message you send and receive passes through adversary-controlled peers. You have no obvious sign that anything is wrong, which makes the attack particularly dangerous.
Heilman, Kendler, Zohar and Goldberg formally described eclipse attacks in the 2015 paper "Eclipse Attacks on Bitcoin's Peer-to-Peer Network". Their research showed that an attacker with as few as a handful of IP addresses could eclipse a Bitcoin node under certain conditions. The findings prompted significant changes to Bitcoin Core's networking code.

## How It Works

Bitcoin nodes maintain connections to a set of peers so they can relay transactions and blocks. A typical Bitcoin Core node maintains 8 outbound connections initiated by the node and accepts up to 117 inbound connections initiated by others. The attacker targets both types of connection.

## Populating the Peer Table

Bitcoin Core stores known peer addresses in two tables: the "new" table for addresses the node has heard about but never connected to, and the "tried" table for addresses it has successfully connected to before. Each table is divided into buckets. A hash function based on the address and the node's own identity assigns addresses to buckets.
The attacker floods your tables with adversary-controlled addresses through several methods. The goal is to fill the "new" and "tried" tables with those addresses.
The attacker's addresses gradually crowd out legitimate peer addresses in both tables. The attacker does not need to displace every honest entry. They only need enough presence for your node to pick attacker nodes consistently when it selects peers.

## Executing the Eclipse

The eclipse becomes effective when your node restarts or drops and re-establishes connections. The attacker can then occupy every inbound and outbound slot.

## Attack Goals and Exploitation

An eclipsed node gives the attacker several ways to manipulate your view of the network. The specific exploitation depends on whether you are a miner, a merchant or a Lightning node.

## Double Spending

The most direct exploit targets merchants who accept zero-confirmation transactions: the attacker sends a transaction paying the eclipsed merchant, who sees it arrive and considers it valid, while broadcasting a conflicting transaction that spends the same UTXOs to the real network. The merchant never sees the conflicting transaction or the blocks confirming it, so they deliver goods or services based on a transaction that will never confirm. Merchants waiting for confirmations are also vulnerable if the attacker can withhold blocks long enough to present a shorter, fake chain to the victim.
The risk is closely related to replace-by-fee double spends. Eclipse attacks are more powerful because you cannot see the replacement transaction at all.

## Selfish Mining Amplification

An attacker can withhold blocks from an eclipsed miner, causing them to mine on stale chain tips. The eclipsed miner wastes hash power on blocks the network has already passed. The attacker can redirect this wasted work to benefit their own mining operation, effectively borrowing the victim's hash rate.

## Transaction Censorship and Time Manipulation

The attacker controls what you see and can exploit that control in additional ways. Transaction censorship and time manipulation are two such exploits.

## Bitcoin Core Mitigations

Bitcoin Core implemented numerous defences after the 2015 disclosure, making eclipse attacks significantly harder. Subsequent releases have refined these mitigations.

## Address Table Bucketing

Bitcoin Core uses a deterministic bucketing scheme for its new and tried tables. A keyed hash of the IP address and the source that advertised it assigns each address to a bucket. An attacker controlling a single IP range cannot dominate all buckets because their addresses cluster into a limited number of buckets, leaving room for honest peers.

## Outbound Connection Diversity

Bitcoin Core selects outbound peers from different address groups, typically /16 IP ranges, to ensure network diversity. It also maintains 2 additional "block-relay-only" outbound connections that do not participate in address gossip, making them invisible to the attacker and harder to target.

## Feeler Connections

Bitcoin Core periodically makes short-lived "feeler" connections to random addresses from the new table. A successful connection moves the address to the tried table. The process continuously verifies that the tried table contains reachable, legitimate peers and dilutes any attacker-injected entries.

## Anchors and Restart Protection

Bitcoin Core has persisted its block-relay-only connections across restarts in an anchors.dat file since version 0.21. On startup, the node reconnects to these anchor peers before selecting new outbound connections. The attacker therefore cannot exploit restart events to capture all outbound slots simultaneously.

## Eclipse Attacks on the Lightning Network

Eclipse attacks pose heightened risks for Lightning Network nodes. A Lightning node that cannot see the latest blockchain state may miss critical channel updates, with direct financial consequences.
An attacker could eclipse a Lightning node and then broadcast an old, revoked channel state on-chain. Normally, the victim would detect the revoked commitment transaction and respond with a justice transaction to claim the penalty, but an eclipsed victim never sees the revoked broadcast and misses the dispute window. The attacker can then steal funds using outdated channel state.
Watchtowers are therefore critical infrastructure for Lightning nodes. A watchtower monitors the blockchain on your behalf and can submit justice transactions even if your node is offline or eclipsed. Watchtowers running on separate network infrastructure from the main node provide defence-in-depth against eclipse attacks.
Eclipse attacks can also enable routing attacks on Lightning by manipulating your view of channel gossip messages. The attacker can feed you false channel updates, causing you to route payments through attacker-controlled channels where fees can be extracted or HTLCs can be intercepted.

## Protection Strategies

Node operators can take several steps beyond the built-in Bitcoin Core mitigations. These steps reduce exposure to eclipse attacks.

## Risks and Considerations

Eclipse attacks remain a real threat despite the significant mitigations in modern Bitcoin Core releases. The attack surface has narrowed considerably: the original 2015 attack required only a few machines, while current mitigations demand substantially more resources. Well-funded adversaries, including state actors and large criminal organisations, may still possess sufficient infrastructure.
The risk is especially acute for nodes on restricted networks, behind NAT without port forwarding, which limits them to outbound-only connections, or on cloud infrastructure where the attacker can predict or control network topology. Nodes accepting zero-conf channels or zero-confirmation payments should be particularly cautious because eclipse attacks directly enable double-spend exploits against these use cases.
The research article on onion routing and Lightning privacy provides more detail on network-level privacy and routing protections in the Lightning context. The payment channels deep dive explains how Lightning channel security works and the role of penalty mechanisms.
The 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.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
