SlideShare a Scribd company logo
BGP hijacks and leaks
malicious or consensual
Net::IP Meetup #12
Wrocław 2019.04.25
Paweł Małachowski
@pawmal80
whoami
• Currently:
redGuardian DDoS mitigation tech lead (Atende Software sp. z o.o.)
• Previously:
system engineer, IT operations lead, analyst, architect, project manager
etc. (ATM SA, Netia SA)
Net::IP, Wrocław 2019.04.25 2
PROBLEM
Net::IP, Wrocław 2019.04.25 3
Problem
• 2004.12: TT Net full table leak, massive outages
• 2008.02: Youtube rerouted to Pakistan Telecom via PCCW Global
• 2014: INEA SA + LG case (PL)
• 2017.04: financial institutions/credit card processors partially rerouted to PJSC
Rostelekom
• 2017.12: high profile companies (FAG, Riot Games and others) announced by DV-LINK
via Megafon via HE
• 2018.04: Amazon Route53 routed to malicious DNS server in eNET
• 2018.06: Telegram messenger partially routed to Iran Telecomunication Company
• 2018.07: Bitcanal „hijack factory” case
• 2018.11: Google traffic routed to MainOne via China Telecom via Trans Telecom
• … many more
Net::IP, Wrocław 2019.04.25 4
Real life BGP routing decision factors
1. more specific preferred (originator decides)
2. higher local preference (layer 8 decides)
3. shorter AS_PATH (prepending)
Net::IP, Wrocław 2019.04.25 5
BGP user types (simplified)
• multihomed network
• CDN (anycasting etc.)
• Eyeballs
• IP Transit: Tier 1, Tier n (paid vs. free peerings)
• IXP
Net::IP, Wrocław 2019.04.25 6
BGP threats
• Prefix hijacking
• Route leaks (unintentional transit)
• AS path manipulation (e.g. shortening)
Net::IP, Wrocław 2019.04.25 7
Reasons
• fat fingers, BGP optimizers and bad defaults
• prefix-lists and as-path filters not widely used
• blind chain of trust
• Internet barely works?
Net::IP, Wrocław 2019.04.25 8
Howto
• Add victim AS to your official AS-SET in IRR
• Wait for upstream nightly filter updates
• Announce victim’s IP address space
• Profit!
Net::IP, Wrocław 2019.04.25 9
Howto, cont.
ExaBGP
route victim/24 next-hop self as-path [ foo ] community [ a:b ];
BIRD
bgp_path.empty;
bgp_path.prepend(foo);
Net::IP, Wrocław 2019.04.25 10
Howto, cont.
„LINX has this peer configured as announcing the AS-SET
AS-TTK. This set contains 984 entries of which 470+ are
themselves AS-SETs. Many of these AS-SETs will
themselves contain AS-SETs, and this patern repeats as
you continue the AS-SET expansion.
Ultimately, this large AS-SET expands to allow 886,051
prefixes from 16,608 origin ASNs.” (2018.11)
Net::IP, Wrocław 2019.04.25 11
Malicious, mistake or consensual?
• origin AS
• AS_PATH
• IRR validity (route object, ROA, etc.)
• mask length (more specific)
• end hosts reachability
Net::IP, Wrocław 2019.04.25 12
BGP-based DDoS scrubbing center
• Hijacks customer IP address space
– global annoucement (BGP withdrawal issues)
– local/selective announcements
• Legal agreement, IRR and ROA valid
• Looks like on-demand optional IP transit
Net::IP, Wrocław 2019.04.25 13
DETECTION
Net::IP, Wrocław 2019.04.25 14
Detection
• Looking glasses/route views
• BGPmon (OpenDNS), BGPstream
• Radar (Qrator Labs)
• Resource Certification alerts (RIPE)
• Routing Information Service Live stream (RIPE)
• Routing History + BGP Play (RIPE)
Net::IP, Wrocław 2019.04.25 15
Looking glass example
Net::IP, Wrocław 2019.04.25 16
BGPmon example
Net::IP, Wrocław 2019.04.25 17
Radar example
Net::IP, Wrocław 2019.04.25 18
RIS Live stream
Net::IP, Wrocław 2019.04.25 19
RIPEstats routing history
Net::IP, Wrocław 2019.04.25 20
PREVENTION
Net::IP, Wrocław 2019.04.25 21
Prevention
• prefix deaggregation
• RPKI Route Announcement Validation
• BGPsec
• ASPA
• legal?
Net::IP, Wrocław 2019.04.25 22
Prefix deaggregation
• split large subnet into multiple /24 prefixes
• limits hijacking ability (/25 are widely not accepted)
• not a final solution (RIB pollution)
Net::IP, Wrocław 2019.04.25 23
RPKI ROA
• declare (origin AS, subnet, prefix range) tuples
example: (AS x, 10.0.0.0/8, /8../16)
• operators validate before accepting
• lacks AS-PATH validation, origin AS easy to forge
Net::IP, Wrocław 2019.04.25 24
RPKI (slow) adoption
But:
„The AT&T/as7018 network is now dropping all RPKI-
invalid route announcements that we receive from our
peers.”
source: https://mailman.nanog.org/pipermail/nanog/2019-February/099501.html
Net::IP, Wrocław 2019.04.25 25
NIST RPKI monitor
Net::IP, Wrocław 2019.04.25 26
IRR online tools
Net::IP, Wrocław 2019.04.25 27
BGP he.net
IRR Explorer
BGPsec
• BGP routers
– sign BGP updates: previous AS, next AS
– verify updates received
• IXP hack (no AS in AS-PATH)
• dead end (computation cost)
Net::IP, Wrocław 2019.04.25 28
ASPA
• Autonomous System Provider Authorization
– declare your official peers
– operators validate AS_PATHs received
• currently RFC draft
Net::IP, Wrocław 2019.04.25 29
TOOLBOX
Net::IP, Wrocław 2019.04.25 30
Looking glasses (some of)
• CenturyLink: https://lookingglass.centurylink.com/
• Cogent: http://www.cogentco.com/en/network/looking-glass
• GTT: http://www.as3257.net/lg/ (mtr only)
• HE: https://lg.he.net/
• Liberty Global (UPC): sorry!
• KPN: https://lg2.eurorings.net/
• NTT: https://www.us.ntt.net/support/looking-glass/
• Open Transit (Orange): https://looking-glass.opentransit.net/
• RETN: http://lg.retn.net/
• TATA: http://lg.beta.as6453.net/
• Telia: https://lg.telia.net/
Net::IP, Wrocław 2019.04.25 31
Looking glasses (some of), cont.
• NLNOG (aggregator): http://lg.ring.nlnog.net/
• AMS-IX: sorry! (password)
• DE-CIX: https://lg.de-cix.net/
• LINX: https://lg.linx.net/
• GEANT: https://tools.geant.net/portal/links/lg/
Net::IP, Wrocław 2019.04.25 32
Important looking glasses (Poland)
• ATMAN + THINX: http://lg.atman.pl/
• Exatel: http://lg.exatel.pl/
• NASK (KOM+EDU): http://lg.nask.pl/
• Netia: http://lg.netia.pl/
• PLIX: http://lg.plix.pl/
• Orange + TPIX: http://lg.tpnet.pl/, http://lg.tpix.pl/
• Pionier (EDU), Vectra, etc.: sorry!
Net::IP, Wrocław 2019.04.25 33
Other tools
• https://bgpmon.net/, https://bgpstream.com/,
https://twitter.com/bgpmon, https://twitter.com/bgpstream
• https://radar.qrator.net/
• https://bgp.he.net/
• http://www.routeviews.org/
• http://irrexplorer.nlnog.net/
• https://ris-live.ripe.net/
• https://stat.ripe.net/widget/routing-history
• https://rpki-monitor.antd.nist.gov/
Net::IP, Wrocław 2019.04.25 34
SOURCES
Net::IP, Wrocław 2019.04.25 35
Sources
• https://en.wikipedia.org/wiki/BGP_hijacking
• https://blog.donatas.net/blog/2019/02/19/ebgp-requires-policy/
• http://www.securerouting.net/
• https://www.ripe.net/participate/policies/proposals/2019-03
• https://www.arin.net/participate/policy/proposals/2019/ARIN_prop_266_v2/
• „PLNOG22 - Zmierzch tranzytu, sieci tier-1, czyli jak działa internet”:
https://www.youtube.com/watch?v=yfmEODv3m4k
Net::IP, Wrocław 2019.04.25 36
Sources, cont.
• https://dyn.com/blog/internetwide-nearcatastrophela/
• https://zaufanatrzeciastrona.pl/post/polski-operator-inea-wykorzystany-w-zaawansowanym-ataku-
na-obce-sieci/
• https://krebsonsecurity.com/2016/09/ddos-mitigation-firm-has-history-of-hijacks/
• https://bgpmon.net/popular-destinations-rerouted-to-russia/
• https://bgpmon.net/bgpstream-and-the-curious-case-of-as12389/
• https://radar.qrator.net/blog/born-to-hijack (DV-LINK case)
• https://www.theregister.co.uk/2018/04/24/myetherwallet_dns_hijack/
• https://dyn.com/blog/shutting-down-the-bgp-hijack-factory/
• https://www.theregister.co.uk/2018/11/13/google_russia_routing/
• https://medium.com/@qratorlabs/bad-news-everyone-new-hijack-attack-in-the-wild-
428ea761da89
• https://blog.thousandeyes.com/amazon-route-53-dns-and-bgp-hijack/
Net::IP, Wrocław 2019.04.25 37
Sources, cont.
• https://rpki.readthedocs.io/en/latest/index.html
• https://bgpmon.net/securing-bgp-routing-with-rpki-and-roas/
• https://blog.cloudflare.com/rpki-details/
• https://www.ripe.net/manage-ips-and-asns/resource-management/certification/resource-
certification-roa-management
• https://medium.com/@qratorlabs/eliminating-opportunities-for-traffic-hijacking-
153a39395778,
https://ripe77.ripe.net/presentations/118-ripe77.azimov_v2.pdf
• https://www.de-cix.net/Files/11a60fcb156e443c98010211f498f5ae4439dab0/Matthias-
Waehlisch---BGPSec---AS-path-validation.pdf
• https://rule11.tech/bgpsec-and-reality/
Net::IP, Wrocław 2019.04.25 38
LIVE DEMO
Net::IP, Wrocław 2019.04.25 39
Live demo
Let’s hijack 3rd party prefix!
• Victim: AS v, foo/20 (foo/24 to be hijacked)
• Hijacker: AS h
Preparation:
• Hijacker places AS v in his AS-SET (earlier)
• Open RIS Live session with „foo/24” filter
Net::IP, Wrocław 2019.04.25 40
Live demo, cont.
1. Hijacker announces „foo/24 origin AS h”
2. Local verification:
BIRD show route foo/24 export upstream
1. Remote verification:
NLNOG Looking Glass: foo/24 partially visible
RIPE RIS Live: BGP hijacking updates received
Disclaimer: AS v is our friendly customer.
Net::IP, Wrocław 2019.04.25 41
Thank you!
Net::IP, Wrocław 2019.04.25 42
https://netip.me
https://twitter.com/pawmal80
https://www.slideshare.net/atendesoftware/presentations

