SlideShare a Scribd company logo
1 of 35
Download to read offline
ESNOG 29 | 19 May 2023
Alvaro Vives
RIPE NCC
BGP Routing Security:
Update and Stats
2
What is the RIPE NCC?
RIR = Regional Internet Registry
• Not-for-pro
fi
t organisation
• Funded by membership fees
• Policies developed by regional communities
• Neutral, impartial, open, and transparent
3
• Origin Hijack
• RPKI
• Stats for Spain
ACADEMY
BGP Security E-learning Course
academy.ripe.net/bgp-security/
Free online course
Interactive, you can study at your own pace
Practical lab environment and activities
5
April 2018: Amazon-MyEtherWallet
• BGP hijack of Amazon DNS
• How did it happen?
• Why? To steal cryptocurrency
5
BGP hijack
What is
myetherwallet.com?
root
.com
myetherwallet.com is now
in eastern Ukraine
Imposter website
Recursive
DNS server
Legitimate
Authoritative
DNS server
Imposter
Authoritative
DNS server
6
Origin Hijack: Same Pre
fi
x
AS3
AS5
AS2
AS1
AS6
AS4
P/32, AS1
Pre
fi
x-P, 2001:db8::/32
P/32, AS2 AS1
P/32, AS3 AS2 AS1
P/32, AS5
P/32, AS6 AS5
This is a local hijack!
Only some networks are affected based on BGP path selection process.
7
Origin Hijack: More Speci
fi
c Pre
fi
x
AS3
AS5
AS2
AS1
AS6
AS4
P/32, AS1
Pre
fi
x-P, 2001:db8::/32
P/32, AS2 AS1
P/32, AS3 AS2 AS1
P/48, AS5
P/48, AS6 AS5
This is a global hijack!
All traf
fi
c for more speci
fi
c will be forwarded to the attacker’s network network.
8
Resource
Public
Key
Infrastructure
9
What is RPKI?
• A security framework using Public Key Infrastructure and Resource
certi
fi
cation (X.509 PKI certi
fi
cates) for BGP route origin validation
(ROV)
• Allows resource (IPs) holders to prove ownership, and create
authorisations (ROAs)
• ASNs can use ROAs to validate the origin of BGP announcements
- Is the originating ASN authorised to originate a particular pre
fi
x?
10
How does it work?
You create an authorised
statement for your pre
fi
x
I have pre
fi
x Y!
BGP announcement
Authorised statement
Sign
Others use those statements to make better routing decisions!
Pre
fi
x Y, AS300 AS300
Pre
fi
x Y
Publish
4
Prefix Y
ASN 300 is
authorised to
announce my
prefix Y
ASN 300 is
authorised to
announce my
prefix Y
RPKI Repository
AS100
AS200
AS300
1 2
3
4
+
SIGNING VALIDATION
Create ROAs for your prefixes
in the RPKI system
Verify the information
provided by others
11
Elements of RPKI
• RPKI system consists of two parts…
12
Trust in RPKI
• RPKI relies on
fi
ve RIRs as Trust Anchors
• Certi
fi
cate structure follows the RIR hierarchy
• RIRs issue certi
fi
cates to resource holders
ARIN APNIC RIPE NCC AFRINIC
LACNIC
LIR LIR LIR
ROA ROA
RIR Root CA
Member CA
Authorised
Statements
IANA RIRs LIRs
End
Users
End
Users
RPKI Chain of Trust
ROA
LIR Certificate
Digital Signature
Root Certificate
Public Key
All Resources
LIR’s Resources
Self-sign
Root’s private key
Signed by Root’s private key
Signed by LIR’s private key
Sign
Sign
Digital Signature
Digital Signature
Public Key
ROA
2001:db8::/48
/48
AS65536
Prefix
Origin ASN
Max Length
14
What are ROAs?
• An authorised statement created by the resource holder
• States that a certain pre
fi
x can be originated by a certain AS
• LIRs can create ROAs for their resources
• Multiple ROAs can exist for the same pre
fi
x
• ROAs can overlap
15
How to create a ROA?
• Login to LIR Portal (my.ripe.net)
• Go to the RPKI Dashboard
• Choose which RPKI model to use
Hosted
Delegated
16
Hosted RPKI
RIPE NCC Hosted System
RIPE NCC
ROA
ROA
LIR
ROA
• ROAs are created and published using the
RIR’s member portal
• RIR hosts a CA (Certi
fi
cation Authority) for
LIRs and signs all ROAs
• Automated signing and key rollovers
17
Delegated RPKI
ROA ROA
LIR
LIR CA
RIPE NCC Hosted System
RIPE NCC
ROA
ROA
LIR
ROA
• Each LIR manages its part of the
RPKI system
- Runs its own CA as a child of the RIR
- Manages keys/key rollovers
- Creates, signs and publishes ROAs
• Certi
fi
cate Authority (CA) Software
- Krill (NLnet Labs)
- rpkid (Dragon Research Labs)
18
Publication as a Service
ROA
ROA
LIR
LIR CA
ROA
ROA
RIPE NCC Hosted System
RIPE NCC
ROA
ROA
LIR
ROA
• In-between Hosted and Delegated
- Runs its own CA as a child of the RIR
- Manages keys/key rollovers and ROAs
- Maintain key pairs and objects and
send them to RIR
- RIR publishes ROAs on behalf of LIR
• Also APNIC, ARIN, RIPE NCC,
NIRs
• AKA “Publication in parent” or
“Hybrid RPKI”
+
SIGNING VALIDATION
Create ROAs for your prefixes
in the RPKI system
Verify the information
provided by others
19
Elements of RPKI
• RPKI system consists of two parts…
20
RPKI Validation
• Verifying the information provided by others
- Proves holdership through a public key and certi
fi
cate infrastructure
• In order to validate RPKI data, you need to …
- install a validator software locally in your network
• Goal is to validate the “origin of BGP announcements”
- Known as BGP Origin Validation (BGP OV) or Route Origin Validation (ROV)
• Connects to RPKI repositories via rsync or RRDP protocol
• Uses TALs to connect to the repositories and download ROAs
• Validates chain of trust for all ROAs and associated CAs
• Creates a local “validated cache” with all the valid ROAs
RPKI Validator
22
ROA Validation Process
ELSE validation is unsuccessful, ROA is INVALID!
IF chain is complete, it means ROA is VALID!
ROA
LIR Certificate
Digital Signature
Root Certificate
Public Key
Self-signed
Digital Signature
Digital Signature
Public Key
23
Valid ROAs Are Sent to the Router!
Router uses this information to make better routing decisions!
External
Repositories
RIPE NCC ARIN APNIC
Validator
RPKI Repositories
Validated Cache
rsync/RRDP
RPKI-RTR
LACNIC AFRINIC
ROAs
AS65500
BGP Update
2001:db8:1000::/48, AS65500
VALID
OR
INVALID
24
25
RPKI Validators are Mature
• Much better than 5 years ago
• Installation, con
fi
guration, documentation is way better
• Big research work on vulnerabilities in 2021
- Multiple
fi
xes in all validators, mostly addressing potential DoS attacks
- Source: https://arxiv.org/pdf/2203.00993.pdf
26
Run Different Validators
RIPE NCC RPKI Validator: STOP USING IT IF YOU STILL DO
Source (13/5/23): https://rov-measurements.nlnetlabs.net/stats/
Validator Number (13/5/23) %
Routinator 2297 79%
rpki-client 253 9%
OctoRPKI 181 6%
FORT 91 3%
Validator 87 3%
Other 6 0%
27
RPKI Validator Options
• Routinator
- Built by NLNetlabs
• OctoRPKI
- Cloud
fl
are’s relying party software
• FORT
- Open source RPKI validator
• rpki-client
- Integrated in OpenBsd
Links for RPKI Validators
https://github.com/NLnetLabs/routinator.git
https://github.com/cloud
fl
are/cfrpki#octorpki
https://github.com/NICMx/FORT-validator/
https://www.rpki-client.org/
https://rpki.readthedocs.io
For more info…
28
Steady growth: Adoption and ROAs
Source (14/5/23): https://certi
fi
cation-stats.ripe.net/
29
Adoption per RIR
Source (14/5/23): https://ftp.ripe.net/pub/stats/ripencc/nro-adoption/latest/
RIR IPv4 Addr. Space IPv6 Addr. Space
APNIC 33% 23%
RIPE NCC 61% 37%
LACNIC 42% 23%
ARIN 29% 35%
AFRINIC 25% 7%
30
31
32
33
Fin
Ende
Kpaj
Konec
Son
Fine
Pabaiga
Einde
Fim
Finis
Koniec
Lõpp
Kрай
Sfârşit
Конeц
Kraj
Vége
Kiнець
Slutt
Loppu
Τέλος
Y Diwedd
Amaia Tmiem
Соңы
Endir
Slut
Liðugt
An Críoch
Fund
‫הסוף‬
Fí
Ënn
Finvezh
Beigas
վերջ
დასასრული
‫النهاية‬
‫پایان‬
Questions

