+ All Categories
Home > Documents > Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be...

Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be...

Date post: 16-Aug-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
41
1 Securing Internet Routing Tashi Phuntsho ([email protected] ) Senior Network Analyst/Technical Trainer George Michaelson ([email protected]) Product Manager, Registry
Transcript
Page 1: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1

Securing Internet Routing

Tashi Phuntsho ([email protected])

Senior Network Analyst/Technical Trainer

George Michaelson ([email protected])Product Manager, Registry

Page 2: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2

BUT FIRST.. A CELEBRATION

Page 3: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

33

0.00%

10.00%

20.00%

30.00%

40.00%

50.00%

60.00%

70.00%

80.00%

90.00%

100.00%

2014-01-01 2015-01-01 2016-01-01 2017-01-01 2018-01-01 2019-01-01

Viet Nam

Viettel

VNPT

FPT

Mobifone

Việt Nam’s world-class IPv6 deployment

Page 4: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

44

6th highest IPv6 deployment worldwide

Page 5: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

5

Securing Internet Routing

Tashi Phuntsho ([email protected])

Senior Network Analyst/Technical Trainer

George Michaelson ([email protected])Product Manager, Registry

Page 6: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

66

Why should we bother?

Page 7: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

77

Why should we bother?

• As a Manager– I don’t want to be front page news of a IT paper, or an

actual newspaper for routing errors

Page 8: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

88

Why should we bother?

• As a Manager– I don’t want to be front page news of a IT paper, or an

actual newspaper for routing errors

• As a network user– I don’t want the basis of trust in the Internet to be casual

when my bank, hospital and tax department depend on it

Page 9: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

99

Why should we bother?

• As a Manager– I don’t want to be front page news of a IT paper, or an

actual newspaper for routing errors

• As a network user– I don’t want the basis of trust in the Internet to be casual

when my bank, hospital and tax department depend on it

• As operators of national-strategic infrastructure– This is now critical infrastructure for everyone. We have

obligations to the community

Page 10: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1010

Headlines

https://twitter.com/atoonk/status/1143143943531454464/photo/1 https://blog.cloudflare.com/how-verizon-and-a-bgp-optimizer-knocked-large-parts-of-the-internet-offline-today/amp/

Page 11: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1111

Headlines

https://blog.thousandeyes.com/internet-vulnerability-takes-down-

google/

Page 12: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1212

Headlines

https://blog.cloudflare.com/bgp-leaks-and-crypto-currencies

Page 13: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1313

Headlines

After (JP->JP)

https://dyn.com/blog/large-bgp-leak-by-google-disrupts-internet-in-japan/

Before (JP->JP)

Page 14: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1414

Headlines

Page 15: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1515

Why do we keep seeing these?

• Because NO ONE is in charge?– No single authority model for the Internet

• No reference point for what’s right in routing

Page 16: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1616

Why do we keep seeing these?

• Routing works by RUMOUR– Tell what you know to your neighbors, and Learn what your

neighbors know

– Assume everyone is correct (and honest)• Is the originating network the rightful owner?

Page 17: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1717

Why do we keep seeing these?

• Routing is VARIABLE– The view of the network depends on where you are

• Different routing outcomes at different locations

– ~ no reference view to compare the local view

Page 18: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1818

Why do we keep seeing these?

• Routing works in REVERSE– Outbound advertisement affects inbound traffic

– Inbound (Accepted) advertisement influence outbound traffic

Page 19: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

1919

Why do we keep seeing these?

• And as always, there is no E-bit – a bad routing update does not identify itself as BAD

• RFC 3514 😉

• So tools/techniques try to identify GOOD updates

Page 20: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2020

Why should we worry?

• Because it’s just so easy to do bad in routing!

