Join our Newsletter — 33% off our NHI Course
Home› Guides› BGP Monitoring: Detecting Hijacks, Leaks and Unexpected Origins…
Guide Network Security

BGP Monitoring: Detecting Hijacks, Leaks and Unexpected Origins for Your Prefixes

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 11 min read
On this page

Most organisations learn that their prefixes were hijacked or leaked from customers who cannot reach them, because nobody was watching how the rest of the internet sees their routes. Your own routers only show what your neighbours send you; a hijack in another region can be invisible from inside your network. This guide explains how to monitor your prefixes from the outside using public route collectors, which signals matter (origin changes, more-specific announcements, path anomalies and RPKI invalids), how to design alerts that operations staff will trust, and how to hand a confirmed event to incident response. It is for network operations teams at enterprises, hosting and cloud providers and ISPs that announce their own address space. Monitoring services are discussed by capability, not by vendor.

Key takeaways

  • Monitor from outside your network. Public collectors such as RIPE RIS and RouteViews peer with hundreds of networks and show how your prefixes look elsewhere, which your own routers cannot.
  • Start from a written intent file. Alerts are only as good as the list of prefixes, origin ASes, upstreams and maximum lengths you expect; build it before you build rules.
  • Four signals catch most incidents. Unexpected origin AS, unexpected more-specific prefix, unexpected path (new upstream or leak pattern) and RPKI Invalid status for your space.
  • Tune for confirmation, not volume. Require visibility from several collector peers before paging, and route low-confidence changes to a ticket queue.
  • Every alert needs a next step. A confirmed hijack or leak goes straight to a response playbook with upstream and peer contacts ready, because minutes matter.

What to monitor

Begin with an intent file: every prefix you announce (IPv4 and IPv6), the origin AS for each, the maximum prefix length you deliberately announce, your transit providers and key peers, and any third parties that originate your space, such as DDoS scrubbing providers or CDNs. Store it in version control next to your ROA records so monitoring and RPKI stay in step. See the RPKI and Route Origin Validation Deployment Guide for the same inventory used for ROAs.

SignalWhat it looks likeLikely causeDefault severity
Origin changeYour exact prefix seen with an origin AS not in the intent fileHijack, mis-origination by a customer or provider, forgotten scrubbing providerHigh, page after confirmation
More-specific announcementA longer prefix inside your space (for example a /24 inside your /22) that you do not announceTargeted hijack (more-specifics win in path selection), traffic engineering leakHigh; critical if the origin is also unexpected
Path anomalyYour prefix reached through an upstream or adjacency you do not have, or a path showing a provider-to-peer patternRoute leak (RFC 7908 types), path manipulation, new upstream not recordedMedium, raise to high if widely visible
RPKI InvalidCollectors or validators report your announcement as Invalid against published ROAsWrong or stale ROA, maxLength too short, hijack by a different originHigh: validating networks will drop the route
Withdrawal or loss of visibilityYour prefix disappears from most collector peersOutage, session failure, filter error at an upstreamHigh for availability
Unexpected new announcement of unused spaceSpace you hold but do not announce appears in the global tableSquatting on dormant address spaceMedium to high

RFC 7908 defines a route leak as the propagation of routing announcements beyond their intended scope and lists six types, from a multihomed customer passing one provider's routes to another (type 1) to accidental leaks of internal or more-specific prefixes (type 6). Type 5, re-origination with the AS path stripped, looks like an origin change, so treat origin and path alerts together.

Data sources: route collectors and looking glasses

Collectors are BGP speakers that peer with many networks, record what they receive and publish it. Monitoring tools compare that data with your intent file.