More Related Content

Similar to BGP hijacks and leaks

IPv6 Tutorial; USENIX LISA 2013
IPv6 Tutorial; USENIX LISA 2013IPv6 Tutorial; USENIX LISA 2013
IPv6 Tutorial; USENIX LISA 2013
Shumon Huque
 
Internet Measurements of the COVID-19 Pandemic
Internet Measurements of the COVID-19 PandemicInternet Measurements of the COVID-19 Pandemic
Internet Measurements of the COVID-19 Pandemic
RIPE NCC
 
Oracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデート
Oracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデートOracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデート
Oracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデート
オラクルエンジニア通信
 
Routing Security, Another Elephant in the Room
Routing Security, Another Elephant in the RoomRouting Security, Another Elephant in the Room
Routing Security, Another Elephant in the Room
RIPE NCC
 
Scalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IPScalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IP
Dai Yang
 
Myanmar Member Gathering
Myanmar Member GatheringMyanmar Member Gathering
Myanmar Member Gathering
APNIC
 
IAA Life in Lockdown series: Securing Internet Routing
IAA Life in Lockdown series: Securing Internet RoutingIAA Life in Lockdown series: Securing Internet Routing
IAA Life in Lockdown series: Securing Internet Routing
APNIC
 
IPv6 Deployment: Why and Why not? - HostingCon 2013
IPv6 Deployment: Why and Why not? - HostingCon 2013IPv6 Deployment: Why and Why not? - HostingCon 2013
IPv6 Deployment: Why and Why not? - HostingCon 2013
APNIC
 
