Addressing a particular internetworking misconception

25 March 2021

BGP Route leaks vs BGP Hijacks

Since 2014 Qrator Labs has developed a BGP monitoring and analytics service called Qrator.Radar.  One of its main features is monitoring specific BGP anomalies that could result in an incident that we would further call either a BGP route leak or BGP hijack.

Both of them reroute traffic to third parties, compared to the no-anomaly state, but differently. Over the last few years, a lot of efforts have been invested in solving those issues, but there are still misunderstandings about what is what and how different tools are helping resolve different problems.

Our company started collecting the BGP relationships model a couple of years before RFC 7908 appeared, trying to define what a BGP route leak is.
The two main differences between those time of events were described as:

  • Routes redirected through wrong ASNs/links (Route leaks), described as types 1-4 RFC 7908;
  • Routes redirected to wrong ASNs (Hijack), described as types 5 and 6 RFC 7908.

During a BGP route leak, traffic destined to your network will most likely flow in an inefficient way, which could lead to increased network latency and packet loss. Nevertheless, it will reach your network almost certainly if there is no critical network congestion due to some reason (like the bad intention of a malfunctor).

During a BGP Hijack, traffic destined to your network is rerouted to a third party and stays there.

Furthermore, the mechanisms for creating those types of anomalies are different as well.
To create a route leak, you need to transfer a good route to an inappropriate neighbour ISP.
To create a hijack, you either need to announce a route with a sub prefix/more specific of a valid prefix (to attract all the traffic from ISPs that received such an announcement with whatever AS_PATH you like) or to create a route announcement with a third party prefix from your network.

Because mechanisms for creating routing anomalies vary, incident detection mechanisms and prevention/mitigation should be different.

To detect the cause of a route leak, you need to find out the relationship between each of the two connected operators and find out such BGP routes (from a BGP collector) which are breaking the Gao-Rexford formal model, for more information please refer to CAIDA’s “AS relationships”.
To detect hijacks, you need a ground truth about which prefixes belong to which ISPs, and in most cases when an unregistered pair of prefix ISP appears - create an alarm or take action.

To prevent/mitigate hijacks, there are two standard approaches within a single Prefix Origin Validation framework. You can register a Route object in your IRR or create a ROA object. Our team described the differences between these approaches during RIPE79. However, what is common - they both state which prefixes belong to which operators (by operators themselves) and try to block routes from an ISP with unregistered prefixes (by transit ISPs).

To prevent/mitigate pure route leaks, we take part in creating a BGP open policy. Another approach is peer locking - block routes with unexpected neighbours/ISPs in AS_PATH.

ASPA IETF draft stands a little aside from pure hijack/route leaks prevention because it is more about blocking bad AS_PATHs (route leaks cases and hijacks without/with bad AS_PATH manipulation).

ROA vs route leaks

So, is your network safe if you implement ROA signing and ROA filtering? No, because without ASPA or any equivalent, ROA by itself will not stop others from route leaking. We hope that now you see how complex this problem is, where separate approaches are needed to secure the basis of modern inter-domain routing - Border Gateway Protocol.

ROA signing vs ROA filtering

Another common misconception is connected with ROA. There are two parties in ROA algorithms: the signing party - operator, which provides ground truth about prefixes he owns; and there is a filtering party - transit operator, which filters out bad routes according to information provided by the signing party.

As a stub operator (meaning an AS with only one upstream provider), you are limited in the number of ways you could influence the number of filtering parties. The more of them there are, the more secure your prefixes will be (the fewer regions will be affected if a hijacker decides to attack your prefixes). If you decide to sign your prefixes, you can use an existing filtering infrastructure, which will only grow in the nearest future. Moreover, we encourage you to do exactly that anyway, meaning regardless of the size of the network behind your ASN.

This article would still end with a warning: current filtering infrastructure could still be imperfect, and in some cases, you cannot return your traffic from an affected region because of the chosen max length option and ROA filtering on the side of your ISP.

Get your Report

Full name *
Work email *
Job Title *
Company name *

I acknowledge and agree to the terms and conditions set forth in Qrator Labs’ Privacy Policy.

Survey

Share your experience and expectations regarding DDoS protection. Your answers will help us tailor solutions to meet your cybersecurity needs.

Tell us about your company’s infrastructure and critical systems. This will help us understand the scope of protection you require.

Help us learn about how decisions are made in your company. This information will guide us in offering the most relevant solutions.

Let us know what drives your choices when it comes to DDoS protection. Your input will help us focus on what matters most to you.

1/4. Questions about Awareness and Needs Questions about Infrastructure Questions about Decision-Making Questions about Motivation
What is most important to you when choosing an Anti-DDoS solution? (select multiple options)
Who in your company makes decisions about cybersecurity solutions?
What is your company's average internet traffic volume?
Mb
Have you encountered DDoS attacks before?
What key risks do you want to minimize with DDoS protection?
When do you plan to consider a solution for DDoS protection?
Which systems are critical for your business to protect? (select multiple options)
Does your company have a solution to protect against DDoS attacks?
What is your company’s primary type of activity?
What level of DDoS protection do you consider sufficient?
Team size:
Thank you for completing the survey!
Your participation will help us produce better market analytics.
Thank you for staying with us!
If the document does not load, please click the "Download" button. Help us better understand the market and prepare better analytics, take the survey.
Your subscription successfully activated
Type
Name
Email
Phone Number
Write your message