BGP Hijacking

Falsely claiming another network's IP range so traffic, including peer connections, flows through an attacker.

Basically

Attackers can lie about which internet addresses they control. This can redirect Bitcoin traffic through their networks.

Key Takeaways

  • BGP hijacking exploits the internet's routing infrastructure by falsely claiming ownership of IP address ranges. BGP has no built-in authentication, so any autonomous system can claim prefixes it does not control.
  • Bitcoin is particularly exposed. Research shows that just 3 ISPs can intercept over 60% of all Bitcoin connections, while hijacking fewer than 100 prefixes could isolate roughly 50% of the network's hashrate.
  • Mitigations include encrypted peer-to-peer connections through BIP 324, routing over Tor, diverse peers across multiple ISPs, and gradual RPKI adoption to authenticate route announcements. Running a Bitcoin node with these protections significantly reduces exposure.

What Is BGP Hijacking?

BGP hijacking is a routing attack where a network operator falsely claims ownership of IP address ranges, known as prefixes, that belong to someone else. The Border Gateway Protocol (BGP) directs traffic between autonomous systems (ASes) such as ISPs, cloud providers, enterprises and hosting companies. Neighbouring networks accept and propagate these announcements, building the global routing tables that determine how packets travel across the internet.

BGP was designed in the 1980s for reachability and cooperation between networks, not for verifying ownership claims. It has no built-in mechanism to confirm that an AS controls the IP addresses it advertises. Any autonomous system can therefore broadcast a fraudulent route, diverting some or all traffic meant for the legitimate owner through the attacker's network.

Bitcoin relies on internet routing to propagate blocks and transactions between nodes. An attacker who manipulates BGP routes can intercept, delay or drop Bitcoin traffic. This can partition the network, censor transactions or enable double-spend attacks.

How It Works

A BGP hijack typically follows a predictable pattern. The attacker needs control of an autonomous system, which could be an ISP they operate, a compromised network or even a small AS number purchased from a regional internet registry.

Partition Attacks on Bitcoin

A partition attack isolates a group of Bitcoin nodes from the rest of the network. The isolated segment keeps mining and processing transactions on its own fork, unaware that the wider network is building a different chain. Research by Apostolaki, Zohar, and Vanbever (2017 IEEE S&P) showed that hijacking fewer than 100 BGP prefixes could isolate approximately 50% of Bitcoin's mining power, and that diverting Bitcoin traffic via BGP takes less than 2 minutes.

Bitcoin's longest-chain rule discards the shorter chain when the partition is lifted. All transactions confirmed only on that chain are reversed, creating opportunities for double spending. Miners on the shorter chain also lose their block subsidies and fees.

Delay Attacks

A delay attack is a more subtle variant. An on-path ISP can selectively delay block propagation by tampering with Bitcoin P2P messages. The same 2017 research showed that an attacker could delay blocks reaching a target node by up to 20 minutes without detection, while intercepting just 50% of a node's connections keeps it uninformed for 63% of its uptime.

Delay attacks are particularly dangerous because they are hard to detect. The victim node still receives blocks, just late. This wastes mining power, enables selfish mining strategies and can facilitate transaction censorship.

Traffic Interception

Bitcoin Core 27.0 enabled BIP 324 encrypted transport by default, but all Bitcoin P2P communication was previously plaintext. An attacker performing a BGP hijack could easily identify Bitcoin traffic, read transaction contents, map which nodes originated specific transactions and modify messages in transit. Even with encryption, an active man-in-the-middle can intercept connections unless peers verify session IDs out-of-band.

Real-World Incidents

BGP hijacking is not theoretical. Multiple incidents targeting cryptocurrency users and infrastructure have been documented.

2014 Bitcoin Mining Pool Hijack

From February to May 2014, an attacker used a compromised administrator account at a Canadian ISP to broadcast fraudulent BGP routes. The hijack redirected miners from legitimate pools to attacker-controlled servers, exploiting the unauthenticated Stratum mining protocol to issue reconnect commands. The attacker hijacked 51 networks across 19 ISPs, including Amazon and Digital Ocean, stealing approximately $83,000 in Bitcoin and other cryptocurrencies over four months.

2018 Amazon Route 53 Hijack

In April 2018, attackers hijacked BGP prefixes belonging to Amazon's Route 53 DNS service. Traffic for five Class C networks was rerouted to a malicious DNS server, redirecting users of MyEtherWallet.com to a phishing site. The attack lasted approximately two hours and resulted in roughly $150,000 in stolen Ethereum.

2022 KLAYswap and Celer Bridge Attacks

In February 2022, attackers hijacked IP space belonging to a South Korean hosting provider to intercept a JavaScript library loaded by KLAYswap users, stealing approximately $1.9 million. Six months later, a separate BGP hijack targeted Amazon IP space to impersonate Celer Bridge infrastructure, resulting in $235,000 in losses across 32 victims.

Why It Matters for Bitcoin