IPv6 Deployment: Why and Why not?
IPv6 Deployment: Why and Why not?IPv6 Deployment: Why and Why not?
IPv6 Deployment: Why and Why not?
apnic_slides
 
PhNOG 2020: Securing your resources with RPKI and IRT
PhNOG 2020: Securing your resources with RPKI and IRTPhNOG 2020: Securing your resources with RPKI and IRT
PhNOG 2020: Securing your resources with RPKI and IRT
APNIC
 
2017 03-01-forensics 1488330715
2017 03-01-forensics 14883307152017 03-01-forensics 1488330715
2017 03-01-forensics 1488330715
APNIC
 
Forensic Tracing in the Internet: An Update
Forensic Tracing in the Internet: An UpdateForensic Tracing in the Internet: An Update
Forensic Tracing in the Internet: An Update
APNIC
 
RPKI Tutorial
RPKI Tutorial RPKI Tutorial
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or lessPacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
APNIC
 
First Step in Media-over-IP Network Design: What Should You Do?
First Step in Media-over-IP Network Design: What Should You Do?First Step in Media-over-IP Network Design: What Should You Do?
First Step in Media-over-IP Network Design: What Should You Do?
Koji Oyama
 
APNIC Update
APNIC Update APNIC Update
APNIC Update
APNIC
 