More Related Content

Similar to ESNOG 29-Alvaro_Vives-Routing_Security.pdf

Introduction to RPKI by Sheryl (Shane) Hermoso
Introduction to RPKI by Sheryl (Shane) HermosoIntroduction to RPKI by Sheryl (Shane) Hermoso
Introduction to RPKI by Sheryl (Shane) HermosoMyNOG
 
Introduction to RPKI - MyNOG
Introduction to RPKI - MyNOGIntroduction to RPKI - MyNOG
Introduction to RPKI - MyNOGSiena Perry
 
ARIN 35 Tutorial: How to certify your ARIN resources with RPKI
ARIN 35 Tutorial: How to certify your ARIN resources with RPKIARIN 35 Tutorial: How to certify your ARIN resources with RPKI
ARIN 35 Tutorial: How to certify your ARIN resources with RPKIARIN
 
IDNOG 6: RQC and RPKI
IDNOG 6: RQC and RPKIIDNOG 6: RQC and RPKI
IDNOG 6: RQC and RPKIAPNIC
 
Introduction to RPKI
Introduction to RPKIIntroduction to RPKI
Introduction to RPKIAPNIC
 
ThaiNOG Day 2019: Internet Number Registry Services, the Next Generation
ThaiNOG Day 2019: Internet Number Registry Services, the Next GenerationThaiNOG Day 2019: Internet Number Registry Services, the Next Generation
ThaiNOG Day 2019: Internet Number Registry Services, the Next GenerationAPNIC
 
