BGP Security: 9 Practical Defenses To Harden Networks In 2025

ST
Written by
Integrated MA, Certified Relationship Coach

The Border Gateway Protocol (BGP) forms the backbone of global internet routing, directing data across autonomous systems (ASes). Yet, its trust-based design leaves it exposed to attacks like prefix hijacking and route leaks, causing outages and data interception. This article outlines practical defenses, drawing from standards bodies and recent analyses to help network operators fortify their infrastructure.

Understanding BGP’s Core Vulnerabilities

BGP operates without inherent authentication, relying on TCP sessions and peer trust. Attackers exploit this by announcing false routes, diverting traffic to malicious destinations. NIST SP 800-189 Revision 1 (2023) highlights how BGP lacks origin validation, allowing unauthorized ASes to claim IP prefixes.1 Real-world incidents, such as the 2020 Fastly outage from a route leak, underscore the cascading impact.

Key risks include:

  • Prefix Hijacking: An attacker announces a victim’s IP block from a rogue AS, intercepting traffic.
  • Route Leaks: Misconfigurations propagate invalid paths, creating blackholes or loops.
  • Man-in-the-Middle Attacks: Forged announcements enable eavesdropping on sensitive data flows.

CAIDA’s MANRS reports reveal that invalid announcements propagate widely due to lax filtering, affecting global connectivity.2

Deploying Resource Public Key Infrastructure (RPKI)

RPKI addresses BGP’s trust gap by cryptographically validating route origins via Route Origin Authorizations (ROAs). Operators publish ROAs attesting prefix ownership through Regional Internet Registries (RIRs) like ARIN or RIPE NCC.

Implementation phases, per NRO best practices:

  1. Monitoring (30-60 days): Log validation states without altering routes.
  2. Preference Adjustment (60-90 days): De-preference invalid routes.
  3. Enforcement (90+ days): Reject invalid announcements.

Despite progress, SentinelOne notes incomplete deployments leave gaps; for instance, overly permissive ROA lengths or outdated records expose prefixes.3 Organizations must maintain at least two RPKI validators for redundancy.

Deployment PhaseActionBenefits
MonitoringObserve failuresIdentifies issues early
PreferenceLower invalid prefsReduces risk gradually
EnforcementDrop invalidsFull protection

Implementing Robust Prefix Filtering

Strict filtering prevents invalid routes from entering your BGP table. MANRS actions recommend customer, peer, and provider filters based on IRR data and ROAs.

  • Filter customer prefixes to exact allocations.
  • Reject bogons (unallocated IPs) using synchronized lists from RIRs.
  • Apply max-prefix limits per peer.

INCIBE-CERT emphasizes AS-path checks to block leaks from higher-tier ASes.4 Tools like RTBH (Remotely Triggered Black Hole) mitigate ongoing hijacks by null-routing suspect prefixes.

Authenticating BGP Sessions

Protect TCP sessions with MD5 or TCP-AO to thwart hijacking. NIST guidelines mandate this for all eBGP and iBGP peers. While not preventing false announcements, it stops session resets or injections.

Recent Princeton research (2008, still foundational) confirms these as baseline defenses with low overhead.5

Advanced Protections: BGPsec and Beyond

BGPsec extends RPKI with path validation, signing each AS segment. IETF drafts show gradual rollout, but computational costs limit adoption on legacy routers. UCLA analysis (pre-2010, validated by ongoing challenges) cites PKI and overhead as barriers.6

Interim: Use SIDR (Secure Inter-Domain Routing) for partial path security.

Real-Time Monitoring and Detection

Visibility is crucial. Integrate BGP feeds into SIEMs for alerts on:

  • Origin AS changes for your prefixes.
  • New more-specific announcements.
  • RPKI state shifts.

Tools like BGPmon or Kentik provide global views. The Register (2025) reports monitoring gaps prolong incidents.7

Overcoming Deployment Challenges

Collective action is key; individual efforts falter without ecosystem buy-in. Global Cyber Alliance argues regulation won’t suffice—focus on incentives like peering requirements.8

Common pitfalls:

  • ROA misconfigs (e.g., wrong max-length).
  • Validator downtime.
  • Filter staleness.

Start small: Secure your AS, join MANRS, advocate upstream.

Case Studies in BGP Resilience

Cloudflare’s 2022 hijack response used ROV to isolate invalid routes within minutes. Conversely, a 2024 African outage from a leak persisted hours due to absent filters, per Potaroo surveys.6

Future Directions for BGP Security

Emerging: RPKI 2.0 for faster revocations, ML-based anomaly detection. IETF’s BGPsec deployment targets 2030 full coverage.

Frequently Asked Questions

What is BGP hijacking?

An attacker falsely advertises IP prefixes to reroute traffic.

Is RPKI mandatory?

No, but NIST recommends it for critical infrastructure.

How long to deploy RPKI?

90+ days phased, per best practices.

Can small ISPs secure BGP?

Yes, via hosted RPKI and open-source validators.

What if peers don’t validate?

Your enforcement protects inbound; outbound needs upstream adoption.

References

  1. NIST SP 800-189 Revision 1: Secure Border Gateway Protocol (BGP) Implementation Analysis — NIST. 2023-08-16. https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-189r1.pdf
  2. MANRS Actions and Ecosystem Report — CAIDA/Internet Society. 2024. https://www.manrs.org/about/reports/
  3. Border Gateway Protocol (BGP): A Security-First Guide — SentinelOne. 2025. https://www.sentinelone.com/cybersecurity-101/cybersecurity/border-gateway-protocol/
  4. Securing Routing: Challenges and Solutions in BGP — INCIBE-CERT. 2023. https://www.incibe.es/en/incibe-cert/blog/securing-routing-challenges-and-solutions-bgp
  5. A Survey of BGP Security Issues and Solutions — Princeton University. 2008-07. https://www.cs.princeton.edu/~jrex/papers/bgp-security08.pdf
  6. Securing BGP – A Literature Survey — Geoff Huston, Potaroo. 2000s (foundational, cited in 2025 analyses). https://www.potaroo.net/papers/BGP_Security_Literature_Review.pdf
  7. Fixing BGP’s Security Problems is Not Proving to Be Easy — The Register. 2025-08-27. https://www.theregister.com/on-prem/2025/08/27/fixing-bgps-security-problems-is-not-proving-to-be-easy/1120884
  8. 5 Reasons Regulating BGP Won’t Help — Global Cyber Alliance. 2023. https://globalcyberalliance.org/bgp-regulation-wont-help/
‹›