By Source (WP:NFCC#4), Fair use,

https://en.wikipedia.org/w/index.php?curid=42515224

Page 21: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2121

Why should we bother?

• As a Engineer– I don’t want to be told at 3AM my routing is broken

Page 22: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2222

Current Practice

Peering/Transit Request

LOA Check

Filters (in/out)

Page 23: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2323

Tools & Techniques

LOA Check

Whois(manual)

Letter of Authority

IRR (RPSL)

Page 24: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2424

Tools & Techniques

• Look up whois– verify holder of a

resource

Page 25: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2525

Tools & Techniques

• Ask for a Letter of Authority– Absolve from any liabilities

Page 26: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2626

Tools & Techniques

• Look up/ask to enter details in IRR– describes route origination

and inter-AS routing policies

Page 27: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2727

Tools & Techniques

• IRR– Helps generate network (prefix &

as-path) filters using RPSL tools

• Filter out route advertisements not described in the registry

Page 28: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2828

Tools & Techniques

• Problem(s) with IRR– No single authority model

• How do I know if a RR entry is genuine and correct?

• How do I differentiate between a current and a lapsed entry?

– Many RRs

• If two RRs contain conflicting data, which one do I trust and use?

– Incomplete data - Not all resources are registered in an IRR• If a route is not in a RR, is the route invalid or is the RR just missing

data?

– Scaling• How do I apply IRR filters to upstream(s)?

Page 29: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

2929

Back to basics – identify GOOD

• Using digital signatures to convey the “authority to use”? – A private key to sign the authority, and

– the public key to validate that authority

Page 30: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

3030

How about trust?

• Follows the resource allocation/delegation hierarchy

IANA RIRs NIRs/LIRs End Holders

|

V

End Holders

Page 31: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

3131

Chain of Trust - RPKI

IANA

RIPE-NCCLACNICARIN APNICAFRINIC

NIR

ISP ISP ISP ISP

Allocation

Hierarchy

Trust Anchor

Certificate

Certificate

chain

mirrors the

allocation

hierarchy

Cert (CA)

Cert (EE)

Cert (EE)

Cert (EE)

Cert (EE)

Cert (CA)

Cert (CA)

Page 32: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

3232

Resource Certificates

• When an address holder A (*IRs) allocates resources (IP address/ASN) to B (end holders)

– A issues a resource certificate that binds the allocated address with B’s public key, all signed by A’s (CA) private key

– proves the holder of the private key (B) is the legitimate holder of the resource!

Page 33: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

3333

Route Origin Authority

• B can now sign authorities using its private key, – which can be validated by any third party against the TA

• For routing, the address holder can authorize a network (ASN) to originate a route, and sign this permission with its private key (ROA)

Prefix 202.144.128.0/19

Max-length /24

Origin ASN AS17660

Page 34: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

3434

Filtering with ROAs – Route Origin Validation

RPKI-to-Router (RtR)

RPKI Validator/

RPKI Cache server

2406:6400::/32-48

17821

.1/:1

.2/:2

AS17821

ASXXXX

Global

(RPKI)

Repo

ROA

2406:6400::/32-48

17821

TA

TA

TA

2406:6400::/48

Page 35: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

3535

Are ROAs enough?

• What if I forge the origin AS in the AS path?– Would be accepted as “good” – pass origin validation!

• Which means, we need to secure the AS path as well– need AS path validation (per-prefix)

Page 36: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

3636

AS-PATH validation (BGPsec)

– A BGPsec speaker validates the received update by checking:

• If there is a ROA that describes the prefix and origin AS, and

• If the received AS path can be validated as a chain of signatures (for each AS in the AS path) using the AS keys

AS1 AS2

AS3

AS4

AS1 -> AS2(Signed AS1)

AS1 -> AS2(Signed AS1)

AS2->AS3(signed AS2)

AS1 -> AS2(Signed AS1)

AS2->AS4(signed AS2)

Page 37: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

3737

AS-PATH validation issues…

• More resources– CPU - high crypto overhead to validate signatures, and

– Memory • Updates in BGPsec would be per prefix – update packing??

• New attributes carrying signatures and certs/key-id for every AS in the AS path

• How do we distribute the certificates required?

• Can we have partial adoption?

• Given so much overhead, can it do more - Route leaks?

Page 38: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

3838

So, what can we do?

• Basic BGP OpSec hygiene – RFC7454/RFC8212

– RFC 8212 – BGP default reject or something similar

– Filters with your customers and peers • Prefix filters, Prefix limit

• AS-PATH filters, AS-PATH limit

• Use IRR objects (source option) or ROA-to-IRR

– Filter what you receive from your upstream(s)

– Create ROAs for your resources

– Filter inbound routes based on ROAs ~ ROV

• Join industry initiatives like MANRS• https://www.manrs.org/

Page 39: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

3939

Industry Trends

Dropping Invalids!

Page 40: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

4040

Acknowledgement

• Geoff Huston, APNIC

• Randy Bush, IIJ Labs/Arrcus

• Tashi Phuntsho, APNIC

• Yesterdays Workshop participants and VNNIC, for encouraging a conversation in Viet Nam towards a more secure Internet for everyone.

Page 41: Securing Internet Routing - VNIX-NOG · – I don’t want the basis of trust in the Internet to be casual when my bank, hospital and tax department depend on it. 9 ... Trust Anchor

41

THANK YOU


Recommended