SlideShare a Scribd company logo
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 - MyNOG
Introduction to RPKI - MyNOGIntroduction to RPKI - MyNOG
Introduction to RPKI - MyNOG
Siena Perry
 
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
 
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
ARIN
 
IDNOG 6: RQC and RPKI
IDNOG 6: RQC and RPKIIDNOG 6: RQC and RPKI
IDNOG 6: RQC and RPKI
APNIC
 
Introduction to RPKI
Introduction to RPKIIntroduction to RPKI
Introduction to RPKI
APNIC
 
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
APNIC
 
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
 
Resource Public Key Infrastructure (RPKI)
Resource Public Key Infrastructure (RPKI) Resource Public Key Infrastructure (RPKI)
Resource Public Key Infrastructure (RPKI)
Bangladesh Network Operators Group
 
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
Certification
RIPE 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 development
APNIC
 
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
APNIC
 
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
MyNOG
 
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
APNIC
 
Resource Certification
Resource CertificationResource Certification
Resource Certification
RIPE NCC
 
PCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC IntroductionPCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC Introduction
APNIC
 
PCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC IntroductionPCTA Convention 2023: APNIC Introduction
PCTA Convention 2023: APNIC Introduction
APNIC
 
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 Wolski
PROIDEA
 
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 - MyNOG
Introduction to RPKI - MyNOGIntroduction to RPKI - MyNOG
Introduction to RPKI - MyNOG
 
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
 
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

Know Your Network; why every network operator should host a RIPE Atlas probe
Know Your Network; why every network operator should host a RIPE Atlas probeKnow Your Network; why every network operator should host a RIPE Atlas probe
Know Your Network; why every network operator should host a RIPE Atlas probe
RIPE NCC
 
Taiwan's Digital Landscape with RIPE NCC Tools
Taiwan's Digital Landscape with RIPE NCC ToolsTaiwan's Digital Landscape with RIPE NCC Tools
Taiwan's Digital Landscape with RIPE NCC Tools
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 Registry
RIPE 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 Action
RIPE NCC
 
Governing Environmental Sustainability in Tech
Governing Environmental Sustainability in TechGoverning Environmental Sustainability in Tech
Governing Environmental Sustainability in Tech
RIPE NCC
 
Gerardo-Viviers-RPKI-presentation-DKNOG14.pdf
Gerardo-Viviers-RPKI-presentation-DKNOG14.pdfGerardo-Viviers-RPKI-presentation-DKNOG14.pdf
Gerardo-Viviers-RPKI-presentation-DKNOG14.pdf
RIPE 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 RIS
RIPE 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 workshop
RIPE 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.pdf
RIPE 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.pdf
RIPE NCC
 
RIPE NCC Internet Measurement Tools
RIPE NCC Internet Measurement ToolsRIPE NCC Internet Measurement Tools
RIPE NCC Internet Measurement Tools
RIPE 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 Baltics
RIPE NCC
 
RPKI For Routing Security
RPKI For Routing SecurityRPKI For Routing Security
RPKI For Routing Security
RIPE 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.pdf
RIPE 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 Atlas
RIPE 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 Atlas
RIPE NCC
 
RIPE NCC Internet Measurement Services
RIPE NCC Internet Measurement ServicesRIPE NCC Internet Measurement Services
RIPE NCC Internet Measurement Services
RIPE NCC
 
Spotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasSpotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE Atlas
RIPE NCC
 
Spotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasSpotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE Atlas
RIPE NCC
 
Spotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE AtlasSpotting Latency Issues with RIPE Atlas
Spotting Latency Issues with RIPE Atlas
RIPE NCC
 

More from RIPE NCC (20)

Know Your Network; why every network operator should host a RIPE Atlas probe
Know Your Network; why every network operator should host a RIPE Atlas probeKnow Your Network; why every network operator should host a RIPE Atlas probe
Know Your Network; why every network operator should host a RIPE Atlas probe
 
Taiwan's Digital Landscape with RIPE NCC Tools
Taiwan's Digital Landscape with RIPE NCC ToolsTaiwan's Digital Landscape with RIPE NCC Tools
Taiwan's Digital Landscape with RIPE NCC Tools
 
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
 

Recently uploaded

Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
VivekSinghShekhawat2
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 

Recently uploaded (20)

Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 

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 վերջ დასასრული ‫النهاية‬ ‫پایان‬