The quick download:
A healthy service can still go dark worldwide when someone else announces a route for your IP space and the Internet believes them.
-
BGP was built on mutual trust, so a misconfigured or malicious announcement can spread false routing information across the Internet unchecked
-
Prefix hijacks originate or manipulate routes for address space an AS doesn’t control, blackholing or intercepting traffic, while route leaks push legitimate routes beyond their intended scope and overload links
-
Prevention tools like RPKI, prefix filtering, and BGPsec reduce risk but can’t catch path manipulation or leaks that slip through, leaving gaps only external monitoring closes
-
Pair outside-in Internet-path visibility with internal telemetry so your team can spot a routing anomaly, measure who is affected, and correct it fast
A public-facing service can be perfectly healthy inside your data center and still go dark for customers around the world. No server failed and no application crashed. Someone else announced a route for your IP addresses, and the Internet believed them.
That’s BGP prefix hijacking.
Together with route leaks, it can silently divert or blackhole traffic that should reach you. Internal infrastructure monitoring can’t see it, because the problem lives in the global routing table, outside your own network.
Catching it takes an outside-in view from many vantage points across the Internet. Watching your own servers won’t show a route change happening two networks away.
This guide is written for network engineers, ISP operators, SREs, and infrastructure teams running public-facing services. It builds on our BGP monitoring guide and earlier articles in this series. Those cover what BGP is, how BGP attributes shape decisions, and how BGP routing works in practice.
How BGP’s design leaves routing open to abuse
BGP has carried the Internet’s routing decisions for decades. Engineers designed it early, when the network had few operators who mostly trusted each other. That trust is now the weakness.
BGP didn’t account for deliberate or accidental errors. A misconfigured or malicious source can push false routing information across the Internet, and the protocol will carry it.
BGP also runs on TCP/IP, so it inherits classic attacks like IP spoofing. The source of a bad route can be a genuine BGP peer or a fake one.
It helps to separate four distinct jobs that protect routing:
- Authentication: confirming who you peer with.
- Origin validation: confirming an AS is authorized to originate a prefix.
- Filtering: controlling what routes you accept and announce.
- Monitoring: detecting the bad routes that still get through.
Filtering, RPKI, and BGPsec reduce risk by preventing bad routes from spreading. External monitoring works differently: it detects the announcements and path changes that slip past those defenses. Neither approach replaces the other, and each misses some cases on its own.
The IETF has defined Resource Public Key Infrastructure (RPKI) and BGPsec path validation. Both depend on many networks cooperating, which makes them hard to deploy at scale: RPKI Route Origin Validation only recently passed a major milestone after years of coordinated effort across networks, and BGPsec path validation remains largely undeployed.
BGP prefix hijacking exploits trust in route announcements
A BGP prefix hijack occurs when an AS originates or propagates unauthorized routing information for address space it does not legitimately control. Hijacks may result from malicious activity or configuration errors. Motives vary: an attacker can disrupt services running on the hijacked IP space or redirect traffic through infrastructure they control. That can expose traffic metadata and, where application traffic is not adequately protected by end-to-end encryption, enable inspection or modification of content.
Three terms make the scenarios below easier to follow:
- Origin AS: the autonomous system a route claims a prefix comes from.
- More-specific prefix: a smaller block inside a larger one, like 10.0.0.0/24 inside 10.0.0.0/23.
- Longest-prefix match: routers forward to the most specific matching route, so a /24 wins over a /23.
The three scenarios share one five-AS topology, shown below.
AS 5 is the attacker, connected to the Internet through two providers, AS 2 and AS 3.
AS 1 is a customer of AS 2 and a provider of AS 3, and AS 4 is a peer of AS 2. AS 2 runs strict incoming filters, while AS 1 and AS 3 run loose filters, if any.
AS 4 owns prefix P and peers with AS 2. AS 2 is a provider to AS 1, AS 3, and the attacker AS 5. AS 1 is a provider to AS 3, and AS 3 is a provider to AS 5. AS 2 runs strict filters; AS 1 and AS 3 run loose filters. peer AS 4 owns prefix P AS 2 strict filters AS 1 loose filters AS 3 loose filters AS 5 attacker provider to customer link peer link
The five-AS example topology is used in every scenario below.
Announcing a prefix that already belongs to another AS
AS 5 announces network P, which AS 4 already owns and advertises. AS 2 drops the update because of its filters. AS 3 accepts it and passes it to its providers, AS 1 and AS 2.
AS 2 drops it again, and AS 1 accepts it. If AS 1’s decision process picks the path through AS 5 as best, AS 1 sends traffic meant for AS 4 to the attacker.
Now scale this to tens of thousands of autonomous systems, each with its own filter policy. Some redirect traffic to the attacker, and the rest keep routing to the real owner. The share that goes the wrong way depends on the quality of the filters providers apply and the decision process at each AS.
This kind of BGP prefix hijacking is comparatively easy to detect. Traffic stops reaching the real owner, so route collectors, real-time BGP monitoring, or customer complaints can flag it.
Hijacking a subnet with longest-prefix match
In a second scenario on the same topology, AS 5 announces P1, a subnet of P that AS 4 owns but doesn’t advertise. If P is 10.0.0.0/23, then P1 could be 10.0.0.0/24 or 10.0.1.0/24.
AS 5 announces P1, a more-specific subnet of AS 4’s prefix P, only to AS 3. AS 3 accepts it because of loose filters and propagates it to AS 1. AS 2’s strict filters drop the bogus announcement, so AS 5 keeps a clean route to AS 4. announces P1 AS 2 drops P1 ✗ AS 4 owns P AS 2 strict filters AS 1 accepts P1 AS 3 accepts P1 AS 5 attacker
AS 5 announces the more-specific prefix P1 only where filters are loose, so longest-prefix match pulls traffic toward the attacker.
AS 5 announces P1 only to AS 3, whose filters are loose. It relies on AS 2’s strict filters to keep a clean route to the destination.
P1 propagates the way P did before, with one difference. Each affected AS now holds two routes for that address space: P and P1.
Even with a valid route to P installed, AS 1 sends some of P‘s traffic to the attacker. Longest-prefix match favors the more specific P1.
AS 5 kept one provider out of the hijack, so it can still forward the intercepted traffic to the real owner. This places the attacker on the traffic path, where it can observe traffic metadata and potentially inspect or alter unprotected traffic before forwarding it.
Now imagine AS 4 hosts a bank’s servers on P1. An attacker who studies the target announces P1, collects that traffic, and forwards it on a clean leg.
Customer complaints are unreliable here. The attacker delivers the traffic normally after inspection. A short added delay looks like ordinary jitter, so nobody reports an outage.
You can still detect this by inspecting BGP updates for P and its subnets, through route collectors or real-time BGP monitoring. The spread depends mainly on filter quality, because P1 and P don’t compete in the decision process.
Forging the AS path to evade detection
In a third scenario, AS 5 forges the AS path in its update message. It keeps the real owner’s AS at the end of the path, along with the owner’s original provider, AS 2. The announcement looks like a legitimate route learned from the rightful origin.
The announced AS path 3 2 4 seen at AS 1 implies AS 3, a customer of AS 2, is acting as transit for its provider AS 2. That customer-as-transit relationship breaks the valley-free property and reveals the forgery. Announced AS path seen at AS 1: 3 2 4 AS 3 customer of AS 2 AS 2 provider AS 4 origin ✗ customer routing traffic for its provider
A customer that appears to carry transit for its provider breaks the valley-free property, which is the signal that exposes the forged path.
Propagation works as before, but detection gets harder. Inspecting updates for P and its subnets still helps, through route collectors or real-time BGP monitoring. Detection now also needs context about how each pair of autonomous systems relates in the path.
In this example, AS 3 is a customer of AS 2. So the path 3 2 4 seen at AS 1 would show AS 3 acting as transit for AS 2. That violates the valley-free property, a strong signal that the path is forged.
The 2008 Pakistan Telecom YouTube hijack
A well-known incident fits the BGP prefix hijacking pattern rather than the route-leak one. In February 2008, Pakistan Telecom announced itself as the origin AS for 208.65.153.0/24, one of YouTube’s prefixes. Pakistan Telecom was attempting to block YouTube access within Pakistan.
This was a false origin announcement, so it’s a route-origin hijack. People often call it a route leak loosely, but it belongs in the hijack category. Pakistan Telecom originated a prefix it didn’t own.
Pakistan Telecom also announced the route to its provider PCCW, which didn’t filter it properly. PCCW propagated the false origin outward, and the more-specific /24 won under longest-prefix match. The result disrupted YouTube globally until the announcement was withdrawn.
Route leaks spread bad routes by accident
Route leaks propagate routing announcements beyond their intended scope. They most often result from accidental misconfiguration, though they can also be malicious. A router misconfiguration, a filter typo, or mis-originating someone else’s network can spread bad routing information just as widely. RFC 7908 defines a route leak as the propagation of routing announcements beyond their intended scope.
The distinction is what happens to the routing information: a prefix hijack involves unauthorized origination or manipulation of routes, while a route leak propagates otherwise legitimate routing information beyond its intended scope. The damage can look the same to affected customers.
A misconfigured AS 5 accepts everything from one provider and re-announces it to another provider. That re-announcement makes AS 5 an unintended transit and leaks routes across the Internet, breaking the valley-free property. re-announces provider routes AS 2 provider AS 3 provider AS 5 misconfigured AS 5 becomes an unintended transit between its two providers
A route leak: a misconfigured AS re-announces one provider’s routes to another, turning itself into accidental transit.
Take the same five-AS topology. Now AS 5 is an ordinary operator that applied the wrong filters: accept all routes from its provider, announce all routes to its provider.
That rule works with a single provider. With two providers, it turns the AS into transit for both of them.
Because of that fat-finger mistake, AS 5 forwards the routes it receives from one provider to the other, which breaks the valley-free property. The bad route spreads, and each AS routes traffic according to its own decision process.
Suppose AS 4 is a small rural provider with limited resources. Its upstream links are thin, so they become a bottleneck under a route leak. AS 5 can’t handle the traffic aimed at P, so latency climbs and packets drop.
A route leak we analyzed earlier in this series fits this pattern. One misconfiguration reached several banks along with Facebook and Cloudflare. Incidents like it pushed the IETF to publish the detailed route leak classification in RFC 7908.
What network teams monitor for BGP anomalies
Detecting BGP prefix hijacking and route leaks means watching the routing table for change, not just watching your own equipment. The signals that matter most are concrete:
- Unexpected origin-AS changes for your address space.
- New or more-specific prefix announcements covering your prefixes.
- AS-path deviations, including implausible or valley-free-violating paths.
- Route withdrawals and repeated flapping.
- Differences in what’s visible from separate geographic vantage points.
- Routing anomalies that line up with latency, packet loss, and real customer impact.
You can watch some of these from tools like the Hurricane Electric BGP toolkit and from public route collectors. An outside-in service extends that view.
LogicMonitor Digital Experience observe BGP routing from vantage points across the public Internet.
That external view catches route leaks, BGP prefix hijacking, and unexpected path changes as they happen. Correlating those signals with internal infrastructure telemetry helps teams separate a routing problem from an application fault and gauge who is affected.
Most of these signals only mean something against a baseline. Teams that record their expected origin AS, prefix lengths, and normal AS-path patterns can distinguish a routine change from a suspicious one. Without that reference, a hijacked more-specific prefix can look like ordinary traffic engineering, and a leak can look like a transient reroute.
Monitoring flags suspicious announcements and path changes quickly. It doesn’t by itself prove malicious intent, and it can’t guarantee immediate detection of a hijack.
Reducing the risk: filtering, RPKI, and route validation
Prevention and detection work together. On the prevention side, current practitioner guidance is well established:
- Publish ROAs and run RPKI route-origin validation to reject invalid origins.
- Apply prefix filtering at peering boundaries, following RFC 7454 BGP operations guidance.
- Use IRR data to build and maintain accurate prefix and AS-path filters.
- Deploy BGPsec path validation where peers support it.
- Feed BMP and MRT data to external route collectors for continuous visibility.
RPKI has one important limit: it primarily validates the route origin. RPKI and ROAs validate whether an AS is authorized to originate a prefix; they do not validate whether the AS path is genuine. Validating the path itself is a separate job, handled by BGPsec.
So RPKI on its own doesn’t resolve AS-path manipulation or most route-leak cases, which keeps external monitoring and network reachability visibility necessary.
Prefix hijack versus route leak at a glance
Here’s an overview:
| Dimension | Prefix hijack | Route leak |
| Typical cause | Unauthorized origination or manipulation, either malicious or accidental | Most often misconfiguration or policy error, though malicious leaks are possible |
| Effect on traffic | Blackholed, intercepted, or inspected before forwarding | Rerouted through a link that can’t handle it, adding latency and loss |
| Key detection signals | Unexpected origin AS, new more-specific prefixes, forged paths | Valley-free violations, unexpected transit paths, path lengthening |
| Primary mitigations | RPKI origin validation, prefix filtering, BGPsec | Filtering at peering boundaries, IRR data, RFC 7454 practices |
A response workflow for routing incidents
One bad announcement can reroute traffic for a large slice of the Internet, while your own equipment stays silent. When a routing anomaly appears, a repeatable sequence keeps the response fast and clear:
- Detect a suspicious announcement affecting your prefixes.
- Validate the expected origin AS and AS path against what you actually advertise.
- Determine which regions and customers are affected.
- Correlate the routing change with internal telemetry to gauge real impact.
- Contact the upstream provider, or withdraw and correct the route.
- Confirm recovery from multiple vantage points.
These steps depend on seeing both sides of the path. LogicMonitor Digital Experience provides the outside-in Internet-path view for steps 1 through 3, and internal infrastructure telemetry gauges impact in step 4. LogicMonitor brings both into one system, so teams move from a routing anomaly to a correction without piecing the story together across separate tools.
Watch your prefixes from outside your network before the next hijack reroutes your customers
BGP threats hide in the global routing table, invisible to internal tools. LogicMonitor pairs outside-in Internet-path visibility with internal telemetry, so you can spot, size, and fix routing incidents in one place.
FAQs
What is the difference between a BGP prefix hijack and a route leak?
A prefix hijack happens when an AS originates or manipulates routes for address space it does not control, which can blackhole or intercept traffic. A route leak propagates otherwise legitimate routes beyond their intended scope, usually through misconfiguration, overloading links that can’t handle the traffic. To affected customers, the damage can look the same even though the cause differs.
Why can’t internal infrastructure monitoring detect BGP hijacks?
The problem lives in the global routing table, two or more networks away from your own equipment, so your servers and applications stay perfectly healthy while traffic is diverted elsewhere. Detecting it requires an outside-in view from many vantage points across the Internet. Watching your own gear won’t reveal a route change happening on another network.
Does RPKI fully protect against BGP attacks?
No. RPKI and ROAs validate whether an AS is authorized to originate a prefix, but they do not validate whether the AS path is genuine. That leaves AS-path manipulation and most route-leak cases unresolved, which is why external monitoring and network reachability visibility remain necessary alongside prevention tools like filtering and BGPsec.