ICANN APAC-TWNIC Engagement Forum: Internet Number Registry Services - The Ne...
ICANN APAC-TWNIC Engagement Forum: Internet Number Registry Services - The Ne...ICANN APAC-TWNIC Engagement Forum: Internet Number Registry Services - The Ne...
ICANN APAC-TWNIC Engagement Forum: Internet Number Registry Services - The Ne...APNIC
 
Should I run my own RPKI Certificate Authority?
Should I run my own RPKI Certificate Authority?Should I run my own RPKI Certificate Authority?
Should I run my own RPKI Certificate Authority?APNIC
 
Certification
CertificationCertification
CertificationRIPE NCC
 
32nd TWNIC IP OPM: ROA+ROV deployment & industry development
32nd TWNIC IP OPM: ROA+ROV deployment & industry development32nd TWNIC IP OPM: ROA+ROV deployment & industry development
32nd TWNIC IP OPM: ROA+ROV deployment & industry developmentAPNIC
 
MyNOG 8: Next Generation Internet Number Registry Services
MyNOG 8: Next Generation Internet Number Registry ServicesMyNOG 8: Next Generation Internet Number Registry Services
MyNOG 8: Next Generation Internet Number Registry ServicesAPNIC
 
The Next Generation Internet Number Registry Services
The Next Generation Internet Number Registry ServicesThe Next Generation Internet Number Registry Services
The Next Generation Internet Number Registry ServicesMyNOG
 
RPKI Overview, Case Studies, Deployment and Operations
RPKI Overview, Case Studies, Deployment and OperationsRPKI Overview, Case Studies, Deployment and Operations
RPKI Overview, Case Studies, Deployment and OperationsAPNIC
 
Resource Certification
Resource CertificationResource Certification
Resource CertificationRIPE NCC
 
PCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC IntroductionPCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC IntroductionAPNIC
 
PCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC IntroductionPCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC IntroductionAPNIC
 
SANOG 33: APNIC Routing Registry and ROAs
SANOG 33: APNIC Routing Registry and ROAs SANOG 33: APNIC Routing Registry and ROAs
SANOG 33: APNIC Routing Registry and ROAs APNIC
 
PLNOG14: Quo Vadis RPKI - Andrzej Wolski
PLNOG14: Quo Vadis RPKI - Andrzej WolskiPLNOG14: Quo Vadis RPKI - Andrzej Wolski
PLNOG14: Quo Vadis RPKI - Andrzej WolskiPROIDEA
 