2017 01-31-cgns
2017 01-31-cgns2017 01-31-cgns
2017 01-31-cgns
GeoffHuston
 
PLNOG 5: Merike Kaeo - Something Old Is New Again
PLNOG 5: Merike Kaeo - Something Old Is New AgainPLNOG 5: Merike Kaeo - Something Old Is New Again
PLNOG 5: Merike Kaeo - Something Old Is New Again
PROIDEA
 
RIPE NCC RIS (Routing Information Service)
RIPE NCC RIS (Routing Information Service)RIPE NCC RIS (Routing Information Service)
RIPE NCC RIS (Routing Information Service)
RIPE NCC
 
Updates from Hungary (Jozsef Kovacs)
Updates from Hungary (Jozsef Kovacs)Updates from Hungary (Jozsef Kovacs)
Updates from Hungary (Jozsef Kovacs)
EOSC-hub project
 

Similar to BGP hijacks and leaks (20)

IPv6 Tutorial; USENIX LISA 2013
IPv6 Tutorial; USENIX LISA 2013IPv6 Tutorial; USENIX LISA 2013
IPv6 Tutorial; USENIX LISA 2013
 
Internet Measurements of the COVID-19 Pandemic
Internet Measurements of the COVID-19 PandemicInternet Measurements of the COVID-19 Pandemic
Internet Measurements of the COVID-19 Pandemic
 
Oracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデート
Oracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデートOracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデート
Oracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデート
 
Routing Security, Another Elephant in the Room
Routing Security, Another Elephant in the RoomRouting Security, Another Elephant in the Room
Routing Security, Another Elephant in the Room
 
Scalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IPScalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IP
 
Myanmar Member Gathering
Myanmar Member GatheringMyanmar Member Gathering
Myanmar Member Gathering
 
IAA Life in Lockdown series: Securing Internet Routing
IAA Life in Lockdown series: Securing Internet RoutingIAA Life in Lockdown series: Securing Internet Routing
IAA Life in Lockdown series: Securing Internet Routing
 
IPv6 Deployment: Why and Why not? - HostingCon 2013
IPv6 Deployment: Why and Why not? - HostingCon 2013IPv6 Deployment: Why and Why not? - HostingCon 2013
IPv6 Deployment: Why and Why not? - HostingCon 2013
 
IPv6 Deployment: Why and Why not?
IPv6 Deployment: Why and Why not?IPv6 Deployment: Why and Why not?
IPv6 Deployment: Why and Why not?
 
PhNOG 2020: Securing your resources with RPKI and IRT
PhNOG 2020: Securing your resources with RPKI and IRTPhNOG 2020: Securing your resources with RPKI and IRT
PhNOG 2020: Securing your resources with RPKI and IRT
 
2017 03-01-forensics 1488330715
2017 03-01-forensics 14883307152017 03-01-forensics 1488330715
2017 03-01-forensics 1488330715
 
Forensic Tracing in the Internet: An Update
Forensic Tracing in the Internet: An UpdateForensic Tracing in the Internet: An Update
Forensic Tracing in the Internet: An Update
 
RPKI Tutorial
RPKI Tutorial RPKI Tutorial
RPKI Tutorial
 
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or lessPacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
 
First Step in Media-over-IP Network Design: What Should You Do?
First Step in Media-over-IP Network Design: What Should You Do?First Step in Media-over-IP Network Design: What Should You Do?
First Step in Media-over-IP Network Design: What Should You Do?
 
APNIC Update
APNIC Update APNIC Update
APNIC Update
 
2017 01-31-cgns
2017 01-31-cgns2017 01-31-cgns
2017 01-31-cgns
 
PLNOG 5: Merike Kaeo - Something Old Is New Again
PLNOG 5: Merike Kaeo - Something Old Is New AgainPLNOG 5: Merike Kaeo - Something Old Is New Again
PLNOG 5: Merike Kaeo - Something Old Is New Again
 
