BGP hijacking: route origin validation with RPKI and monitoring
BGP routers trust announcements from peers, so a wrong origin or more-specific prefix can pull traffic away. How hijacks and leaks show up, how RPKI route origin validation rejects invalid origins, and how to monitor your own prefixes.
Diagram
An invalid origin rejected
Step 1 of 4
Announcement
Another network announces your prefix or a more specific one.
prefix 198.51.100.0/24 origin AS64511 (expected AS64500)
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Origin hijacks
- What fails
- Another AS originates your prefix.
- Who is affected
- Users of your services, whose traffic is misrouted.
- What you would notice
- Monitors reporting a new origin AS.
- What you change
- Publish ROAs and work with upstreams that validate.
More-specific prefixes
- What fails
- A /24 inside your /22 wins by longest match.
- Who is affected
- Traffic for that /24.
- What you would notice
- Unexpected more-specific announcements.
- What you change
- Set ROA maxLength carefully and monitor.
Route leaks
- What fails
- A network re-announces routes it should not, often by mistake.
- Who is affected
- Paths and latency for many networks.
- What you would notice
- Your prefixes seen through unexpected AS paths.
- What you change
- Providers apply filters and peer locking; monitoring tells you fast.
Public examples
The 2008 YouTube prefix hijack by Pakistan Telecom and the 2018 Amazon Route 53 hijack used to steal cryptocurrency are often cited. Both involved more-specific or unexpected origins that RPKI ROV and monitoring are designed to catch.
Check yourself
Recognition and the fix. Nothing here is a procedure.
What does an RPKI ROA state?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.