What is a BGP Hijack?

A BGP hijack occurs when a network announces IP prefixes it does not legitimately control. Because BGP is built on trust — routers generally accept route announcements from their peers without cryptographic verification — a malicious or misconfigured network can redirect traffic intended for someone else. Hijacks can result in traffic interception, denial of service, or large-scale surveillance, and have caused some of the most dramatic internet outages on record.

How BGP Hijacking Works

Every prefix in the global routing table has a legitimate originating autonomous system. Suppose Google (AS15169) legitimately announces 8.8.8.0/24. Any router on the internet that receives this announcement learns "to reach 8.8.8.0/24, send traffic toward AS15169."

A hijacker in a different AS could announce the same prefix or a more specific sub-prefix. Routers follow the longest prefix match rule, so a more-specific announcement always wins regardless of which AS announced it first.

BGP Hijack: More-Specific Prefix Attack Internet Routers Google (AS15169) announces 8.8.8.0/24 Hijacker (AS99999) announces 8.8.8.0/25 ← more specific! legitimate /24 hijack /25 wins! Traffic for 8.8.8.0–8.8.8.127 diverted to hijacker

Types of BGP Hijacks

Real-World BGP Hijacks

BGP hijacks have caused major real-world disruptions:

Why BGP Was Designed This Way

BGP was designed in 1989 (RFC 1105) for a small, trusted academic network where all participants knew each other. The trust model — accepting routes from peers without verification — made sense for a network of dozens of universities. With over 100,000 autonomous systems on the modern internet, that trust model is a serious vulnerability.

RFC 4271 (BGP-4, 2006) standardized the current protocol but did not add cryptographic authentication of route origin. There was no practical mechanism to verify that an AS announcing a prefix actually owned it.

Defenses Against BGP Hijacking

RPKI (Resource Public Key Infrastructure)

RPKI is the primary deployed defense. It allows IP address holders to create cryptographically signed Route Origin Authorizations (ROAs) that specify which ASNs are authorized to announce which prefixes, and the maximum prefix length allowed. Routers that perform Route Origin Validation (ROV) can drop announcements that are RPKI-invalid — those whose origin AS or prefix length does not match a ROA.

RPKI adoption has grown significantly since 2019. As of 2025, over 50% of the global routing table is covered by ROAs, and major transit providers including AT&T, Telia, NTT, and Deutsche Telekom perform ROV, meaning they discard invalid routes. However, universal deployment is still years away.

IRR Filtering

Internet Routing Registries (IRRs) like the RIPE NCC database allow networks to publish routing policies. Operators can filter BGP announcements against these records — accepting only routes that match registered prefixes and AS paths. IRR filtering is less robust than RPKI (data quality varies and records can be spoofed), but is widely deployed as a first line of defense.

BGPsec

RFC 8205 defines BGPsec, which extends BGP to carry cryptographic signatures over the full AS path, not just the origin. This prevents AS path manipulation attacks. However, BGPsec is computationally expensive and requires all ASes in a path to support it — adoption has been minimal.

Monitoring and Detection

BGP looking glasses and monitoring services like BGPmon and RIPE's RIS allow operators to detect unexpected changes in their prefix origins or AS paths. Detecting a hijack within minutes allows for rapid escalation to upstream providers to withdraw the malicious routes.

Verify Your Prefixes

You can check any prefix's current origin AS and routing path right now to verify it matches the legitimate holder:

See BGP routing data in real time

Open Looking Glass
← Previous What is Peering? How Networks Interconnect
More Articles
What is BGP? The Internet's Routing Protocol Explained
What is an Autonomous System (AS)?
What is a BGP Looking Glass?
How to Look Up an IP Address's BGP Route
Understanding BGP AS Paths
What is RPKI? Securing BGP Routing