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.

Lesson 15 of 17 · 10 min read · practice only with authorization

Diagram

An invalid origin rejected

Follow the path. One example at a time.

Step 1 of 4

Announcement

Another network announces your prefix or a more specific one.

Illustration: Announcement
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.

  1. 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.
  2. 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.
  3. 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.

1 / 3

What does an RPKI ROA state?

Sibling techniques

Pages at the same depth, plus a lab and a glossary card for this one.

  1. MapNetwork protocols for defenders: what each layer tells you in a captureEthernet, IP, TCP, UDP, DNS, TLS, and HTTP as they appear in a packet capture: the fields worth reading at each layer, a worked tcpdump trace of one web request, and which protocols leak what.

Practice

  1. LabControl benchA failure is described. Choose the control that changes the outcome.

Glossary

  1. CardBGP hijackingA network announces address space it does not own, and some of the internet believes it.