Rpki -manrs_(7_september)
Rpki  -manrs_(7_september)Rpki  -manrs_(7_september)
Rpki -manrs_(7_september)NaveenLakshman
 

Similar to ESNOG 29-Alvaro_Vives-Routing_Security.pdf (20)

Introduction to RPKI by Sheryl (Shane) Hermoso
Introduction to RPKI by Sheryl (Shane) HermosoIntroduction to RPKI by Sheryl (Shane) Hermoso
Introduction to RPKI by Sheryl (Shane) Hermoso
 
Introduction to RPKI - MyNOG
Introduction to RPKI - MyNOGIntroduction to RPKI - MyNOG
Introduction to RPKI - MyNOG
 
ARIN 35 Tutorial: How to certify your ARIN resources with RPKI
ARIN 35 Tutorial: How to certify your ARIN resources with RPKIARIN 35 Tutorial: How to certify your ARIN resources with RPKI
ARIN 35 Tutorial: How to certify your ARIN resources with RPKI
 
IDNOG 6: RQC and RPKI
IDNOG 6: RQC and RPKIIDNOG 6: RQC and RPKI
IDNOG 6: RQC and RPKI
 
Introduction to RPKI
Introduction to RPKIIntroduction to RPKI
Introduction to RPKI
 
ThaiNOG Day 2019: Internet Number Registry Services, the Next Generation
ThaiNOG Day 2019: Internet Number Registry Services, the Next GenerationThaiNOG Day 2019: Internet Number Registry Services, the Next Generation
ThaiNOG Day 2019: Internet Number Registry Services, the Next Generation
 
ICANN APAC-TWNIC Engagement Forum: Internet Number Registry Services - The Ne...
ICANN APAC-TWNIC Engagement Forum: Internet Number Registry Services - The Ne...ICANN APAC-TWNIC Engagement Forum: Internet Number Registry Services - The Ne...
ICANN APAC-TWNIC Engagement Forum: Internet Number Registry Services - The Ne...
 
Resource Public Key Infrastructure (RPKI)
Resource Public Key Infrastructure (RPKI) Resource Public Key Infrastructure (RPKI)
Resource Public Key Infrastructure (RPKI)
 
Should I run my own RPKI Certificate Authority?
Should I run my own RPKI Certificate Authority?Should I run my own RPKI Certificate Authority?
Should I run my own RPKI Certificate Authority?
 
Certification
CertificationCertification
Certification
 
32nd TWNIC IP OPM: ROA+ROV deployment & industry development
32nd TWNIC IP OPM: ROA+ROV deployment & industry development32nd TWNIC IP OPM: ROA+ROV deployment & industry development
32nd TWNIC IP OPM: ROA+ROV deployment & industry development
 
MyNOG 8: Next Generation Internet Number Registry Services
MyNOG 8: Next Generation Internet Number Registry ServicesMyNOG 8: Next Generation Internet Number Registry Services
MyNOG 8: Next Generation Internet Number Registry Services
 
The Next Generation Internet Number Registry Services
The Next Generation Internet Number Registry ServicesThe Next Generation Internet Number Registry Services
The Next Generation Internet Number Registry Services
 
RPKI Overview, Case Studies, Deployment and Operations
RPKI Overview, Case Studies, Deployment and OperationsRPKI Overview, Case Studies, Deployment and Operations
RPKI Overview, Case Studies, Deployment and Operations
 
Resource Certification
Resource CertificationResource Certification
Resource Certification
 
PCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC IntroductionPCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC Introduction
 
PCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC IntroductionPCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC Introduction
 
SANOG 33: APNIC Routing Registry and ROAs
SANOG 33: APNIC Routing Registry and ROAs SANOG 33: APNIC Routing Registry and ROAs
SANOG 33: APNIC Routing Registry and ROAs
 
PLNOG14: Quo Vadis RPKI - Andrzej Wolski
PLNOG14: Quo Vadis RPKI - Andrzej WolskiPLNOG14: Quo Vadis RPKI - Andrzej Wolski
PLNOG14: Quo Vadis RPKI - Andrzej Wolski
 
Rpki -manrs_(7_september)
Rpki  -manrs_(7_september)Rpki  -manrs_(7_september)
Rpki -manrs_(7_september)
 

More from RIPE NCC

