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.
| Signal | What it looks like | Likely cause | Default severity |
|---|---|---|---|
| Origin change | Your exact prefix seen with an origin AS not in the intent file | Hijack, mis-origination by a customer or provider, forgotten scrubbing provider | High, page after confirmation |
| More-specific announcement | A longer prefix inside your space (for example a /24 inside your /22) that you do not announce | Targeted hijack (more-specifics win in path selection), traffic engineering leak | High; critical if the origin is also unexpected |
| Path anomaly | Your prefix reached through an upstream or adjacency you do not have, or a path showing a provider-to-peer pattern | Route leak (RFC 7908 types), path manipulation, new upstream not recorded | Medium, raise to high if widely visible |
| RPKI Invalid | Collectors or validators report your announcement as Invalid against published ROAs | Wrong or stale ROA, maxLength too short, hijack by a different origin | High: validating networks will drop the route |
| Withdrawal or loss of visibility | Your prefix disappears from most collector peers | Outage, session failure, filter error at an upstream | High for availability |
| Unexpected new announcement of unused space | Space you hold but do not announce appears in the global table | Squatting on dormant address space | Medium 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.
| Source | Operator | What it gives you | Use for |
|---|---|---|---|
| RIS raw data (MRT) | RIPE NCC | Full table dumps (bview) every 8 hours and update files every 5 minutes per route collector (RRC) | Baselines, forensic timelines, back-testing alert rules |
| RIS Live | RIPE NCC | Real-time WebSocket JSON feed of BGP messages from the RRCs, filterable by prefix, more-specific, path pattern, peer and collector | Near real-time alerting on your prefixes |
| RouteViews archive and looking glass | University of Oregon | Collectors at IXPs and partner networks with over a thousand peers; archive, web looking glass and API | Second vantage set, historical lookups, confirming what a region sees |
| Provider looking glasses | Individual transit providers and IXPs | The routes a specific network has selected | Confirming whether your upstream or a large network accepted a bad route |
| Your own BGP feeds | You | Routes your edge receives, ideally via BGP Monitoring Protocol (BMP) to a collector | Detecting leaks your neighbours send you, and route changes in your own policy |
- RIS Live subscription: connect to the WebSocket endpoint and send a
ris_subscribemessage with aprefixfilter for each of your aggregates.moreSpecificdefaults to true, so a subscription to your /22 also catches a hijacked /24. Thepathfilter accepts ASN patterns with^and$anchors (not regular expressions). RIPE NCC strongly recommends adding a?client=identifier, and advises monitoringris_errormessages. - 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 prefix | Meaning for you | Action |
|---|---|---|
| Valid, expected origin | Normal | None; record as baseline |
| Invalid, expected origin | Your own ROA is wrong or missing an origin or length; validating networks may drop you | Fix the ROA urgently; check scrubbing provider and CDN origins |
| Invalid, unexpected origin | Possible hijack; validating networks should reject it, others may accept it | Treat as hijack; confirm reach and start response |
| NotFound | No ROA covers this space | Create 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
- Build the intent file: prefixes, origins, maxLength, upstreams, peers and third-party originators. Have the network owner sign it off.
- 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.
- Back-test: replay past MRT update files around known changes (maintenance, new upstreams) to see which rules fire.
- Set thresholds: decide how many distinct collector peers must see an event before paging, and which events go to a ticket queue instead.
- Turn on paging for high-confidence signals: unexpected origin and unexpected more-specific first, then RPKI Invalid, then path anomalies.
- 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.
- 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_errormessages). 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.
| Event | First actions by the network team | Who to contact |
|---|---|---|
| Hijack of exact prefix | Confirm via looking glasses; consider announcing more-specifics within your ROA maxLength to compete; check ROAs are correct | Your upstreams, the upstreams of the hijacking AS |
| More-specific hijack | Announce matching more-specifics if your ROAs allow it; ask upstreams to filter | Upstreams and large networks carrying the route |
| Route leak | Identify the leaking AS from the path; check whether your own customers or sessions caused it | The leaking AS and its providers |
| Self-inflicted RPKI Invalid | Correct the ROA in the RIR portal; confirm propagation through validators | Internal 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
| Framework | Reference | How BGP monitoring supports it |
|---|---|---|
| NIST CSF 2.0 | DE.CM-01, DE.AE-02, RS.MA-01 | Network services monitored; alerts analysed; response coordinated with third parties such as upstreams |
| NIST SP 800-53 Rev 5 | SI-4, SC-7, IR-4 | System monitoring, boundary protection, incident handling |
| MANRS for network operators | Filtering, coordination, global validation | Correct announcements, current contacts, routing intent published in IRR or RPKI |
| IETF | RFC 6811, RFC 7908, RFC 9234 | Origin 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
- IETF: RFC 6811 BGP Prefix Origin Validation
- IETF: RFC 7908 Problem Definition and Classification of BGP Route Leaks
- IETF: RFC 9234 Route Leak Prevention and Detection Using Roles in UPDATE and OPEN Messages
- RIPE NCC: RIS Raw Data (MRT files)
- RIPE NCC: RIS Live manual
- University of Oregon: RouteViews project
- MANRS: Network operator actions
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