Notes
How routing works
The internet is made of tens of thousands of independent networks, called autonomous systems: internet providers, cloud companies, universities. Each one announces to its neighbours which address ranges can be reached through it, and the neighbours pass that on. Every router builds a table of the best path to every range. The protocol carrying those announcements is BGP, the border gateway protocol. Nothing in the original design checks that an announcement is true.
- the internet is ~75,000 networks (autonomous systems), each with a number
- each announces: "these address ranges are reachable through me"
- neighbours pass it on every router builds a table of the best path to every range
- the announcements are trusted
The hijack
So a network can announce address ranges that belong to someone else. Neighbours that do not filter accept the announcement and pass it along, and part of the internet starts sending that traffic toward the hijacker. Once it arrives they have three choices. Drop it, which is an outage. Read it and answer it themselves, which is impersonation. Or read it and quietly forward it to the real owner, which is interception nobody may notice for hours.
- a network announces address ranges it does not own
- neighbours that do not filter accept it and pass it on part of the internet now sends that traffic to the hijacker
- the hijacker can drop it, read it, or pass it on to the real owner
Why it works so well
One rule makes hijacks very effective. When a router has two routes covering an address, it always prefers the more specific one, the one describing the smaller range. So if the real owner announces a block of a thousand addresses and the hijacker announces a quarter of that block on its own, every router that hears both chooses the hijacker's route for those addresses. No tie, no competition. The more specific announcement simply wins.
- real owner announces 203.0.112.0/22 (1,024 addresses)
- hijacker announces 203.0.113.0/24 (256 of them)
- routers always prefer the longest, most specific match
- so the hijacker wins everywhere the announcement reaches
Mistake or attack
Not every routing incident is an attack. A route leak happens when a network passes on routes it was supposed to keep to itself, almost always through a configuration mistake. Suddenly a large share of traffic tries to squeeze through a small network and everything slows or fails. A hijack is a false claim of origin, sometimes by mistake and sometimes deliberate. From the user's side the two look the same: a site that is unreachable, or reached through the wrong place.
- route leak: a network passes on routes it should have kept to itself, usually a configuration mistake
- traffic takes a strange detour and overloads a small network
- hijack: a false origin, by mistake or on purpose
- the effect on users is the same either way
Two real cases
Two cases show the range. In two thousand eight a national telecom provider, ordered to block YouTube inside its own country, announced the route in a way that leaked to the world, and YouTube was unreachable globally for about two hours. An accident. In two thousand eighteen attackers hijacked the addresses of a cloud DNS service, answered DNS questions for a cryptocurrency site with their own server's address, and stole from the users who logged in. A theft.
- 2008: a national provider tried to block YouTube inside its country and announced the route to the world. YouTube went dark globally for about 2 hours
- 2018: attackers hijacked a cloud DNS service's addresses, answered DNS with lies, and emptied cryptocurrency wallets
What saves you
Here is what protects ordinary traffic. A hijacker can receive your packets, but cannot produce a valid certificate for the real site, so browsers show a warning and API clients refuse to connect. In the cryptocurrency theft, the victims were the people who clicked through that warning. HSTS removes the option to click through, and DNSSEC protects the name lookup. Once again, end-to-end encryption with verification turns a network disaster into an error message.
- the hijacker gets the traffic
- but has no valid certificate for the real site
- browsers show a warning; API clients refuse
- in the 2018 case, victims clicked through a certificate warning
- HSTS removes that option
- DNSSEC protects the name lookup
RPKI
The routing world's own fix is called RPKI. The owner of an address block publishes a signed record stating which network is allowed to announce it. Providers check incoming announcements against those records and drop the invalid ones. That stops false-origin hijacks and a great many accidents. Most large providers now do this, and adoption keeps growing, but it is not universal, and it does not catch every kind of path manipulation.
- RPKI: the owner of an address block publishes a signed record naming the network allowed to announce it
- providers check announcements against those records and drop invalid ones
- stops false-origin hijacks and many mistakes
- adoption keeps growing; it is not yet universal
What you can do
What can an ordinary company do about a problem inside other people's networks? If you own address space, publish RPKI records for it; it takes an afternoon. Choose providers and clouds that validate routes; an industry programme called MANRS lists those that commit to it. Monitor your own address ranges with a free BGP alerting service, so you hear about a hijack in minutes. And keep TLS, HSTS and DNSSEC in place, since those protect you whatever the routing does.
- own address space? publish RPKI records for it
- choose providers and clouds that validate routes (ask; see MANRS)
- monitor your prefixes: free BGP alerting services
- TLS everywhere, HSTS, DNSSEC
- use more than one DNS and network provider for critical services
Seeing it happen
How would you recognise a routing incident? A service is reachable from some networks and not from others. A traceroute suddenly passes through an unexpected country or provider. Certificate warnings appear on a site that never had them. Public tools let anyone investigate: looking glass servers that show how other networks see a route, and monitoring projects that record every announcement on the internet. During an outage, routing is always one of the suspects worth checking.
- reachable from some networks and not others
- traceroute suddenly passes through an unexpected country or network
- certificate warnings on a site that never had them
- public tools: looking glasses, BGP stream monitors, RIPE RIS, route views
Common mistakes
Mistakes. Treating routing as purely the provider's problem. Owning address space and never publishing RPKI records for it. Nobody monitoring your own address ranges, so customers tell you about a hijack before your tools do. Services that still work over plain HTTP, or clients that skip certificate checks, which turns a hijack into a real breach. And a single DNS provider and a single network path for something critical.
- "routing is the ISP's problem"
- no RPKI records for your own address space
- nobody watching your prefixes
- services that work over plain HTTP or skip certificate checks
- one DNS provider, one network path
Say it like this
In the interview: BGP has no built-in proof of who owns an address range, so a network can announce prefixes that belong to someone else, and because routers prefer the most specific route, traffic flows to the hijacker, who can drop, intercept or impersonate. RPKI route origin validation and provider filtering reduce it. As a company I publish RPKI records, monitor my prefixes, and rely on TLS with HSTS and DNSSEC so a hijack cannot become a silent compromise.
- "BGP has no built-in proof of ownership, so a network can
- announce someone else's
- prefixes, and a more specific
- route wins. Traffic is then dropped, intercepted or impersonated. RPKI route
- origin validation and filtering reduce it; TLS and DNSSEC limit the damage."