RIPE NCC RIS (Routing Information Service)
RIPE NCC RIS (Routing Information Service)RIPE NCC RIS (Routing Information Service)
RIPE NCC RIS (Routing Information Service)
 
Updates from Hungary (Jozsef Kovacs)
Updates from Hungary (Jozsef Kovacs)Updates from Hungary (Jozsef Kovacs)
Updates from Hungary (Jozsef Kovacs)
 

More from Redge Technologies

[PL] DDoS na sieć ISP (KIKE 2023)
[PL] DDoS na sieć ISP (KIKE 2023)[PL] DDoS na sieć ISP (KIKE 2023)
[PL] DDoS na sieć ISP (KIKE 2023)
Redge Technologies
 
BGP zombie routes
BGP zombie routesBGP zombie routes
BGP zombie routes
Redge Technologies
 
100M pakietów na sekundę czyli jak radzić sobie z atakami DDoS
100M pakietów na sekundę czyli jak radzić sobie z atakami DDoS100M pakietów na sekundę czyli jak radzić sobie z atakami DDoS
100M pakietów na sekundę czyli jak radzić sobie z atakami DDoS
Redge Technologies
 
Stress your DUT
Stress your DUTStress your DUT
Stress your DUT
Redge Technologies
 
redGuardian DP100 large scale DDoS mitigation solution
redGuardian DP100 large scale DDoS mitigation solutionredGuardian DP100 large scale DDoS mitigation solution
redGuardian DP100 large scale DDoS mitigation solution
Redge Technologies
 
Ochrona przed atakami DDoS na platformie x86. Czy można mieć jednocześnie wyd...
Ochrona przed atakami DDoS na platformie x86. Czy można mieć jednocześnie wyd...Ochrona przed atakami DDoS na platformie x86. Czy można mieć jednocześnie wyd...
Ochrona przed atakami DDoS na platformie x86. Czy można mieć jednocześnie wyd...
Redge Technologies
 
Spy hard, challenges of 100G deep packet inspection on x86 platform
Spy hard, challenges of 100G deep packet inspection on x86 platformSpy hard, challenges of 100G deep packet inspection on x86 platform
Spy hard, challenges of 100G deep packet inspection on x86 platform
Redge Technologies
 
100Mpps czyli jak radzić sobie z atakami DDoS?
100Mpps czyli jak radzić sobie z atakami DDoS?100Mpps czyli jak radzić sobie z atakami DDoS?
100Mpps czyli jak radzić sobie z atakami DDoS?
Redge Technologies
 
SCAP – standaryzacja formatów wymiany danych w zakresie bezpieczeństwa IT
SCAP – standaryzacja formatów wymiany danych w zakresie bezpieczeństwa ITSCAP – standaryzacja formatów wymiany danych w zakresie bezpieczeństwa IT
SCAP – standaryzacja formatów wymiany danych w zakresie bezpieczeństwa IT
Redge Technologies
 
Na froncie walki z DDoS
Na froncie walki z DDoSNa froncie walki z DDoS
Na froncie walki z DDoS
Redge Technologies
 
100 M pps on PC.
100 M pps on PC.100 M pps on PC.
100 M pps on PC.
Redge Technologies
 
100 M pakietów na sekundę dla każdego.
100 M pakietów na sekundę dla każdego. 100 M pakietów na sekundę dla każdego.
100 M pakietów na sekundę dla każdego.
Redge Technologies
 

More from Redge Technologies (12)

[PL] DDoS na sieć ISP (KIKE 2023)
[PL] DDoS na sieć ISP (KIKE 2023)[PL] DDoS na sieć ISP (KIKE 2023)
[PL] DDoS na sieć ISP (KIKE 2023)
 
BGP zombie routes
BGP zombie routesBGP zombie routes
BGP zombie routes
 
100M pakietów na sekundę czyli jak radzić sobie z atakami DDoS
100M pakietów na sekundę czyli jak radzić sobie z atakami DDoS100M pakietów na sekundę czyli jak radzić sobie z atakami DDoS
100M pakietów na sekundę czyli jak radzić sobie z atakami DDoS
 
Stress your DUT
Stress your DUTStress your DUT
Stress your DUT
 
redGuardian DP100 large scale DDoS mitigation solution
redGuardian DP100 large scale DDoS mitigation solutionredGuardian DP100 large scale DDoS mitigation solution
redGuardian DP100 large scale DDoS mitigation solution
 
