
Network Routing Security: BGP, OSPF and RPKI 2026
Network routing is rarely scrutinized from a security perspective until something goes wrong. BGP route hijacking incidents have affected major internet providers, cloud platforms, and financial institutions. OSPF without authentication allows rogue devices to inject false routing. In 2026, AI-assisted network reconnaissance makes routing security a priority for any organization with multi-site or internet-facing infrastructure.
BGP Security: Route Hijacking Prevention
RPKI: Resource Public Key Infrastructure
RPKI is the most significant BGP security advancement in decades. It provides cryptographic validation that a BGP announcement originated from an authorized Autonomous System. Deploy in two steps: (1) Create Route Origin Authorizations (ROAs) at your Regional Internet Registry. (2) Enable Route Origin Validation (ROV) on BGP routers to drop invalid announcements.
BGP Prefix Filtering
Never accept a default route from a peer unless explicitly required. Filter BGP prefixes aggressively: define maximum prefix limits per peer to prevent route table flooding, filter bogon ASNs (private ASNs 64512-65535 unless on internal eBGP), filter prefixes more specific than /24 for IPv4, use prefix lists or route-maps to reject invalid prefixes.
BGP Authentication
MD5 TCP authentication for BGP sessions prevents spoofed BGP OPEN messages. Configure on Cisco: neighbor x.x.x.x password STRONG_KEY. For modern deployments, TCP-AO (Authentication Option) provides stronger protection and is preferred where supported.
OSPF Security
OSPF Authentication
OSPF without authentication allows any device on the subnet to inject LSAs and manipulate routing. Enable MD5 or SHA-HMAC authentication. On Cisco IOS: ip ospf authentication message-digest and ip ospf message-digest-key 1 md5 STRONG_KEY. Configure all interfaces not running OSPF neighbors as passive: passive-interface default then explicitly activate required interfaces.
Control Plane Protection
Control plane traffic must be rate-limited and separated from data plane. Implement Control Plane Policing (CoPP) to rate-limit: OSPF, BGP, ICMP, SSH, SNMP packets destined for the router CPU. This prevents CPU exhaustion attacks that drop routing adjacencies.
🔗 Further Reading
🔗 Authoritative Sources
FAQs
What is BGP route hijacking?
BGP route hijacking occurs when a router incorrectly announces ownership of IP prefixes it does not control, misdirecting internet traffic. It can be accidental (misconfiguration) or malicious (interception). RPKI with ROV prevents hijacked routes from propagating.
What is RPKI?
RPKI (Resource Public Key Infrastructure) provides cryptographic proof that a BGP announcement comes from an authorized AS. Route Origin Authorizations (ROAs) specify which ASes can announce which prefixes. Route Origin Validation (ROV) on routers drops Invalid announcements. RPKI is the most effective tool against BGP hijacking.
Why does OSPF need authentication?
OSPF without authentication trusts all hello packets on connected subnets. A rogue device can inject false LSAs, redirecting traffic through attacker-controlled paths. MD5 or SHA-HMAC authentication prevents unauthorized participation in OSPF.
Key Takeaways
- Deploy RPKI ROAs for your IP prefixes and enable ROV on BGP routers
- Configure strict BGP prefix filtering with maximum prefix limits per peer
- Enable MD5 or TCP-AO authentication on all BGP sessions
- Configure OSPF SHA-HMAC authentication and passive-interface on end-user VLANs
- Implement Control Plane Policing to protect router CPUs from flood attacks
Conclusion
Routing security is infrastructure security. BGP without RPKI and OSPF without authentication leave critical routing infrastructure vulnerable. Deploy RPKI, filter prefixes aggressively, authenticate all routing protocols, protect control plane traffic. Related: Network Security Best Practices.
Sources
- RPKI Documentation – rpki.net
- BGP Security Best Practices – ripe.net, arin.net
- MANRS Routing Security – manrs.org
- Cisco IOS Security Configuration Guide – cisco.com
RPKI Deployment Steps
Create Route Origin Authorizations (ROAs) for all your IP prefixes in your RIR portal (RIPE, ARIN, APNIC). ROAs specify which AS numbers are authorized to originate each prefix. Enable Route Origin Validation on your border routers: set Invalid routes to reject, Unknown routes to accept, Valid routes to prefer. Use the RPKI dashboard at rpki-validator.ripe.net to monitor your coverage.
Key Takeaways
- RPKI with ROV prevents BGP route hijacking at the origin level
- Always authenticate OSPF with MD5 or SHA-HMAC to prevent rogue LSA injection
- Filter bogon prefixes on all border routers to block unroutable IP ranges
- Monitor BGP route changes with BGPmon or Cloudflare Radar for hijack detection
Continuous Improvement and Measurement
Security programs that do not measure outcomes cannot demonstrate value or improve systematically. Establish key metrics for every control domain and review them monthly with the security team and quarterly with leadership. Track trends over time rather than absolute scores, since a declining trend in a specific area indicates degrading controls before a breach occurs. Use these metrics to prioritize investment and staffing decisions with data rather than intuition. Security teams that speak in measurable outcomes earn more organizational support than those that speak only in theoretical risks.
Build a continuous improvement cycle: assess current state, identify highest-priority gaps, implement controls, measure effectiveness, and repeat. This cycle, formalized as Plan-Do-Check-Act in ISO 27001 and as the CSF Improvement function in NIST CSF 2.0, is the foundation of a mature security program. No organization achieves perfect security. The goal is continuous, measurable progress against a defined baseline.
Training and Team Development
Technical controls are only as effective as the people who implement and operate them. Invest in security team training and certification. Certifications such as OSCP for penetration testing, GCIH for incident handling, and AWS Security Specialty for cloud security validate practitioner skills and keep teams current with evolving attack techniques and defensive practices. Encourage team members to participate in CTF competitions, attend security conferences, and contribute to open source security projects. A team that stays current with offensive techniques builds more effective defenses than one relying solely on vendor training and compliance-driven awareness programs.
Further Resources and Next Steps
Building security expertise requires hands-on practice alongside theoretical knowledge. Set up a home lab using free-tier cloud accounts, virtualization software, and community editions of security tools. Practice the techniques covered in this guide in a controlled environment before applying them to production systems. Platforms such as HackTheBox, TryHackMe, and PentesterLab provide structured, legal practice environments for offensive and defensive security skills.
Follow primary sources for the latest developments in this domain. Official vendor documentation, CISA advisories, NIST publications, and conference proceedings from Black Hat and DEF CON provide authoritative, current information that goes deeper than any single article can cover. Bookmark the relevant official documentation pages and check them when applying any configuration in production, since version differences between software releases can make specific instructions inapplicable or incorrect without modification.