SourceOperatorWhat it gives youUse for
RIS raw data (MRT)RIPE NCCFull table dumps (bview) every 8 hours and update files every 5 minutes per route collector (RRC)Baselines, forensic timelines, back-testing alert rules
RIS LiveRIPE NCCReal-time WebSocket JSON feed of BGP messages from the RRCs, filterable by prefix, more-specific, path pattern, peer and collectorNear real-time alerting on your prefixes
RouteViews archive and looking glassUniversity of OregonCollectors at IXPs and partner networks with over a thousand peers; archive, web looking glass and APISecond vantage set, historical lookups, confirming what a region sees
Provider looking glassesIndividual transit providers and IXPsThe routes a specific network has selectedConfirming whether your upstream or a large network accepted a bad route
Your own BGP feedsYouRoutes your edge receives, ideally via BGP Monitoring Protocol (BMP) to a collectorDetecting leaks your neighbours send you, and route changes in your own policy
  • RIS Live subscription: connect to the WebSocket endpoint and send a ris_subscribe message with a prefix filter for each of your aggregates. moreSpecific defaults to true, so a subscription to your /22 also catches a hijacked /24. The path filter accepts ASN patterns with ^ and $ anchors (not regular expressions). RIPE NCC strongly recommends adding a ?client= identifier, and advises monitoring ris_error messages.
  • Vantage diversity: one collector sees a slice of the internet. Combine RIS and RouteViews, and if you buy a monitoring service, ask which collectors and how many peers it uses.
  • Latency: streaming feeds give alerts in seconds to minutes; MRT update files arrive in 5-minute batches and suit confirmation and forensics rather than first alert.

RPKI validation status

RFC 6811 defines three states for a route against validated ROA payloads (VRPs). Valid means a VRP covers the prefix, the length is within the VRP maxLength and the origin AS matches. Invalid means at least one VRP covers the prefix but none matches, so a more-specific beyond maxLength or a different origin is Invalid, not NotFound. NotFound means no VRP covers the prefix. The RFC leaves the action to local policy; many networks now drop Invalid routes.

State seen for your prefixMeaning for youAction
Valid, expected originNormalNone; record as baseline
Invalid, expected originYour own ROA is wrong or missing an origin or length; validating networks may drop youFix the ROA urgently; check scrubbing provider and CDN origins
Invalid, unexpected originPossible hijack; validating networks should reject it, others may accept itTreat as hijack; confirm reach and start response
NotFoundNo ROA covers this spaceCreate ROAs; until then, origin monitoring is your only protection

RPKI monitoring checks two things: your ROAs (published, correct, not near expiry in your RIR portal) and how the world validates your announcements. A hijack that keeps your origin AS in a forged path will still show Valid, so RPKI status never replaces path monitoring. The RPKI vs BGP Prefix Filtering guide explains where each control stops.

Alert design and thresholds

Phased rollout

  1. Build the intent file: prefixes, origins, maxLength, upstreams, peers and third-party originators. Have the network owner sign it off.
  2. Baseline for two to four weeks: run rules in observe-only mode against RIS Live and the MRT archive. Record every alert and whether it was real.
  3. Back-test: replay past MRT update files around known changes (maintenance, new upstreams) to see which rules fire.
  4. Set thresholds: decide how many distinct collector peers must see an event before paging, and which events go to a ticket queue instead.
  5. Turn on paging for high-confidence signals: unexpected origin and unexpected more-specific first, then RPKI Invalid, then path anomalies.
  6. Integrate change control: every planned routing change updates the intent file before it happens; a suppression window is tied to a change ticket and expires automatically.
  7. Roll back: if a rule floods on-call, drop it to ticket-only rather than deleting it, and fix the intent file or threshold.

Tuning rules

  • Peer count threshold: a single collector peer reporting an odd path is often that peer's own policy. Paging on visibility from several peers, across more than one collector, cuts noise.
  • Allow lists: list scrubbing providers and CDNs that may originate your space only while active, and alert when they do so outside a declared event.
  • Severity by prefix: rank prefixes by what they carry (DNS, mail, payment, customer portals) so a hijack of the authoritative DNS prefix pages faster than a test range.
  • Deduplication: group messages for the same prefix and cause into one incident with a running count of affected peers.
  • Health alerts: alert when the feed itself stops (no messages for your prefixes for a set period, or ris_error messages). A silent monitor looks the same as a quiet internet.