Ochrona przed atakami DDoS na platformie x86. Czy można mieć jednocześnie wyd...
Ochrona przed atakami DDoS na platformie x86. Czy można mieć jednocześnie wyd...Ochrona przed atakami DDoS na platformie x86. Czy można mieć jednocześnie wyd...
Ochrona przed atakami DDoS na platformie x86. Czy można mieć jednocześnie wyd...
 
Spy hard, challenges of 100G deep packet inspection on x86 platform
Spy hard, challenges of 100G deep packet inspection on x86 platformSpy hard, challenges of 100G deep packet inspection on x86 platform
Spy hard, challenges of 100G deep packet inspection on x86 platform
 
100Mpps czyli jak radzić sobie z atakami DDoS?
100Mpps czyli jak radzić sobie z atakami DDoS?100Mpps czyli jak radzić sobie z atakami DDoS?
100Mpps czyli jak radzić sobie z atakami DDoS?
 
SCAP – standaryzacja formatów wymiany danych w zakresie bezpieczeństwa IT
SCAP – standaryzacja formatów wymiany danych w zakresie bezpieczeństwa ITSCAP – standaryzacja formatów wymiany danych w zakresie bezpieczeństwa IT
SCAP – standaryzacja formatów wymiany danych w zakresie bezpieczeństwa IT
 
Na froncie walki z DDoS
Na froncie walki z DDoSNa froncie walki z DDoS
Na froncie walki z DDoS
 
100 M pps on PC.
100 M pps on PC.100 M pps on PC.
100 M pps on PC.
 
100 M pakietów na sekundę dla każdego.
100 M pakietów na sekundę dla każdego. 100 M pakietów na sekundę dla każdego.
100 M pakietów na sekundę dla każdego.
 

Recently uploaded

Azure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdfAzure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdf
AanSulistiyo
 
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
xjq03c34
 
Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!
Toptal Tech
 
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
vmemo1
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
SEO Article Boost
 
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
zoowe
 
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
fovkoyb
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
Danica Gill
 
Design Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptxDesign Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptx
saathvikreddy2003
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
Paul Walk
 
Gen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needsGen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needs
Laura Szabó
 