Navigating IP Addresses: Insights from your Regional Internet Registry
Navigating IP Addresses: Insights from your Regional Internet RegistryNavigating IP Addresses: Insights from your Regional Internet Registry
Navigating IP Addresses: Insights from your Regional Internet RegistryRIPE NCC
 
Traces of Power: Internet Governance and Climate Action
Traces of Power: Internet Governance and Climate ActionTraces of Power: Internet Governance and Climate Action
Traces of Power: Internet Governance and Climate ActionRIPE NCC
 
Governing Environmental Sustainability in Tech
Governing Environmental Sustainability in TechGoverning Environmental Sustainability in Tech
Governing Environmental Sustainability in TechRIPE NCC
 
Gerardo-Viviers-RPKI-presentation-DKNOG14.pdf
Gerardo-Viviers-RPKI-presentation-DKNOG14.pdfGerardo-Viviers-RPKI-presentation-DKNOG14.pdf
Gerardo-Viviers-RPKI-presentation-DKNOG14.pdfRIPE NCC
 
LIA HESTINA - Minimising impact before incidents occur with RIPE Atlas and RIS
LIA HESTINA - Minimising impact before incidents occur with RIPE Atlas and RISLIA HESTINA - Minimising impact before incidents occur with RIPE Atlas and RIS
LIA HESTINA - Minimising impact before incidents occur with RIPE Atlas and RISRIPE NCC
 
Intro to RIPE and RIPE NCC: RIPE Atlas workshop
Intro to RIPE and RIPE NCC: RIPE Atlas workshopIntro to RIPE and RIPE NCC: RIPE Atlas workshop
Intro to RIPE and RIPE NCC: RIPE Atlas workshopRIPE NCC
 
IGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdf
IGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdfIGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdf
IGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdfRIPE NCC
 
Opportunities for Youth in IG - Alena Muravska RIPE NCC.pdf
Opportunities for Youth in IG - Alena Muravska RIPE NCC.pdfOpportunities for Youth in IG - Alena Muravska RIPE NCC.pdf
Opportunities for Youth in IG - Alena Muravska RIPE NCC.pdfRIPE NCC
 
RIPE NCC Internet Measurement Tools
RIPE NCC Internet Measurement ToolsRIPE NCC Internet Measurement Tools
RIPE NCC Internet Measurement ToolsRIPE NCC
 
IPv6 in Central Europe and the Baltics
IPv6 in Central Europe and the BalticsIPv6 in Central Europe and the Baltics
IPv6 in Central Europe and the BalticsRIPE NCC
 
RPKI For Routing Security
RPKI For Routing SecurityRPKI For Routing Security
RPKI For Routing SecurityRIPE NCC
 
SEEDIG 8 - Alena Muravska RIPE NCC.pdf
SEEDIG 8 - Alena Muravska RIPE NCC.pdfSEEDIG 8 - Alena Muravska RIPE NCC.pdf
SEEDIG 8 - Alena Muravska RIPE NCC.pdfRIPE NCC
 
Know Your Network: Why Every Network Operator Should Host RIPE Atlas
Know Your Network: Why Every Network Operator Should Host RIPE AtlasKnow Your Network: Why Every Network Operator Should Host RIPE Atlas
Know Your Network: Why Every Network Operator Should Host RIPE AtlasRIPE NCC
 
Minimising Impact When Incidents Occur With RIPE Atlas
Minimising Impact When Incidents Occur With RIPE AtlasMinimising Impact When Incidents Occur With RIPE Atlas
Minimising Impact When Incidents Occur With RIPE AtlasRIPE NCC
 
RIPE NCC Internet Measurement Services
RIPE NCC Internet Measurement ServicesRIPE NCC Internet Measurement Services
RIPE NCC Internet Measurement ServicesRIPE NCC
 
Spotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasSpotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasRIPE NCC
 
Spotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasSpotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasRIPE NCC
 
Spotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasSpotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasRIPE NCC
 
111 views of Swiss Internet Infrastructure
111 views of Swiss Internet Infrastructure111 views of Swiss Internet Infrastructure
111 views of Swiss Internet InfrastructureRIPE NCC
 
The RIPE NCC’s View of IPv6 in Sweden
The RIPE NCC’s View of IPv6 in SwedenThe RIPE NCC’s View of IPv6 in Sweden
The RIPE NCC’s View of IPv6 in SwedenRIPE NCC
 

More from RIPE NCC (20)

