BGP Security and RPKI: Defending Against Route Hijacking and Prefix Leaks

Retool's new app builder is where AI-generated code ships safely
Building apps with AI is easy. Getting them to production safely is another story.
BGP (Border Gateway Protocol) routes internet traffic between autonomous systems — the networks that make up the internet. When you send a request to a server, BGP determines the path across the internet. The problem: BGP was designed in an era of trust between a small number of network operators. It has no built-in authentication — any autonomous system can announce routes for any IP prefix, and the internet will (often) believe it.
This lack of authentication enables BGP hijacking: announcing routing information for IP address space you do not own, causing traffic destined for the legitimate owner's network to route to the attacker's infrastructure instead. BGP hijacks have been used to intercept cryptocurrency exchange traffic, redirect DNS resolution traffic, and take down services.
RPKI (Resource Public Key Infrastructure) with Route Origin Authorization (ROA) cryptographically binds IP prefixes to the autonomous systems authorized to originate routes for them. Routers configured to perform RPKI validation reject route announcements that lack a valid ROA — preventing most forms of BGP hijacking.
BGP hijacking: how attacks work
Understanding the attack mechanism clarifies what RPKI does and does not protect against.
Subscribe to unlock Remediation & Mitigation steps
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
RPKI and Route Origin Authorization: the technical mechanism
RPKI is a public key infrastructure that uses the RIR (Regional Internet Registry) chain of trust to cryptographically sign routing information. ROAs (Route Origin Authorizations) are signed records that state: 'AS X is authorized to originate routes for prefix P with maximum prefix length L.'
Subscribe to unlock Remediation & Mitigation steps
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
Briefings like this, every morning before 9am.
Threat intel, active CVEs, and campaign alerts, distilled for practitioners. 50,000+ subscribers. No noise.
Deployment steps: protecting your own prefixes
There are two distinct RPKI deployment actions: creating ROAs to protect your prefixes (origin protection), and configuring your routers to reject invalid routes (route origin validation). Both are necessary for complete protection.
Subscribe to unlock Remediation & Mitigation steps
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
RPKI limitations: what it does not protect against
RPKI ROA prevents prefix hijacking by unauthorized ASes for prefixes with valid ROAs. It does not protect against all BGP attacks.
Subscribe to unlock Remediation & Mitigation steps
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
The bottom line
BGP hijacking is a real, documented attack that has affected cryptocurrency exchanges, CDN providers, and major internet services. For organizations controlling public IP address space, creating ROAs through your RIR is a one-time configuration that takes under an hour and protects your prefixes from origin hijacking by unauthorized autonomous systems. Enabling route origin validation on your routers (dropping RouteInvalid announcements) protects your network from accepting hijacked routes for other organizations' prefixes. Both are now considered operational security hygiene for organizations operating their own ASN.
Frequently asked questions
Does my organization need to worry about BGP security if we just use a cloud provider?
If your organization uses IP addresses leased from a cloud provider (AWS Elastic IPs, Azure Public IPs) rather than your own registered IP space, the cloud provider manages BGP routing and RPKI for those addresses. Your exposure to BGP hijacking in this case is the cloud provider's problem to manage, not yours. BGP security becomes your responsibility when you use your own registered IP address blocks (your own ASN, your own IP allocation from an RIR), typically when operating your own internet-facing infrastructure.
What is the difference between RPKI and DNSSEC?
RPKI secures the routing layer — it validates which autonomous systems are authorized to announce BGP routes for which IP prefixes, preventing traffic redirection attacks. DNSSEC secures the DNS layer — it validates that DNS responses are authentic and have not been tampered with, preventing DNS spoofing and cache poisoning. They protect different layers of the same problem (redirecting users to malicious destinations) and are complementary. A BGP hijack can redirect traffic even if DNSSEC is deployed; DNSSEC does not protect against routing-layer attacks.
How do I check if my prefixes have valid RPKI ROAs?
Use the Cloudflare RPKI portal at rpki.cloudflare.com — enter your IP prefix and it shows the validation status (Valid, Invalid, or NotFound) and the ROA details if one exists. RIPE's routing information service at stat.ripe.net also provides RPKI status for any prefix. If your prefixes show as NotFound, log into your RIR portal and create ROAs. If they show as Invalid, the existing ROA has an incorrect ASN or maxLength — correct the ROA in your RIR portal.
Sources & references
Free resources
Critical CVE Reference Card 2025–2026
25 actively exploited vulnerabilities with CVSS scores, exploit status, and patch availability. Print it, pin it, share it with your SOC team.
Ransomware Incident Response Playbook
Step-by-step 24-hour IR checklist covering detection, containment, eradication, and recovery. Built for SOC teams, IR leads, and CISOs.
Get threat intel before your inbox does.
50,000+ security professionals read Decryption Digest for early warnings on zero-days, ransomware, and nation-state campaigns. Free, daily, no spam.
Unsubscribe anytime. We never sell your data.

Founder & Cybersecurity Evangelist, Decryption Digest
Cybersecurity professional with expertise in threat intelligence, vulnerability research, and enterprise security. Covers zero-days, ransomware, and nation-state operations for 50,000+ security professionals every morning.
Win a $2,495 Black Hat pass.
Full-access to Black Hat USA 2026 in Las Vegas. Subscribe free to enter.