The Bitcoin network is more centralised at the routing layer than most people realise. Research has found that only 13 autonomous systems host 30% of the entire Bitcoin network, and 50 ASes host half of all nodes. Three Tier-1 ISPs, Hurricane Electric, Level3 (now Lumen), and Telianet, can observe over 60% of all possible Bitcoin connections.

Routing centralisation lets nation-state actors or large ISPs perform BGP hijacking at scale with relatively little effort. A state that controls its national ISP infrastructure could partition its country's Bitcoin nodes from the global network, censor specific transactions or surveil all Bitcoin activity crossing its borders. This threat model extends beyond Bitcoin to any cryptocurrency or Layer 2 network that relies on internet routing.

Node operators and infrastructure providers need to account for BGP-level risks when building resilient systems. Solutions like Spark that operate as a Layer 2 on Bitcoin inherit these network-layer risks and must address them in their security models.

BIP 324: Encrypted P2P Transport

BIP 324 introduced opportunistic encryption for Bitcoin node-to-node communication using ChaCha20-Poly1305 authenticated encryption, and Bitcoin Core 27.0 enabled it by default in April 2024. It prevents passive eavesdropping and makes Bitcoin traffic harder to identify. Before BIP 324, all Bitcoin P2P traffic was plaintext, allowing ISPs to detect, monitor and tamper with it easily.

BIP 324 is a significant improvement, but it provides opportunistic encryption rather than authenticated encryption. An active man-in-the-middle attacker, which a BGP hijacker is, can still intercept connections unless peers verify session IDs through an out-of-band channel.

Tor and Onion Routing

Bitcoin Core natively supports Tor for node communication. Connections made over Tor .onion addresses never traverse the public BGP routing system, making them immune to BGP hijacking. Running Bitcoin exclusively over Tor introduces different risks, as research shows that Tor-only nodes are more susceptible to Sybil attacks and eclipse attacks via malicious exit nodes, so a mix of clearnet and Tor connections is recommended.

RPKI (Resource Public Key Infrastructure)

RPKI allows IP address holders to cryptographically sign Route Origin Authorisations (ROAs) that bind prefixes to authorised autonomous systems. Networks that implement Route Origin Validation (ROV) can automatically reject BGP announcements that conflict with signed ROAs.

As of 2025, approximately 52% of routed IPv4 address space and 62% of IPv6 space are covered by ROAs. All major backbone providers and Tier-1 ISPs now perform ROV, but nearly half of all IP address blocks remain uncovered, particularly among smaller networks and government organisations. RPKI adoption continues to grow, with ROA counts increasing 23% in 2025 to over 344,000 total records.

Diverse Peer Connections

Node operators can reduce BGP hijacking risk by connecting to peers across multiple autonomous systems. A single honest peer connection is enough to detect a partition attack because that peer will relay blocks and transactions from the legitimate chain. Operators can manually add peers in diverse ASes using the -addnode configuration option, while mining pools already practise multi-homing across at least two ASes as standard operational security.

BGP Monitoring

Real-time monitoring services such as BGPStream, RIPE RIS, and Kentik can alert operators to anomalous route announcements affecting their IP prefixes. Node operators should watch for sudden changes in round-trip time, unexpected shifts in peer distribution across ASes or simultaneous disconnections from multiple peers, all of which can indicate an active BGP hijack.

No Complete Solution Exists

RPKI adoption is growing but remains incomplete. Even with universal RPKI deployment, BGP path validation, which verifies the entire AS path rather than just the origin, requires additional standards like ASPA (Autonomous System Provider Authorization), which covered only about 0.5% of internet ASes as of early 2025. Full protection against BGP hijacking at the routing layer remains years away.

ISP-Level Attackers Are Hard to Defend Against

An ISP that legitimately carries a node's traffic does not need to perform a BGP hijack because it is already on the path. It can inspect, delay or modify traffic without any detectable routing anomaly. BIP 324 helps against passive observation, but active interception by the node's own ISP remains a challenge that only Tor or VPN tunnels can address.

Trade-offs Between Privacy and Resilience

Tor protects against BGP hijacking but increases exposure to eclipse attacks via malicious Tor nodes. Clearnet provides resilience against Tor-specific attacks but exposes connections to BGP-level manipulation. Privacy-conscious operators should use a hybrid configuration with some connections over Tor and some over clearnet, ideally through multiple ISPs.

Layer 2 Networks Inherit the Risk

Lightning Network nodes, Spark operators and other Layer 2 infrastructure all communicate over the same internet routing fabric, so a BGP hijack targeting Lightning node IP addresses could disrupt channel operations, intercept HTLC traffic or partition the Lightning gossip network. Layer 2 operators should apply the same mitigations as on-chain node operators: encrypted transport, diverse connectivity and active monitoring. This glossary entry is for informational purposes only and does not constitute financial or investment advice, so always do your own research before using any protocol or technology.

0

← All 1876 glossary terms