Navigating IP Addresses: Insights from your Regional Internet Registry
Navigating IP Addresses: Insights from your Regional Internet RegistryNavigating IP Addresses: Insights from your Regional Internet Registry
Navigating IP Addresses: Insights from your Regional Internet Registry
 
Traces of Power: Internet Governance and Climate Action
Traces of Power: Internet Governance and Climate ActionTraces of Power: Internet Governance and Climate Action
Traces of Power: Internet Governance and Climate Action
 
Governing Environmental Sustainability in Tech
Governing Environmental Sustainability in TechGoverning Environmental Sustainability in Tech
Governing Environmental Sustainability in Tech
 
Gerardo-Viviers-RPKI-presentation-DKNOG14.pdf
Gerardo-Viviers-RPKI-presentation-DKNOG14.pdfGerardo-Viviers-RPKI-presentation-DKNOG14.pdf
Gerardo-Viviers-RPKI-presentation-DKNOG14.pdf
 
LIA HESTINA - Minimising impact before incidents occur with RIPE Atlas and RIS
LIA HESTINA - Minimising impact before incidents occur with RIPE Atlas and RISLIA HESTINA - Minimising impact before incidents occur with RIPE Atlas and RIS
LIA HESTINA - Minimising impact before incidents occur with RIPE Atlas and RIS
 
Intro to RIPE and RIPE NCC: RIPE Atlas workshop
Intro to RIPE and RIPE NCC: RIPE Atlas workshopIntro to RIPE and RIPE NCC: RIPE Atlas workshop
Intro to RIPE and RIPE NCC: RIPE Atlas workshop
 
IGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdf
IGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdfIGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdf
IGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdf
 
Opportunities for Youth in IG - Alena Muravska RIPE NCC.pdf
Opportunities for Youth in IG - Alena Muravska RIPE NCC.pdfOpportunities for Youth in IG - Alena Muravska RIPE NCC.pdf
Opportunities for Youth in IG - Alena Muravska RIPE NCC.pdf
 
RIPE NCC Internet Measurement Tools
RIPE NCC Internet Measurement ToolsRIPE NCC Internet Measurement Tools
RIPE NCC Internet Measurement Tools
 
IPv6 in Central Europe and the Baltics
IPv6 in Central Europe and the BalticsIPv6 in Central Europe and the Baltics
IPv6 in Central Europe and the Baltics
 
RPKI For Routing Security
RPKI For Routing SecurityRPKI For Routing Security
RPKI For Routing Security
 
SEEDIG 8 - Alena Muravska RIPE NCC.pdf
SEEDIG 8 - Alena Muravska RIPE NCC.pdfSEEDIG 8 - Alena Muravska RIPE NCC.pdf
SEEDIG 8 - Alena Muravska RIPE NCC.pdf
 
Know Your Network: Why Every Network Operator Should Host RIPE Atlas
Know Your Network: Why Every Network Operator Should Host RIPE AtlasKnow Your Network: Why Every Network Operator Should Host RIPE Atlas
Know Your Network: Why Every Network Operator Should Host RIPE Atlas
 
Minimising Impact When Incidents Occur With RIPE Atlas
Minimising Impact When Incidents Occur With RIPE AtlasMinimising Impact When Incidents Occur With RIPE Atlas
Minimising Impact When Incidents Occur With RIPE Atlas
 
RIPE NCC Internet Measurement Services
RIPE NCC Internet Measurement ServicesRIPE NCC Internet Measurement Services
RIPE NCC Internet Measurement Services
 
Spotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasSpotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE Atlas
 
Spotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasSpotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE Atlas
 
Spotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasSpotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE Atlas
 
111 views of Swiss Internet Infrastructure
111 views of Swiss Internet Infrastructure111 views of Swiss Internet Infrastructure
111 views of Swiss Internet Infrastructure
 
The RIPE NCC’s View of IPv6 in Sweden
The RIPE NCC’s View of IPv6 in SwedenThe RIPE NCC’s View of IPv6 in Sweden
The RIPE NCC’s View of IPv6 in Sweden
 

Recently uploaded

『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxTRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxAndrieCagasanAkio
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119APNIC
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxUnidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxmibuzondetrabajo
 
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxCompany Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxMario
 
ETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxNIMMANAGANTI RAMAKRISHNA
 

Recently uploaded (11)

『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxTRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptx
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxUnidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptx
 
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxCompany Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptx
 
ETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptx
 

