I just read about Indosat trying to take over the Internet by mistake. I read on a Polish infosec-related website that most of their announced routes failed to propagate, but some of them reach the whole internet. This made me wonder - what security mechanisms protect the BGP protocol and why did they fail for these few particular routes, hurting Akamai and others?
A word on BGP
BGP is the routing protocol that makes the internet work. The current revision is BGP v4, and has been in use since 1995. Internet Service Providers (ISPs) are in control of one or many networks, and they use BGP to advertise their networks to their peers by exchanging routing information (internet routes) about the network they control. Those networks are independent routing domains called Autonomous Systems (AS). Each AS is attributed a unique identifier (AS Number, or ASN), and there are about 40'000 ASN allocated today. The process of routing between those ASes is called interdomain routing, and BGP is the protocol used to achieve this.
Each BGP router contains a Routing Information Base (RIB) which stores the routing information. When a router decides to update its RIB, it will subsequently propagate this information to all of the other neighboring BGP routers to which it is connected by saying "Hey, I can route to network 126.96.36.199/12 via AS numbers X,Y,Z". They will in turn decide whether to update their own tables and propagate the information further.
Note that there is no automatic peers discovery in BGP, instead peers have to be manually configured to exchange routing information.
BGP exposure to attacks
The BGP protocol itself doesn't provide many security mechanisms.
BGP design did not include specific protections against attacks or deliberate errors coming from peers or outsiders that could cause disruptions of routing behavior. Examples of such attacks include:
In short, BGP is highly exposed to false route advertisements and there is no plan today to remediate this situation.
BGP Security protections
So it looks pretty bad on a security standpoint. But on the other hand, there are also some positive security aspects in BGP:
Recent efforts within the standards bodies and in the research community have attempted to provide new architectures for BGP security. This includes:
A major update to BGP would be required to remediate those issues and offer an adequate level of protection against sophisticated BGP attacks. RFC 4278, a maturity study of BGP security mechanisms, considers the marginal benefit of such schemes in this situation would be low, and not worth the transition effort.
Additional resources you might find interesting:
BGP Looking Glass: As per their website:
I think the article "A Survey of BGP Security Issues and Solutions" is very useful to answer your question.
BGP is especially vulnerable to routing-related attacks especially when ISPs misconfigure their route advertisement. Notable incidents which are not of malicious intents include Pakistan Telecom blocks YouTube, Malaysian ISP blocks Yahoo or Turkish ISP takes over the Internet, etc. Such incidents could potentially crippled the entire Internet and may be used by attackers to cause harm.
Therefore, the security guys are well aware of BGP's vulnerabilites and are working of a solution. For example, according to the survey, the United States government cites BGP security as part of the national strategy to secure cyberspace. In addition, the Internet Engineering Task Force (IETF) are working on a new draft for securing BGP.
In BGP, a router (or BGP speaker) sends an route advertisement when a new route is available, and a withdrawal message when the route no longer exists. Each Autonomous System (AS) adds its AS number to the beginning of the AS path before advertising the route to the next AS. In other words, BGP is a path-vector protocol which advertises the possible routes to reach certain destinations.
To decide the forwarding path, each IP router will give priority to the longest (and more specific) prefix that matches the destination IP address. For example, a route advertisement of 188.8.131.52/22 is more specific than 184.108.40.206/12. Hence, if I want traffic to pass through my router for some reasons then I can advertise hundreds of more specific routes. Filtering of such suspicious BGP announcements is one simple way to prevent such routing attacks. ISPs may filter routes from customers for prefixes that the customer does not own, limit the number of prefixes that each neighboring router can announce or bogons etc. But filtering alone is insufficient as not all ISPs will apply "best common practices" for filtering routes. So, you can still receive false routes from other ISPs which unknowingly forward them.
Secure BGP (S-BGP) is one of the notable solutions to the current routing problems but it is not widely deployed due to its heavy cryptographic computation overheads and cooperation of the internet registries. In S-BGP, PKI and certificates are used to authenticate the ownership of the specified prefixes and path information. This essentially prevents an ISP from spoofing a route advertisement that it does not owns. Therefore, more incentives should be given to promote the deployment of S-BGP into the Internet.
I have only focused on routing related attacks. However, there still exist other attacks against confidentiality, message integrity or DoS which can be found in the survey.
Asked a very similar question a couple of days ago How does BGP filtering work to prevent routing hijacking?
From my research it seems that the only way to protect against such "attacks" is to filter outbound routes from the PoV of Indosat and inbound from PoV of the rest of the world.
Indosat would have a list of legitimate routes which are accepted outbound, while the others are rejected. Then Indosat should contact other providers about the current legitimate routes, so they can apply an inbound filter allowing only those and rejecting the others.
Which yet I don't know is how does the filtering work under the hood, which was the scope of my question.