[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024
hackersuli
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
cuobya
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
Trish Parr
 
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
uehowe
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Florence Consulting
 
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
cuobya
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
ysasp1
 
Explore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories SecretlyExplore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories Secretly
Trending Blogers
 
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
bseovas
 

Recently uploaded (20)

Azure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdfAzure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdf
 
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
 
Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!
 
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
重新申请毕业证书(RMIT毕业证)皇家墨尔本理工大学毕业证成绩单精仿办理
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
 
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
 
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
 
Design Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptxDesign Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptx
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
 
Gen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needsGen Z and the marketplaces - let's translate their needs
Gen Z and the marketplaces - let's translate their needs
 
[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
 
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
 
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
 
Explore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories SecretlyExplore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories Secretly
 
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
 

BGP hijacks and leaks

  • 1. BGP hijacks and leaks malicious or consensual Net::IP Meetup #12 Wrocław 2019.04.25 Paweł Małachowski @pawmal80
  • 2. whoami • Currently: redGuardian DDoS mitigation tech lead (Atende Software sp. z o.o.) • Previously: system engineer, IT operations lead, analyst, architect, project manager etc. (ATM SA, Netia SA) Net::IP, Wrocław 2019.04.25 2
  • 4. Problem • 2004.12: TT Net full table leak, massive outages • 2008.02: Youtube rerouted to Pakistan Telecom via PCCW Global • 2014: INEA SA + LG case (PL) • 2017.04: financial institutions/credit card processors partially rerouted to PJSC Rostelekom • 2017.12: high profile companies (FAG, Riot Games and others) announced by DV-LINK via Megafon via HE • 2018.04: Amazon Route53 routed to malicious DNS server in eNET • 2018.06: Telegram messenger partially routed to Iran Telecomunication Company • 2018.07: Bitcanal „hijack factory” case • 2018.11: Google traffic routed to MainOne via China Telecom via Trans Telecom • … many more Net::IP, Wrocław 2019.04.25 4
  • 5. Real life BGP routing decision factors 1. more specific preferred (originator decides) 2. higher local preference (layer 8 decides) 3. shorter AS_PATH (prepending) Net::IP, Wrocław 2019.04.25 5
  • 6. BGP user types (simplified) • multihomed network • CDN (anycasting etc.) • Eyeballs • IP Transit: Tier 1, Tier n (paid vs. free peerings) • IXP Net::IP, Wrocław 2019.04.25 6
  • 7. BGP threats • Prefix hijacking • Route leaks (unintentional transit) • AS path manipulation (e.g. shortening) Net::IP, Wrocław 2019.04.25 7
  • 8. Reasons • fat fingers, BGP optimizers and bad defaults • prefix-lists and as-path filters not widely used • blind chain of trust • Internet barely works? Net::IP, Wrocław 2019.04.25 8
  • 9. Howto • Add victim AS to your official AS-SET in IRR • Wait for upstream nightly filter updates • Announce victim’s IP address space • Profit! Net::IP, Wrocław 2019.04.25 9
  • 10. Howto, cont. ExaBGP route victim/24 next-hop self as-path [ foo ] community [ a:b ]; BIRD bgp_path.empty; bgp_path.prepend(foo); Net::IP, Wrocław 2019.04.25 10
  • 11. Howto, cont. „LINX has this peer configured as announcing the AS-SET AS-TTK. This set contains 984 entries of which 470+ are themselves AS-SETs. Many of these AS-SETs will themselves contain AS-SETs, and this patern repeats as you continue the AS-SET expansion. Ultimately, this large AS-SET expands to allow 886,051 prefixes from 16,608 origin ASNs.” (2018.11) Net::IP, Wrocław 2019.04.25 11
  • 12. Malicious, mistake or consensual? • origin AS • AS_PATH • IRR validity (route object, ROA, etc.) • mask length (more specific) • end hosts reachability Net::IP, Wrocław 2019.04.25 12
  • 13. BGP-based DDoS scrubbing center • Hijacks customer IP address space – global annoucement (BGP withdrawal issues) – local/selective announcements • Legal agreement, IRR and ROA valid • Looks like on-demand optional IP transit Net::IP, Wrocław 2019.04.25 13
  • 15. Detection • Looking glasses/route views • BGPmon (OpenDNS), BGPstream • Radar (Qrator Labs) • Resource Certification alerts (RIPE) • Routing Information Service Live stream (RIPE) • Routing History + BGP Play (RIPE) Net::IP, Wrocław 2019.04.25 15
  • 16. Looking glass example Net::IP, Wrocław 2019.04.25 16
  • 19. RIS Live stream Net::IP, Wrocław 2019.04.25 19
  • 20. RIPEstats routing history Net::IP, Wrocław 2019.04.25 20
  • 22. Prevention • prefix deaggregation • RPKI Route Announcement Validation • BGPsec • ASPA • legal? Net::IP, Wrocław 2019.04.25 22
  • 23. Prefix deaggregation • split large subnet into multiple /24 prefixes • limits hijacking ability (/25 are widely not accepted) • not a final solution (RIB pollution) Net::IP, Wrocław 2019.04.25 23
  • 24. RPKI ROA • declare (origin AS, subnet, prefix range) tuples example: (AS x, 10.0.0.0/8, /8../16) • operators validate before accepting • lacks AS-PATH validation, origin AS easy to forge Net::IP, Wrocław 2019.04.25 24
  • 25. RPKI (slow) adoption But: „The AT&T/as7018 network is now dropping all RPKI- invalid route announcements that we receive from our peers.” source: https://mailman.nanog.org/pipermail/nanog/2019-February/099501.html Net::IP, Wrocław 2019.04.25 25
  • 26. NIST RPKI monitor Net::IP, Wrocław 2019.04.25 26
  • 27. IRR online tools Net::IP, Wrocław 2019.04.25 27 BGP he.net IRR Explorer
  • 28. BGPsec • BGP routers – sign BGP updates: previous AS, next AS – verify updates received • IXP hack (no AS in AS-PATH) • dead end (computation cost) Net::IP, Wrocław 2019.04.25 28
  • 29. ASPA • Autonomous System Provider Authorization – declare your official peers – operators validate AS_PATHs received • currently RFC draft Net::IP, Wrocław 2019.04.25 29
  • 31. Looking glasses (some of) • CenturyLink: https://lookingglass.centurylink.com/ • Cogent: http://www.cogentco.com/en/network/looking-glass • GTT: http://www.as3257.net/lg/ (mtr only) • HE: https://lg.he.net/ • Liberty Global (UPC): sorry! • KPN: https://lg2.eurorings.net/ • NTT: https://www.us.ntt.net/support/looking-glass/ • Open Transit (Orange): https://looking-glass.opentransit.net/ • RETN: http://lg.retn.net/ • TATA: http://lg.beta.as6453.net/ • Telia: https://lg.telia.net/ Net::IP, Wrocław 2019.04.25 31
  • 32. Looking glasses (some of), cont. • NLNOG (aggregator): http://lg.ring.nlnog.net/ • AMS-IX: sorry! (password) • DE-CIX: https://lg.de-cix.net/ • LINX: https://lg.linx.net/ • GEANT: https://tools.geant.net/portal/links/lg/ Net::IP, Wrocław 2019.04.25 32
  • 33. Important looking glasses (Poland) • ATMAN + THINX: http://lg.atman.pl/ • Exatel: http://lg.exatel.pl/ • NASK (KOM+EDU): http://lg.nask.pl/ • Netia: http://lg.netia.pl/ • PLIX: http://lg.plix.pl/ • Orange + TPIX: http://lg.tpnet.pl/, http://lg.tpix.pl/ • Pionier (EDU), Vectra, etc.: sorry! Net::IP, Wrocław 2019.04.25 33
  • 34. Other tools • https://bgpmon.net/, https://bgpstream.com/, https://twitter.com/bgpmon, https://twitter.com/bgpstream • https://radar.qrator.net/ • https://bgp.he.net/ • http://www.routeviews.org/ • http://irrexplorer.nlnog.net/ • https://ris-live.ripe.net/ • https://stat.ripe.net/widget/routing-history • https://rpki-monitor.antd.nist.gov/ Net::IP, Wrocław 2019.04.25 34
  • 36. Sources • https://en.wikipedia.org/wiki/BGP_hijacking • https://blog.donatas.net/blog/2019/02/19/ebgp-requires-policy/ • http://www.securerouting.net/ • https://www.ripe.net/participate/policies/proposals/2019-03 • https://www.arin.net/participate/policy/proposals/2019/ARIN_prop_266_v2/ • „PLNOG22 - Zmierzch tranzytu, sieci tier-1, czyli jak działa internet”: https://www.youtube.com/watch?v=yfmEODv3m4k Net::IP, Wrocław 2019.04.25 36
  • 37. Sources, cont. • https://dyn.com/blog/internetwide-nearcatastrophela/ • https://zaufanatrzeciastrona.pl/post/polski-operator-inea-wykorzystany-w-zaawansowanym-ataku- na-obce-sieci/ • https://krebsonsecurity.com/2016/09/ddos-mitigation-firm-has-history-of-hijacks/ • https://bgpmon.net/popular-destinations-rerouted-to-russia/ • https://bgpmon.net/bgpstream-and-the-curious-case-of-as12389/ • https://radar.qrator.net/blog/born-to-hijack (DV-LINK case) • https://www.theregister.co.uk/2018/04/24/myetherwallet_dns_hijack/ • https://dyn.com/blog/shutting-down-the-bgp-hijack-factory/ • https://www.theregister.co.uk/2018/11/13/google_russia_routing/ • https://medium.com/@qratorlabs/bad-news-everyone-new-hijack-attack-in-the-wild- 428ea761da89 • https://blog.thousandeyes.com/amazon-route-53-dns-and-bgp-hijack/ Net::IP, Wrocław 2019.04.25 37
  • 38. Sources, cont. • https://rpki.readthedocs.io/en/latest/index.html • https://bgpmon.net/securing-bgp-routing-with-rpki-and-roas/ • https://blog.cloudflare.com/rpki-details/ • https://www.ripe.net/manage-ips-and-asns/resource-management/certification/resource- certification-roa-management • https://medium.com/@qratorlabs/eliminating-opportunities-for-traffic-hijacking- 153a39395778, https://ripe77.ripe.net/presentations/118-ripe77.azimov_v2.pdf • https://www.de-cix.net/Files/11a60fcb156e443c98010211f498f5ae4439dab0/Matthias- Waehlisch---BGPSec---AS-path-validation.pdf • https://rule11.tech/bgpsec-and-reality/ Net::IP, Wrocław 2019.04.25 38
  • 40. Live demo Let’s hijack 3rd party prefix! • Victim: AS v, foo/20 (foo/24 to be hijacked) • Hijacker: AS h Preparation: • Hijacker places AS v in his AS-SET (earlier) • Open RIS Live session with „foo/24” filter Net::IP, Wrocław 2019.04.25 40
  • 41. Live demo, cont. 1. Hijacker announces „foo/24 origin AS h” 2. Local verification: BIRD show route foo/24 export upstream 1. Remote verification: NLNOG Looking Glass: foo/24 partially visible RIPE RIS Live: BGP hijacking updates received Disclaimer: AS v is our friendly customer. Net::IP, Wrocław 2019.04.25 41
  • 42. Thank you! Net::IP, Wrocław 2019.04.25 42 https://netip.me https://twitter.com/pawmal80 https://www.slideshare.net/atendesoftware/presentations