ESNOG 29-Alvaro_Vives-Routing_Security.pdf

  • 1. ESNOG 29 | 19 May 2023 Alvaro Vives RIPE NCC BGP Routing Security: Update and Stats
  • 2. 2 What is the RIPE NCC? RIR = Regional Internet Registry • Not-for-pro fi t organisation • Funded by membership fees • Policies developed by regional communities • Neutral, impartial, open, and transparent
  • 3. 3 • Origin Hijack • RPKI • Stats for Spain
  • 4. ACADEMY BGP Security E-learning Course academy.ripe.net/bgp-security/ Free online course Interactive, you can study at your own pace Practical lab environment and activities
  • 5. 5 April 2018: Amazon-MyEtherWallet • BGP hijack of Amazon DNS • How did it happen? • Why? To steal cryptocurrency 5 BGP hijack What is myetherwallet.com? root .com myetherwallet.com is now in eastern Ukraine Imposter website Recursive DNS server Legitimate Authoritative DNS server Imposter Authoritative DNS server
  • 6. 6 Origin Hijack: Same Pre fi x AS3 AS5 AS2 AS1 AS6 AS4 P/32, AS1 Pre fi x-P, 2001:db8::/32 P/32, AS2 AS1 P/32, AS3 AS2 AS1 P/32, AS5 P/32, AS6 AS5 This is a local hijack! Only some networks are affected based on BGP path selection process.
  • 7. 7 Origin Hijack: More Speci fi c Pre fi x AS3 AS5 AS2 AS1 AS6 AS4 P/32, AS1 Pre fi x-P, 2001:db8::/32 P/32, AS2 AS1 P/32, AS3 AS2 AS1 P/48, AS5 P/48, AS6 AS5 This is a global hijack! All traf fi c for more speci fi c will be forwarded to the attacker’s network network.
  • 8. 8
  • 9. Resource Public Key Infrastructure 9 What is RPKI? • A security framework using Public Key Infrastructure and Resource certi fi cation (X.509 PKI certi fi cates) for BGP route origin validation (ROV) • Allows resource (IPs) holders to prove ownership, and create authorisations (ROAs) • ASNs can use ROAs to validate the origin of BGP announcements - Is the originating ASN authorised to originate a particular pre fi x?
  • 10. 10 How does it work? You create an authorised statement for your pre fi x I have pre fi x Y! BGP announcement Authorised statement Sign Others use those statements to make better routing decisions! Pre fi x Y, AS300 AS300 Pre fi x Y Publish 4 Prefix Y ASN 300 is authorised to announce my prefix Y ASN 300 is authorised to announce my prefix Y RPKI Repository AS100 AS200 AS300 1 2 3 4
  • 11. + SIGNING VALIDATION Create ROAs for your prefixes in the RPKI system Verify the information provided by others 11 Elements of RPKI • RPKI system consists of two parts…
  • 12. 12 Trust in RPKI • RPKI relies on fi ve RIRs as Trust Anchors • Certi fi cate structure follows the RIR hierarchy • RIRs issue certi fi cates to resource holders ARIN APNIC RIPE NCC AFRINIC LACNIC LIR LIR LIR ROA ROA RIR Root CA Member CA Authorised Statements IANA RIRs LIRs End Users End Users
  • 13. RPKI Chain of Trust ROA LIR Certificate Digital Signature Root Certificate Public Key All Resources LIR’s Resources Self-sign Root’s private key Signed by Root’s private key Signed by LIR’s private key Sign Sign Digital Signature Digital Signature Public Key
  • 14. ROA 2001:db8::/48 /48 AS65536 Prefix Origin ASN Max Length 14 What are ROAs? • An authorised statement created by the resource holder • States that a certain pre fi x can be originated by a certain AS • LIRs can create ROAs for their resources • Multiple ROAs can exist for the same pre fi x • ROAs can overlap
  • 15. 15 How to create a ROA? • Login to LIR Portal (my.ripe.net) • Go to the RPKI Dashboard • Choose which RPKI model to use Hosted Delegated
  • 16. 16 Hosted RPKI RIPE NCC Hosted System RIPE NCC ROA ROA LIR ROA • ROAs are created and published using the RIR’s member portal • RIR hosts a CA (Certi fi cation Authority) for LIRs and signs all ROAs • Automated signing and key rollovers
  • 17. 17 Delegated RPKI ROA ROA LIR LIR CA RIPE NCC Hosted System RIPE NCC ROA ROA LIR ROA • Each LIR manages its part of the RPKI system - Runs its own CA as a child of the RIR - Manages keys/key rollovers - Creates, signs and publishes ROAs • Certi fi cate Authority (CA) Software - Krill (NLnet Labs) - rpkid (Dragon Research Labs)
  • 18. 18 Publication as a Service ROA ROA LIR LIR CA ROA ROA RIPE NCC Hosted System RIPE NCC ROA ROA LIR ROA • In-between Hosted and Delegated - Runs its own CA as a child of the RIR - Manages keys/key rollovers and ROAs - Maintain key pairs and objects and send them to RIR - RIR publishes ROAs on behalf of LIR • Also APNIC, ARIN, RIPE NCC, NIRs • AKA “Publication in parent” or “Hybrid RPKI”
  • 19. + SIGNING VALIDATION Create ROAs for your prefixes in the RPKI system Verify the information provided by others 19 Elements of RPKI • RPKI system consists of two parts…
  • 20. 20 RPKI Validation • Verifying the information provided by others - Proves holdership through a public key and certi fi cate infrastructure • In order to validate RPKI data, you need to … - install a validator software locally in your network • Goal is to validate the “origin of BGP announcements” - Known as BGP Origin Validation (BGP OV) or Route Origin Validation (ROV)
  • 21. • Connects to RPKI repositories via rsync or RRDP protocol • Uses TALs to connect to the repositories and download ROAs • Validates chain of trust for all ROAs and associated CAs • Creates a local “validated cache” with all the valid ROAs RPKI Validator
  • 22. 22 ROA Validation Process ELSE validation is unsuccessful, ROA is INVALID! IF chain is complete, it means ROA is VALID! ROA LIR Certificate Digital Signature Root Certificate Public Key Self-signed Digital Signature Digital Signature Public Key
  • 23. 23 Valid ROAs Are Sent to the Router! Router uses this information to make better routing decisions! External Repositories RIPE NCC ARIN APNIC Validator RPKI Repositories Validated Cache rsync/RRDP RPKI-RTR LACNIC AFRINIC ROAs AS65500 BGP Update 2001:db8:1000::/48, AS65500 VALID OR INVALID
  • 24. 24
  • 25. 25 RPKI Validators are Mature • Much better than 5 years ago • Installation, con fi guration, documentation is way better • Big research work on vulnerabilities in 2021 - Multiple fi xes in all validators, mostly addressing potential DoS attacks - Source: https://arxiv.org/pdf/2203.00993.pdf
  • 26. 26 Run Different Validators RIPE NCC RPKI Validator: STOP USING IT IF YOU STILL DO Source (13/5/23): https://rov-measurements.nlnetlabs.net/stats/ Validator Number (13/5/23) % Routinator 2297 79% rpki-client 253 9% OctoRPKI 181 6% FORT 91 3% Validator 87 3% Other 6 0%
  • 27. 27 RPKI Validator Options • Routinator - Built by NLNetlabs • OctoRPKI - Cloud fl are’s relying party software • FORT - Open source RPKI validator • rpki-client - Integrated in OpenBsd Links for RPKI Validators https://github.com/NLnetLabs/routinator.git https://github.com/cloud fl are/cfrpki#octorpki https://github.com/NICMx/FORT-validator/ https://www.rpki-client.org/ https://rpki.readthedocs.io For more info…
  • 28. 28 Steady growth: Adoption and ROAs Source (14/5/23): https://certi fi cation-stats.ripe.net/
  • 29. 29 Adoption per RIR Source (14/5/23): https://ftp.ripe.net/pub/stats/ripencc/nro-adoption/latest/ RIR IPv4 Addr. Space IPv6 Addr. Space APNIC 33% 23% RIPE NCC 61% 37% LACNIC 42% 23% ARIN 29% 35% AFRINIC 25% 7%
  • 30. 30
  • 31. 31
  • 32. 32
  • 33. 33
  • 34. Fin Ende Kpaj Konec Son Fine Pabaiga Einde Fim Finis Koniec Lõpp Kрай Sfârşit Конeц Kraj Vége Kiнець Slutt Loppu Τέλος Y Diwedd Amaia Tmiem Соңы Endir Slut Liðugt An Críoch Fund ‫הסוף‬ Fí Ënn Finvezh Beigas վերջ დასასრული ‫النهاية‬ ‫پایان‬