Metrics

  • Time to detect: from first collector observation to alert, target minutes.
  • Alert precision: share of pages that were real events or real configuration errors.
  • Intent file coverage: percentage of announced prefixes and origins recorded and signed off.
  • ROA coverage and validity: percentage of announced prefixes that are RPKI Valid.
  • Time to mitigate: from alert to the bad route no longer visible at most collector peers.

Response handoff

A confirmed alert should open an incident with the evidence already attached: the prefix, the unexpected origin or path, the first-seen time, the collectors and peers reporting it, and the RPKI state. Hand it to the network incident playbook with these decisions ready.

EventFirst actions by the network teamWho to contact
Hijack of exact prefixConfirm via looking glasses; consider announcing more-specifics within your ROA maxLength to compete; check ROAs are correctYour upstreams, the upstreams of the hijacking AS
More-specific hijackAnnounce matching more-specifics if your ROAs allow it; ask upstreams to filterUpstreams and large networks carrying the route
Route leakIdentify the leaking AS from the path; check whether your own customers or sessions caused itThe leaking AS and its providers
Self-inflicted RPKI InvalidCorrect the ROA in the RIR portal; confirm propagation through validatorsInternal RPKI owner; scrubbing provider if their origin was missing

Keep contacts current in the RIR database and PeeringDB, which MANRS lists as a compulsory action for network operators, and hold your upstreams' NOC escalation routes in the playbook. Because hijacks are often used to intercept DNS or web traffic, also alert the teams running DNS, certificates and customer-facing services; see the DNS Hijack Playbook.

Where identity fits

Monitoring platforms hold API keys for collector feeds, RIR portal credentials for ROA changes and paging integrations. RIR portal access that can change ROAs can take your prefixes offline; protect it with strong MFA, named accounts and change approval rather than a shared login.

Common failure patterns

  • No intent file: rules built from memory alert on every scrubbing event and are muted within a week.
  • Watching only exact prefixes: missing more-specific announcements, which win in path selection and are the usual hijack form.
  • Single vantage point: one collector or one looking glass misses regional events.
  • Treating RPKI Valid as safe: path manipulation with your origin AS appended still validates.
  • Stale ROAs after changes: a new upstream or scrubbing provider origin that was never added turns your own routes Invalid.
  • Silent monitor: no health check on the feed, so an outage of the monitoring tool looks like a quiet day.

Framework mapping

FrameworkReferenceHow BGP monitoring supports it
NIST CSF 2.0DE.CM-01, DE.AE-02, RS.MA-01Network services monitored; alerts analysed; response coordinated with third parties such as upstreams
NIST SP 800-53 Rev 5SI-4, SC-7, IR-4System monitoring, boundary protection, incident handling
MANRS for network operatorsFiltering, coordination, global validationCorrect announcements, current contacts, routing intent published in IRR or RPKI
IETFRFC 6811, RFC 7908, RFC 9234Origin validation states, route leak taxonomy, BGP roles and the Only to Customer attribute for leak prevention and detection

Practitioner checklist

  • Write and sign off an intent file of prefixes, origins, maxLength, upstreams and third-party originators, kept in version control.
  • Subscribe to RIS Live for every aggregate with more-specific matching on, and add a second collector source such as RouteViews.
  • Alert on unexpected origin, unexpected more-specific, path anomaly, RPKI Invalid and loss of visibility.
  • Baseline in observe-only mode for two to four weeks and back-test against MRT archives before paging.
  • Require multi-peer visibility before paging and tie suppression windows to change tickets.
  • Monitor the monitor: alert on feed silence and errors.
  • Check ROAs after every routing change, including scrubbing and CDN origins.
  • Configure RFC 9234 BGP roles on eBGP sessions where your routers support them, to help prevent and detect leaks.
  • Keep RIR and PeeringDB contacts current and hold upstream escalation routes in the response playbook.

Standards and references

Related NHI Mgmt Group resources: BGP and Routing Security Guide · RPKI and Route Origin Validation Deployment Guide · RPKI vs BGP Prefix Filtering · BGP Session Protection: TCP-AO, MD5 and GTSM Compared and Configured

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.